google-apis-tpu_v2alpha1 0.37.0 → 0.39.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: 2f77ea147ea660592b4b91e4c195505d7439b5beea4188da5e33a29a4dbacb72
4
- data.tar.gz: 4712cc5c32b96875f4c9f5161529cee273d41526d3b47afd9803bd07dd61a46c
3
+ metadata.gz: c3898b49e6a17e22ca46e2306583ec8bdc3bda0f469b880b481bc1284908c6de
4
+ data.tar.gz: 0d7b11e246075f53825108884fa1d8003b1377bb719270b9cd964d733e9ec65d
5
5
  SHA512:
6
- metadata.gz: ce306ec7401ba580555f8ea5417d66542fe7f2d31609a1c5a4c425e1fbfb055e44f31c1a5785d8fee1dcb1889b70457fd2eadb364c5431de1b0d7d0b434e76ca
7
- data.tar.gz: e8a08f68f330ea18dcac4781be174aeb51d1962dd1fa2dd514ab6a0318e9c5ab0cc0c30562688b7dcc9f103f22c4343a67cc0799f3577c830f30e1d41252b19b
6
+ metadata.gz: 12dbf749a139e2b59b75d354e7a4524fa347eec9ff913aeca175ae4847877930f119752d6881f1da846fc7f25476f4ef20bf0e08bbeecc57b7f67ba7a2a1d521
7
+ data.tar.gz: 503c45f4c77ac4899419c4934d961df5542aedb508a9bcf5a4696eb70b902f12bcd867c77709bdeeead7e3a595348c10fbe806b99cfb2241de48df62f4a46e33
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-tpu_v2alpha1
2
2
 
3
+ ### v0.39.0 (2025-04-20)
4
+
5
+ * Regenerated from discovery document revision 20250410
6
+
7
+ ### v0.38.0 (2025-03-30)
8
+
9
+ * Regenerated from discovery document revision 20250320
10
+
3
11
  ### v0.37.0 (2025-03-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20250306
@@ -184,6 +184,13 @@ module Google
184
184
  attr_accessor :enable_confidential_compute
185
185
  alias_method :enable_confidential_compute?, :enable_confidential_compute
186
186
 
187
+ # Optional. Image from which boot disk is to be created. If not specified, the
188
+ # default image for the runtime version will be used. Example: `projects/$
189
+ # PROJECT_ID/global/images/$IMAGE_NAME`.
190
+ # Corresponds to the JSON property `sourceImage`
191
+ # @return [String]
192
+ attr_accessor :source_image
193
+
187
194
  def initialize(**args)
188
195
  update!(**args)
189
196
  end
@@ -192,6 +199,7 @@ module Google
192
199
  def update!(**args)
193
200
  @customer_encryption_key = args[:customer_encryption_key] if args.key?(:customer_encryption_key)
194
201
  @enable_confidential_compute = args[:enable_confidential_compute] if args.key?(:enable_confidential_compute)
202
+ @source_image = args[:source_image] if args.key?(:source_image)
195
203
  end
196
204
  end
197
205
 
@@ -1291,6 +1299,11 @@ module Google
1291
1299
  # @return [String]
1292
1300
  attr_accessor :name
1293
1301
 
1302
+ # Optional. The provisioning model for the resource.
1303
+ # Corresponds to the JSON property `provisioningModel`
1304
+ # @return [String]
1305
+ attr_accessor :provisioning_model
1306
+
1294
1307
  # Defines the policy of the QueuedRequest.
1295
1308
  # Corresponds to the JSON property `queueingPolicy`
1296
1309
  # @return [Google::Apis::TpuV2alpha1::QueueingPolicy]
@@ -1302,6 +1315,11 @@ module Google
1302
1315
  # @return [String]
1303
1316
  attr_accessor :reservation_name
1304
1317
 
1318
+ # Defines the maximum lifetime of the requested resource.
1319
+ # Corresponds to the JSON property `runDuration`
1320
+ # @return [Google::Apis::TpuV2alpha1::RunDuration]
1321
+ attr_accessor :run_duration
1322
+
1305
1323
  # Spot tier definition.
