google-apis-tpu_v2 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/tpu_v2/classes.rb +507 -0
- data/lib/google/apis/tpu_v2/gem_version.rb +3 -3
- data/lib/google/apis/tpu_v2/representations.rb +285 -0
- data/lib/google/apis/tpu_v2/service.rb +180 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4840e7135ff68e140c1bebaad8b13516bfa48db456044307536874fca2237431
|
4
|
+
data.tar.gz: ff31c324bf4b54ac06ccfa522625ca3662dbabcdfb363aeb7928aa98975e2fd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69f4ae23f5ab4e80e0cbe1b25cb3287a628eb109eee0fd7eecc65458febaa7483b8ca38b563d469c9a2578d16de2ac1bb3c7632b300882b4a889403f143d7254
|
7
|
+
data.tar.gz: 76d19b42a52835ddc4d3dc8cd657678afe3bc005808796544e3d7094b11eeda9e0c2f06a7a3936b7cad0b76232703b20f981a5c78da18b8ec3a68fe06a55206d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-tpu_v2
|
2
2
|
|
3
|
+
### v0.10.0 (2024-02-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240205
|
6
|
+
* Regenerated using generator version 0.14.0
|
7
|
+
|
3
8
|
### v0.9.0 (2024-01-23)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20240111
|
data/OVERVIEW.md
CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/tpu/) may provide guidance
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby 2.
|
86
|
+
This library is supported on Ruby 2.7+.
|
87
87
|
|
88
|
-
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life.
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
90
90
|
## License
|
91
91
|
|
@@ -78,6 +78,19 @@ module Google
|
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
|
+
# Further data for the accepted state.
|
82
|
+
class AcceptedData
|
83
|
+
include Google::Apis::Core::Hashable
|
84
|
+
|
85
|
+
def initialize(**args)
|
86
|
+
update!(**args)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Update properties of this object
|
90
|
+
def update!(**args)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
81
94
|
# An access config attached to the TPU worker.
|
82
95
|
class AccessConfig
|
83
96
|
include Google::Apis::Core::Hashable
|
@@ -97,6 +110,19 @@ module Google
|
|
97
110
|
end
|
98
111
|
end
|
99
112
|
|
113
|
+
# Further data for the active state.
|
114
|
+
class ActiveData
|
115
|
+
include Google::Apis::Core::Hashable
|
116
|
+
|
117
|
+
def initialize(**args)
|
118
|
+
update!(**args)
|
119
|
+
end
|
120
|
+
|
121
|
+
# Update properties of this object
|
122
|
+
def update!(**args)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
100
126
|
# A node-attached disk resource. Next ID: 8;
|
101
127
|
class AttachedDisk
|
102
128
|
include Google::Apis::Core::Hashable
|
@@ -124,6 +150,32 @@ module Google
|
|
124
150
|
end
|
125
151
|
end
|
126
152
|
|
153
|
+
# Further data for the creating state.
|
154
|
+
class CreatingData
|
155
|
+
include Google::Apis::Core::Hashable
|
156
|
+
|
157
|
+
def initialize(**args)
|
158
|
+
update!(**args)
|
159
|
+
end
|
160
|
+
|
161
|
+
# Update properties of this object
|
162
|
+
def update!(**args)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
# Further data for the deleting state.
|
167
|
+
class DeletingData
|
168
|
+
include Google::Apis::Core::Hashable
|
169
|
+
|
170
|
+
def initialize(**args)
|
171
|
+
update!(**args)
|
172
|
+
end
|
173
|
+
|
174
|
+
# Update properties of this object
|
175
|
+
def update!(**args)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
127
179
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
128
180
|
# messages in your APIs. A typical example is to use it as the request or the
|
129
181
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -140,6 +192,30 @@ module Google
|
|
140
192
|
end
|
141
193
|
end
|
142
194
|
|
195
|
+
# Further data for the failed state.
|
196
|
+
class FailedData
|
197
|
+
include Google::Apis::Core::Hashable
|
198
|
+
|
199
|
+
# The `Status` type defines a logical error model that is suitable for different
|
200
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
201
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
202
|
+
# data: error code, error message, and error details. You can find out more
|
203
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
204
|
+
# //cloud.google.com/apis/design/errors).
|
205
|
+
# Corresponds to the JSON property `error`
|
206
|
+
# @return [Google::Apis::TpuV2::Status]
|
207
|
+
attr_accessor :error
|
208
|
+
|
209
|
+
def initialize(**args)
|
210
|
+
update!(**args)
|
211
|
+
end
|
212
|
+
|
213
|
+
# Update properties of this object
|
214
|
+
def update!(**args)
|
215
|
+
@error = args[:error] if args.key?(:error)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
143
219
|
# Request for GenerateServiceIdentity.
|
144
220
|
class GenerateServiceIdentityRequest
|
145
221
|
include Google::Apis::Core::Hashable
|
@@ -217,6 +293,27 @@ module Google
|
|
217
293
|
end
|
218
294
|
end
|
219
295
|
|
296
|
+
# Guaranteed tier definition.
|
297
|
+
class Guaranteed
|
298
|
+
include Google::Apis::Core::Hashable
|
299
|
+
|
300
|
+
# Optional. Defines the minimum duration of the guarantee. If specified, the
|
301
|
+
# requested resources will only be provisioned if they can be allocated for at
|
302
|
+
# least the given duration.
|
303
|
+
# Corresponds to the JSON property `minDuration`
|
304
|
+
# @return [String]
|
305
|
+
attr_accessor :min_duration
|
306
|
+
|
307
|
+
def initialize(**args)
|
308
|
+
update!(**args)
|
309
|
+
end
|
310
|
+
|
311
|
+
# Update properties of this object
|
312
|
+
def update!(**args)
|
313
|
+
@min_duration = args[:min_duration] if args.key?(:min_duration)
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
220
317
|
# A guest attributes.
|
221
318
|
class GuestAttributes
|
222
319
|
include Google::Apis::Core::Hashable
|
@@ -293,6 +390,36 @@ module Google
|
|
293
390
|
end
|
294
391
|
end
|
295
392
|
|
393
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
394
|
+
# Timestamp end (exclusive). The start must be less than or equal to the end.
|
395
|
+
# When the start equals the end, the interval is empty (matches no time). When
|
396
|
+
# both start and end are unspecified, the interval matches any time.
|
397
|
+
class Interval
|
398
|
+
include Google::Apis::Core::Hashable
|
399
|
+
|
400
|
+
# Optional. Exclusive end of the interval. If specified, a Timestamp matching
|
401
|
+
# this interval will have to be before the end.
|
402
|
+
# Corresponds to the JSON property `endTime`
|
403
|
+
# @return [String]
|
404
|
+
attr_accessor :end_time
|
405
|
+
|
406
|
+
# Optional. Inclusive start of the interval. If specified, a Timestamp matching
|
407
|
+
# this interval will have to be the same or after the start.
|
408
|
+
# Corresponds to the JSON property `startTime`
|
409
|
+
# @return [String]
|
410
|
+
attr_accessor :start_time
|
411
|
+
|
412
|
+
def initialize(**args)
|
413
|
+
update!(**args)
|
414
|
+
end
|
415
|
+
|
416
|
+
# Update properties of this object
|
417
|
+
def update!(**args)
|
418
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
419
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
296
423
|
# Response for ListAcceleratorTypes.
|
297
424
|
class ListAcceleratorTypesResponse
|
298
425
|
include Google::Apis::Core::Hashable
|
@@ -405,6 +532,37 @@ module Google
|
|
405
532
|
end
|
406
533
|
end
|
407
534
|
|
535
|
+
# Response for ListQueuedResources.
|
536
|
+
class ListQueuedResourcesResponse
|
537
|
+
include Google::Apis::Core::Hashable
|
538
|
+
|
539
|
+
# The next page token or empty if none.
|
540
|
+
# Corresponds to the JSON property `nextPageToken`
|
541
|
+
# @return [String]
|
542
|
+
attr_accessor :next_page_token
|
543
|
+
|
544
|
+
# The listed queued resources.
|
545
|
+
# Corresponds to the JSON property `queuedResources`
|
546
|
+
# @return [Array<Google::Apis::TpuV2::QueuedResource>]
|
547
|
+
attr_accessor :queued_resources
|
548
|
+
|
549
|
+
# Locations that could not be reached.
|
550
|
+
# Corresponds to the JSON property `unreachable`
|
551
|
+
# @return [Array<String>]
|
552
|
+
attr_accessor :unreachable
|
553
|
+
|
554
|
+
def initialize(**args)
|
555
|
+
update!(**args)
|
556
|
+
end
|
557
|
+
|
558
|
+
# Update properties of this object
|
559
|
+
def update!(**args)
|
560
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
561
|
+
@queued_resources = args[:queued_resources] if args.key?(:queued_resources)
|
562
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
563
|
+
end
|
564
|
+
end
|
565
|
+
|
408
566
|
# Response for ListRuntimeVersions.
|
409
567
|
class ListRuntimeVersionsResponse
|
410
568
|
include Google::Apis::Core::Hashable
|
@@ -483,6 +641,36 @@ module Google
|
|
483
641
|
end
|
484
642
|
end
|
485
643
|
|
644
|
+
# Parameters to specify for multislice QueuedResource requests. This message
|
645
|
+
# must be populated in case of multislice requests instead of node_id.
|
646
|
+
class MultisliceParams
|
647
|
+
include Google::Apis::Core::Hashable
|
648
|
+
|
649
|
+
# Required. Number of nodes with this spec. The system will attempt to provison "
|
650
|
+
# node_count" nodes as part of the request. This needs to be > 1.
|
651
|
+
# Corresponds to the JSON property `nodeCount`
|
652
|
+
# @return [Fixnum]
|
653
|
+
attr_accessor :node_count
|
654
|
+
|
655
|
+
# Optional. Prefix of node_ids in case of multislice request. Should follow the `
|
656
|
+
# ^[A-Za-z0-9_.~+%-]+$` regex format. If node_count = 3 and node_id_prefix = "np"
|
657
|
+
# , node ids of nodes created will be "np-0", "np-1", "np-2". If this field is
|
658
|
+
# not provided we use queued_resource_id as the node_id_prefix.
|
659
|
+
# Corresponds to the JSON property `nodeIdPrefix`
|
660
|
+
# @return [String]
|
661
|
+
attr_accessor :node_id_prefix
|
662
|
+
|
663
|
+
def initialize(**args)
|
664
|
+
update!(**args)
|
665
|
+
end
|
666
|
+
|
667
|
+
# Update properties of this object
|
668
|
+
def update!(**args)
|
669
|
+
@node_count = args[:node_count] if args.key?(:node_count)
|
670
|
+
@node_id_prefix = args[:node_id_prefix] if args.key?(:node_id_prefix)
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
486
674
|
# Network related configurations.
|
487
675
|
class NetworkConfig
|
488
676
|
include Google::Apis::Core::Hashable
|
@@ -735,6 +923,48 @@ module Google
|
|
735
923
|
end
|
736
924
|
end
|
737
925
|
|
926
|
+
# Details of the TPU node(s) being requested. Users can request either a single
|
927
|
+
# node or multiple nodes. NodeSpec provides the specification for node(s) to be
|
928
|
+
# created.
|
929
|
+
class NodeSpec
|
930
|
+
include Google::Apis::Core::Hashable
|
931
|
+
|
932
|
+
# Parameters to specify for multislice QueuedResource requests. This message
|
933
|
+
# must be populated in case of multislice requests instead of node_id.
|
934
|
+
# Corresponds to the JSON property `multisliceParams`
|
935
|
+
# @return [Google::Apis::TpuV2::MultisliceParams]
|
936
|
+
attr_accessor :multislice_params
|
937
|
+
|
938
|
+
# A TPU instance.
|
939
|
+
# Corresponds to the JSON property `node`
|
940
|
+
# @return [Google::Apis::TpuV2::Node]
|
941
|
+
attr_accessor :node
|
942
|
+
|
943
|
+
# Optional. The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+
|
944
|
+
# $` regex format. This is only specified when requesting a single node. In case
|
945
|
+
# of multislice requests, multislice_params must be populated instead.
|
946
|
+
# Corresponds to the JSON property `nodeId`
|
947
|
+
# @return [String]
|
948
|
+
attr_accessor :node_id
|
949
|
+
|
950
|
+
# Required. The parent resource name.
|
951
|
+
# Corresponds to the JSON property `parent`
|
952
|
+
# @return [String]
|
953
|
+
attr_accessor :parent
|
954
|
+
|
955
|
+
def initialize(**args)
|
956
|
+
update!(**args)
|
957
|
+
end
|
958
|
+
|
959
|
+
# Update properties of this object
|
960
|
+
def update!(**args)
|
961
|
+
@multislice_params = args[:multislice_params] if args.key?(:multislice_params)
|
962
|
+
@node = args[:node] if args.key?(:node)
|
963
|
+
@node_id = args[:node_id] if args.key?(:node_id)
|
964
|
+
@parent = args[:parent] if args.key?(:parent)
|
965
|
+
end
|
966
|
+
end
|
967
|
+
|
738
968
|
# This resource represents a long-running operation that is the result of a
|
739
969
|
# network API call.
|
740
970
|
class Operation
|
@@ -854,6 +1084,218 @@ module Google
|
|
854
1084
|
end
|
855
1085
|
end
|
856
1086
|
|
1087
|
+
# Further data for the provisioning state.
|
1088
|
+
class ProvisioningData
|
1089
|
+
include Google::Apis::Core::Hashable
|
1090
|
+
|
1091
|
+
def initialize(**args)
|
1092
|
+
update!(**args)
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
# Update properties of this object
|
1096
|
+
def update!(**args)
|
1097
|
+
end
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
# A QueuedResource represents a request for resources that will be placed in a
|
1101
|
+
# queue and fulfilled when the necessary resources are available.
|
1102
|
+
class QueuedResource
|
1103
|
+
include Google::Apis::Core::Hashable
|
1104
|
+
|
1105
|
+
# Output only. The time when the QueuedResource was created.
|
1106
|
+
# Corresponds to the JSON property `createTime`
|
1107
|
+
# @return [String]
|
1108
|
+
attr_accessor :create_time
|
1109
|
+
|
1110
|
+
# Guaranteed tier definition.
|
1111
|
+
# Corresponds to the JSON property `guaranteed`
|
1112
|
+
# @return [Google::Apis::TpuV2::Guaranteed]
|
1113
|
+
attr_accessor :guaranteed
|
1114
|
+
|
1115
|
+
# Output only. Immutable. The name of the QueuedResource.
|
1116
|
+
# Corresponds to the JSON property `name`
|
1117
|
+
# @return [String]
|
1118
|
+
attr_accessor :name
|
1119
|
+
|
1120
|
+
# Defines the policy of the QueuedRequest.
|
1121
|
+
# Corresponds to the JSON property `queueingPolicy`
|
1122
|
+
# @return [Google::Apis::TpuV2::QueueingPolicy]
|
1123
|
+
attr_accessor :queueing_policy
|
1124
|
+
|
1125
|
+
# Optional. Name of the reservation in which the resource should be provisioned.
|
1126
|
+
# Format: projects/`project`/locations/`zone`/reservations/`reservation`
|
1127
|
+
# Corresponds to the JSON property `reservationName`
|
1128
|
+
# @return [String]
|
1129
|
+
attr_accessor :reservation_name
|
1130
|
+
|
1131
|
+
# Spot tier definition.
|
1132
|
+
# Corresponds to the JSON property `spot`
|
1133
|
+
# @return [Google::Apis::TpuV2::Spot]
|
1134
|
+
attr_accessor :spot
|
1135
|
+
|
1136
|
+
# QueuedResourceState defines the details of the QueuedResource request.
|
1137
|
+
# Corresponds to the JSON property `state`
|
1138
|
+
# @return [Google::Apis::TpuV2::QueuedResourceState]
|
1139
|
+
attr_accessor :state
|
1140
|
+
|
1141
|
+
# Details of the TPU resource(s) being requested.
|
1142
|
+
# Corresponds to the JSON property `tpu`
|
1143
|
+
# @return [Google::Apis::TpuV2::Tpu]
|
1144
|
+
attr_accessor :tpu
|
1145
|
+
|
1146
|
+
def initialize(**args)
|
1147
|
+
update!(**args)
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# Update properties of this object
|
1151
|
+
def update!(**args)
|
1152
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1153
|
+
@guaranteed = args[:guaranteed] if args.key?(:guaranteed)
|
1154
|
+
@name = args[:name] if args.key?(:name)
|
1155
|
+
@queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy)
|
1156
|
+
@reservation_name = args[:reservation_name] if args.key?(:reservation_name)
|
1157
|
+
@spot = args[:spot] if args.key?(:spot)
|
1158
|
+
@state = args[:state] if args.key?(:state)
|
1159
|
+
@tpu = args[:tpu] if args.key?(:tpu)
|
1160
|
+
end
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
# QueuedResourceState defines the details of the QueuedResource request.
|
1164
|
+
class QueuedResourceState
|
1165
|
+
include Google::Apis::Core::Hashable
|
1166
|
+
|
1167
|
+
# Further data for the accepted state.
|
1168
|
+
# Corresponds to the JSON property `acceptedData`
|
1169
|
+
# @return [Google::Apis::TpuV2::AcceptedData]
|
1170
|
+
attr_accessor :accepted_data
|
1171
|
+
|
1172
|
+
# Further data for the active state.
|
1173
|
+
# Corresponds to the JSON property `activeData`
|
1174
|
+
# @return [Google::Apis::TpuV2::ActiveData]
|
1175
|
+
attr_accessor :active_data
|
1176
|
+
|
1177
|
+
# Further data for the creating state.
|
1178
|
+
# Corresponds to the JSON property `creatingData`
|
1179
|
+
# @return [Google::Apis::TpuV2::CreatingData]
|
1180
|
+
attr_accessor :creating_data
|
1181
|
+
|
1182
|
+
# Further data for the deleting state.
|
1183
|
+
# Corresponds to the JSON property `deletingData`
|
1184
|
+
# @return [Google::Apis::TpuV2::DeletingData]
|
1185
|
+
attr_accessor :deleting_data
|
1186
|
+
|
1187
|
+
# Further data for the failed state.
|
1188
|
+
# Corresponds to the JSON property `failedData`
|
1189
|
+
# @return [Google::Apis::TpuV2::FailedData]
|
1190
|
+
attr_accessor :failed_data
|
1191
|
+
|
1192
|
+
# Further data for the provisioning state.
|
1193
|
+
# Corresponds to the JSON property `provisioningData`
|
1194
|
+
# @return [Google::Apis::TpuV2::ProvisioningData]
|
1195
|
+
attr_accessor :provisioning_data
|
1196
|
+
|
1197
|
+
# Output only. State of the QueuedResource request.
|
1198
|
+
# Corresponds to the JSON property `state`
|
1199
|
+
# @return [String]
|
1200
|
+
attr_accessor :state
|
1201
|
+
|
1202
|
+
# Output only. The initiator of the QueuedResources's current state. Used to
|
1203
|
+
# indicate whether the SUSPENDING/SUSPENDED state was initiated by the user or
|
1204
|
+
# the service.
|
1205
|
+
# Corresponds to the JSON property `stateInitiator`
|
1206
|
+
# @return [String]
|
1207
|
+
attr_accessor :state_initiator
|
1208
|
+
|
1209
|
+
# Further data for the suspended state.
|
1210
|
+
# Corresponds to the JSON property `suspendedData`
|
1211
|
+
# @return [Google::Apis::TpuV2::SuspendedData]
|
1212
|
+
attr_accessor :suspended_data
|
1213
|
+
|
1214
|
+
# Further data for the suspending state.
|
1215
|
+
# Corresponds to the JSON property `suspendingData`
|
1216
|
+
# @return [Google::Apis::TpuV2::SuspendingData]
|
1217
|
+
attr_accessor :suspending_data
|
1218
|
+
|
1219
|
+
def initialize(**args)
|
1220
|
+
update!(**args)
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
# Update properties of this object
|
1224
|
+
def update!(**args)
|
1225
|
+
@accepted_data = args[:accepted_data] if args.key?(:accepted_data)
|
1226
|
+
@active_data = args[:active_data] if args.key?(:active_data)
|
1227
|
+
@creating_data = args[:creating_data] if args.key?(:creating_data)
|
1228
|
+
@deleting_data = args[:deleting_data] if args.key?(:deleting_data)
|
1229
|
+
@failed_data = args[:failed_data] if args.key?(:failed_data)
|
1230
|
+
@provisioning_data = args[:provisioning_data] if args.key?(:provisioning_data)
|
1231
|
+
@state = args[:state] if args.key?(:state)
|
1232
|
+
@state_initiator = args[:state_initiator] if args.key?(:state_initiator)
|
1233
|
+
@suspended_data = args[:suspended_data] if args.key?(:suspended_data)
|
1234
|
+
@suspending_data = args[:suspending_data] if args.key?(:suspending_data)
|
1235
|
+
end
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
# Defines the policy of the QueuedRequest.
|
1239
|
+
class QueueingPolicy
|
1240
|
+
include Google::Apis::Core::Hashable
|
1241
|
+
|
1242
|
+
# Optional. A relative time after which resources may be created.
|
1243
|
+
# Corresponds to the JSON property `validAfterDuration`
|
1244
|
+
# @return [String]
|
1245
|
+
attr_accessor :valid_after_duration
|
1246
|
+
|
1247
|
+
# Optional. An absolute time after which resources may be created.
|
1248
|
+
# Corresponds to the JSON property `validAfterTime`
|
1249
|
+
# @return [String]
|
1250
|
+
attr_accessor :valid_after_time
|
1251
|
+
|
1252
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
1253
|
+
# Timestamp end (exclusive). The start must be less than or equal to the end.
|
1254
|
+
# When the start equals the end, the interval is empty (matches no time). When
|
1255
|
+
# both start and end are unspecified, the interval matches any time.
|
1256
|
+
# Corresponds to the JSON property `validInterval`
|
1257
|
+
# @return [Google::Apis::TpuV2::Interval]
|
1258
|
+
attr_accessor :valid_interval
|
1259
|
+
|
1260
|
+
# Optional. A relative time after which resources should not be created. If the
|
1261
|
+
# request cannot be fulfilled by this time the request will be failed.
|
1262
|
+
# Corresponds to the JSON property `validUntilDuration`
|
1263
|
+
# @return [String]
|
1264
|
+
attr_accessor :valid_until_duration
|
1265
|
+
|
1266
|
+
# Optional. An absolute time after which resources should not be created. If the
|
1267
|
+
# request cannot be fulfilled by this time the request will be failed.
|
1268
|
+
# Corresponds to the JSON property `validUntilTime`
|
1269
|
+
# @return [String]
|
1270
|
+
attr_accessor :valid_until_time
|
1271
|
+
|
1272
|
+
def initialize(**args)
|
1273
|
+
update!(**args)
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
# Update properties of this object
|
1277
|
+
def update!(**args)
|
1278
|
+
@valid_after_duration = args[:valid_after_duration] if args.key?(:valid_after_duration)
|
1279
|
+
@valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time)
|
1280
|
+
@valid_interval = args[:valid_interval] if args.key?(:valid_interval)
|
1281
|
+
@valid_until_duration = args[:valid_until_duration] if args.key?(:valid_until_duration)
|
1282
|
+
@valid_until_time = args[:valid_until_time] if args.key?(:valid_until_time)
|
1283
|
+
end
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
# Request for ResetQueuedResource.
|
1287
|
+
class ResetQueuedResourceRequest
|
1288
|
+
include Google::Apis::Core::Hashable
|
1289
|
+
|
1290
|
+
def initialize(**args)
|
1291
|
+
update!(**args)
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
# Update properties of this object
|
1295
|
+
def update!(**args)
|
1296
|
+
end
|
1297
|
+
end
|
1298
|
+
|
857
1299
|
# A runtime version that a Node can be configured with.
|
858
1300
|
class RuntimeVersion
|
859
1301
|
include Google::Apis::Core::Hashable
|
@@ -895,6 +1337,12 @@ module Google
|
|
895
1337
|
attr_accessor :reserved
|
896
1338
|
alias_method :reserved?, :reserved
|
897
1339
|
|
1340
|
+
# Optional. Defines whether the node is Spot VM.
|
1341
|
+
# Corresponds to the JSON property `spot`
|
1342
|
+
# @return [Boolean]
|
1343
|
+
attr_accessor :spot
|
1344
|
+
alias_method :spot?, :spot
|
1345
|
+
|
898
1346
|
def initialize(**args)
|
899
1347
|
update!(**args)
|
900
1348
|
end
|
@@ -903,6 +1351,7 @@ module Google
|
|
903
1351
|
def update!(**args)
|
904
1352
|
@preemptible = args[:preemptible] if args.key?(:preemptible)
|
905
1353
|
@reserved = args[:reserved] if args.key?(:reserved)
|
1354
|
+
@spot = args[:spot] if args.key?(:spot)
|
906
1355
|
end
|
907
1356
|
end
|
908
1357
|
|
@@ -972,6 +1421,19 @@ module Google
|
|
972
1421
|
end
|
973
1422
|
end
|
974
1423
|
|
1424
|
+
# Spot tier definition.
|
1425
|
+
class Spot
|
1426
|
+
include Google::Apis::Core::Hashable
|
1427
|
+
|
1428
|
+
def initialize(**args)
|
1429
|
+
update!(**args)
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
# Update properties of this object
|
1433
|
+
def update!(**args)
|
1434
|
+
end
|
1435
|
+
end
|
1436
|
+
|
975
1437
|
# Request for StartNode.
|
976
1438
|
class StartNodeRequest
|
977
1439
|
include Google::Apis::Core::Hashable
|
@@ -1037,6 +1499,32 @@ module Google
|
|
1037
1499
|
end
|
1038
1500
|
end
|
1039
1501
|
|
1502
|
+
# Further data for the suspended state.
|
1503
|
+
class SuspendedData
|
1504
|
+
include Google::Apis::Core::Hashable
|
1505
|
+
|
1506
|
+
def initialize(**args)
|
1507
|
+
update!(**args)
|
1508
|
+
end
|
1509
|
+
|
1510
|
+
# Update properties of this object
|
1511
|
+
def update!(**args)
|
1512
|
+
end
|
1513
|
+
end
|
1514
|
+
|
1515
|
+
# Further data for the suspending state.
|
1516
|
+
class SuspendingData
|
1517
|
+
include Google::Apis::Core::Hashable
|
1518
|
+
|
1519
|
+
def initialize(**args)
|
1520
|
+
update!(**args)
|
1521
|
+
end
|
1522
|
+
|
1523
|
+
# Update properties of this object
|
1524
|
+
def update!(**args)
|
1525
|
+
end
|
1526
|
+
end
|
1527
|
+
|
1040
1528
|
# A Symptom instance.
|
1041
1529
|
class Symptom
|
1042
1530
|
include Google::Apis::Core::Hashable
|
@@ -1073,6 +1561,25 @@ module Google
|
|
1073
1561
|
@worker_id = args[:worker_id] if args.key?(:worker_id)
|
1074
1562
|
end
|
1075
1563
|
end
|
1564
|
+
|
1565
|
+
# Details of the TPU resource(s) being requested.
|
1566
|
+
class Tpu
|
1567
|
+
include Google::Apis::Core::Hashable
|
1568
|
+
|
1569
|
+
# Optional. The TPU node(s) being requested.
|
1570
|
+
# Corresponds to the JSON property `nodeSpec`
|
1571
|
+
# @return [Array<Google::Apis::TpuV2::NodeSpec>]
|
1572
|
+
attr_accessor :node_spec
|
1573
|
+
|
1574
|
+
def initialize(**args)
|
1575
|
+
update!(**args)
|
1576
|
+
end
|
1577
|
+
|
1578
|
+
# Update properties of this object
|
1579
|
+
def update!(**args)
|
1580
|
+
@node_spec = args[:node_spec] if args.key?(:node_spec)
|
1581
|
+
end
|
1582
|
+
end
|
1076
1583
|
end
|
1077
1584
|
end
|
1078
1585
|
end
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240205"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,24 +34,54 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class AcceptedData
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class AccessConfig
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
40
46
|
include Google::Apis::Core::JsonObjectSupport
|
41
47
|
end
|
42
48
|
|
49
|
+
class ActiveData
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
43
55
|
class AttachedDisk
|
44
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
57
|
|
46
58
|
include Google::Apis::Core::JsonObjectSupport
|
47
59
|
end
|
48
60
|
|
61
|
+
class CreatingData
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class DeletingData
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
49
73
|
class Empty
|
50
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
75
|
|
52
76
|
include Google::Apis::Core::JsonObjectSupport
|
53
77
|
end
|
54
78
|
|
79
|
+
class FailedData
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
55
85
|
class GenerateServiceIdentityRequest
|
56
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
87
|
|
@@ -76,6 +106,12 @@ module Google
|
|
76
106
|
include Google::Apis::Core::JsonObjectSupport
|
77
107
|
end
|
78
108
|
|
109
|
+
class Guaranteed
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
79
115
|
class GuestAttributes
|
80
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
117
|
|
@@ -94,6 +130,12 @@ module Google
|
|
94
130
|
include Google::Apis::Core::JsonObjectSupport
|
95
131
|
end
|
96
132
|
|
133
|
+
class Interval
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
97
139
|
class ListAcceleratorTypesResponse
|
98
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
141
|
|
@@ -118,6 +160,12 @@ module Google
|
|
118
160
|
include Google::Apis::Core::JsonObjectSupport
|
119
161
|
end
|
120
162
|
|
163
|
+
class ListQueuedResourcesResponse
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
121
169
|
class ListRuntimeVersionsResponse
|
122
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
171
|
|
@@ -130,6 +178,12 @@ module Google
|
|
130
178
|
include Google::Apis::Core::JsonObjectSupport
|
131
179
|
end
|
132
180
|
|
181
|
+
class MultisliceParams
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
133
187
|
class NetworkConfig
|
134
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
189
|
|
@@ -148,6 +202,12 @@ module Google
|
|
148
202
|
include Google::Apis::Core::JsonObjectSupport
|
149
203
|
end
|
150
204
|
|
205
|
+
class NodeSpec
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
151
211
|
class Operation
|
152
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
213
|
|
@@ -160,6 +220,36 @@ module Google
|
|
160
220
|
include Google::Apis::Core::JsonObjectSupport
|
161
221
|
end
|
162
222
|
|
223
|
+
class ProvisioningData
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
229
|
+
class QueuedResource
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class QueuedResourceState
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
241
|
+
class QueueingPolicy
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
247
|
+
class ResetQueuedResourceRequest
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
163
253
|
class RuntimeVersion
|
164
254
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
255
|
|
@@ -190,6 +280,12 @@ module Google
|
|
190
280
|
include Google::Apis::Core::JsonObjectSupport
|
191
281
|
end
|
192
282
|
|
283
|
+
class Spot
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
193
289
|
class StartNodeRequest
|
194
290
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
291
|
|
@@ -208,12 +304,30 @@ module Google
|
|
208
304
|
include Google::Apis::Core::JsonObjectSupport
|
209
305
|
end
|
210
306
|
|
307
|
+
class SuspendedData
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
313
|
+
class SuspendingData
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
211
319
|
class Symptom
|
212
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
321
|
|
214
322
|
include Google::Apis::Core::JsonObjectSupport
|
215
323
|
end
|
216
324
|
|
325
|
+
class Tpu
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
217
331
|
class AcceleratorConfig
|
218
332
|
# @private
|
219
333
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -232,6 +346,12 @@ module Google
|
|
232
346
|
end
|
233
347
|
end
|
234
348
|
|
349
|
+
class AcceptedData
|
350
|
+
# @private
|
351
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
235
355
|
class AccessConfig
|
236
356
|
# @private
|
237
357
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -239,6 +359,12 @@ module Google
|
|
239
359
|
end
|
240
360
|
end
|
241
361
|
|
362
|
+
class ActiveData
|
363
|
+
# @private
|
364
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
242
368
|
class AttachedDisk
|
243
369
|
# @private
|
244
370
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -247,12 +373,32 @@ module Google
|
|
247
373
|
end
|
248
374
|
end
|
249
375
|
|
376
|
+
class CreatingData
|
377
|
+
# @private
|
378
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
379
|
+
end
|
380
|
+
end
|
381
|
+
|
382
|
+
class DeletingData
|
383
|
+
# @private
|
384
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
250
388
|
class Empty
|
251
389
|
# @private
|
252
390
|
class Representation < Google::Apis::Core::JsonRepresentation
|
253
391
|
end
|
254
392
|
end
|
255
393
|
|
394
|
+
class FailedData
|
395
|
+
# @private
|
396
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
397
|
+
property :error, as: 'error', class: Google::Apis::TpuV2::Status, decorator: Google::Apis::TpuV2::Status::Representation
|
398
|
+
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
256
402
|
class GenerateServiceIdentityRequest
|
257
403
|
# @private
|
258
404
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -283,6 +429,13 @@ module Google
|
|
283
429
|
end
|
284
430
|
end
|
285
431
|
|
432
|
+
class Guaranteed
|
433
|
+
# @private
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
435
|
+
property :min_duration, as: 'minDuration'
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
286
439
|
class GuestAttributes
|
287
440
|
# @private
|
288
441
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -309,6 +462,14 @@ module Google
|
|
309
462
|
end
|
310
463
|
end
|
311
464
|
|
465
|
+
class Interval
|
466
|
+
# @private
|
467
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
468
|
+
property :end_time, as: 'endTime'
|
469
|
+
property :start_time, as: 'startTime'
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
312
473
|
class ListAcceleratorTypesResponse
|
313
474
|
# @private
|
314
475
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -347,6 +508,16 @@ module Google
|
|
347
508
|
end
|
348
509
|
end
|
349
510
|
|
511
|
+
class ListQueuedResourcesResponse
|
512
|
+
# @private
|
513
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
514
|
+
property :next_page_token, as: 'nextPageToken'
|
515
|
+
collection :queued_resources, as: 'queuedResources', class: Google::Apis::TpuV2::QueuedResource, decorator: Google::Apis::TpuV2::QueuedResource::Representation
|
516
|
+
|
517
|
+
collection :unreachable, as: 'unreachable'
|
518
|
+
end
|
519
|
+
end
|
520
|
+
|
350
521
|
class ListRuntimeVersionsResponse
|
351
522
|
# @private
|
352
523
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -368,6 +539,14 @@ module Google
|
|
368
539
|
end
|
369
540
|
end
|
370
541
|
|
542
|
+
class MultisliceParams
|
543
|
+
# @private
|
544
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
545
|
+
property :node_count, as: 'nodeCount'
|
546
|
+
property :node_id_prefix, as: 'nodeIdPrefix'
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
371
550
|
class NetworkConfig
|
372
551
|
# @private
|
373
552
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -427,6 +606,18 @@ module Google
|
|
427
606
|
end
|
428
607
|
end
|
429
608
|
|
609
|
+
class NodeSpec
|
610
|
+
# @private
|
611
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
612
|
+
property :multislice_params, as: 'multisliceParams', class: Google::Apis::TpuV2::MultisliceParams, decorator: Google::Apis::TpuV2::MultisliceParams::Representation
|
613
|
+
|
614
|
+
property :node, as: 'node', class: Google::Apis::TpuV2::Node, decorator: Google::Apis::TpuV2::Node::Representation
|
615
|
+
|
616
|
+
property :node_id, as: 'nodeId'
|
617
|
+
property :parent, as: 'parent'
|
618
|
+
end
|
619
|
+
end
|
620
|
+
|
430
621
|
class Operation
|
431
622
|
# @private
|
432
623
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -452,6 +643,73 @@ module Google
|
|
452
643
|
end
|
453
644
|
end
|
454
645
|
|
646
|
+
class ProvisioningData
|
647
|
+
# @private
|
648
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
652
|
+
class QueuedResource
|
653
|
+
# @private
|
654
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
655
|
+
property :create_time, as: 'createTime'
|
656
|
+
property :guaranteed, as: 'guaranteed', class: Google::Apis::TpuV2::Guaranteed, decorator: Google::Apis::TpuV2::Guaranteed::Representation
|
657
|
+
|
658
|
+
property :name, as: 'name'
|
659
|
+
property :queueing_policy, as: 'queueingPolicy', class: Google::Apis::TpuV2::QueueingPolicy, decorator: Google::Apis::TpuV2::QueueingPolicy::Representation
|
660
|
+
|
661
|
+
property :reservation_name, as: 'reservationName'
|
662
|
+
property :spot, as: 'spot', class: Google::Apis::TpuV2::Spot, decorator: Google::Apis::TpuV2::Spot::Representation
|
663
|
+
|
664
|
+
property :state, as: 'state', class: Google::Apis::TpuV2::QueuedResourceState, decorator: Google::Apis::TpuV2::QueuedResourceState::Representation
|
665
|
+
|
666
|
+
property :tpu, as: 'tpu', class: Google::Apis::TpuV2::Tpu, decorator: Google::Apis::TpuV2::Tpu::Representation
|
667
|
+
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
671
|
+
class QueuedResourceState
|
672
|
+
# @private
|
673
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
674
|
+
property :accepted_data, as: 'acceptedData', class: Google::Apis::TpuV2::AcceptedData, decorator: Google::Apis::TpuV2::AcceptedData::Representation
|
675
|
+
|
676
|
+
property :active_data, as: 'activeData', class: Google::Apis::TpuV2::ActiveData, decorator: Google::Apis::TpuV2::ActiveData::Representation
|
677
|
+
|
678
|
+
property :creating_data, as: 'creatingData', class: Google::Apis::TpuV2::CreatingData, decorator: Google::Apis::TpuV2::CreatingData::Representation
|
679
|
+
|
680
|
+
property :deleting_data, as: 'deletingData', class: Google::Apis::TpuV2::DeletingData, decorator: Google::Apis::TpuV2::DeletingData::Representation
|
681
|
+
|
682
|
+
property :failed_data, as: 'failedData', class: Google::Apis::TpuV2::FailedData, decorator: Google::Apis::TpuV2::FailedData::Representation
|
683
|
+
|
684
|
+
property :provisioning_data, as: 'provisioningData', class: Google::Apis::TpuV2::ProvisioningData, decorator: Google::Apis::TpuV2::ProvisioningData::Representation
|
685
|
+
|
686
|
+
property :state, as: 'state'
|
687
|
+
property :state_initiator, as: 'stateInitiator'
|
688
|
+
property :suspended_data, as: 'suspendedData', class: Google::Apis::TpuV2::SuspendedData, decorator: Google::Apis::TpuV2::SuspendedData::Representation
|
689
|
+
|
690
|
+
property :suspending_data, as: 'suspendingData', class: Google::Apis::TpuV2::SuspendingData, decorator: Google::Apis::TpuV2::SuspendingData::Representation
|
691
|
+
|
692
|
+
end
|
693
|
+
end
|
694
|
+
|
695
|
+
class QueueingPolicy
|
696
|
+
# @private
|
697
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
698
|
+
property :valid_after_duration, as: 'validAfterDuration'
|
699
|
+
property :valid_after_time, as: 'validAfterTime'
|
700
|
+
property :valid_interval, as: 'validInterval', class: Google::Apis::TpuV2::Interval, decorator: Google::Apis::TpuV2::Interval::Representation
|
701
|
+
|
702
|
+
property :valid_until_duration, as: 'validUntilDuration'
|
703
|
+
property :valid_until_time, as: 'validUntilTime'
|
704
|
+
end
|
705
|
+
end
|
706
|
+
|
707
|
+
class ResetQueuedResourceRequest
|
708
|
+
# @private
|
709
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
710
|
+
end
|
711
|
+
end
|
712
|
+
|
455
713
|
class RuntimeVersion
|
456
714
|
# @private
|
457
715
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -465,6 +723,7 @@ module Google
|
|
465
723
|
class Representation < Google::Apis::Core::JsonRepresentation
|
466
724
|
property :preemptible, as: 'preemptible'
|
467
725
|
property :reserved, as: 'reserved'
|
726
|
+
property :spot, as: 'spot'
|
468
727
|
end
|
469
728
|
end
|
470
729
|
|
@@ -490,6 +749,12 @@ module Google
|
|
490
749
|
end
|
491
750
|
end
|
492
751
|
|
752
|
+
class Spot
|
753
|
+
# @private
|
754
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
755
|
+
end
|
756
|
+
end
|
757
|
+
|
493
758
|
class StartNodeRequest
|
494
759
|
# @private
|
495
760
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -511,6 +776,18 @@ module Google
|
|
511
776
|
end
|
512
777
|
end
|
513
778
|
|
779
|
+
class SuspendedData
|
780
|
+
# @private
|
781
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
782
|
+
end
|
783
|
+
end
|
784
|
+
|
785
|
+
class SuspendingData
|
786
|
+
# @private
|
787
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
514
791
|
class Symptom
|
515
792
|
# @private
|
516
793
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -520,6 +797,14 @@ module Google
|
|
520
797
|
property :worker_id, as: 'workerId'
|
521
798
|
end
|
522
799
|
end
|
800
|
+
|
801
|
+
class Tpu
|
802
|
+
# @private
|
803
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
804
|
+
collection :node_spec, as: 'nodeSpec', class: Google::Apis::TpuV2::NodeSpec, decorator: Google::Apis::TpuV2::NodeSpec::Representation
|
805
|
+
|
806
|
+
end
|
807
|
+
end
|
523
808
|
end
|
524
809
|
end
|
525
810
|
end
|
@@ -638,6 +638,186 @@ module Google
|
|
638
638
|
execute_or_queue_command(command, &block)
|
639
639
|
end
|
640
640
|
|
641
|
+
# Creates a QueuedResource TPU instance.
|
642
|
+
# @param [String] parent
|
643
|
+
# Required. The parent resource name.
|
644
|
+
# @param [Google::Apis::TpuV2::QueuedResource] queued_resource_object
|
645
|
+
# @param [String] queued_resource_id
|
646
|
+
# Optional. The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+
|
647
|
+
# $` regex format.
|
648
|
+
# @param [String] request_id
|
649
|
+
# Optional. Idempotent request UUID.
|
650
|
+
# @param [String] fields
|
651
|
+
# Selector specifying which fields to include in a partial response.
|
652
|
+
# @param [String] quota_user
|
653
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
654
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
655
|
+
# @param [Google::Apis::RequestOptions] options
|
656
|
+
# Request-specific options
|
657
|
+
#
|
658
|
+
# @yield [result, err] Result & error if block supplied
|
659
|
+
# @yieldparam result [Google::Apis::TpuV2::Operation] parsed result object
|
660
|
+
# @yieldparam err [StandardError] error object if request failed
|
661
|
+
#
|
662
|
+
# @return [Google::Apis::TpuV2::Operation]
|
663
|
+
#
|
664
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
665
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
666
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
667
|
+
def create_project_location_queued_resource(parent, queued_resource_object = nil, queued_resource_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
668
|
+
command = make_simple_command(:post, 'v2/{+parent}/queuedResources', options)
|
669
|
+
command.request_representation = Google::Apis::TpuV2::QueuedResource::Representation
|
670
|
+
command.request_object = queued_resource_object
|
671
|
+
command.response_representation = Google::Apis::TpuV2::Operation::Representation
|
672
|
+
command.response_class = Google::Apis::TpuV2::Operation
|
673
|
+
command.params['parent'] = parent unless parent.nil?
|
674
|
+
command.query['queuedResourceId'] = queued_resource_id unless queued_resource_id.nil?
|
675
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
676
|
+
command.query['fields'] = fields unless fields.nil?
|
677
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
678
|
+
execute_or_queue_command(command, &block)
|
679
|
+
end
|
680
|
+
|
681
|
+
# Deletes a QueuedResource TPU instance.
|
682
|
+
# @param [String] name
|
683
|
+
# Required. The resource name.
|
684
|
+
# @param [Boolean] force
|
685
|
+
# Optional. If set to true, all running nodes belonging to this queued resource
|
686
|
+
# will be deleted first and then the queued resource will be deleted. Otherwise (
|
687
|
+
# i.e. force=false), the queued resource will only be deleted if its nodes have
|
688
|
+
# already been deleted or the queued resource is in the ACCEPTED, FAILED, or
|
689
|
+
# SUSPENDED state.
|
690
|
+
# @param [String] request_id
|
691
|
+
# Optional. Idempotent request UUID.
|
692
|
+
# @param [String] fields
|
693
|
+
# Selector specifying which fields to include in a partial response.
|
694
|
+
# @param [String] quota_user
|
695
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
696
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
697
|
+
# @param [Google::Apis::RequestOptions] options
|
698
|
+
# Request-specific options
|
699
|
+
#
|
700
|
+
# @yield [result, err] Result & error if block supplied
|
701
|
+
# @yieldparam result [Google::Apis::TpuV2::Operation] parsed result object
|
702
|
+
# @yieldparam err [StandardError] error object if request failed
|
703
|
+
#
|
704
|
+
# @return [Google::Apis::TpuV2::Operation]
|
705
|
+
#
|
706
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
707
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
708
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
709
|
+
def delete_project_location_queued_resource(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
710
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
711
|
+
command.response_representation = Google::Apis::TpuV2::Operation::Representation
|
712
|
+
command.response_class = Google::Apis::TpuV2::Operation
|
713
|
+
command.params['name'] = name unless name.nil?
|
714
|
+
command.query['force'] = force unless force.nil?
|
715
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
716
|
+
command.query['fields'] = fields unless fields.nil?
|
717
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
718
|
+
execute_or_queue_command(command, &block)
|
719
|
+
end
|
720
|
+
|
721
|
+
# Gets details of a queued resource.
|
722
|
+
# @param [String] name
|
723
|
+
# Required. The resource name.
|
724
|
+
# @param [String] fields
|
725
|
+
# Selector specifying which fields to include in a partial response.
|
726
|
+
# @param [String] quota_user
|
727
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
728
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
729
|
+
# @param [Google::Apis::RequestOptions] options
|
730
|
+
# Request-specific options
|
731
|
+
#
|
732
|
+
# @yield [result, err] Result & error if block supplied
|
733
|
+
# @yieldparam result [Google::Apis::TpuV2::QueuedResource] parsed result object
|
734
|
+
# @yieldparam err [StandardError] error object if request failed
|
735
|
+
#
|
736
|
+
# @return [Google::Apis::TpuV2::QueuedResource]
|
737
|
+
#
|
738
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
739
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
740
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
741
|
+
def get_project_location_queued_resource(name, fields: nil, quota_user: nil, options: nil, &block)
|
742
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
743
|
+
command.response_representation = Google::Apis::TpuV2::QueuedResource::Representation
|
744
|
+
command.response_class = Google::Apis::TpuV2::QueuedResource
|
745
|
+
command.params['name'] = name unless name.nil?
|
746
|
+
command.query['fields'] = fields unless fields.nil?
|
747
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
748
|
+
execute_or_queue_command(command, &block)
|
749
|
+
end
|
750
|
+
|
751
|
+
# Lists queued resources.
|
752
|
+
# @param [String] parent
|
753
|
+
# Required. The parent resource name.
|
754
|
+
# @param [Fixnum] page_size
|
755
|
+
# Optional. The maximum number of items to return.
|
756
|
+
# @param [String] page_token
|
757
|
+
# Optional. The next_page_token value returned from a previous List request, if
|
758
|
+
# any.
|
759
|
+
# @param [String] fields
|
760
|
+
# Selector specifying which fields to include in a partial response.
|
761
|
+
# @param [String] quota_user
|
762
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
763
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
764
|
+
# @param [Google::Apis::RequestOptions] options
|
765
|
+
# Request-specific options
|
766
|
+
#
|
767
|
+
# @yield [result, err] Result & error if block supplied
|
768
|
+
# @yieldparam result [Google::Apis::TpuV2::ListQueuedResourcesResponse] parsed result object
|
769
|
+
# @yieldparam err [StandardError] error object if request failed
|
770
|
+
#
|
771
|
+
# @return [Google::Apis::TpuV2::ListQueuedResourcesResponse]
|
772
|
+
#
|
773
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
774
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
775
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
776
|
+
def list_project_location_queued_resources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
777
|
+
command = make_simple_command(:get, 'v2/{+parent}/queuedResources', options)
|
778
|
+
command.response_representation = Google::Apis::TpuV2::ListQueuedResourcesResponse::Representation
|
779
|
+
command.response_class = Google::Apis::TpuV2::ListQueuedResourcesResponse
|
780
|
+
command.params['parent'] = parent unless parent.nil?
|
781
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
782
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
783
|
+
command.query['fields'] = fields unless fields.nil?
|
784
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
785
|
+
execute_or_queue_command(command, &block)
|
786
|
+
end
|
787
|
+
|
788
|
+
# Resets a QueuedResource TPU instance
|
789
|
+
# @param [String] name
|
790
|
+
# Required. The name of the queued resource.
|
791
|
+
# @param [Google::Apis::TpuV2::ResetQueuedResourceRequest] reset_queued_resource_request_object
|
792
|
+
# @param [String] fields
|
793
|
+
# Selector specifying which fields to include in a partial response.
|
794
|
+
# @param [String] quota_user
|
795
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
796
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
797
|
+
# @param [Google::Apis::RequestOptions] options
|
798
|
+
# Request-specific options
|
799
|
+
#
|
800
|
+
# @yield [result, err] Result & error if block supplied
|
801
|
+
# @yieldparam result [Google::Apis::TpuV2::Operation] parsed result object
|
802
|
+
# @yieldparam err [StandardError] error object if request failed
|
803
|
+
#
|
804
|
+
# @return [Google::Apis::TpuV2::Operation]
|
805
|
+
#
|
806
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
807
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
808
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
809
|
+
def reset_queued_resource(name, reset_queued_resource_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
810
|
+
command = make_simple_command(:post, 'v2/{+name}:reset', options)
|
811
|
+
command.request_representation = Google::Apis::TpuV2::ResetQueuedResourceRequest::Representation
|
812
|
+
command.request_object = reset_queued_resource_request_object
|
813
|
+
command.response_representation = Google::Apis::TpuV2::Operation::Representation
|
814
|
+
command.response_class = Google::Apis::TpuV2::Operation
|
815
|
+
command.params['name'] = name unless name.nil?
|
816
|
+
command.query['fields'] = fields unless fields.nil?
|
817
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
818
|
+
execute_or_queue_command(command, &block)
|
819
|
+
end
|
820
|
+
|
641
821
|
# Gets a runtime version.
|
642
822
|
# @param [String] name
|
643
823
|
# Required. The resource name.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-tpu_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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-
|
11
|
+
date: 2024-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.14.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.14.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2/v0.10.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tpu_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '2.
|
71
|
+
version: '2.7'
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.6
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud TPU API V2
|