google-cloud-tpu-v1 0.7.0 → 1.0.1

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: 99a8f9b9740ebdba54407307c35395298ceac9c8115a6c5f70fa865005c74d99
4
- data.tar.gz: f73c3f9dff9500e77a6440f52be5eeab00ab88bc9d83afa97a059f050a6688e4
3
+ metadata.gz: 118f97f358b5be833b921219cad3693dcd118d33463bffb3057702a2f6f47c92
4
+ data.tar.gz: 5c6dd32e273b041d33f8e2a98a6115689aa1c834bdcbc4a49bb3254380ee360e
5
5
  SHA512:
6
- metadata.gz: b27a33fe489cf742d7a5b5f36cf1b3b1b6637878739b13b440cc4e6f6eb3d1975168c72661422e65c2c62b39cc4adc385de08ff53ebf9ab8e62974d9f6e09143
7
- data.tar.gz: 348a65236ae5951f44a3cd3f8f340ec825d94d8b999de237cc675417d08f99cc130ee8071d8219ea93510d2e2e906ef379f0f7e6839a258682eb0197726328d3
6
+ metadata.gz: 2a280f81ae345ec9058938c50655df6ba638009333bfcac6c2fd2ffcea18f8b7197364c5897bdd2041c5c6debc7f6e01a098a9ed2091cf8e7dd8736c9d634fd8
7
+ data.tar.gz: 23d149154d3de2259ffb04103b646c3f7bc6ea9b44e0e378e9765769e6ed6337d81dd70a4ba4358561587d220b1c0477ee3c4bd23f7d9428112f87afeabd3989
@@ -33,6 +33,9 @@ module Google
33
33
  # TPU API v1
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "tpu.$UNIVERSE_DOMAIN$"
38
41
 
@@ -256,10 +259,11 @@ module Google
256
259
  # Customize the options with defaults
257
260
  metadata = @config.rpcs.list_nodes.metadata.to_h
258
261
 
259
- # Set x-goog-api-client and x-goog-user-project headers
262
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
260
263
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
261
264
  lib_name: @config.lib_name, lib_version: @config.lib_version,
262
265
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
266
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
263
267
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
264
268
 
265
269
  header_params = {}
@@ -342,10 +346,11 @@ module Google
342
346
  # Customize the options with defaults
343
347
  metadata = @config.rpcs.get_node.metadata.to_h
344
348
 
345
- # Set x-goog-api-client and x-goog-user-project headers
349
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
346
350
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
347
351
  lib_name: @config.lib_name, lib_version: @config.lib_version,
348
352
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
353
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
349
354
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
350
355
 
351
356
  header_params = {}
@@ -438,10 +443,11 @@ module Google
438
443
  # Customize the options with defaults
439
444
  metadata = @config.rpcs.create_node.metadata.to_h
440
445
 
441
- # Set x-goog-api-client and x-goog-user-project headers
446
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
447
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
448
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
449
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
450
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
445
451
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
446
452
 
447
453
  header_params = {}
@@ -531,10 +537,11 @@ module Google
531
537
  # Customize the options with defaults
532
538
  metadata = @config.rpcs.delete_node.metadata.to_h
533
539
 
534
- # Set x-goog-api-client and x-goog-user-project headers
540
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
535
541
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
536
542
  lib_name: @config.lib_name, lib_version: @config.lib_version,
537
543
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
544
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
538
545
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
546
 
540
547
  header_params = {}
@@ -626,10 +633,11 @@ module Google
626
633
  # Customize the options with defaults
627
634
  metadata = @config.rpcs.reimage_node.metadata.to_h
628
635
 
629
- # Set x-goog-api-client and x-goog-user-project headers
636
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
630
637
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
631
638
  lib_name: @config.lib_name, lib_version: @config.lib_version,
632
639
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
640
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
633
641
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
634
642
 
635
643
  header_params = {}
@@ -719,10 +727,11 @@ module Google
719
727
  # Customize the options with defaults
720
728
  metadata = @config.rpcs.stop_node.metadata.to_h
721
729
 
722
- # Set x-goog-api-client and x-goog-user-project headers
730
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
723
731
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
724
732
  lib_name: @config.lib_name, lib_version: @config.lib_version,
725
733
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
734
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
726
735
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
727
736
 
728
737
  header_params = {}
@@ -812,10 +821,11 @@ module Google
812
821
  # Customize the options with defaults
813
822
  metadata = @config.rpcs.start_node.metadata.to_h
814
823
 
815
- # Set x-goog-api-client and x-goog-user-project headers
824
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
816
825
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
817
826
  lib_name: @config.lib_name, lib_version: @config.lib_version,
818
827
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
828
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
819
829
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
820
830
 
821
831
  header_params = {}
@@ -910,10 +920,11 @@ module Google
910
920
  # Customize the options with defaults
911
921
  metadata = @config.rpcs.list_tensor_flow_versions.metadata.to_h
912
922
 
913
- # Set x-goog-api-client and x-goog-user-project headers
923
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
914
924
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
915
925
  lib_name: @config.lib_name, lib_version: @config.lib_version,
916
926
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
927
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
917
928
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
918
929
 
919
930
  header_params = {}
@@ -996,10 +1007,11 @@ module Google
996
1007
  # Customize the options with defaults
997
1008
  metadata = @config.rpcs.get_tensor_flow_version.metadata.to_h
998
1009
 
999
- # Set x-goog-api-client and x-goog-user-project headers
1010
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1000
1011
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1001
1012
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1002
1013
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
1014
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1003
1015
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1004
1016
 
1005
1017
  header_params = {}
@@ -1093,10 +1105,11 @@ module Google
1093
1105
  # Customize the options with defaults
1094
1106
  metadata = @config.rpcs.list_accelerator_types.metadata.to_h
1095
1107
 
1096
- # Set x-goog-api-client and x-goog-user-project headers
1108
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1097
1109
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1098
1110
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1099
1111
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
1112
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1100
1113
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1101
1114
 
1102
1115
  header_params = {}
@@ -1179,10 +1192,11 @@ module Google
1179
1192
  # Customize the options with defaults
1180
1193
  metadata = @config.rpcs.get_accelerator_type.metadata.to_h
1181
1194
 
1182
- # Set x-goog-api-client and x-goog-user-project headers
1195
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1183
1196
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1184
1197
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1185
1198
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
1199
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1186
1200
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1187
1201
 
1188
1202
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module Tpu
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "tpu.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Tpu::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tpu
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "1.0.1"
25
25
  end
26
26
  end
27
27
  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-tpu-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 1.0.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