aboutsummaryrefslogtreecommitdiff
path: root/google
AgeCommit message (Collapse)Author
2020-01-13feat(storage): support optionsRequestedPolicyVersion (#9989)Jonathan Lui
* iam proposal #3 maintain compatibility with defaultdict remove in place raise KeyError on delete update deprecation for dict-key access and factory methods clean up maintain compatibility - removing duplicate in __setitems__ check for conditions for dict access remove empty binding fix test accessing private var _bindings fix(tests): change version to make existing tests pass tests: add tests for getitem, delitem, setitem on v3 and conditions test policy.bindings property fixlint black sort bindings by role when converting to api repr add deprecation warning for iam factory methods update deprecation message for role methods make Policy#bindings.members a set update policy docs fix docs make docs better fix: Bigtable policy class to use Policy.bindings add from_pb with conditions test add to_pb condition test blacken fix policy __delitem__ add docs on dict access do not modify binding in to_apr_repr * feat(storage): support requested_policy_version for get_iam_policy * add system-test * add ref doc sample to get_iam_policy * add requested_policy_version to blob * fix tests * nit: typo * blacken * fix docs build * format docs * remove unused variables
2020-01-09feat(api_core): support version 3 policy bindings (#9869)Jonathan Lui
* feat(api_core): support version 3 policy bindings * fix(doc): fix documenting bindings structure * try fixing docs * fix pytype error * fill test coverage * indent docs * fix docs * improve test coverage * linty * remove unused variable
2019-12-10feat(api_core): make the last retry happen at deadline (#9873)Peter Lamut
* feat(api_core): allow setting Retry deadline as strict If a deadline is set as strict, Retry will shorten the last sleep period to end at the given deadline, and not possibly stretch beyond it. * feat(core): make the last retry happen at deadline This commit changes Retry instances in a way that the last sleep period is shortened so that its end matches at the given deadline. This prevents the last sleep period to last way beyond the deadline.
2019-11-19Add a repr method for ClientOptions (#9849)Dov Shlachter
2019-11-13feat(api core): simplify from_rfc3339 methods (#9641)Leonid Emar-Kar
2019-11-01feat(api_core): provide a 'raw_page' field for page_iterator.Page (#9486)Dov Shlachter
* Provide a 'raw_page' field for page_iterator.Page Some paginated response messages include additional fields that users may wish to inspect.
2019-10-02fix(api_core): finalize during close of 'ResumableBidiRpc' (#9337)Tres Seaver
Avoid blocking for ill-behaved daemon threads during BiDi shutdown. Closes #8616, #9008.
2019-08-22API Core: Retry.__init__ add on_error (#8892)Leonid Emar-Kar
2019-08-19docs: about of time -> amount of time (#9052)ritiko
typo fix
2019-08-01Fix race in 'BackgroundConsumer._thread_main'. (#8883)Tres Seaver
See #7817.
2019-07-30API Core: Add client_options documentation. (#8834)Bu Sun Kim
2019-07-29Remove error log entry on clean BiDi shutdown. (#8806)Tres Seaver
Closes #8803.
2019-07-23Forward 'timeout' arg from 'exception' to '_blocking_poll'. (#8735)Tres Seaver
Closes #8733.
2019-07-19Link to googleapis.dev documentation in READMEs. (#8705)Bu Sun Kim
2019-07-17Firestore: Add 'should_terminate' predicate for clean BiDi shutdown. (#8650)Tres Seaver
Closes #7826.
2019-06-24Add client options. (#8265)Bu Sun Kim
2019-06-18Core: Mitigate busy reopen loop in ResumableBidiRpc consuming 100% CPU (#8193)Peter Lamut
* Add bidi._Throttle helper class * Add optional reopen throttling to ResumableBidiRpc * Enable Bidi reopen throttling in SPM * Change bidi._Throttle signature The commit renames the entry_cap parameter to access_limit, and changes the type of the time_window argument from float to timedelta.
2019-05-28Core: Classify 503 Service Unavailable errors as transient. (#8182)Tres Seaver
Also, pin grpcio < 2.0dev. Closes #5410.
2019-05-22Unbreak pytype by silencing a false positive. (#8106)Rebecca Chen
2019-05-07Refactor 'client_info' support. (#7849)Tres Seaver
* Add 'user_agent' and 'extra_headers' properties to 'Connection'. Deprecate the 'USER_AGENT' and '_EXTRA_HEADERS' class-level attributes. * Add 'client_info' parameter to 'Connection' ctor. * Implement 'Connection.user_agent' via its '_client_info'. * Ensure 'X-Goog-API-Client' header is always passed. * Create/use non-GAPIC-specific 'ClientInfo' class FBO HTTP/JSON clients. Derive the existing GAPIC class from it.
2019-04-29Add `user_agent` property to `ClientInfo` (#7799)Tim Swast
* Add `user_agent` property to `ClientInfo` This provides a way for partners to define a prefix identifying their tool or application, as required by many cloud partnership agreements. * Workaround for pytype pyi error with nested class.
2019-04-07Append leading zeros for nanosecond precision DateTimes (#7663)gleeper
2019-03-27Allow passing metadata as part of creating a bidi (#7514)Christopher Wilcox
* allows providing rpc metadata for bidi streams
2019-03-22When re-opening a ResumableBidiRPC set _request_queue_generator to None. (#7548)Christopher Wilcox
2019-03-12Adds a ready event to BackgroundConsumer to wait on start. (#7499)Christopher Wilcox
* Adds a ready event to BackgroundConsumer to allow waiting for the background thread to start
2019-02-23Add support to unwrap Anys into wrapped pb2 objects. (#7430)Luke Sneeringer
This commit adds support for unwrapping wrapped pb2 objects from Anys (needed for LRO support with wrapping).
2019-02-23Add `Operation.deserialize`. (#7427)Luke Sneeringer
This commit adds a `deserialize` method to the Operation object. The class method is a helper to deserialize the serialized protobuf operation messages.
2018-12-13Api_core: Convert 'DatetimeWithNanos' to / from ↵Tres Seaver
'google.protobuf.timestamp_pb2.Timestamp' (#6919) Toward #6547.
2018-12-10Add usage example for 'google.api_core.iam.Polcy'. (#6855)Tres Seaver
Napoleon-ize docstrings in 'google.api_core.iam'. Order the 'core/iam' docs page entries in source order. Closes #6161.
2018-12-07API Core: fix pytype build (#6873)Tres Seaver
* Run 'pytype' only over the 'google/' directory. * Ignore 'pytype_output/' derived files. * Remove spurious 'MutableMapping.register' call. 'pytype' chokes on it, but the 'Policy' class already derives from 'MutableMapping', so the call is a no-op. * Silence deprecation spew during IAM unit tests.
2018-11-30Move google.cloud.iam (core) to google.api_core.iam (#6740)Christopher Wilcox
* move google.cloud.iam (core) to google.api.core.iam
2018-11-29blacken api_core and core (#6668)Christopher Wilcox
* blacken api_core and core
2018-11-15Fix typo (#6532)Dustin Ingram
2018-11-12Import stdlib ABCs from 'collections.abc' rather than 'collections'. (#6451)Tres Seaver
On Python 2.7, fall back to 'collections'. Closes #6450.
2018-11-12Firestore: Add Watch Support (#6191)Christopher Wilcox
Firestore watch
2018-10-31Retry transient errors in 'PollingFuture.result'. (#6305)Tres Seaver
Closes #6301.
2018-10-29Back out changes from #6267 / 'api_core-1.6.0a1' release. (#6328)Tres Seaver
We will bring them back in when we have an OK to make a non-alpha 'api_core-1.6.0' release. Toward #6326.
2018-10-26Don't URL-encode slashes in gRPC request headers. (#6310)Tim Swast
Per internal document go/api-url-encoding (approved on 2017-04-20), "the client library will %-encode everything except "/" and unreserved characters, and the server will %-decode everything except "%2F" and %2f" This is currently affecting a private API which passes a resource name (containing slashes) as a query parameter over gRPC.
2018-10-18Add methods to api_core used by new autogenerator. (#6267)Luke Sneeringer
* Add dispatch and deserialize methods. This adds convenience methods used by client libraries produced by gapic-generator-python. * Mark test as Python 3 only. * Fix import order. * Address @theacodes feedback. * Move dispatch to gapic_v2; alias remaining gapic_v1 modules. * Fix import order.
2018-10-16Move bidi to api-core (#6211)Christopher Wilcox
2018-07-27Add support for gRPC connection management (available when using optional ↵Weiran Fang
grpc_gcp dependency) (#5553)
2018-07-25Add protobuf_helpers.field_mask to calculate a field mask from two messages ↵Ernest Landrito
(#5320)
2018-06-14Rename `x-goog-header-params` to `x-goog-request-params` (#5495)Evawere Ogbe
2018-05-24Make client_info work without gRPC installed. (#5075)Luke Sneeringer
2018-05-16Fix tests after grpcio update (#5333)Christopher Wilcox
* Fix tests after grpcio update * add test for close stub for coverage
2018-03-09Move DatetimeWithNanoSeconds to api_core (#4979)chemelnucfin
* Move DatetimewithNanoSeconds to api_core
2018-03-06Use a class to wrap grpc streaming errors instead of monkey-patching (#4995)Jon Wayne Parrott
2018-02-27Make `api_core.page_iterator.PageIterator.item_to_value` publicJon Wayne Parrott
2018-02-26Add ability to specify retry for `Operation` and `polling.Future`. (#4922)Jon Wayne Parrott
2018-01-10Revert "api_core: Make PageIterator.item_to_value public. (#4702)" (#4731)Jon Wayne Parrott