1306
1324
  # Corresponds to the JSON property `spot`
1307
1325
  # @return [Google::Apis::TpuV2alpha1::Spot]
@@ -1327,8 +1345,10 @@ module Google
1327
1345
  @create_time = args[:create_time] if args.key?(:create_time)
1328
1346
  @guaranteed = args[:guaranteed] if args.key?(:guaranteed)
1329
1347
  @name = args[:name] if args.key?(:name)
1348
+ @provisioning_model = args[:provisioning_model] if args.key?(:provisioning_model)
1330
1349
  @queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy)
1331
1350
  @reservation_name = args[:reservation_name] if args.key?(:reservation_name)
1351
+ @run_duration = args[:run_duration] if args.key?(:run_duration)
1332
1352
  @spot = args[:spot] if args.key?(:spot)
1333
1353
  @state = args[:state] if args.key?(:state)
1334
1354
  @tpu = args[:tpu] if args.key?(:tpu)
@@ -1504,6 +1524,31 @@ module Google
1504
1524
  end
1505
1525
  end
1506
1526
 
1527
+ # Defines the maximum lifetime of the requested resource.
1528
+ class RunDuration
1529
+ include Google::Apis::Core::Hashable
1530
+
1531
+ # The maximum duration of the requested resource.
1532
+ # Corresponds to the JSON property `maxRunDuration`
1533
+ # @return [String]
1534
+ attr_accessor :max_run_duration
1535
+
1536
+ # The time at which the requested resource will be terminated.
1537
+ # Corresponds to the JSON property `terminationTime`
1538
+ # @return [String]
1539
+ attr_accessor :termination_time
1540
+
1541
+ def initialize(**args)
1542
+ update!(**args)
1543
+ end
1544
+
1545
+ # Update properties of this object
1546
+ def update!(**args)
1547
+ @max_run_duration = args[:max_run_duration] if args.key?(:max_run_duration)
1548
+ @termination_time = args[:termination_time] if args.key?(:termination_time)
1549
+ end
1550
+ end
1551
+
1507
1552
  # A runtime version that a Node can be configured with.
1508
1553
  class RuntimeVersion
1509
1554
  include Google::Apis::Core::Hashable
@@ -1539,6 +1584,11 @@ module Google
1539
1584
  attr_accessor :preemptible
1540
1585
  alias_method :preemptible?, :preemptible
1541
1586
 
1587
+ # Optional. Defines the provisioning model for the node.
1588
+ # Corresponds to the JSON property `provisioningModel`
1589
+ # @return [String]
1590
+ attr_accessor :provisioning_model
1591
+
1542
1592
  # Whether the node is created under a reservation.
1543
1593
  # Corresponds to the JSON property `reserved`
1544
1594
  # @return [Boolean]
@@ -1563,6 +1613,7 @@ module Google
1563
1613
  # Update properties of this object
1564
1614
  def update!(**args)
1565
1615
  @preemptible = args[:preemptible] if args.key?(:preemptible)
1616
+ @provisioning_model = args[:provisioning_model] if args.key?(:provisioning_model)
1566
1617
  @reserved = args[:reserved] if args.key?(:reserved)
1567
1618
  @spot = args[:spot] if args.key?(:spot)
1568
1619
  @termination_timestamp = args[:termination_timestamp] if args.key?(:termination_timestamp)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TpuV2alpha1
18
18
  # Version of the google-apis-tpu_v2alpha1 gem
19
- GEM_VERSION = "0.37.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250306"
25
+ REVISION = "20250410"
26
26
  end
27
27
  end
28
28
  end
@@ -292,6 +292,12 @@ module Google
292
292
  include Google::Apis::Core::JsonObjectSupport
293
293
  end
294
294
 
295
+ class RunDuration
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
295
301
  class RuntimeVersion
296
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
303
 
