google-apis-core 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f584978e699dd7b6adbfe8e00ea529199b1b618ff78853027ead245769e1b047
4
- data.tar.gz: 27af4c5f3f32b61ce1e7f1c115d4d0f3cc6b2a6fbc819f3b68be276f67beed74
3
+ metadata.gz: de1aca07eb6dab1c4571ad1b001657b858a7c8f263591d23f76a482707c1d244
4
+ data.tar.gz: 7715680088cf38a06fcf80747a047f0ebb0aaf63ed61817df26787db4f983fcd
5
5
  SHA512:
6
- metadata.gz: 94230bf9e41f4dd4b2b6ab552cbab2759f81e3b9ed7e84220142000dffb53839c9d1d3f20abb125acd35b1d0cb276f80ec9d60cf144955e735037c60b0640f2a
7
- data.tar.gz: d4d887b5d423d9f5e4934910e3285e5274a5762095de67ccde4c77516d6a680a45e3a56f8dc774738dc3a08e8047feb6296584d5e48b6937f54e19a77ed3b666
6
+ metadata.gz: '029c926e8f4dcc1371f68def113598ca73cb4fc6982376c53175f40240a537b2dbce3e7cf041b54ae8b501867f0e728f596c1e70ed0abd798ba695605a7ca5fb'
7
+ data.tar.gz: fb2ef0252bfcdab2b3e45e07252cbed43a3a73dd4b72c32f7024a62bec18cf557905f75a5a7c56366b3466db29b353dd1a94ceee9a6a8160b05573231bcad237
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Release History
2
2
 
3
+ ### [0.4.2](https://www.github.com/googleapis/google-api-ruby-client/compare/google-apis-core/v0.4.1...google-apis-core/v0.4.2) (2022-01-21)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **core:** Support for max elapsed time configuration. ([241361e](https://www.github.com/googleapis/google-api-ruby-client/commit/241361e1a47d1aeac09ecd1f24099c8fc83e4508))
9
+
3
10
  ## 0.4.1 (2021-07-19)
4
11
 
5
12
  * FIX: Prevent duplicated pagination when a response returns an empty string as the next page token.
data/OVERVIEW.md CHANGED
@@ -8,8 +8,8 @@ need to install it by itself.
8
8
 
9
9
  More detailed descriptions of the Google legacy REST clients are available in two documents.
10
10
 
11
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
12
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
11
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
12
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
13
13
 
14
14
  For reference information on specific calls in the clients, see the {Google::Apis class reference docs}.
15
15
 
@@ -100,6 +100,7 @@ module Google
100
100
  opencensus_begin_span
101
101
  begin
102
102
  Retriable.retriable tries: options.retries + 1,
103
+ max_elapsed_time: options.max_elapsed_time,
103
104
  base_interval: 1,
104
105
  multiplier: 2,
105
106
  on: RETRIABLE_ERRORS do |try|
@@ -16,7 +16,7 @@ module Google
16
16
  module Apis
17
17
  module Core
18
18
  # Core version
19
- VERSION = "0.4.1".freeze
19
+ VERSION = "0.4.2".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -28,6 +28,7 @@ module Google
28
28
  RequestOptions = Struct.new(
29
29
  :authorization,
30
30
  :retries,
31
+ :max_elapsed_time,
31
32
  :header,
32
33
  :normalize_unicode,
33
34
  :skip_serialization,
@@ -66,6 +67,8 @@ module Google
66
67
  # @return [Signet::OAuth2::Client, #apply(Hash)] OAuth2 credentials.
67
68
  # @!attribute [rw] retries
68
69
  # @return [Fixnum] Number of times to retry requests on server error.
70
+ # @!attribute [rw] max_elapsed_time
71
+ # @return [Fixnum] Total time in seconds that requests are allowed to keep being retried.
69
72
  # @!attribute [rw] header
70
73
  # @return [Hash<String,String>] Additional HTTP headers to include in requests.
71
74
  # @!attribute [rw] normalize_unicode
@@ -106,6 +109,7 @@ module Google
106
109
  ClientOptions.default.application_version = '0.0.0'
107
110
  ClientOptions.default.transparent_gzip_decompression = true
108
111
  RequestOptions.default.retries = 0
112
+ RequestOptions.default.max_elapsed_time = 900
109
113
  RequestOptions.default.normalize_unicode = false
110
114
  RequestOptions.default.skip_serialization = false
111
115
  RequestOptions.default.skip_deserialization = false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2022-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: representable
@@ -183,9 +183,9 @@ licenses:
183
183
  - Apache-2.0
184
184
  metadata:
185
185
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
186
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/google-apis-core/CHANGELOG.md
187
- documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.4.1
188
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/google-apis-core
186
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core/CHANGELOG.md
187
+ documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.4.2
188
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core
189
189
  post_install_message:
190
190
  rdoc_options: []
191
191
  require_paths:
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
203
  requirements: []
204
- rubygems_version: 3.2.17
204
+ rubygems_version: 3.3.5
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: Common utility and base classes for legacy Google REST clients