google-cloud-location 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d97ad697437690ae39fcaa3a4515b009e2e4047a5bc98099a6fbd304ee3ca86
4
- data.tar.gz: d5d0b06a117818414b66f64daa979972fd25e16dd5ff9273587f34a99e193528
3
+ metadata.gz: 4e1c2800b2da05b07529b141f07753d8bb4128fee8fa055a84414bbad21f497b
4
+ data.tar.gz: cdb187cd174e4108d43077897dd392845644e43b593d31613393333f8ae98c04
5
5
  SHA512:
6
- metadata.gz: 305210ff36703c6f5cc5f3589bd343d7f4848f6f95e0705b7e86dcf0537644d23e25e98cff7adc5d0de9302a77662f637d83b81c7b7f8b20b22f7813c9d77404
7
- data.tar.gz: 92293ad1ec2f461e30657232a529347dfebf4d2c406e74f50d3815506a842eac4fca8abc71c936db243cc4d1c7a48e3539298f1bdb517a3f7664b52975458a60
6
+ metadata.gz: 41bf55fba596d7656a4d06f3fde82bdd0d4507e8b5552622f30043397b32f42a984ada6cb3fbe359b37afee5db622907efbe8a20cf96a452a0f7c76410395ccc
7
+ data.tar.gz: 7111301240cba7b901b8648c3c55506cb19c1c4d21b493706748bb18a553482e7169c1c23c03b31b10b8c72bd6a1e569c4730bb46e43779274d598e8679c8f6d
@@ -31,6 +31,9 @@ module Google
31
31
  # {::Google::Cloud::Location::Location#metadata Location.metadata} field.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "cloud.$UNIVERSE_DOMAIN$"
36
39
 
@@ -224,10 +227,11 @@ module Google
224
227
  # Customize the options with defaults
225
228
  metadata = @config.rpcs.list_locations.metadata.to_h
226
229
 
227
- # Set x-goog-api-client and x-goog-user-project headers
230
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
228
231
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
229
232
  lib_name: @config.lib_name, lib_version: @config.lib_version,
230
233
  gapic_version: ::Google::Cloud::Location::VERSION
234
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
231
235
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
232
236
 
233
237
  header_params = {}
@@ -310,10 +314,11 @@ module Google
310
314
  # Customize the options with defaults
311
315
  metadata = @config.rpcs.get_location.metadata.to_h
312
316
 
313
- # Set x-goog-api-client and x-goog-user-project headers
317
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
314
318
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
315
319
  lib_name: @config.lib_name, lib_version: @config.lib_version,
316
320
  gapic_version: ::Google::Cloud::Location::VERSION
321
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
317
322
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
318
323
 
319
324
  header_params = {}
@@ -33,6 +33,9 @@ module Google
33
33
  # {::Google::Cloud::Location::Location#metadata Location.metadata} field.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "cloud.$UNIVERSE_DOMAIN$"
38
41
 
@@ -216,12 +219,13 @@ module Google
216
219
  # Customize the options with defaults
217
220
  call_metadata = @config.rpcs.list_locations.metadata.to_h
218
221
 
219
- # Set x-goog-api-client and x-goog-user-project headers
222
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
220
223
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
221
224
  lib_name: @config.lib_name, lib_version: @config.lib_version,
222
225
  gapic_version: ::Google::Cloud::Location::VERSION,
223
226
  transports_version_send: [:rest]
224
227
 
228
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
225
229
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
226
230
 
227
231
  options.apply_defaults timeout: @config.rpcs.list_locations.timeout,
@@ -297,12 +301,13 @@ module Google
297
301
  # Customize the options with defaults
298
302
  call_metadata = @config.rpcs.get_location.metadata.to_h
299
303
 
300
- # Set x-goog-api-client and x-goog-user-project headers
304
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
301
305
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
302
306
  lib_name: @config.lib_name, lib_version: @config.lib_version,
303
307
  gapic_version: ::Google::Cloud::Location::VERSION,
304
308
  transports_version_send: [:rest]
305
309
 
310
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
306
311
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
312
 
308
313
  options.apply_defaults timeout: @config.rpcs.get_location.timeout,
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Location
23
- VERSION = "0.8.0"
23
+ VERSION = "0.8.1"
24
24
  end
25
25
  end
26
26
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-location
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common