@@ -452,6 +458,7 @@ module Google
452
458
  property :customer_encryption_key, as: 'customerEncryptionKey', class: Google::Apis::TpuV2alpha1::CustomerEncryptionKey, decorator: Google::Apis::TpuV2alpha1::CustomerEncryptionKey::Representation
453
459
 
454
460
  property :enable_confidential_compute, as: 'enableConfidentialCompute'
461
+ property :source_image, as: 'sourceImage'
455
462
  end
456
463
  end
457
464
 
@@ -778,9 +785,12 @@ module Google
778
785
  property :guaranteed, as: 'guaranteed', class: Google::Apis::TpuV2alpha1::Guaranteed, decorator: Google::Apis::TpuV2alpha1::Guaranteed::Representation
779
786
 
780
787
  property :name, as: 'name'
788
+ property :provisioning_model, as: 'provisioningModel'
781
789
  property :queueing_policy, as: 'queueingPolicy', class: Google::Apis::TpuV2alpha1::QueueingPolicy, decorator: Google::Apis::TpuV2alpha1::QueueingPolicy::Representation
782
790
 
783
791
  property :reservation_name, as: 'reservationName'
792
+ property :run_duration, as: 'runDuration', class: Google::Apis::TpuV2alpha1::RunDuration, decorator: Google::Apis::TpuV2alpha1::RunDuration::Representation
793
+
784
794
  property :spot, as: 'spot', class: Google::Apis::TpuV2alpha1::Spot, decorator: Google::Apis::TpuV2alpha1::Spot::Representation
785
795
 
786
796
  property :state, as: 'state', class: Google::Apis::TpuV2alpha1::QueuedResourceState, decorator: Google::Apis::TpuV2alpha1::QueuedResourceState::Representation
@@ -842,6 +852,14 @@ module Google
842
852
  end
843
853
  end
844
854
 
855
+ class RunDuration
856
+ # @private
857
+ class Representation < Google::Apis::Core::JsonRepresentation
858
+ property :max_run_duration, as: 'maxRunDuration'
859
+ property :termination_time, as: 'terminationTime'
860
+ end
861
+ end
862
+
845
863
  class RuntimeVersion
846
864
  # @private
847
865
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -854,6 +872,7 @@ module Google
854
872
  # @private
855
873
  class Representation < Google::Apis::Core::JsonRepresentation
856
874
  property :preemptible, as: 'preemptible'
875
+ property :provisioning_model, as: 'provisioningModel'
857
876
  property :reserved, as: 'reserved'
858
877
  property :spot, as: 'spot'
859
878
  property :termination_timestamp, as: 'terminationTimestamp'
@@ -117,6 +117,9 @@ module Google
117
117
  # Lists information about the supported locations for this service.
118
118
  # @param [String] name
119
119
  # The resource that owns the locations collection, if applicable.
120
+ # @param [Array<String>, String] extra_location_types
121
+ # Optional. A list of extra location types that should be used as conditions for
122
+ # controlling the visibility of the locations.
120
123
  # @param [String] filter
121
124
  # A filter to narrow down results to a preferred subset. The filtering language
122
125
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -144,11 +147,12 @@ module Google
144
147
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
147
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
150
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
148
151
  command = make_simple_command(:get, 'v2alpha1/{+name}/locations', options)
149
152
  command.response_representation = Google::Apis::TpuV2alpha1::ListLocationsResponse::Representation
150
153
  command.response_class = Google::Apis::TpuV2alpha1::ListLocationsResponse
151
154
  command.params['name'] = name unless name.nil?
155
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
152
156
  command.query['filter'] = filter unless filter.nil?
153
157
  command.query['pageSize'] = page_size unless page_size.nil?
154
158
  command.query['pageToken'] = page_token unless page_token.nil?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-tpu_v2alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-16 00:00:00.000000000 Z
10
+ date: 2025-04-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -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_v2alpha1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.37.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.39.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tpu_v2alpha1
62
62
  rdoc_options: []
63
63
  require_paths: