google-apis-tpu_v2 0.18.0 → 0.20.0

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: d161bfe968fc7203962c40c379ad9af0678245d906d329426557da5821a3a2b4
4
- data.tar.gz: 9fa93118febf339abfdfb6e88642493e7458fd1e14344deff7b42e277b105542
3
+ metadata.gz: ff8e3bd5493db521039e9717ce5935edd6c1561502273beb6c80db14628df044
4
+ data.tar.gz: a74b0f265666a00dc509c15ccb370c3e25330620ae6cfe4d03fd0fe9f8376918
5
5
  SHA512:
6
- metadata.gz: 2411eef01ed1562749e9da63e27dd14c4212f6174cc501eff296e2ff5542de48210ced70cd9a3e2306d4b3ff6c4826efba3db9dac28f7ffebe393787f0a1bf44
7
- data.tar.gz: c9e003bd3e9bd0a6ffa752eca26f86234b743789205f70087fa921d8781e14bd391cb1507a193a2c76b5c806f82ab835990b4e6ad17df5bcf1ba6e8bca04876d
6
+ metadata.gz: 9b4651bc883ea4771e9bfd1ff6d89d016e2b1bcd956b54a13d9e0772b1f8a5859b1f80137fdc03b3a104e2c0ff54eacaac89882a6a6ed1ac7564251b5bedffd6
7
+ data.tar.gz: 71e94b9e6937fc075ac93da6b39a3ec21582ce8f150c5b4ac1923203b2bee95a2ea7e959fdb0f34586936da619993e380409daed4e984eebc5594c0a940740f9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-tpu_v2
2
2
 
3
+ ### v0.20.0 (2025-10-12)
4
+
5
+ * Regenerated from discovery document revision 20251005
6
+
7
+ ### v0.19.0 (2025-09-14)
8
+
9
+ * Regenerated from discovery document revision 20250903
10
+
3
11
  ### v0.18.0 (2025-08-24)
4
12
 
5
13
  * Regenerated from discovery document revision 20250815
@@ -150,6 +150,25 @@ module Google
150
150
  end
151
151
  end
152
152
 
153
+ # Sets the boot disk configuration for the TPU node.
154
+ class BootDiskConfig
155
+ include Google::Apis::Core::Hashable
156
+
157
+ # Defines the customer encryption key for disk encryption.
158
+ # Corresponds to the JSON property `customerEncryptionKey`
159
+ # @return [Google::Apis::TpuV2::CustomerEncryptionKey]
160
+ attr_accessor :customer_encryption_key
161
+
162
+ def initialize(**args)
163
+ update!(**args)
164
+ end
165
+
166
+ # Update properties of this object
167
+ def update!(**args)
168
+ @customer_encryption_key = args[:customer_encryption_key] if args.key?(:customer_encryption_key)
169
+ end
170
+ end
171
+
153
172
  # Further data for the creating state.
154
173
  class CreatingData
155
174
  include Google::Apis::Core::Hashable
@@ -163,6 +182,29 @@ module Google
163
182
  end
164
183
  end
165
184
 
185
+ # Defines the customer encryption key for disk encryption.
186
+ class CustomerEncryptionKey
187
+ include Google::Apis::Core::Hashable
188
+
189
+ # The name of the encryption key that is stored in Google Cloud KMS. For example:
190
+ # "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/
191
+ # cryptoKeys/KEY The fully-qualifed key name may be returned for resource GET
192
+ # requests. For example: "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/
193
+ # keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1
194
+ # Corresponds to the JSON property `kmsKeyName`
195
+ # @return [String]
196
+ attr_accessor :kms_key_name
197
+
198
+ def initialize(**args)
199
+ update!(**args)
200
+ end
201
+
202
+ # Update properties of this object
203
+ def update!(**args)
204
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
205
+ end
206
+ end
207
+
166
208
  # Further data for the deleting state.
167
209
  class DeletingData
168
210
  include Google::Apis::Core::Hashable
@@ -521,6 +563,13 @@ module Google
521
563
  # @return [Array<Google::Apis::TpuV2::Operation>]
522
564
  attr_accessor :operations
523
565
 
566
+ # Unordered list. Unreachable resources. Populated when the request sets `
567
+ # ListOperationsRequest.return_partial_success` and reads across collections e.g.
568
+ # when attempting to list all resources across all supported locations.
569
+ # Corresponds to the JSON property `unreachable`
570
+ # @return [Array<String>]
571
+ attr_accessor :unreachable
572
+
524
573
  def initialize(**args)
525
574
  update!(**args)
526
575
  end
@@ -529,6 +578,7 @@ module Google
529
578
  def update!(**args)
530
579
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
531
580
  @operations = args[:operations] if args.key?(:operations)
581
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
532
582
  end
533
583
  end
534
584
 
@@ -773,6 +823,11 @@ module Google
773
823
  # @return [String]
774
824
  attr_accessor :api_version
775
825
 
826
+ # Sets the boot disk configuration for the TPU node.
827
+ # Corresponds to the JSON property `bootDiskConfig`
828
+ # @return [Google::Apis::TpuV2::BootDiskConfig]
829
+ attr_accessor :boot_disk_config
830
+
776
831
  # The CIDR block that the TPU node will use when selecting an IP address. This
777
832
  # CIDR block must be a /29 block; the Compute Engine networks API forbids a
778
833
  # smaller block, and using a larger block would be wasteful (a node can only
