google-apis-tpu_v2alpha1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module TpuV2alpha1
18
+ # Version of the google-apis-tpu_v2alpha1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.4.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20211021"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,488 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module TpuV2alpha1
24
+
25
+ class AcceleratorType
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AccessConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AttachedDisk
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Empty
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GenerateServiceIdentityRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GenerateServiceIdentityResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GetGuestAttributesRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GetGuestAttributesResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GuestAttributes
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GuestAttributesEntry
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GuestAttributesValue
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListAcceleratorTypesResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListLocationsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListNodesResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListOperationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListRuntimeVersionsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Location
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class NetworkConfig
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class NetworkEndpoint
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Node
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Operation
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class OperationMetadata
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class RuntimeVersion
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class SchedulingConfig
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ServiceAccount
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ServiceIdentity
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class StartNodeRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Status
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class StopNodeRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class Symptom
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class AcceleratorType
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :name, as: 'name'
209
+ property :type, as: 'type'
210
+ end
211
+ end
212
+
213
+ class AccessConfig
214
+ # @private
215
+ class Representation < Google::Apis::Core::JsonRepresentation
216
+ property :external_ip, as: 'externalIp'
217
+ end
218
+ end
219
+
220
+ class AttachedDisk
221
+ # @private
222
+ class Representation < Google::Apis::Core::JsonRepresentation
223
+ property :mode, as: 'mode'
224
+ property :source_disk, as: 'sourceDisk'
225
+ end
226
+ end
227
+
228
+ class Empty
229
+ # @private
230
+ class Representation < Google::Apis::Core::JsonRepresentation
231
+ end
232
+ end
233
+
234
+ class GenerateServiceIdentityRequest
235
+ # @private
236
+ class Representation < Google::Apis::Core::JsonRepresentation
237
+ end
238
+ end
239
+
240
+ class GenerateServiceIdentityResponse
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ property :identity, as: 'identity', class: Google::Apis::TpuV2alpha1::ServiceIdentity, decorator: Google::Apis::TpuV2alpha1::ServiceIdentity::Representation
244
+
245
+ end
246
+ end
247
+
248
+ class GetGuestAttributesRequest
249
+ # @private
250
+ class Representation < Google::Apis::Core::JsonRepresentation
251
+ property :query_path, as: 'queryPath'
252
+ collection :worker_ids, as: 'workerIds'
253
+ end
254
+ end
255
+
256
+ class GetGuestAttributesResponse
257
+ # @private
258
+ class Representation < Google::Apis::Core::JsonRepresentation
259
+ collection :guest_attributes, as: 'guestAttributes', class: Google::Apis::TpuV2alpha1::GuestAttributes, decorator: Google::Apis::TpuV2alpha1::GuestAttributes::Representation
260
+
261
+ end
262
+ end
263
+
264
+ class GuestAttributes
265
+ # @private
266
+ class Representation < Google::Apis::Core::JsonRepresentation
267
+ property :query_path, as: 'queryPath'
268
+ property :query_value, as: 'queryValue', class: Google::Apis::TpuV2alpha1::GuestAttributesValue, decorator: Google::Apis::TpuV2alpha1::GuestAttributesValue::Representation
269
+
270
+ end
271
+ end
272
+
273
+ class GuestAttributesEntry
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :key, as: 'key'
277
+ property :namespace, as: 'namespace'
278
+ property :value, as: 'value'
279
+ end
280
+ end
281
+
282
+ class GuestAttributesValue
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ collection :items, as: 'items', class: Google::Apis::TpuV2alpha1::GuestAttributesEntry, decorator: Google::Apis::TpuV2alpha1::GuestAttributesEntry::Representation
286
+
287
+ end
288
+ end
289
+
290
+ class ListAcceleratorTypesResponse
291
+ # @private
292
+ class Representation < Google::Apis::Core::JsonRepresentation
293
+ collection :accelerator_types, as: 'acceleratorTypes', class: Google::Apis::TpuV2alpha1::AcceleratorType, decorator: Google::Apis::TpuV2alpha1::AcceleratorType::Representation
294
+
295
+ property :next_page_token, as: 'nextPageToken'
296
+ collection :unreachable, as: 'unreachable'
297
+ end
298
+ end
299
+
300
+ class ListLocationsResponse
301
+ # @private
302
+ class Representation < Google::Apis::Core::JsonRepresentation
303
+ collection :locations, as: 'locations', class: Google::Apis::TpuV2alpha1::Location, decorator: Google::Apis::TpuV2alpha1::Location::Representation
304
+
305
+ property :next_page_token, as: 'nextPageToken'
306
+ end
307
+ end
308
+
309
+ class ListNodesResponse
310
+ # @private
311
+ class Representation < Google::Apis::Core::JsonRepresentation
312
+ property :next_page_token, as: 'nextPageToken'
313
+ collection :nodes, as: 'nodes', class: Google::Apis::TpuV2alpha1::Node, decorator: Google::Apis::TpuV2alpha1::Node::Representation
314
+
315
+ collection :unreachable, as: 'unreachable'
316
+ end
317
+ end
318
+
319
+ class ListOperationsResponse
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :next_page_token, as: 'nextPageToken'
323
+ collection :operations, as: 'operations', class: Google::Apis::TpuV2alpha1::Operation, decorator: Google::Apis::TpuV2alpha1::Operation::Representation
324
+
325
+ end
326
+ end
327
+
328
+ class ListRuntimeVersionsResponse
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ property :next_page_token, as: 'nextPageToken'
332
+ collection :runtime_versions, as: 'runtimeVersions', class: Google::Apis::TpuV2alpha1::RuntimeVersion, decorator: Google::Apis::TpuV2alpha1::RuntimeVersion::Representation
333
+
334
+ collection :unreachable, as: 'unreachable'
335
+ end
336
+ end
337
+
338
+ class Location
339
+ # @private
340
+ class Representation < Google::Apis::Core::JsonRepresentation
341
+ property :display_name, as: 'displayName'
342
+ hash :labels, as: 'labels'
343
+ property :location_id, as: 'locationId'
344
+ hash :metadata, as: 'metadata'
345
+ property :name, as: 'name'
346
+ end
347
+ end
348
+
349
+ class NetworkConfig
350
+ # @private
351
+ class Representation < Google::Apis::Core::JsonRepresentation
352
+ property :enable_external_ips, as: 'enableExternalIps'
353
+ property :network, as: 'network'
354
+ property :subnetwork, as: 'subnetwork'
355
+ end
356
+ end
357
+
358
+ class NetworkEndpoint
359
+ # @private
360
+ class Representation < Google::Apis::Core::JsonRepresentation
361
+ property :access_config, as: 'accessConfig', class: Google::Apis::TpuV2alpha1::AccessConfig, decorator: Google::Apis::TpuV2alpha1::AccessConfig::Representation
362
+
363
+ property :ip_address, as: 'ipAddress'
364
+ property :port, as: 'port'
365
+ end
366
+ end
367
+
368
+ class Node
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ property :accelerator_type, as: 'acceleratorType'
372
+ property :api_version, as: 'apiVersion'
373
+ property :cidr_block, as: 'cidrBlock'
374
+ property :create_time, as: 'createTime'
375
+ collection :data_disks, as: 'dataDisks', class: Google::Apis::TpuV2alpha1::AttachedDisk, decorator: Google::Apis::TpuV2alpha1::AttachedDisk::Representation
376
+
377
+ property :description, as: 'description'
378
+ property :health, as: 'health'
379
+ property :health_description, as: 'healthDescription'
380
+ property :id, :numeric_string => true, as: 'id'
381
+ hash :labels, as: 'labels'
382
+ hash :metadata, as: 'metadata'
383
+ property :name, as: 'name'
384
+ property :network_config, as: 'networkConfig', class: Google::Apis::TpuV2alpha1::NetworkConfig, decorator: Google::Apis::TpuV2alpha1::NetworkConfig::Representation
385
+
386
+ collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV2alpha1::NetworkEndpoint, decorator: Google::Apis::TpuV2alpha1::NetworkEndpoint::Representation
387
+
388
+ property :runtime_version, as: 'runtimeVersion'
389
+ property :scheduling_config, as: 'schedulingConfig', class: Google::Apis::TpuV2alpha1::SchedulingConfig, decorator: Google::Apis::TpuV2alpha1::SchedulingConfig::Representation
390
+
391
+ property :service_account, as: 'serviceAccount', class: Google::Apis::TpuV2alpha1::ServiceAccount, decorator: Google::Apis::TpuV2alpha1::ServiceAccount::Representation
392
+
393
+ property :state, as: 'state'
394
+ collection :symptoms, as: 'symptoms', class: Google::Apis::TpuV2alpha1::Symptom, decorator: Google::Apis::TpuV2alpha1::Symptom::Representation
395
+
396
+ collection :tags, as: 'tags'
397
+ end
398
+ end
399
+
400
+ class Operation
401
+ # @private
402
+ class Representation < Google::Apis::Core::JsonRepresentation
403
+ property :done, as: 'done'
404
+ property :error, as: 'error', class: Google::Apis::TpuV2alpha1::Status, decorator: Google::Apis::TpuV2alpha1::Status::Representation
405
+
406
+ hash :metadata, as: 'metadata'
407
+ property :name, as: 'name'
408
+ hash :response, as: 'response'
409
+ end
410
+ end
411
+
412
+ class OperationMetadata
413
+ # @private
414
+ class Representation < Google::Apis::Core::JsonRepresentation
415
+ property :api_version, as: 'apiVersion'
416
+ property :cancel_requested, as: 'cancelRequested'
417
+ property :create_time, as: 'createTime'
418
+ property :end_time, as: 'endTime'
419
+ property :status_detail, as: 'statusDetail'
420
+ property :target, as: 'target'
421
+ property :verb, as: 'verb'
422
+ end
423
+ end
424
+
425
+ class RuntimeVersion
426
+ # @private
427
+ class Representation < Google::Apis::Core::JsonRepresentation
428
+ property :name, as: 'name'
429
+ property :version, as: 'version'
430
+ end
431
+ end
432
+
433
+ class SchedulingConfig
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :preemptible, as: 'preemptible'
437
+ property :reserved, as: 'reserved'
438
+ end
439
+ end
440
+
441
+ class ServiceAccount
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ property :email, as: 'email'
445
+ collection :scope, as: 'scope'
446
+ end
447
+ end
448
+
449
+ class ServiceIdentity
450
+ # @private
451
+ class Representation < Google::Apis::Core::JsonRepresentation
452
+ property :email, as: 'email'
453
+ end
454
+ end
455
+
456
+ class StartNodeRequest
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ end
460
+ end
461
+
462
+ class Status
463
+ # @private
464
+ class Representation < Google::Apis::Core::JsonRepresentation
465
+ property :code, as: 'code'
466
+ collection :details, as: 'details'
467
+ property :message, as: 'message'
468
+ end
469
+ end
470
+
471
+ class StopNodeRequest
472
+ # @private
473
+ class Representation < Google::Apis::Core::JsonRepresentation
474
+ end
475
+ end
476
+
477
+ class Symptom
478
+ # @private
479
+ class Representation < Google::Apis::Core::JsonRepresentation
480
+ property :create_time, as: 'createTime'
481
+ property :details, as: 'details'
482
+ property :symptom_type, as: 'symptomType'
483
+ property :worker_id, as: 'workerId'
484
+ end
485
+ end
486
+ end
487
+ end
488
+ end