google-apis-tpu_v2alpha1 0.23.0 → 0.25.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 828dcffc747b6750d338e44dc92244241f66a39ae9e0da37a7191573aed89e5e
|
4
|
+
data.tar.gz: d29636a26c70cb32546011cf13faca58bfba49e3da552827d5d7ac0d3fc793dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 010e72eee21988ae400b469f4b8782d768190edeb3c06bf24a2c970df4c32fc9ce0b0cd34632094d4d71bdd2ef61a0105a8fed558dbd29fd509ae1239e6b0500
|
7
|
+
data.tar.gz: 20c2ad11edf44d521a99550d3c6d7a0fea6e90a2aa0ba7d557fa422b2e39805522f4733345e56f3625e55405adaf27c43b52d7cb4e01484f930bc3b6cdb0cb9f
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
# Release history for google-apis-tpu_v2alpha1
|
2
2
|
|
3
|
-
### v0.
|
3
|
+
### v0.25.0 (2023-11-05)
|
4
4
|
|
5
|
-
* Regenerated from discovery document revision
|
5
|
+
* Regenerated from discovery document revision 20231026
|
6
|
+
|
7
|
+
### v0.24.0 (2023-08-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230814
|
10
|
+
|
11
|
+
### v0.23.0 (2023-08-13)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20230803
|
6
14
|
|
7
15
|
### v0.22.0 (2023-07-23)
|
8
16
|
|
@@ -163,6 +163,32 @@ module Google
|
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
166
|
+
# Boot disk configurations.
|
167
|
+
class BootDiskConfig
|
168
|
+
include Google::Apis::Core::Hashable
|
169
|
+
|
170
|
+
# Customer's encryption key.
|
171
|
+
# Corresponds to the JSON property `customerEncryptionKey`
|
172
|
+
# @return [Google::Apis::TpuV2alpha1::CustomerEncryptionKey]
|
173
|
+
attr_accessor :customer_encryption_key
|
174
|
+
|
175
|
+
# Optional. Whether the boot disk will be created with confidential compute mode.
|
176
|
+
# Corresponds to the JSON property `enableConfidentialCompute`
|
177
|
+
# @return [Boolean]
|
178
|
+
attr_accessor :enable_confidential_compute
|
179
|
+
alias_method :enable_confidential_compute?, :enable_confidential_compute
|
180
|
+
|
181
|
+
def initialize(**args)
|
182
|
+
update!(**args)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Update properties of this object
|
186
|
+
def update!(**args)
|
187
|
+
@customer_encryption_key = args[:customer_encryption_key] if args.key?(:customer_encryption_key)
|
188
|
+
@enable_confidential_compute = args[:enable_confidential_compute] if args.key?(:enable_confidential_compute)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
166
192
|
# Further data for the creating state.
|
167
193
|
class CreatingData
|
168
194
|
include Google::Apis::Core::Hashable
|
@@ -176,6 +202,29 @@ module Google
|
|
176
202
|
end
|
177
203
|
end
|
178
204
|
|
205
|
+
# Customer's encryption key.
|
206
|
+
class CustomerEncryptionKey
|
207
|
+
include Google::Apis::Core::Hashable
|
208
|
+
|
209
|
+
# The name of the encryption key that is stored in Google Cloud KMS. For example:
|
210
|
+
# "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/
|
211
|
+
# cryptoKeys/key The fully-qualifed key name may be returned for resource GET
|
212
|
+
# requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/
|
213
|
+
# keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1
|
214
|
+
# Corresponds to the JSON property `kmsKeyName`
|
215
|
+
# @return [String]
|
216
|
+
attr_accessor :kms_key_name
|
217
|
+
|
218
|
+
def initialize(**args)
|
219
|
+
update!(**args)
|
220
|
+
end
|
221
|
+
|
222
|
+
# Update properties of this object
|
223
|
+
def update!(**args)
|
224
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
179
228
|
# Further data for the deleting state.
|
180
229
|
class DeletingData
|
181
230
|
include Google::Apis::Core::Hashable
|
@@ -583,6 +632,31 @@ module Google
|
|
583
632
|
end
|
584
633
|
end
|
585
634
|
|
635
|
+
# Response for ListReservations.
|
636
|
+
class ListReservationsResponse
|
637
|
+
include Google::Apis::Core::Hashable
|
638
|
+
|
639
|
+
# The next page token or empty if none.
|
640
|
+
# Corresponds to the JSON property `nextPageToken`
|
641
|
+
# @return [String]
|
642
|
+
attr_accessor :next_page_token
|
643
|
+
|
644
|
+
# The listed reservations.
|
645
|
+
# Corresponds to the JSON property `reservations`
|
646
|
+
# @return [Array<Google::Apis::TpuV2alpha1::Reservation>]
|
647
|
+
attr_accessor :reservations
|
648
|
+
|
649
|
+
def initialize(**args)
|
650
|
+
update!(**args)
|
651
|
+
end
|
652
|
+
|
653
|
+
# Update properties of this object
|
654
|
+
def update!(**args)
|
655
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
656
|
+
@reservations = args[:reservations] if args.key?(:reservations)
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
586
660
|
# Response for ListRuntimeVersions.
|
587
661
|
class ListRuntimeVersionsResponse
|
588
662
|
include Google::Apis::Core::Hashable
|
@@ -787,6 +861,11 @@ module Google
|
|
787
861
|
# @return [String]
|
788
862
|
attr_accessor :api_version
|
789
863
|
|
864
|
+
# Boot disk configurations.
|
865
|
+
# Corresponds to the JSON property `bootDiskConfig`
|
866
|
+
# @return [Google::Apis::TpuV2alpha1::BootDiskConfig]
|
867
|
+
attr_accessor :boot_disk_config
|
868
|
+
|
790
869
|
# The CIDR block that the TPU node will use when selecting an IP address. This
|
791
870
|
# CIDR block must be a /29 block; the Compute Engine networks API forbids a
|
792
871
|
# smaller block, and using a larger block would be wasteful (a node can only
|
@@ -913,6 +992,7 @@ module Google
|
|
913
992
|
@accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
|
914
993
|
@accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
|
915
994
|
@api_version = args[:api_version] if args.key?(:api_version)
|
995
|
+
@boot_disk_config = args[:boot_disk_config] if args.key?(:boot_disk_config)
|
916
996
|
@cidr_block = args[:cidr_block] if args.key?(:cidr_block)
|
917
997
|
@create_time = args[:create_time] if args.key?(:create_time)
|
918
998
|
@data_disks = args[:data_disks] if args.key?(:data_disks)
|
@@ -1018,13 +1098,13 @@ module Google
|
|
1018
1098
|
# @return [String]
|
1019
1099
|
attr_accessor :name
|
1020
1100
|
|
1021
|
-
# The normal response of the operation
|
1022
|
-
#
|
1023
|
-
#
|
1024
|
-
#
|
1025
|
-
#
|
1026
|
-
#
|
1027
|
-
#
|
1101
|
+
# The normal, successful response of the operation. If the original method
|
1102
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
1103
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
1104
|
+
# response should be the resource. For other methods, the response should have
|
1105
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
1106
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
1107
|
+
# `TakeSnapshotResponse`.
|
1028
1108
|
# Corresponds to the JSON property `response`
|
1029
1109
|
# @return [Hash<String,Object>]
|
1030
1110
|
attr_accessor :response
|
@@ -1123,6 +1203,11 @@ module Google
|
|
1123
1203
|
# @return [Google::Apis::TpuV2alpha1::BestEffort]
|
1124
1204
|
attr_accessor :best_effort
|
1125
1205
|
|
1206
|
+
# Output only. The time when the QueuedResource was created.
|
1207
|
+
# Corresponds to the JSON property `createTime`
|
1208
|
+
# @return [String]
|
1209
|
+
attr_accessor :create_time
|
1210
|
+
|
1126
1211
|
# Guaranteed tier definition.
|
1127
1212
|
# Corresponds to the JSON property `guaranteed`
|
1128
1213
|
# @return [Google::Apis::TpuV2alpha1::Guaranteed]
|
@@ -1166,6 +1251,7 @@ module Google
|
|
1166
1251
|
# Update properties of this object
|
1167
1252
|
def update!(**args)
|
1168
1253
|
@best_effort = args[:best_effort] if args.key?(:best_effort)
|
1254
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1169
1255
|
@guaranteed = args[:guaranteed] if args.key?(:guaranteed)
|
1170
1256
|
@name = args[:name] if args.key?(:name)
|
1171
1257
|
@queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy)
|
@@ -1297,6 +1383,33 @@ module Google
|
|
1297
1383
|
end
|
1298
1384
|
end
|
1299
1385
|
|
1386
|
+
# A reservation describes the amount of a resource 'allotted' for a defined
|
1387
|
+
# period of time.
|
1388
|
+
class Reservation
|
1389
|
+
include Google::Apis::Core::Hashable
|
1390
|
+
|
1391
|
+
# The reservation name with the format: projects/`projectID`/locations/`location`
|
1392
|
+
# /reservations/`reservationID`
|
1393
|
+
# Corresponds to the JSON property `name`
|
1394
|
+
# @return [String]
|
1395
|
+
attr_accessor :name
|
1396
|
+
|
1397
|
+
#
|
1398
|
+
# Corresponds to the JSON property `standard`
|
1399
|
+
# @return [Google::Apis::TpuV2alpha1::Standard]
|
1400
|
+
attr_accessor :standard
|
1401
|
+
|
1402
|
+
def initialize(**args)
|
1403
|
+
update!(**args)
|
1404
|
+
end
|
1405
|
+
|
1406
|
+
# Update properties of this object
|
1407
|
+
def update!(**args)
|
1408
|
+
@name = args[:name] if args.key?(:name)
|
1409
|
+
@standard = args[:standard] if args.key?(:standard)
|
1410
|
+
end
|
1411
|
+
end
|
1412
|
+
|
1300
1413
|
# Request for ResetQueuedResource.
|
1301
1414
|
class ResetQueuedResourceRequest
|
1302
1415
|
include Google::Apis::Core::Hashable
|
@@ -1463,6 +1576,53 @@ module Google
|
|
1463
1576
|
end
|
1464
1577
|
end
|
1465
1578
|
|
1579
|
+
#
|
1580
|
+
class Standard
|
1581
|
+
include Google::Apis::Core::Hashable
|
1582
|
+
|
1583
|
+
#
|
1584
|
+
# Corresponds to the JSON property `capacityUnits`
|
1585
|
+
# @return [String]
|
1586
|
+
attr_accessor :capacity_units
|
1587
|
+
|
1588
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
1589
|
+
# Timestamp end (exclusive). The start must be less than or equal to the end.
|
1590
|
+
# When the start equals the end, the interval is empty (matches no time). When
|
1591
|
+
# both start and end are unspecified, the interval matches any time.
|
1592
|
+
# Corresponds to the JSON property `interval`
|
1593
|
+
# @return [Google::Apis::TpuV2alpha1::Interval]
|
1594
|
+
attr_accessor :interval
|
1595
|
+
|
1596
|
+
# The resource type of the reservation.
|
1597
|
+
# Corresponds to the JSON property `resourceType`
|
1598
|
+
# @return [String]
|
1599
|
+
attr_accessor :resource_type
|
1600
|
+
|
1601
|
+
# The size of the reservation, in the units specified in the 'capacity_units'
|
1602
|
+
# field.
|
1603
|
+
# Corresponds to the JSON property `size`
|
1604
|
+
# @return [Fixnum]
|
1605
|
+
attr_accessor :size
|
1606
|
+
|
1607
|
+
#
|
1608
|
+
# Corresponds to the JSON property `usage`
|
1609
|
+
# @return [Google::Apis::TpuV2alpha1::Usage]
|
1610
|
+
attr_accessor :usage
|
1611
|
+
|
1612
|
+
def initialize(**args)
|
1613
|
+
update!(**args)
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# Update properties of this object
|
1617
|
+
def update!(**args)
|
1618
|
+
@capacity_units = args[:capacity_units] if args.key?(:capacity_units)
|
1619
|
+
@interval = args[:interval] if args.key?(:interval)
|
1620
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
1621
|
+
@size = args[:size] if args.key?(:size)
|
1622
|
+
@usage = args[:usage] if args.key?(:usage)
|
1623
|
+
end
|
1624
|
+
end
|
1625
|
+
|
1466
1626
|
# Request for StartNode.
|
1467
1627
|
class StartNodeRequest
|
1468
1628
|
include Google::Apis::Core::Hashable
|
@@ -1609,6 +1769,26 @@ module Google
|
|
1609
1769
|
@node_spec = args[:node_spec] if args.key?(:node_spec)
|
1610
1770
|
end
|
1611
1771
|
end
|
1772
|
+
|
1773
|
+
#
|
1774
|
+
class Usage
|
1775
|
+
include Google::Apis::Core::Hashable
|
1776
|
+
|
1777
|
+
# The real-time value of usage within the reservation, with the unit specified
|
1778
|
+
# in field capacity_units.
|
1779
|
+
# Corresponds to the JSON property `total`
|
1780
|
+
# @return [Fixnum]
|
1781
|
+
attr_accessor :total
|
1782
|
+
|
1783
|
+
def initialize(**args)
|
1784
|
+
update!(**args)
|
1785
|
+
end
|
1786
|
+
|
1787
|
+
# Update properties of this object
|
1788
|
+
def update!(**args)
|
1789
|
+
@total = args[:total] if args.key?(:total)
|
1790
|
+
end
|
1791
|
+
end
|
1612
1792
|
end
|
1613
1793
|
end
|
1614
1794
|
end
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.25.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231026"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -64,12 +64,24 @@ module Google
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
+
class BootDiskConfig
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
67
73
|
class CreatingData
|
68
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
75
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
79
|
+
class CustomerEncryptionKey
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
73
85
|
class DeletingData
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
87
|
|
@@ -172,6 +184,12 @@ module Google
|
|
172
184
|
include Google::Apis::Core::JsonObjectSupport
|
173
185
|
end
|
174
186
|
|
187
|
+
class ListReservationsResponse
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
175
193
|
class ListRuntimeVersionsResponse
|
176
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
195
|
|
@@ -250,6 +268,12 @@ module Google
|
|
250
268
|
include Google::Apis::Core::JsonObjectSupport
|
251
269
|
end
|
252
270
|
|
271
|
+
class Reservation
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
253
277
|
class ResetQueuedResourceRequest
|
254
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
279
|
|
@@ -298,6 +322,12 @@ module Google
|
|
298
322
|
include Google::Apis::Core::JsonObjectSupport
|
299
323
|
end
|
300
324
|
|
325
|
+
class Standard
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
301
331
|
class StartNodeRequest
|
302
332
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
333
|
|
@@ -340,6 +370,12 @@ module Google
|
|
340
370
|
include Google::Apis::Core::JsonObjectSupport
|
341
371
|
end
|
342
372
|
|
373
|
+
class Usage
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
343
379
|
class AcceleratorConfig
|
344
380
|
# @private
|
345
381
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -391,12 +427,28 @@ module Google
|
|
391
427
|
end
|
392
428
|
end
|
393
429
|
|
430
|
+
class BootDiskConfig
|
431
|
+
# @private
|
432
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
433
|
+
property :customer_encryption_key, as: 'customerEncryptionKey', class: Google::Apis::TpuV2alpha1::CustomerEncryptionKey, decorator: Google::Apis::TpuV2alpha1::CustomerEncryptionKey::Representation
|
434
|
+
|
435
|
+
property :enable_confidential_compute, as: 'enableConfidentialCompute'
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
394
439
|
class CreatingData
|
395
440
|
# @private
|
396
441
|
class Representation < Google::Apis::Core::JsonRepresentation
|
397
442
|
end
|
398
443
|
end
|
399
444
|
|
445
|
+
class CustomerEncryptionKey
|
446
|
+
# @private
|
447
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
448
|
+
property :kms_key_name, as: 'kmsKeyName'
|
449
|
+
end
|
450
|
+
end
|
451
|
+
|
400
452
|
class DeletingData
|
401
453
|
# @private
|
402
454
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -537,6 +589,15 @@ module Google
|
|
537
589
|
end
|
538
590
|
end
|
539
591
|
|
592
|
+
class ListReservationsResponse
|
593
|
+
# @private
|
594
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
595
|
+
property :next_page_token, as: 'nextPageToken'
|
596
|
+
collection :reservations, as: 'reservations', class: Google::Apis::TpuV2alpha1::Reservation, decorator: Google::Apis::TpuV2alpha1::Reservation::Representation
|
597
|
+
|
598
|
+
end
|
599
|
+
end
|
600
|
+
|
540
601
|
class ListRuntimeVersionsResponse
|
541
602
|
# @private
|
542
603
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -593,6 +654,8 @@ module Google
|
|
593
654
|
|
594
655
|
property :accelerator_type, as: 'acceleratorType'
|
595
656
|
property :api_version, as: 'apiVersion'
|
657
|
+
property :boot_disk_config, as: 'bootDiskConfig', class: Google::Apis::TpuV2alpha1::BootDiskConfig, decorator: Google::Apis::TpuV2alpha1::BootDiskConfig::Representation
|
658
|
+
|
596
659
|
property :cidr_block, as: 'cidrBlock'
|
597
660
|
property :create_time, as: 'createTime'
|
598
661
|
collection :data_disks, as: 'dataDisks', class: Google::Apis::TpuV2alpha1::AttachedDisk, decorator: Google::Apis::TpuV2alpha1::AttachedDisk::Representation
|
@@ -672,6 +735,7 @@ module Google
|
|
672
735
|
class Representation < Google::Apis::Core::JsonRepresentation
|
673
736
|
property :best_effort, as: 'bestEffort', class: Google::Apis::TpuV2alpha1::BestEffort, decorator: Google::Apis::TpuV2alpha1::BestEffort::Representation
|
674
737
|
|
738
|
+
property :create_time, as: 'createTime'
|
675
739
|
property :guaranteed, as: 'guaranteed', class: Google::Apis::TpuV2alpha1::Guaranteed, decorator: Google::Apis::TpuV2alpha1::Guaranteed::Representation
|
676
740
|
|
677
741
|
property :name, as: 'name'
|
@@ -723,6 +787,15 @@ module Google
|
|
723
787
|
end
|
724
788
|
end
|
725
789
|
|
790
|
+
class Reservation
|
791
|
+
# @private
|
792
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
793
|
+
property :name, as: 'name'
|
794
|
+
property :standard, as: 'standard', class: Google::Apis::TpuV2alpha1::Standard, decorator: Google::Apis::TpuV2alpha1::Standard::Representation
|
795
|
+
|
796
|
+
end
|
797
|
+
end
|
798
|
+
|
726
799
|
class ResetQueuedResourceRequest
|
727
800
|
# @private
|
728
801
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -780,6 +853,19 @@ module Google
|
|
780
853
|
end
|
781
854
|
end
|
782
855
|
|
856
|
+
class Standard
|
857
|
+
# @private
|
858
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
859
|
+
property :capacity_units, as: 'capacityUnits'
|
860
|
+
property :interval, as: 'interval', class: Google::Apis::TpuV2alpha1::Interval, decorator: Google::Apis::TpuV2alpha1::Interval::Representation
|
861
|
+
|
862
|
+
property :resource_type, as: 'resourceType'
|
863
|
+
property :size, as: 'size'
|
864
|
+
property :usage, as: 'usage', class: Google::Apis::TpuV2alpha1::Usage, decorator: Google::Apis::TpuV2alpha1::Usage::Representation
|
865
|
+
|
866
|
+
end
|
867
|
+
end
|
868
|
+
|
783
869
|
class StartNodeRequest
|
784
870
|
# @private
|
785
871
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -830,6 +916,13 @@ module Google
|
|
830
916
|
|
831
917
|
end
|
832
918
|
end
|
919
|
+
|
920
|
+
class Usage
|
921
|
+
# @private
|
922
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
923
|
+
property :total, :numeric_string => true, as: 'total'
|
924
|
+
end
|
925
|
+
end
|
833
926
|
end
|
834
927
|
end
|
835
928
|
end
|
@@ -854,6 +854,42 @@ module Google
|
|
854
854
|
execute_or_queue_command(command, &block)
|
855
855
|
end
|
856
856
|
|
857
|
+
# Retrieves the reservations for the given project in the given location.
|
858
|
+
# @param [String] parent
|
859
|
+
# Required. The parent for reservations.
|
860
|
+
# @param [Fixnum] page_size
|
861
|
+
# The maximum number of items to return.
|
862
|
+
# @param [String] page_token
|
863
|
+
# The next_page_token value returned from a previous List request, if any.
|
864
|
+
# @param [String] fields
|
865
|
+
# Selector specifying which fields to include in a partial response.
|
866
|
+
# @param [String] quota_user
|
867
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
868
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
869
|
+
# @param [Google::Apis::RequestOptions] options
|
870
|
+
# Request-specific options
|
871
|
+
#
|
872
|
+
# @yield [result, err] Result & error if block supplied
|
873
|
+
# @yieldparam result [Google::Apis::TpuV2alpha1::ListReservationsResponse] parsed result object
|
874
|
+
# @yieldparam err [StandardError] error object if request failed
|
875
|
+
#
|
876
|
+
# @return [Google::Apis::TpuV2alpha1::ListReservationsResponse]
|
877
|
+
#
|
878
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
879
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
880
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
881
|
+
def list_project_location_reservations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
882
|
+
command = make_simple_command(:get, 'v2alpha1/{+parent}/reservations', options)
|
883
|
+
command.response_representation = Google::Apis::TpuV2alpha1::ListReservationsResponse::Representation
|
884
|
+
command.response_class = Google::Apis::TpuV2alpha1::ListReservationsResponse
|
885
|
+
command.params['parent'] = parent unless parent.nil?
|
886
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
887
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
888
|
+
command.query['fields'] = fields unless fields.nil?
|
889
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
890
|
+
execute_or_queue_command(command, &block)
|
891
|
+
end
|
892
|
+
|
857
893
|
# Gets a runtime version.
|
858
894
|
# @param [String] name
|
859
895
|
# Required. The resource name.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-tpu_v2alpha1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.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: 2023-
|
11
|
+
date: 2023-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tpu_v2alpha1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.25.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tpu_v2alpha1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud TPU API V2alpha1
|