google-cloud-tpu-v1 0.7.0 → 1.0.0

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: d33b59ac87142efd34871bf3e282465a9d3509e0d1d9f74c44c3e31e6a40c8ed
4
+ data.tar.gz: c663e2381c2b026a264b32435650d32b1a5f7b021ee69b4a838a208dc66d55de
5
5
  SHA512:
6
- metadata.gz: b27a33fe489cf742d7a5b5f36cf1b3b1b6637878739b13b440cc4e6f6eb3d1975168c72661422e65c2c62b39cc4adc385de08ff53ebf9ab8e62974d9f6e09143
7
- data.tar.gz: 348a65236ae5951f44a3cd3f8f340ec825d94d8b999de237cc675417d08f99cc130ee8071d8219ea93510d2e2e906ef379f0f7e6839a258682eb0197726328d3
6
+ metadata.gz: d288363c89362e3397a7a8c145348128537e0f0b0bd1d9d939f2b549f4daa165e82c2957fe67c043f9ea9d34706c5255bb795d6c9e75e4ab149883345d2c45e9
7
+ data.tar.gz: 3a1a535088211abf2bcd9ad474e0b955f9f30875358c8b874e58f1f5e58a9403c8dd745e19ebbccbac89a1a2da1e0fa540d02b8c1e2cdbb402170818f3111422
@@ -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.0"
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
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.0
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-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common