google-apis-tpu_v2alpha1 0.11.0 → 0.12.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1cd3439c2fa42b94f3418ca750b0f80a043946c0f07823bc40d91778390e918
|
4
|
+
data.tar.gz: cd0dea717d8b6522e8216a547aecd48096ed80a4fa464a054e331e3a55f71c6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cac4462f099e0c40ca5ea07ce276a13013283decb6cc4bb29e88749b711c186ef2d328b64d44638d5b5ed6f71c08ee832809b7accdc18d852ca3f8ce51671a9a
|
7
|
+
data.tar.gz: b2af4950ec0efdb3b50db7e65faa2b42f49b7dfcd8d999600cfbca6a3104474644bc95d51db76624b28b9e0efdd49e49a70c639c8858defb5d9a593450c6975a
|
data/CHANGELOG.md
CHANGED
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# @return [String]
|
32
32
|
attr_accessor :name
|
33
33
|
|
34
|
-
#
|
34
|
+
# The accelerator type.
|
35
35
|
# Corresponds to the JSON property `type`
|
36
36
|
# @return [String]
|
37
37
|
attr_accessor :type
|
@@ -47,6 +47,19 @@ module Google
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
# Further data for the accepted state.
|
51
|
+
class AcceptedData
|
52
|
+
include Google::Apis::Core::Hashable
|
53
|
+
|
54
|
+
def initialize(**args)
|
55
|
+
update!(**args)
|
56
|
+
end
|
57
|
+
|
58
|
+
# Update properties of this object
|
59
|
+
def update!(**args)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
50
63
|
# An access config attached to the TPU worker.
|
51
64
|
class AccessConfig
|
52
65
|
include Google::Apis::Core::Hashable
|
@@ -66,6 +79,19 @@ module Google
|
|
66
79
|
end
|
67
80
|
end
|
68
81
|
|
82
|
+
# Further data for the active state.
|
83
|
+
class ActiveData
|
84
|
+
include Google::Apis::Core::Hashable
|
85
|
+
|
86
|
+
def initialize(**args)
|
87
|
+
update!(**args)
|
88
|
+
end
|
89
|
+
|
90
|
+
# Update properties of this object
|
91
|
+
def update!(**args)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
69
95
|
# A node-attached disk resource. Next ID: 8;
|
70
96
|
class AttachedDisk
|
71
97
|
include Google::Apis::Core::Hashable
|
@@ -93,6 +119,45 @@ module Google
|
|
93
119
|
end
|
94
120
|
end
|
95
121
|
|
122
|
+
# BestEffort tier definition.
|
123
|
+
class BestEffort
|
124
|
+
include Google::Apis::Core::Hashable
|
125
|
+
|
126
|
+
def initialize(**args)
|
127
|
+
update!(**args)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Update properties of this object
|
131
|
+
def update!(**args)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# Further data for the creating state.
|
136
|
+
class CreatingData
|
137
|
+
include Google::Apis::Core::Hashable
|
138
|
+
|
139
|
+
def initialize(**args)
|
140
|
+
update!(**args)
|
141
|
+
end
|
142
|
+
|
143
|
+
# Update properties of this object
|
144
|
+
def update!(**args)
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
# Further data for the deleting state.
|
149
|
+
class DeletingData
|
150
|
+
include Google::Apis::Core::Hashable
|
151
|
+
|
152
|
+
def initialize(**args)
|
153
|
+
update!(**args)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Update properties of this object
|
157
|
+
def update!(**args)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
96
161
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
97
162
|
# messages in your APIs. A typical example is to use it as the request or the
|
98
163
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -109,6 +174,30 @@ module Google
|
|
109
174
|
end
|
110
175
|
end
|
111
176
|
|
177
|
+
# Further data for the failed state.
|
178
|
+
class FailedData
|
179
|
+
include Google::Apis::Core::Hashable
|
180
|
+
|
181
|
+
# The `Status` type defines a logical error model that is suitable for different
|
182
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
183
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
184
|
+
# data: error code, error message, and error details. You can find out more
|
185
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
186
|
+
# //cloud.google.com/apis/design/errors).
|
187
|
+
# Corresponds to the JSON property `error`
|
188
|
+
# @return [Google::Apis::TpuV2alpha1::Status]
|
189
|
+
attr_accessor :error
|
190
|
+
|
191
|
+
def initialize(**args)
|
192
|
+
update!(**args)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Update properties of this object
|
196
|
+
def update!(**args)
|
197
|
+
@error = args[:error] if args.key?(:error)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
112
201
|
# Request for GenerateServiceIdentity.
|
113
202
|
class GenerateServiceIdentityRequest
|
114
203
|
include Google::Apis::Core::Hashable
|
@@ -186,6 +275,34 @@ module Google
|
|
186
275
|
end
|
187
276
|
end
|
188
277
|
|
278
|
+
# Guaranteed tier definition.
|
279
|
+
class Guaranteed
|
280
|
+
include Google::Apis::Core::Hashable
|
281
|
+
|
282
|
+
# Optional. Defines the minimum duration of the guarantee. If specified, the
|
283
|
+
# requested resources will only be provisioned if they can be allocated for at
|
284
|
+
# least the given duration.
|
285
|
+
# Corresponds to the JSON property `minDuration`
|
286
|
+
# @return [String]
|
287
|
+
attr_accessor :min_duration
|
288
|
+
|
289
|
+
# Optional. Specifies the request should be scheduled on reserved capacity.
|
290
|
+
# Corresponds to the JSON property `reserved`
|
291
|
+
# @return [Boolean]
|
292
|
+
attr_accessor :reserved
|
293
|
+
alias_method :reserved?, :reserved
|
294
|
+
|
295
|
+
def initialize(**args)
|
296
|
+
update!(**args)
|
297
|
+
end
|
298
|
+
|
299
|
+
# Update properties of this object
|
300
|
+
def update!(**args)
|
301
|
+
@min_duration = args[:min_duration] if args.key?(:min_duration)
|
302
|
+
@reserved = args[:reserved] if args.key?(:reserved)
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
189
306
|
# A guest attributes.
|
190
307
|
class GuestAttributes
|
191
308
|
include Google::Apis::Core::Hashable
|
@@ -262,6 +379,36 @@ module Google
|
|
262
379
|
end
|
263
380
|
end
|
264
381
|
|
382
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
383
|
+
# Timestamp end (exclusive). The start must be less than or equal to the end.
|
384
|
+
# When the start equals the end, the interval is empty (matches no time). When
|
385
|
+
# both start and end are unspecified, the interval matches any time.
|
386
|
+
class Interval
|
387
|
+
include Google::Apis::Core::Hashable
|
388
|
+
|
389
|
+
# Optional. Exclusive end of the interval. If specified, a Timestamp matching
|
390
|
+
# this interval will have to be before the end.
|
391
|
+
# Corresponds to the JSON property `endTime`
|
392
|
+
# @return [String]
|
393
|
+
attr_accessor :end_time
|
394
|
+
|
395
|
+
# Optional. Inclusive start of the interval. If specified, a Timestamp matching
|
396
|
+
# this interval will have to be the same or after the start.
|
397
|
+
# Corresponds to the JSON property `startTime`
|
398
|
+
# @return [String]
|
399
|
+
attr_accessor :start_time
|
400
|
+
|
401
|
+
def initialize(**args)
|
402
|
+
update!(**args)
|
403
|
+
end
|
404
|
+
|
405
|
+
# Update properties of this object
|
406
|
+
def update!(**args)
|
407
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
408
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
409
|
+
end
|
410
|
+
end
|
411
|
+
|
265
412
|
# Response for ListAcceleratorTypes.
|
266
413
|
class ListAcceleratorTypesResponse
|
267
414
|
include Google::Apis::Core::Hashable
|
@@ -374,6 +521,37 @@ module Google
|
|
374
521
|
end
|
375
522
|
end
|
376
523
|
|
524
|
+
# Response for ListQueuedResources.
|
525
|
+
class ListQueuedResourcesResponse
|
526
|
+
include Google::Apis::Core::Hashable
|
527
|
+
|
528
|
+
# The next page token or empty if none.
|
529
|
+
# Corresponds to the JSON property `nextPageToken`
|
530
|
+
# @return [String]
|
531
|
+
attr_accessor :next_page_token
|
532
|
+
|
533
|
+
# The listed queued resources.
|
534
|
+
# Corresponds to the JSON property `queuedResources`
|
535
|
+
# @return [Array<Google::Apis::TpuV2alpha1::QueuedResource>]
|
536
|
+
attr_accessor :queued_resources
|
537
|
+
|
538
|
+
# Locations that could not be reached.
|
539
|
+
# Corresponds to the JSON property `unreachable`
|
540
|
+
# @return [Array<String>]
|
541
|
+
attr_accessor :unreachable
|
542
|
+
|
543
|
+
def initialize(**args)
|
544
|
+
update!(**args)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Update properties of this object
|
548
|
+
def update!(**args)
|
549
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
550
|
+
@queued_resources = args[:queued_resources] if args.key?(:queued_resources)
|
551
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
377
555
|
# Response for ListRuntimeVersions.
|
378
556
|
class ListRuntimeVersionsResponse
|
379
557
|
include Google::Apis::Core::Hashable
|
@@ -612,6 +790,11 @@ module Google
|
|
612
790
|
# @return [Array<Google::Apis::TpuV2alpha1::NetworkEndpoint>]
|
613
791
|
attr_accessor :network_endpoints
|
614
792
|
|
793
|
+
# Output only. The qualified name of the QueuedResource that requested this Node.
|
794
|
+
# Corresponds to the JSON property `queuedResource`
|
795
|
+
# @return [String]
|
796
|
+
attr_accessor :queued_resource
|
797
|
+
|
615
798
|
# Required. The runtime version running in the Node.
|
616
799
|
# Corresponds to the JSON property `runtimeVersion`
|
617
800
|
# @return [String]
|
@@ -668,6 +851,7 @@ module Google
|
|
668
851
|
@name = args[:name] if args.key?(:name)
|
669
852
|
@network_config = args[:network_config] if args.key?(:network_config)
|
670
853
|
@network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
|
854
|
+
@queued_resource = args[:queued_resource] if args.key?(:queued_resource)
|
671
855
|
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
672
856
|
@scheduling_config = args[:scheduling_config] if args.key?(:scheduling_config)
|
673
857
|
@service_account = args[:service_account] if args.key?(:service_account)
|
@@ -678,6 +862,42 @@ module Google
|
|
678
862
|
end
|
679
863
|
end
|
680
864
|
|
865
|
+
# Details of the TPU node(s) being requested. Users can request either a single
|
866
|
+
# node or multiple nodes. NodeSpec provides the specification for node(s) to be
|
867
|
+
# created.
|
868
|
+
class NodeSpec
|
869
|
+
include Google::Apis::Core::Hashable
|
870
|
+
|
871
|
+
# A TPU instance.
|
872
|
+
# Corresponds to the JSON property `node`
|
873
|
+
# @return [Google::Apis::TpuV2alpha1::Node]
|
874
|
+
attr_accessor :node
|
875
|
+
|
876
|
+
# The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex
|
877
|
+
# format. This is only specified when requesting a single node. In case of multi-
|
878
|
+
# node requests, multi_node_params must be populated instead. It's an error to
|
879
|
+
# specify both node_id and multi_node_params.
|
880
|
+
# Corresponds to the JSON property `nodeId`
|
881
|
+
# @return [String]
|
882
|
+
attr_accessor :node_id
|
883
|
+
|
884
|
+
# Required. The parent resource name.
|
885
|
+
# Corresponds to the JSON property `parent`
|
886
|
+
# @return [String]
|
887
|
+
attr_accessor :parent
|
888
|
+
|
889
|
+
def initialize(**args)
|
890
|
+
update!(**args)
|
891
|
+
end
|
892
|
+
|
893
|
+
# Update properties of this object
|
894
|
+
def update!(**args)
|
895
|
+
@node = args[:node] if args.key?(:node)
|
896
|
+
@node_id = args[:node_id] if args.key?(:node_id)
|
897
|
+
@parent = args[:parent] if args.key?(:parent)
|
898
|
+
end
|
899
|
+
end
|
900
|
+
|
681
901
|
# This resource represents a long-running operation that is the result of a
|
682
902
|
# network API call.
|
683
903
|
class Operation
|
@@ -797,6 +1017,184 @@ module Google
|
|
797
1017
|
end
|
798
1018
|
end
|
799
1019
|
|
1020
|
+
# Further data for the provisioning state.
|
1021
|
+
class ProvisioningData
|
1022
|
+
include Google::Apis::Core::Hashable
|
1023
|
+
|
1024
|
+
def initialize(**args)
|
1025
|
+
update!(**args)
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
# Update properties of this object
|
1029
|
+
def update!(**args)
|
1030
|
+
end
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
# A QueuedResource represents a request for resources that will be placed in a
|
1034
|
+
# queue and fulfilled when the necessary resources are available.
|
1035
|
+
class QueuedResource
|
1036
|
+
include Google::Apis::Core::Hashable
|
1037
|
+
|
1038
|
+
# BestEffort tier definition.
|
1039
|
+
# Corresponds to the JSON property `bestEffort`
|
1040
|
+
# @return [Google::Apis::TpuV2alpha1::BestEffort]
|
1041
|
+
attr_accessor :best_effort
|
1042
|
+
|
1043
|
+
# Guaranteed tier definition.
|
1044
|
+
# Corresponds to the JSON property `guaranteed`
|
1045
|
+
# @return [Google::Apis::TpuV2alpha1::Guaranteed]
|
1046
|
+
attr_accessor :guaranteed
|
1047
|
+
|
1048
|
+
# Output only. Immutable. The name of the QueuedResource.
|
1049
|
+
# Corresponds to the JSON property `name`
|
1050
|
+
# @return [String]
|
1051
|
+
attr_accessor :name
|
1052
|
+
|
1053
|
+
# Defines the policy of the QueuedRequest.
|
1054
|
+
# Corresponds to the JSON property `queueingPolicy`
|
1055
|
+
# @return [Google::Apis::TpuV2alpha1::QueueingPolicy]
|
1056
|
+
attr_accessor :queueing_policy
|
1057
|
+
|
1058
|
+
# QueuedResourceState defines the details of the QueuedResource request.
|
1059
|
+
# Corresponds to the JSON property `state`
|
1060
|
+
# @return [Google::Apis::TpuV2alpha1::QueuedResourceState]
|
1061
|
+
attr_accessor :state
|
1062
|
+
|
1063
|
+
# Details of the TPU resource(s) being requested.
|
1064
|
+
# Corresponds to the JSON property `tpu`
|
1065
|
+
# @return [Google::Apis::TpuV2alpha1::Tpu]
|
1066
|
+
attr_accessor :tpu
|
1067
|
+
|
1068
|
+
def initialize(**args)
|
1069
|
+
update!(**args)
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
# Update properties of this object
|
1073
|
+
def update!(**args)
|
1074
|
+
@best_effort = args[:best_effort] if args.key?(:best_effort)
|
1075
|
+
@guaranteed = args[:guaranteed] if args.key?(:guaranteed)
|
1076
|
+
@name = args[:name] if args.key?(:name)
|
1077
|
+
@queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy)
|
1078
|
+
@state = args[:state] if args.key?(:state)
|
1079
|
+
@tpu = args[:tpu] if args.key?(:tpu)
|
1080
|
+
end
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
# QueuedResourceState defines the details of the QueuedResource request.
|
1084
|
+
class QueuedResourceState
|
1085
|
+
include Google::Apis::Core::Hashable
|
1086
|
+
|
1087
|
+
# Further data for the accepted state.
|
1088
|
+
# Corresponds to the JSON property `acceptedData`
|
1089
|
+
# @return [Google::Apis::TpuV2alpha1::AcceptedData]
|
1090
|
+
attr_accessor :accepted_data
|
1091
|
+
|
1092
|
+
# Further data for the active state.
|
1093
|
+
# Corresponds to the JSON property `activeData`
|
1094
|
+
# @return [Google::Apis::TpuV2alpha1::ActiveData]
|
1095
|
+
attr_accessor :active_data
|
1096
|
+
|
1097
|
+
# Further data for the creating state.
|
1098
|
+
# Corresponds to the JSON property `creatingData`
|
1099
|
+
# @return [Google::Apis::TpuV2alpha1::CreatingData]
|
1100
|
+
attr_accessor :creating_data
|
1101
|
+
|
1102
|
+
# Further data for the deleting state.
|
1103
|
+
# Corresponds to the JSON property `deletingData`
|
1104
|
+
# @return [Google::Apis::TpuV2alpha1::DeletingData]
|
1105
|
+
attr_accessor :deleting_data
|
1106
|
+
|
1107
|
+
# Further data for the failed state.
|
1108
|
+
# Corresponds to the JSON property `failedData`
|
1109
|
+
# @return [Google::Apis::TpuV2alpha1::FailedData]
|
1110
|
+
attr_accessor :failed_data
|
1111
|
+
|
1112
|
+
# Further data for the provisioning state.
|
1113
|
+
# Corresponds to the JSON property `provisioningData`
|
1114
|
+
# @return [Google::Apis::TpuV2alpha1::ProvisioningData]
|
1115
|
+
attr_accessor :provisioning_data
|
1116
|
+
|
1117
|
+
# State of the QueuedResource request.
|
1118
|
+
# Corresponds to the JSON property `state`
|
1119
|
+
# @return [String]
|
1120
|
+
attr_accessor :state
|
1121
|
+
|
1122
|
+
# Further data for the suspended state.
|
1123
|
+
# Corresponds to the JSON property `suspendedData`
|
1124
|
+
# @return [Google::Apis::TpuV2alpha1::SuspendedData]
|
1125
|
+
attr_accessor :suspended_data
|
1126
|
+
|
1127
|
+
# Further data for the suspending state.
|
1128
|
+
# Corresponds to the JSON property `suspendingData`
|
1129
|
+
# @return [Google::Apis::TpuV2alpha1::SuspendingData]
|
1130
|
+
attr_accessor :suspending_data
|
1131
|
+
|
1132
|
+
def initialize(**args)
|
1133
|
+
update!(**args)
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
# Update properties of this object
|
1137
|
+
def update!(**args)
|
1138
|
+
@accepted_data = args[:accepted_data] if args.key?(:accepted_data)
|
1139
|
+
@active_data = args[:active_data] if args.key?(:active_data)
|
1140
|
+
@creating_data = args[:creating_data] if args.key?(:creating_data)
|
1141
|
+
@deleting_data = args[:deleting_data] if args.key?(:deleting_data)
|
1142
|
+
@failed_data = args[:failed_data] if args.key?(:failed_data)
|
1143
|
+
@provisioning_data = args[:provisioning_data] if args.key?(:provisioning_data)
|
1144
|
+
@state = args[:state] if args.key?(:state)
|
1145
|
+
@suspended_data = args[:suspended_data] if args.key?(:suspended_data)
|
1146
|
+
@suspending_data = args[:suspending_data] if args.key?(:suspending_data)
|
1147
|
+
end
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# Defines the policy of the QueuedRequest.
|
1151
|
+
class QueueingPolicy
|
1152
|
+
include Google::Apis::Core::Hashable
|
1153
|
+
|
1154
|
+
# A relative time after which resources may be created.
|
1155
|
+
# Corresponds to the JSON property `validAfterDuration`
|
1156
|
+
# @return [String]
|
1157
|
+
attr_accessor :valid_after_duration
|
1158
|
+
|
1159
|
+
# An absolute time at which resources may be created.
|
1160
|
+
# Corresponds to the JSON property `validAfterTime`
|
1161
|
+
# @return [String]
|
1162
|
+
attr_accessor :valid_after_time
|
1163
|
+
|
1164
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
1165
|
+
# Timestamp end (exclusive). The start must be less than or equal to the end.
|
1166
|
+
# When the start equals the end, the interval is empty (matches no time). When
|
1167
|
+
# both start and end are unspecified, the interval matches any time.
|
1168
|
+
# Corresponds to the JSON property `validInterval`
|
1169
|
+
# @return [Google::Apis::TpuV2alpha1::Interval]
|
1170
|
+
attr_accessor :valid_interval
|
1171
|
+
|
1172
|
+
# A relative time after which resources should not be created. If the request
|
1173
|
+
# cannot be fulfilled by this time the request will be failed.
|
1174
|
+
# Corresponds to the JSON property `validUntilDuration`
|
1175
|
+
# @return [String]
|
1176
|
+
attr_accessor :valid_until_duration
|
1177
|
+
|
1178
|
+
# An absolute time after which resources should not be created. If the request
|
1179
|
+
# cannot be fulfilled by this time the request will be failed.
|
1180
|
+
# Corresponds to the JSON property `validUntilTime`
|
1181
|
+
# @return [String]
|
1182
|
+
attr_accessor :valid_until_time
|
1183
|
+
|
1184
|
+
def initialize(**args)
|
1185
|
+
update!(**args)
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
# Update properties of this object
|
1189
|
+
def update!(**args)
|
1190
|
+
@valid_after_duration = args[:valid_after_duration] if args.key?(:valid_after_duration)
|
1191
|
+
@valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time)
|
1192
|
+
@valid_interval = args[:valid_interval] if args.key?(:valid_interval)
|
1193
|
+
@valid_until_duration = args[:valid_until_duration] if args.key?(:valid_until_duration)
|
1194
|
+
@valid_until_time = args[:valid_until_time] if args.key?(:valid_until_time)
|
1195
|
+
end
|
1196
|
+
end
|
1197
|
+
|
800
1198
|
# A runtime version that a Node can be configured with.
|
801
1199
|
class RuntimeVersion
|
802
1200
|
include Google::Apis::Core::Hashable
|
@@ -1002,6 +1400,32 @@ module Google
|
|
1002
1400
|
end
|
1003
1401
|
end
|
1004
1402
|
|
1403
|
+
# Further data for the suspended state.
|
1404
|
+
class SuspendedData
|
1405
|
+
include Google::Apis::Core::Hashable
|
1406
|
+
|
1407
|
+
def initialize(**args)
|
1408
|
+
update!(**args)
|
1409
|
+
end
|
1410
|
+
|
1411
|
+
# Update properties of this object
|
1412
|
+
def update!(**args)
|
1413
|
+
end
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
# Further data for the suspending state.
|
1417
|
+
class SuspendingData
|
1418
|
+
include Google::Apis::Core::Hashable
|
1419
|
+
|
1420
|
+
def initialize(**args)
|
1421
|
+
update!(**args)
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
# Update properties of this object
|
1425
|
+
def update!(**args)
|
1426
|
+
end
|
1427
|
+
end
|
1428
|
+
|
1005
1429
|
# A Symptom instance.
|
1006
1430
|
class Symptom
|
1007
1431
|
include Google::Apis::Core::Hashable
|
@@ -1038,6 +1462,25 @@ module Google
|
|
1038
1462
|
@worker_id = args[:worker_id] if args.key?(:worker_id)
|
1039
1463
|
end
|
1040
1464
|
end
|
1465
|
+
|
1466
|
+
# Details of the TPU resource(s) being requested.
|
1467
|
+
class Tpu
|
1468
|
+
include Google::Apis::Core::Hashable
|
1469
|
+
|
1470
|
+
# The TPU node(s) being requested.
|
1471
|
+
# Corresponds to the JSON property `nodeSpec`
|
1472
|
+
# @return [Array<Google::Apis::TpuV2alpha1::NodeSpec>]
|
1473
|
+
attr_accessor :node_spec
|
1474
|
+
|
1475
|
+
def initialize(**args)
|
1476
|
+
update!(**args)
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
# Update properties of this object
|
1480
|
+
def update!(**args)
|
1481
|
+
@node_spec = args[:node_spec] if args.key?(:node_spec)
|
1482
|
+
end
|
1483
|
+
end
|
1041
1484
|
end
|
1042
1485
|
end
|
1043
1486
|
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.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221107"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,24 +28,60 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class AcceptedData
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
31
37
|
class AccessConfig
|
32
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
39
|
|
34
40
|
include Google::Apis::Core::JsonObjectSupport
|
35
41
|
end
|
36
42
|
|
43
|
+
class ActiveData
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
37
49
|
class AttachedDisk
|
38
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
51
|
|
40
52
|
include Google::Apis::Core::JsonObjectSupport
|
41
53
|
end
|
42
54
|
|
55
|
+
class BestEffort
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
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
|
+
|
43
73
|
class Empty
|
44
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
75
|
|
46
76
|
include Google::Apis::Core::JsonObjectSupport
|
47
77
|
end
|
48
78
|
|
79
|
+
class FailedData
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
49
85
|
class GenerateServiceIdentityRequest
|
50
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
87
|
|
@@ -70,6 +106,12 @@ module Google
|
|
70
106
|
include Google::Apis::Core::JsonObjectSupport
|
71
107
|
end
|
72
108
|
|
109
|
+
class Guaranteed
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
73
115
|
class GuestAttributes
|
74
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
117
|
|
@@ -88,6 +130,12 @@ module Google
|
|
88
130
|
include Google::Apis::Core::JsonObjectSupport
|
89
131
|
end
|
90
132
|
|
133
|
+
class Interval
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
91
139
|
class ListAcceleratorTypesResponse
|
92
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
141
|
|
@@ -112,6 +160,12 @@ module Google
|
|
112
160
|
include Google::Apis::Core::JsonObjectSupport
|
113
161
|
end
|
114
162
|
|
163
|
+
class ListQueuedResourcesResponse
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
115
169
|
class ListRuntimeVersionsResponse
|
116
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
171
|
|
@@ -142,6 +196,12 @@ module Google
|
|
142
196
|
include Google::Apis::Core::JsonObjectSupport
|
143
197
|
end
|
144
198
|
|
199
|
+
class NodeSpec
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
145
205
|
class Operation
|
146
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
207
|
|
@@ -154,6 +214,30 @@ module Google
|
|
154
214
|
include Google::Apis::Core::JsonObjectSupport
|
155
215
|
end
|
156
216
|
|
217
|
+
class ProvisioningData
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class QueuedResource
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
229
|
+
class QueuedResourceState
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class QueueingPolicy
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
157
241
|
class RuntimeVersion
|
158
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
243
|
|
@@ -208,12 +292,30 @@ module Google
|
|
208
292
|
include Google::Apis::Core::JsonObjectSupport
|
209
293
|
end
|
210
294
|
|
295
|
+
class SuspendedData
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
301
|
+
class SuspendingData
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
|
+
|
304
|
+
include Google::Apis::Core::JsonObjectSupport
|
305
|
+
end
|
306
|
+
|
211
307
|
class Symptom
|
212
308
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
309
|
|
214
310
|
include Google::Apis::Core::JsonObjectSupport
|
215
311
|
end
|
216
312
|
|
313
|
+
class Tpu
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
217
319
|
class AcceleratorType
|
218
320
|
# @private
|
219
321
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -222,6 +324,12 @@ module Google
|
|
222
324
|
end
|
223
325
|
end
|
224
326
|
|
327
|
+
class AcceptedData
|
328
|
+
# @private
|
329
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
225
333
|
class AccessConfig
|
226
334
|
# @private
|
227
335
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -229,6 +337,12 @@ module Google
|
|
229
337
|
end
|
230
338
|
end
|
231
339
|
|
340
|
+
class ActiveData
|
341
|
+
# @private
|
342
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
232
346
|
class AttachedDisk
|
233
347
|
# @private
|
234
348
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -237,12 +351,38 @@ module Google
|
|
237
351
|
end
|
238
352
|
end
|
239
353
|
|
354
|
+
class BestEffort
|
355
|
+
# @private
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
360
|
+
class CreatingData
|
361
|
+
# @private
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
class DeletingData
|
367
|
+
# @private
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
240
372
|
class Empty
|
241
373
|
# @private
|
242
374
|
class Representation < Google::Apis::Core::JsonRepresentation
|
243
375
|
end
|
244
376
|
end
|
245
377
|
|
378
|
+
class FailedData
|
379
|
+
# @private
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
381
|
+
property :error, as: 'error', class: Google::Apis::TpuV2alpha1::Status, decorator: Google::Apis::TpuV2alpha1::Status::Representation
|
382
|
+
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
246
386
|
class GenerateServiceIdentityRequest
|
247
387
|
# @private
|
248
388
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -273,6 +413,14 @@ module Google
|
|
273
413
|
end
|
274
414
|
end
|
275
415
|
|
416
|
+
class Guaranteed
|
417
|
+
# @private
|
418
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
419
|
+
property :min_duration, as: 'minDuration'
|
420
|
+
property :reserved, as: 'reserved'
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
276
424
|
class GuestAttributes
|
277
425
|
# @private
|
278
426
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -299,6 +447,14 @@ module Google
|
|
299
447
|
end
|
300
448
|
end
|
301
449
|
|
450
|
+
class Interval
|
451
|
+
# @private
|
452
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
453
|
+
property :end_time, as: 'endTime'
|
454
|
+
property :start_time, as: 'startTime'
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
302
458
|
class ListAcceleratorTypesResponse
|
303
459
|
# @private
|
304
460
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -337,6 +493,16 @@ module Google
|
|
337
493
|
end
|
338
494
|
end
|
339
495
|
|
496
|
+
class ListQueuedResourcesResponse
|
497
|
+
# @private
|
498
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
499
|
+
property :next_page_token, as: 'nextPageToken'
|
500
|
+
collection :queued_resources, as: 'queuedResources', class: Google::Apis::TpuV2alpha1::QueuedResource, decorator: Google::Apis::TpuV2alpha1::QueuedResource::Representation
|
501
|
+
|
502
|
+
collection :unreachable, as: 'unreachable'
|
503
|
+
end
|
504
|
+
end
|
505
|
+
|
340
506
|
class ListRuntimeVersionsResponse
|
341
507
|
# @private
|
342
508
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -398,6 +564,7 @@ module Google
|
|
398
564
|
|
399
565
|
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV2alpha1::NetworkEndpoint, decorator: Google::Apis::TpuV2alpha1::NetworkEndpoint::Representation
|
400
566
|
|
567
|
+
property :queued_resource, as: 'queuedResource'
|
401
568
|
property :runtime_version, as: 'runtimeVersion'
|
402
569
|
property :scheduling_config, as: 'schedulingConfig', class: Google::Apis::TpuV2alpha1::SchedulingConfig, decorator: Google::Apis::TpuV2alpha1::SchedulingConfig::Representation
|
403
570
|
|
@@ -412,6 +579,16 @@ module Google
|
|
412
579
|
end
|
413
580
|
end
|
414
581
|
|
582
|
+
class NodeSpec
|
583
|
+
# @private
|
584
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
585
|
+
property :node, as: 'node', class: Google::Apis::TpuV2alpha1::Node, decorator: Google::Apis::TpuV2alpha1::Node::Representation
|
586
|
+
|
587
|
+
property :node_id, as: 'nodeId'
|
588
|
+
property :parent, as: 'parent'
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
415
592
|
class Operation
|
416
593
|
# @private
|
417
594
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -437,6 +614,64 @@ module Google
|
|
437
614
|
end
|
438
615
|
end
|
439
616
|
|
617
|
+
class ProvisioningData
|
618
|
+
# @private
|
619
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
620
|
+
end
|
621
|
+
end
|
622
|
+
|
623
|
+
class QueuedResource
|
624
|
+
# @private
|
625
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
626
|
+
property :best_effort, as: 'bestEffort', class: Google::Apis::TpuV2alpha1::BestEffort, decorator: Google::Apis::TpuV2alpha1::BestEffort::Representation
|
627
|
+
|
628
|
+
property :guaranteed, as: 'guaranteed', class: Google::Apis::TpuV2alpha1::Guaranteed, decorator: Google::Apis::TpuV2alpha1::Guaranteed::Representation
|
629
|
+
|
630
|
+
property :name, as: 'name'
|
631
|
+
property :queueing_policy, as: 'queueingPolicy', class: Google::Apis::TpuV2alpha1::QueueingPolicy, decorator: Google::Apis::TpuV2alpha1::QueueingPolicy::Representation
|
632
|
+
|
633
|
+
property :state, as: 'state', class: Google::Apis::TpuV2alpha1::QueuedResourceState, decorator: Google::Apis::TpuV2alpha1::QueuedResourceState::Representation
|
634
|
+
|
635
|
+
property :tpu, as: 'tpu', class: Google::Apis::TpuV2alpha1::Tpu, decorator: Google::Apis::TpuV2alpha1::Tpu::Representation
|
636
|
+
|
637
|
+
end
|
638
|
+
end
|
639
|
+
|
640
|
+
class QueuedResourceState
|
641
|
+
# @private
|
642
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
643
|
+
property :accepted_data, as: 'acceptedData', class: Google::Apis::TpuV2alpha1::AcceptedData, decorator: Google::Apis::TpuV2alpha1::AcceptedData::Representation
|
644
|
+
|
645
|
+
property :active_data, as: 'activeData', class: Google::Apis::TpuV2alpha1::ActiveData, decorator: Google::Apis::TpuV2alpha1::ActiveData::Representation
|
646
|
+
|
647
|
+
property :creating_data, as: 'creatingData', class: Google::Apis::TpuV2alpha1::CreatingData, decorator: Google::Apis::TpuV2alpha1::CreatingData::Representation
|
648
|
+
|
649
|
+
property :deleting_data, as: 'deletingData', class: Google::Apis::TpuV2alpha1::DeletingData, decorator: Google::Apis::TpuV2alpha1::DeletingData::Representation
|
650
|
+
|
651
|
+
property :failed_data, as: 'failedData', class: Google::Apis::TpuV2alpha1::FailedData, decorator: Google::Apis::TpuV2alpha1::FailedData::Representation
|
652
|
+
|
653
|
+
property :provisioning_data, as: 'provisioningData', class: Google::Apis::TpuV2alpha1::ProvisioningData, decorator: Google::Apis::TpuV2alpha1::ProvisioningData::Representation
|
654
|
+
|
655
|
+
property :state, as: 'state'
|
656
|
+
property :suspended_data, as: 'suspendedData', class: Google::Apis::TpuV2alpha1::SuspendedData, decorator: Google::Apis::TpuV2alpha1::SuspendedData::Representation
|
657
|
+
|
658
|
+
property :suspending_data, as: 'suspendingData', class: Google::Apis::TpuV2alpha1::SuspendingData, decorator: Google::Apis::TpuV2alpha1::SuspendingData::Representation
|
659
|
+
|
660
|
+
end
|
661
|
+
end
|
662
|
+
|
663
|
+
class QueueingPolicy
|
664
|
+
# @private
|
665
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
666
|
+
property :valid_after_duration, as: 'validAfterDuration'
|
667
|
+
property :valid_after_time, as: 'validAfterTime'
|
668
|
+
property :valid_interval, as: 'validInterval', class: Google::Apis::TpuV2alpha1::Interval, decorator: Google::Apis::TpuV2alpha1::Interval::Representation
|
669
|
+
|
670
|
+
property :valid_until_duration, as: 'validUntilDuration'
|
671
|
+
property :valid_until_time, as: 'validUntilTime'
|
672
|
+
end
|
673
|
+
end
|
674
|
+
|
440
675
|
class RuntimeVersion
|
441
676
|
# @private
|
442
677
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -503,6 +738,18 @@ module Google
|
|
503
738
|
end
|
504
739
|
end
|
505
740
|
|
741
|
+
class SuspendedData
|
742
|
+
# @private
|
743
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
744
|
+
end
|
745
|
+
end
|
746
|
+
|
747
|
+
class SuspendingData
|
748
|
+
# @private
|
749
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
750
|
+
end
|
751
|
+
end
|
752
|
+
|
506
753
|
class Symptom
|
507
754
|
# @private
|
508
755
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -512,6 +759,14 @@ module Google
|
|
512
759
|
property :worker_id, as: 'workerId'
|
513
760
|
end
|
514
761
|
end
|
762
|
+
|
763
|
+
class Tpu
|
764
|
+
# @private
|
765
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
766
|
+
collection :node_spec, as: 'nodeSpec', class: Google::Apis::TpuV2alpha1::NodeSpec, decorator: Google::Apis::TpuV2alpha1::NodeSpec::Representation
|
767
|
+
|
768
|
+
end
|
769
|
+
end
|
515
770
|
end
|
516
771
|
end
|
517
772
|
end
|
@@ -681,6 +681,145 @@ module Google
|
|
681
681
|
execute_or_queue_command(command, &block)
|
682
682
|
end
|
683
683
|
|
684
|
+
# Creates a QueuedResource TPU instance.
|
685
|
+
# @param [String] parent
|
686
|
+
# Required. The parent resource name.
|
687
|
+
# @param [Google::Apis::TpuV2alpha1::QueuedResource] queued_resource_object
|
688
|
+
# @param [String] queued_resource_id
|
689
|
+
# The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex
|
690
|
+
# format.
|
691
|
+
# @param [String] request_id
|
692
|
+
# Idempotent request UUID.
|
693
|
+
# @param [String] fields
|
694
|
+
# Selector specifying which fields to include in a partial response.
|
695
|
+
# @param [String] quota_user
|
696
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
697
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
698
|
+
# @param [Google::Apis::RequestOptions] options
|
699
|
+
# Request-specific options
|
700
|
+
#
|
701
|
+
# @yield [result, err] Result & error if block supplied
|
702
|
+
# @yieldparam result [Google::Apis::TpuV2alpha1::Operation] parsed result object
|
703
|
+
# @yieldparam err [StandardError] error object if request failed
|
704
|
+
#
|
705
|
+
# @return [Google::Apis::TpuV2alpha1::Operation]
|
706
|
+
#
|
707
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
708
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
709
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
710
|
+
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)
|
711
|
+
command = make_simple_command(:post, 'v2alpha1/{+parent}/queuedResources', options)
|
712
|
+
command.request_representation = Google::Apis::TpuV2alpha1::QueuedResource::Representation
|
713
|
+
command.request_object = queued_resource_object
|
714
|
+
command.response_representation = Google::Apis::TpuV2alpha1::Operation::Representation
|
715
|
+
command.response_class = Google::Apis::TpuV2alpha1::Operation
|
716
|
+
command.params['parent'] = parent unless parent.nil?
|
717
|
+
command.query['queuedResourceId'] = queued_resource_id unless queued_resource_id.nil?
|
718
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
719
|
+
command.query['fields'] = fields unless fields.nil?
|
720
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
721
|
+
execute_or_queue_command(command, &block)
|
722
|
+
end
|
723
|
+
|
724
|
+
# Deletes a QueuedResource TPU instance.
|
725
|
+
# @param [String] name
|
726
|
+
# Required. The resource name.
|
727
|
+
# @param [String] request_id
|
728
|
+
# Idempotent request UUID.
|
729
|
+
# @param [String] fields
|
730
|
+
# Selector specifying which fields to include in a partial response.
|
731
|
+
# @param [String] quota_user
|
732
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
733
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
734
|
+
# @param [Google::Apis::RequestOptions] options
|
735
|
+
# Request-specific options
|
736
|
+
#
|
737
|
+
# @yield [result, err] Result & error if block supplied
|
738
|
+
# @yieldparam result [Google::Apis::TpuV2alpha1::Operation] parsed result object
|
739
|
+
# @yieldparam err [StandardError] error object if request failed
|
740
|
+
#
|
741
|
+
# @return [Google::Apis::TpuV2alpha1::Operation]
|
742
|
+
#
|
743
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
744
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
745
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
746
|
+
def delete_project_location_queued_resource(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
747
|
+
command = make_simple_command(:delete, 'v2alpha1/{+name}', options)
|
748
|
+
command.response_representation = Google::Apis::TpuV2alpha1::Operation::Representation
|
749
|
+
command.response_class = Google::Apis::TpuV2alpha1::Operation
|
750
|
+
command.params['name'] = name unless name.nil?
|
751
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
752
|
+
command.query['fields'] = fields unless fields.nil?
|
753
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
754
|
+
execute_or_queue_command(command, &block)
|
755
|
+
end
|
756
|
+
|
757
|
+
# Gets details of a queued resource.
|
758
|
+
# @param [String] name
|
759
|
+
# Required. The resource name.
|
760
|
+
# @param [String] fields
|
761
|
+
# Selector specifying which fields to include in a partial response.
|
762
|
+
# @param [String] quota_user
|
763
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
764
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
765
|
+
# @param [Google::Apis::RequestOptions] options
|
766
|
+
# Request-specific options
|
767
|
+
#
|
768
|
+
# @yield [result, err] Result & error if block supplied
|
769
|
+
# @yieldparam result [Google::Apis::TpuV2alpha1::QueuedResource] parsed result object
|
770
|
+
# @yieldparam err [StandardError] error object if request failed
|
771
|
+
#
|
772
|
+
# @return [Google::Apis::TpuV2alpha1::QueuedResource]
|
773
|
+
#
|
774
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
775
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
776
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
777
|
+
def get_project_location_queued_resource(name, fields: nil, quota_user: nil, options: nil, &block)
|
778
|
+
command = make_simple_command(:get, 'v2alpha1/{+name}', options)
|
779
|
+
command.response_representation = Google::Apis::TpuV2alpha1::QueuedResource::Representation
|
780
|
+
command.response_class = Google::Apis::TpuV2alpha1::QueuedResource
|
781
|
+
command.params['name'] = name unless name.nil?
|
782
|
+
command.query['fields'] = fields unless fields.nil?
|
783
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
784
|
+
execute_or_queue_command(command, &block)
|
785
|
+
end
|
786
|
+
|
787
|
+
# Lists queued resources.
|
788
|
+
# @param [String] parent
|
789
|
+
# Required. The parent resource name.
|
790
|
+
# @param [Fixnum] page_size
|
791
|
+
# The maximum number of items to return.
|
792
|
+
# @param [String] page_token
|
793
|
+
# The next_page_token value returned from a previous List request, if any.
|
794
|
+
# @param [String] fields
|
795
|
+
# Selector specifying which fields to include in a partial response.
|
796
|
+
# @param [String] quota_user
|
797
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
798
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
799
|
+
# @param [Google::Apis::RequestOptions] options
|
800
|
+
# Request-specific options
|
801
|
+
#
|
802
|
+
# @yield [result, err] Result & error if block supplied
|
803
|
+
# @yieldparam result [Google::Apis::TpuV2alpha1::ListQueuedResourcesResponse] parsed result object
|
804
|
+
# @yieldparam err [StandardError] error object if request failed
|
805
|
+
#
|
806
|
+
# @return [Google::Apis::TpuV2alpha1::ListQueuedResourcesResponse]
|
807
|
+
#
|
808
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
809
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
810
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
811
|
+
def list_project_location_queued_resources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
812
|
+
command = make_simple_command(:get, 'v2alpha1/{+parent}/queuedResources', options)
|
813
|
+
command.response_representation = Google::Apis::TpuV2alpha1::ListQueuedResourcesResponse::Representation
|
814
|
+
command.response_class = Google::Apis::TpuV2alpha1::ListQueuedResourcesResponse
|
815
|
+
command.params['parent'] = parent unless parent.nil?
|
816
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
817
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
818
|
+
command.query['fields'] = fields unless fields.nil?
|
819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
820
|
+
execute_or_queue_command(command, &block)
|
821
|
+
end
|
822
|
+
|
684
823
|
# Gets a runtime version.
|
685
824
|
# @param [String] name
|
686
825
|
# 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.12.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: 2022-
|
11
|
+
date: 2022-12-12 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.12.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: []
|