@@ -912,6 +967,7 @@ module Google
912
967
  @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
913
968
  @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
914
969
  @api_version = args[:api_version] if args.key?(:api_version)
970
+ @boot_disk_config = args[:boot_disk_config] if args.key?(:boot_disk_config)
915
971
  @cidr_block = args[:cidr_block] if args.key?(:cidr_block)
916
972
  @create_time = args[:create_time] if args.key?(:create_time)
917
973
  @data_disks = args[:data_disks] if args.key?(:data_disks)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TpuV2
18
18
  # Version of the google-apis-tpu_v2 gem
19
- GEM_VERSION = "0.18.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250815"
25
+ REVISION = "20251005"
26
26
  end
27
27
  end
28
28
  end
@@ -58,12 +58,24 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class BootDiskConfig
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
61
67
  class CreatingData
62
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
69
 
64
70
  include Google::Apis::Core::JsonObjectSupport
65
71
  end
66
72
 
73
+ class CustomerEncryptionKey
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
67
79
  class DeletingData
68
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
81
 
@@ -379,12 +391,27 @@ module Google
379
391
  end
380
392
  end
381
393
 
394
+ class BootDiskConfig
395
+ # @private
396
+ class Representation < Google::Apis::Core::JsonRepresentation
397
+ property :customer_encryption_key, as: 'customerEncryptionKey', class: Google::Apis::TpuV2::CustomerEncryptionKey, decorator: Google::Apis::TpuV2::CustomerEncryptionKey::Representation
398
+
399
+ end
400
+ end
401
+
382
402
  class CreatingData
383
403
  # @private
384
404
  class Representation < Google::Apis::Core::JsonRepresentation
385
405
  end
386
406
  end
387
407
 
408
+ class CustomerEncryptionKey
409
+ # @private
410
+ class Representation < Google::Apis::Core::JsonRepresentation
411
+ property :kms_key_name, as: 'kmsKeyName'
412
+ end
413
+ end
414
+
388
415
  class DeletingData
389
416
  # @private
390
417
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -511,6 +538,7 @@ module Google
511
538
  property :next_page_token, as: 'nextPageToken'
512
539
  collection :operations, as: 'operations', class: Google::Apis::TpuV2::Operation, decorator: Google::Apis::TpuV2::Operation::Representation
513
540
 
541
+ collection :unreachable, as: 'unreachable'
514
542
  end
515
543
  end
516
544
 
@@ -581,6 +609,8 @@ module Google
581
609
 
582
610
  property :accelerator_type, as: 'acceleratorType'
583
611
  property :api_version, as: 'apiVersion'
612
+ property :boot_disk_config, as: 'bootDiskConfig', class: Google::Apis::TpuV2::BootDiskConfig, decorator: Google::Apis::TpuV2::BootDiskConfig::Representation
613
+
584
614
  property :cidr_block, as: 'cidrBlock'
585
615
  property :create_time, as: 'createTime'
586
616
  collection :data_disks, as: 'dataDisks', class: Google::Apis::TpuV2::AttachedDisk, decorator: Google::Apis::TpuV2::AttachedDisk::Representation
@@ -118,8 +118,8 @@ module Google
118
118
  # @param [String] name
119
119
  # The resource that owns the locations collection, if applicable.
120
120
  # @param [Array<String>, String] extra_location_types
121
- # Optional. Do not use this field. It is unsupported and is ignored unless
122
- # explicitly documented otherwise. This is primarily for internal usage.
121
+ # Optional. Unless explicitly documented otherwise, don't use this unsupported
122
+ # field which is primarily intended for internal usage.
123
123
  # @param [String] filter
124
124
  # A filter to narrow down results to a preferred subset. The filtering language
125
125
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -612,6 +612,13 @@ module Google
612
612
  # The standard list page size.
613
613
  # @param [String] page_token
614
614
  # The standard list page token.
615
+ # @param [Boolean] return_partial_success
616
+ # When set to `true`, operations that are reachable are returned as normal, and
617
+ # those that are unreachable are returned in the [ListOperationsResponse.
618
+ # unreachable] field. This can only be `true` when reading across collections e.
619
+ # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
620
+ # by default supported and will result in an `UNIMPLEMENTED` error if set unless
621
+ # explicitly documented otherwise in service or product specific documentation.
615
622
  # @param [String] fields
616
623
  # Selector specifying which fields to include in a partial response.
617
624
  # @param [String] quota_user
@@ -629,7 +636,7 @@ module Google
629
636
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
630
637
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
631
638
  # @raise [Google::Apis::AuthorizationError] Authorization is required
632
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
639
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
633
640
  command = make_simple_command(:get, 'v2/{+name}/operations', options)
634
641
  command.response_representation = Google::Apis::TpuV2::ListOperationsResponse::Representation
635
642
  command.response_class = Google::Apis::TpuV2::ListOperationsResponse
@@ -637,6 +644,7 @@ module Google
637
644
  command.query['filter'] = filter unless filter.nil?
638
645
  command.query['pageSize'] = page_size unless page_size.nil?
639
646
  command.query['pageToken'] = page_token unless page_token.nil?
647
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
640
648
  command.query['fields'] = fields unless fields.nil?
641
649
  command.query['quotaUser'] = quota_user unless quota_user.nil?
642
650
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-tpu_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tpu_v2/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2/v0.18.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2/v0.20.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tpu_v2
62
62
  rdoc_options: []
63
63
  require_paths: