@googleapis/tpu 2.7.0 → 3.0.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.
- package/CHANGELOG.md +11 -0
- package/build/v2.d.ts +380 -0
- package/build/v2.js +164 -0
- package/build/v2.js.map +1 -1
- package/build/v2alpha1.d.ts +1 -1
- package/package.json +1 -1
- package/v2.ts +750 -0
- package/v2alpha1.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/tpu-v2.7.0...tpu-v3.0.0) (2024-03-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* This release has breaking changes.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* run the generator ([#3434](https://github.com/googleapis/google-api-nodejs-client/issues/3434)) ([f0db524](https://github.com/googleapis/google-api-nodejs-client/commit/f0db524bb26f05cea3dec4c0ed66b496399e3857))
|
|
13
|
+
|
|
3
14
|
## [2.7.0](https://github.com/googleapis/google-api-nodejs-client/compare/tpu-v2.6.0...tpu-v2.7.0) (2024-02-07)
|
|
4
15
|
|
|
5
16
|
|
package/build/v2.d.ts
CHANGED
|
@@ -101,6 +101,11 @@ export declare namespace tpu_v2 {
|
|
|
101
101
|
*/
|
|
102
102
|
type?: string | null;
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Further data for the accepted state.
|
|
106
|
+
*/
|
|
107
|
+
export interface Schema$AcceptedData {
|
|
108
|
+
}
|
|
104
109
|
/**
|
|
105
110
|
* An access config attached to the TPU worker.
|
|
106
111
|
*/
|
|
@@ -110,6 +115,11 @@ export declare namespace tpu_v2 {
|
|
|
110
115
|
*/
|
|
111
116
|
externalIp?: string | null;
|
|
112
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Further data for the active state.
|
|
120
|
+
*/
|
|
121
|
+
export interface Schema$ActiveData {
|
|
122
|
+
}
|
|
113
123
|
/**
|
|
114
124
|
* A node-attached disk resource. Next ID: 8;
|
|
115
125
|
*/
|
|
@@ -123,11 +133,30 @@ export declare namespace tpu_v2 {
|
|
|
123
133
|
*/
|
|
124
134
|
sourceDisk?: string | null;
|
|
125
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Further data for the creating state.
|
|
138
|
+
*/
|
|
139
|
+
export interface Schema$CreatingData {
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Further data for the deleting state.
|
|
143
|
+
*/
|
|
144
|
+
export interface Schema$DeletingData {
|
|
145
|
+
}
|
|
126
146
|
/**
|
|
127
147
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
128
148
|
*/
|
|
129
149
|
export interface Schema$Empty {
|
|
130
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Further data for the failed state.
|
|
153
|
+
*/
|
|
154
|
+
export interface Schema$FailedData {
|
|
155
|
+
/**
|
|
156
|
+
* Output only. The error that caused the queued resource to enter the FAILED state.
|
|
157
|
+
*/
|
|
158
|
+
error?: Schema$Status;
|
|
159
|
+
}
|
|
131
160
|
/**
|
|
132
161
|
* Request for GenerateServiceIdentity.
|
|
133
162
|
*/
|
|
@@ -164,6 +193,15 @@ export declare namespace tpu_v2 {
|
|
|
164
193
|
*/
|
|
165
194
|
guestAttributes?: Schema$GuestAttributes[];
|
|
166
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Guaranteed tier definition.
|
|
198
|
+
*/
|
|
199
|
+
export interface Schema$Guaranteed {
|
|
200
|
+
/**
|
|
201
|
+
* Optional. Defines the minimum duration of the guarantee. If specified, the requested resources will only be provisioned if they can be allocated for at least the given duration.
|
|
202
|
+
*/
|
|
203
|
+
minDuration?: string | null;
|
|
204
|
+
}
|
|
167
205
|
/**
|
|
168
206
|
* A guest attributes.
|
|
169
207
|
*/
|
|
@@ -203,6 +241,19 @@ export declare namespace tpu_v2 {
|
|
|
203
241
|
*/
|
|
204
242
|
items?: Schema$GuestAttributesEntry[];
|
|
205
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
|
|
246
|
+
*/
|
|
247
|
+
export interface Schema$Interval {
|
|
248
|
+
/**
|
|
249
|
+
* Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
|
|
250
|
+
*/
|
|
251
|
+
endTime?: string | null;
|
|
252
|
+
/**
|
|
253
|
+
* Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
|
|
254
|
+
*/
|
|
255
|
+
startTime?: string | null;
|
|
256
|
+
}
|
|
206
257
|
/**
|
|
207
258
|
* Response for ListAcceleratorTypes.
|
|
208
259
|
*/
|
|
@@ -263,6 +314,23 @@ export declare namespace tpu_v2 {
|
|
|
263
314
|
*/
|
|
264
315
|
operations?: Schema$Operation[];
|
|
265
316
|
}
|
|
317
|
+
/**
|
|
318
|
+
* Response for ListQueuedResources.
|
|
319
|
+
*/
|
|
320
|
+
export interface Schema$ListQueuedResourcesResponse {
|
|
321
|
+
/**
|
|
322
|
+
* The next page token or empty if none.
|
|
323
|
+
*/
|
|
324
|
+
nextPageToken?: string | null;
|
|
325
|
+
/**
|
|
326
|
+
* The listed queued resources.
|
|
327
|
+
*/
|
|
328
|
+
queuedResources?: Schema$QueuedResource[];
|
|
329
|
+
/**
|
|
330
|
+
* Locations that could not be reached.
|
|
331
|
+
*/
|
|
332
|
+
unreachable?: string[] | null;
|
|
333
|
+
}
|
|
266
334
|
/**
|
|
267
335
|
* Response for ListRuntimeVersions.
|
|
268
336
|
*/
|
|
@@ -309,6 +377,19 @@ export declare namespace tpu_v2 {
|
|
|
309
377
|
*/
|
|
310
378
|
name?: string | null;
|
|
311
379
|
}
|
|
380
|
+
/**
|
|
381
|
+
* Parameters to specify for multislice QueuedResource requests. This message must be populated in case of multislice requests instead of node_id.
|
|
382
|
+
*/
|
|
383
|
+
export interface Schema$MultisliceParams {
|
|
384
|
+
/**
|
|
385
|
+
* Required. Number of nodes with this spec. The system will attempt to provison "node_count" nodes as part of the request. This needs to be \> 1.
|
|
386
|
+
*/
|
|
387
|
+
nodeCount?: number | null;
|
|
388
|
+
/**
|
|
389
|
+
* Optional. Prefix of node_ids in case of multislice request. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format. If node_count = 3 and node_id_prefix = "np", node ids of nodes created will be "np-0", "np-1", "np-2". If this field is not provided we use queued_resource_id as the node_id_prefix.
|
|
390
|
+
*/
|
|
391
|
+
nodeIdPrefix?: string | null;
|
|
392
|
+
}
|
|
312
393
|
/**
|
|
313
394
|
* Network related configurations.
|
|
314
395
|
*/
|
|
@@ -456,6 +537,27 @@ export declare namespace tpu_v2 {
|
|
|
456
537
|
*/
|
|
457
538
|
tags?: string[] | null;
|
|
458
539
|
}
|
|
540
|
+
/**
|
|
541
|
+
* Details of the TPU node(s) being requested. Users can request either a single node or multiple nodes. NodeSpec provides the specification for node(s) to be created.
|
|
542
|
+
*/
|
|
543
|
+
export interface Schema$NodeSpec {
|
|
544
|
+
/**
|
|
545
|
+
* Optional. Fields to specify in case of multislice request.
|
|
546
|
+
*/
|
|
547
|
+
multisliceParams?: Schema$MultisliceParams;
|
|
548
|
+
/**
|
|
549
|
+
* Required. The node.
|
|
550
|
+
*/
|
|
551
|
+
node?: Schema$Node;
|
|
552
|
+
/**
|
|
553
|
+
* Optional. The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when requesting a single node. In case of multislice requests, multislice_params must be populated instead.
|
|
554
|
+
*/
|
|
555
|
+
nodeId?: string | null;
|
|
556
|
+
/**
|
|
557
|
+
* Required. The parent resource name.
|
|
558
|
+
*/
|
|
559
|
+
parent?: string | null;
|
|
560
|
+
}
|
|
459
561
|
/**
|
|
460
562
|
* This resource represents a long-running operation that is the result of a network API call.
|
|
461
563
|
*/
|
|
@@ -518,6 +620,123 @@ export declare namespace tpu_v2 {
|
|
|
518
620
|
*/
|
|
519
621
|
verb?: string | null;
|
|
520
622
|
}
|
|
623
|
+
/**
|
|
624
|
+
* Further data for the provisioning state.
|
|
625
|
+
*/
|
|
626
|
+
export interface Schema$ProvisioningData {
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* A QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.
|
|
630
|
+
*/
|
|
631
|
+
export interface Schema$QueuedResource {
|
|
632
|
+
/**
|
|
633
|
+
* Output only. The time when the QueuedResource was created.
|
|
634
|
+
*/
|
|
635
|
+
createTime?: string | null;
|
|
636
|
+
/**
|
|
637
|
+
* Optional. The Guaranteed tier
|
|
638
|
+
*/
|
|
639
|
+
guaranteed?: Schema$Guaranteed;
|
|
640
|
+
/**
|
|
641
|
+
* Output only. Immutable. The name of the QueuedResource.
|
|
642
|
+
*/
|
|
643
|
+
name?: string | null;
|
|
644
|
+
/**
|
|
645
|
+
* Optional. The queueing policy of the QueuedRequest.
|
|
646
|
+
*/
|
|
647
|
+
queueingPolicy?: Schema$QueueingPolicy;
|
|
648
|
+
/**
|
|
649
|
+
* Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project\}/locations/{zone\}/reservations/{reservation\}
|
|
650
|
+
*/
|
|
651
|
+
reservationName?: string | null;
|
|
652
|
+
/**
|
|
653
|
+
* Optional. The Spot tier.
|
|
654
|
+
*/
|
|
655
|
+
spot?: Schema$Spot;
|
|
656
|
+
/**
|
|
657
|
+
* Output only. State of the QueuedResource request.
|
|
658
|
+
*/
|
|
659
|
+
state?: Schema$QueuedResourceState;
|
|
660
|
+
/**
|
|
661
|
+
* Optional. Defines a TPU resource.
|
|
662
|
+
*/
|
|
663
|
+
tpu?: Schema$Tpu;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* QueuedResourceState defines the details of the QueuedResource request.
|
|
667
|
+
*/
|
|
668
|
+
export interface Schema$QueuedResourceState {
|
|
669
|
+
/**
|
|
670
|
+
* Output only. Further data for the accepted state.
|
|
671
|
+
*/
|
|
672
|
+
acceptedData?: Schema$AcceptedData;
|
|
673
|
+
/**
|
|
674
|
+
* Output only. Further data for the active state.
|
|
675
|
+
*/
|
|
676
|
+
activeData?: Schema$ActiveData;
|
|
677
|
+
/**
|
|
678
|
+
* Output only. Further data for the creating state.
|
|
679
|
+
*/
|
|
680
|
+
creatingData?: Schema$CreatingData;
|
|
681
|
+
/**
|
|
682
|
+
* Output only. Further data for the deleting state.
|
|
683
|
+
*/
|
|
684
|
+
deletingData?: Schema$DeletingData;
|
|
685
|
+
/**
|
|
686
|
+
* Output only. Further data for the failed state.
|
|
687
|
+
*/
|
|
688
|
+
failedData?: Schema$FailedData;
|
|
689
|
+
/**
|
|
690
|
+
* Output only. Further data for the provisioning state.
|
|
691
|
+
*/
|
|
692
|
+
provisioningData?: Schema$ProvisioningData;
|
|
693
|
+
/**
|
|
694
|
+
* Output only. State of the QueuedResource request.
|
|
695
|
+
*/
|
|
696
|
+
state?: string | null;
|
|
697
|
+
/**
|
|
698
|
+
* Output only. The initiator of the QueuedResources's current state. Used to indicate whether the SUSPENDING/SUSPENDED state was initiated by the user or the service.
|
|
699
|
+
*/
|
|
700
|
+
stateInitiator?: string | null;
|
|
701
|
+
/**
|
|
702
|
+
* Output only. Further data for the suspended state.
|
|
703
|
+
*/
|
|
704
|
+
suspendedData?: Schema$SuspendedData;
|
|
705
|
+
/**
|
|
706
|
+
* Output only. Further data for the suspending state.
|
|
707
|
+
*/
|
|
708
|
+
suspendingData?: Schema$SuspendingData;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Defines the policy of the QueuedRequest.
|
|
712
|
+
*/
|
|
713
|
+
export interface Schema$QueueingPolicy {
|
|
714
|
+
/**
|
|
715
|
+
* Optional. A relative time after which resources may be created.
|
|
716
|
+
*/
|
|
717
|
+
validAfterDuration?: string | null;
|
|
718
|
+
/**
|
|
719
|
+
* Optional. An absolute time after which resources may be created.
|
|
720
|
+
*/
|
|
721
|
+
validAfterTime?: string | null;
|
|
722
|
+
/**
|
|
723
|
+
* Optional. An absolute time interval within which resources may be created.
|
|
724
|
+
*/
|
|
725
|
+
validInterval?: Schema$Interval;
|
|
726
|
+
/**
|
|
727
|
+
* Optional. A relative time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed.
|
|
728
|
+
*/
|
|
729
|
+
validUntilDuration?: string | null;
|
|
730
|
+
/**
|
|
731
|
+
* Optional. An absolute time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed.
|
|
732
|
+
*/
|
|
733
|
+
validUntilTime?: string | null;
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Request for ResetQueuedResource.
|
|
737
|
+
*/
|
|
738
|
+
export interface Schema$ResetQueuedResourceRequest {
|
|
739
|
+
}
|
|
521
740
|
/**
|
|
522
741
|
* A runtime version that a Node can be configured with.
|
|
523
742
|
*/
|
|
@@ -579,6 +798,11 @@ export declare namespace tpu_v2 {
|
|
|
579
798
|
*/
|
|
580
799
|
enableSecureBoot?: boolean | null;
|
|
581
800
|
}
|
|
801
|
+
/**
|
|
802
|
+
* Spot tier definition.
|
|
803
|
+
*/
|
|
804
|
+
export interface Schema$Spot {
|
|
805
|
+
}
|
|
582
806
|
/**
|
|
583
807
|
* Request for StartNode.
|
|
584
808
|
*/
|
|
@@ -608,6 +832,16 @@ export declare namespace tpu_v2 {
|
|
|
608
832
|
*/
|
|
609
833
|
export interface Schema$StopNodeRequest {
|
|
610
834
|
}
|
|
835
|
+
/**
|
|
836
|
+
* Further data for the suspended state.
|
|
837
|
+
*/
|
|
838
|
+
export interface Schema$SuspendedData {
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
* Further data for the suspending state.
|
|
842
|
+
*/
|
|
843
|
+
export interface Schema$SuspendingData {
|
|
844
|
+
}
|
|
611
845
|
/**
|
|
612
846
|
* A Symptom instance.
|
|
613
847
|
*/
|
|
@@ -629,6 +863,15 @@ export declare namespace tpu_v2 {
|
|
|
629
863
|
*/
|
|
630
864
|
workerId?: string | null;
|
|
631
865
|
}
|
|
866
|
+
/**
|
|
867
|
+
* Details of the TPU resource(s) being requested.
|
|
868
|
+
*/
|
|
869
|
+
export interface Schema$Tpu {
|
|
870
|
+
/**
|
|
871
|
+
* Optional. The TPU node(s) being requested.
|
|
872
|
+
*/
|
|
873
|
+
nodeSpec?: Schema$NodeSpec[];
|
|
874
|
+
}
|
|
632
875
|
export class Resource$Projects {
|
|
633
876
|
context: APIRequestContext;
|
|
634
877
|
locations: Resource$Projects$Locations;
|
|
@@ -639,6 +882,7 @@ export declare namespace tpu_v2 {
|
|
|
639
882
|
acceleratorTypes: Resource$Projects$Locations$Acceleratortypes;
|
|
640
883
|
nodes: Resource$Projects$Locations$Nodes;
|
|
641
884
|
operations: Resource$Projects$Locations$Operations;
|
|
885
|
+
queuedResources: Resource$Projects$Locations$Queuedresources;
|
|
642
886
|
runtimeVersions: Resource$Projects$Locations$Runtimeversions;
|
|
643
887
|
constructor(context: APIRequestContext);
|
|
644
888
|
/**
|
|
@@ -1074,6 +1318,142 @@ export declare namespace tpu_v2 {
|
|
|
1074
1318
|
*/
|
|
1075
1319
|
pageToken?: string;
|
|
1076
1320
|
}
|
|
1321
|
+
export class Resource$Projects$Locations$Queuedresources {
|
|
1322
|
+
context: APIRequestContext;
|
|
1323
|
+
constructor(context: APIRequestContext);
|
|
1324
|
+
/**
|
|
1325
|
+
* Creates a QueuedResource TPU instance.
|
|
1326
|
+
*
|
|
1327
|
+
* @param params - Parameters for request
|
|
1328
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1329
|
+
* @param callback - Optional callback that handles the response.
|
|
1330
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1331
|
+
*/
|
|
1332
|
+
create(params: Params$Resource$Projects$Locations$Queuedresources$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1333
|
+
create(params?: Params$Resource$Projects$Locations$Queuedresources$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
1334
|
+
create(params: Params$Resource$Projects$Locations$Queuedresources$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1335
|
+
create(params: Params$Resource$Projects$Locations$Queuedresources$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
1336
|
+
create(params: Params$Resource$Projects$Locations$Queuedresources$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
1337
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
1338
|
+
/**
|
|
1339
|
+
* Deletes a QueuedResource TPU instance.
|
|
1340
|
+
*
|
|
1341
|
+
* @param params - Parameters for request
|
|
1342
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1343
|
+
* @param callback - Optional callback that handles the response.
|
|
1344
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1345
|
+
*/
|
|
1346
|
+
delete(params: Params$Resource$Projects$Locations$Queuedresources$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1347
|
+
delete(params?: Params$Resource$Projects$Locations$Queuedresources$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
1348
|
+
delete(params: Params$Resource$Projects$Locations$Queuedresources$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1349
|
+
delete(params: Params$Resource$Projects$Locations$Queuedresources$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
1350
|
+
delete(params: Params$Resource$Projects$Locations$Queuedresources$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
1351
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
1352
|
+
/**
|
|
1353
|
+
* Gets details of a queued resource.
|
|
1354
|
+
*
|
|
1355
|
+
* @param params - Parameters for request
|
|
1356
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1357
|
+
* @param callback - Optional callback that handles the response.
|
|
1358
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1359
|
+
*/
|
|
1360
|
+
get(params: Params$Resource$Projects$Locations$Queuedresources$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1361
|
+
get(params?: Params$Resource$Projects$Locations$Queuedresources$Get, options?: MethodOptions): GaxiosPromise<Schema$QueuedResource>;
|
|
1362
|
+
get(params: Params$Resource$Projects$Locations$Queuedresources$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1363
|
+
get(params: Params$Resource$Projects$Locations$Queuedresources$Get, options: MethodOptions | BodyResponseCallback<Schema$QueuedResource>, callback: BodyResponseCallback<Schema$QueuedResource>): void;
|
|
1364
|
+
get(params: Params$Resource$Projects$Locations$Queuedresources$Get, callback: BodyResponseCallback<Schema$QueuedResource>): void;
|
|
1365
|
+
get(callback: BodyResponseCallback<Schema$QueuedResource>): void;
|
|
1366
|
+
/**
|
|
1367
|
+
* Lists queued resources.
|
|
1368
|
+
*
|
|
1369
|
+
* @param params - Parameters for request
|
|
1370
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1371
|
+
* @param callback - Optional callback that handles the response.
|
|
1372
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1373
|
+
*/
|
|
1374
|
+
list(params: Params$Resource$Projects$Locations$Queuedresources$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1375
|
+
list(params?: Params$Resource$Projects$Locations$Queuedresources$List, options?: MethodOptions): GaxiosPromise<Schema$ListQueuedResourcesResponse>;
|
|
1376
|
+
list(params: Params$Resource$Projects$Locations$Queuedresources$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1377
|
+
list(params: Params$Resource$Projects$Locations$Queuedresources$List, options: MethodOptions | BodyResponseCallback<Schema$ListQueuedResourcesResponse>, callback: BodyResponseCallback<Schema$ListQueuedResourcesResponse>): void;
|
|
1378
|
+
list(params: Params$Resource$Projects$Locations$Queuedresources$List, callback: BodyResponseCallback<Schema$ListQueuedResourcesResponse>): void;
|
|
1379
|
+
list(callback: BodyResponseCallback<Schema$ListQueuedResourcesResponse>): void;
|
|
1380
|
+
/**
|
|
1381
|
+
* Resets a QueuedResource TPU instance
|
|
1382
|
+
*
|
|
1383
|
+
* @param params - Parameters for request
|
|
1384
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1385
|
+
* @param callback - Optional callback that handles the response.
|
|
1386
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1387
|
+
*/
|
|
1388
|
+
reset(params: Params$Resource$Projects$Locations$Queuedresources$Reset, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1389
|
+
reset(params?: Params$Resource$Projects$Locations$Queuedresources$Reset, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
1390
|
+
reset(params: Params$Resource$Projects$Locations$Queuedresources$Reset, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1391
|
+
reset(params: Params$Resource$Projects$Locations$Queuedresources$Reset, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
1392
|
+
reset(params: Params$Resource$Projects$Locations$Queuedresources$Reset, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
1393
|
+
reset(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
1394
|
+
}
|
|
1395
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Create extends StandardParameters {
|
|
1396
|
+
/**
|
|
1397
|
+
* Required. The parent resource name.
|
|
1398
|
+
*/
|
|
1399
|
+
parent?: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* Optional. The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
|
|
1402
|
+
*/
|
|
1403
|
+
queuedResourceId?: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* Optional. Idempotent request UUID.
|
|
1406
|
+
*/
|
|
1407
|
+
requestId?: string;
|
|
1408
|
+
/**
|
|
1409
|
+
* Request body metadata
|
|
1410
|
+
*/
|
|
1411
|
+
requestBody?: Schema$QueuedResource;
|
|
1412
|
+
}
|
|
1413
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Delete extends StandardParameters {
|
|
1414
|
+
/**
|
|
1415
|
+
* Optional. If set to true, all running nodes belonging to this queued resource will be deleted first and then the queued resource will be deleted. Otherwise (i.e. force=false), the queued resource will only be deleted if its nodes have already been deleted or the queued resource is in the ACCEPTED, FAILED, or SUSPENDED state.
|
|
1416
|
+
*/
|
|
1417
|
+
force?: boolean;
|
|
1418
|
+
/**
|
|
1419
|
+
* Required. The resource name.
|
|
1420
|
+
*/
|
|
1421
|
+
name?: string;
|
|
1422
|
+
/**
|
|
1423
|
+
* Optional. Idempotent request UUID.
|
|
1424
|
+
*/
|
|
1425
|
+
requestId?: string;
|
|
1426
|
+
}
|
|
1427
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Get extends StandardParameters {
|
|
1428
|
+
/**
|
|
1429
|
+
* Required. The resource name.
|
|
1430
|
+
*/
|
|
1431
|
+
name?: string;
|
|
1432
|
+
}
|
|
1433
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$List extends StandardParameters {
|
|
1434
|
+
/**
|
|
1435
|
+
* Optional. The maximum number of items to return.
|
|
1436
|
+
*/
|
|
1437
|
+
pageSize?: number;
|
|
1438
|
+
/**
|
|
1439
|
+
* Optional. The next_page_token value returned from a previous List request, if any.
|
|
1440
|
+
*/
|
|
1441
|
+
pageToken?: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* Required. The parent resource name.
|
|
1444
|
+
*/
|
|
1445
|
+
parent?: string;
|
|
1446
|
+
}
|
|
1447
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Reset extends StandardParameters {
|
|
1448
|
+
/**
|
|
1449
|
+
* Required. The name of the queued resource.
|
|
1450
|
+
*/
|
|
1451
|
+
name?: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* Request body metadata
|
|
1454
|
+
*/
|
|
1455
|
+
requestBody?: Schema$ResetQueuedResourceRequest;
|
|
1456
|
+
}
|
|
1077
1457
|
export class Resource$Projects$Locations$Runtimeversions {
|
|
1078
1458
|
context: APIRequestContext;
|
|
1079
1459
|
constructor(context: APIRequestContext);
|
package/build/v2.js
CHANGED
|
@@ -55,6 +55,7 @@ var tpu_v2;
|
|
|
55
55
|
this.acceleratorTypes = new Resource$Projects$Locations$Acceleratortypes(this.context);
|
|
56
56
|
this.nodes = new Resource$Projects$Locations$Nodes(this.context);
|
|
57
57
|
this.operations = new Resource$Projects$Locations$Operations(this.context);
|
|
58
|
+
this.queuedResources = new Resource$Projects$Locations$Queuedresources(this.context);
|
|
58
59
|
this.runtimeVersions = new Resource$Projects$Locations$Runtimeversions(this.context);
|
|
59
60
|
}
|
|
60
61
|
generateServiceIdentity(paramsOrCallback, optionsOrCallback, callback) {
|
|
@@ -606,6 +607,169 @@ var tpu_v2;
|
|
|
606
607
|
}
|
|
607
608
|
}
|
|
608
609
|
tpu_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations;
|
|
610
|
+
class Resource$Projects$Locations$Queuedresources {
|
|
611
|
+
constructor(context) {
|
|
612
|
+
this.context = context;
|
|
613
|
+
}
|
|
614
|
+
create(paramsOrCallback, optionsOrCallback, callback) {
|
|
615
|
+
let params = (paramsOrCallback ||
|
|
616
|
+
{});
|
|
617
|
+
let options = (optionsOrCallback || {});
|
|
618
|
+
if (typeof paramsOrCallback === 'function') {
|
|
619
|
+
callback = paramsOrCallback;
|
|
620
|
+
params =
|
|
621
|
+
{};
|
|
622
|
+
options = {};
|
|
623
|
+
}
|
|
624
|
+
if (typeof optionsOrCallback === 'function') {
|
|
625
|
+
callback = optionsOrCallback;
|
|
626
|
+
options = {};
|
|
627
|
+
}
|
|
628
|
+
const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/';
|
|
629
|
+
const parameters = {
|
|
630
|
+
options: Object.assign({
|
|
631
|
+
url: (rootUrl + '/v2/{+parent}/queuedResources').replace(/([^:]\/)\/+/g, '$1'),
|
|
632
|
+
method: 'POST',
|
|
633
|
+
}, options),
|
|
634
|
+
params,
|
|
635
|
+
requiredParams: ['parent'],
|
|
636
|
+
pathParams: ['parent'],
|
|
637
|
+
context: this.context,
|
|
638
|
+
};
|
|
639
|
+
if (callback) {
|
|
640
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
641
|
+
}
|
|
642
|
+
else {
|
|
643
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
delete(paramsOrCallback, optionsOrCallback, callback) {
|
|
647
|
+
let params = (paramsOrCallback ||
|
|
648
|
+
{});
|
|
649
|
+
let options = (optionsOrCallback || {});
|
|
650
|
+
if (typeof paramsOrCallback === 'function') {
|
|
651
|
+
callback = paramsOrCallback;
|
|
652
|
+
params =
|
|
653
|
+
{};
|
|
654
|
+
options = {};
|
|
655
|
+
}
|
|
656
|
+
if (typeof optionsOrCallback === 'function') {
|
|
657
|
+
callback = optionsOrCallback;
|
|
658
|
+
options = {};
|
|
659
|
+
}
|
|
660
|
+
const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/';
|
|
661
|
+
const parameters = {
|
|
662
|
+
options: Object.assign({
|
|
663
|
+
url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
664
|
+
method: 'DELETE',
|
|
665
|
+
}, options),
|
|
666
|
+
params,
|
|
667
|
+
requiredParams: ['name'],
|
|
668
|
+
pathParams: ['name'],
|
|
669
|
+
context: this.context,
|
|
670
|
+
};
|
|
671
|
+
if (callback) {
|
|
672
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
673
|
+
}
|
|
674
|
+
else {
|
|
675
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
get(paramsOrCallback, optionsOrCallback, callback) {
|
|
679
|
+
let params = (paramsOrCallback ||
|
|
680
|
+
{});
|
|
681
|
+
let options = (optionsOrCallback || {});
|
|
682
|
+
if (typeof paramsOrCallback === 'function') {
|
|
683
|
+
callback = paramsOrCallback;
|
|
684
|
+
params = {};
|
|
685
|
+
options = {};
|
|
686
|
+
}
|
|
687
|
+
if (typeof optionsOrCallback === 'function') {
|
|
688
|
+
callback = optionsOrCallback;
|
|
689
|
+
options = {};
|
|
690
|
+
}
|
|
691
|
+
const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/';
|
|
692
|
+
const parameters = {
|
|
693
|
+
options: Object.assign({
|
|
694
|
+
url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
695
|
+
method: 'GET',
|
|
696
|
+
}, options),
|
|
697
|
+
params,
|
|
698
|
+
requiredParams: ['name'],
|
|
699
|
+
pathParams: ['name'],
|
|
700
|
+
context: this.context,
|
|
701
|
+
};
|
|
702
|
+
if (callback) {
|
|
703
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
704
|
+
}
|
|
705
|
+
else {
|
|
706
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
list(paramsOrCallback, optionsOrCallback, callback) {
|
|
710
|
+
let params = (paramsOrCallback ||
|
|
711
|
+
{});
|
|
712
|
+
let options = (optionsOrCallback || {});
|
|
713
|
+
if (typeof paramsOrCallback === 'function') {
|
|
714
|
+
callback = paramsOrCallback;
|
|
715
|
+
params = {};
|
|
716
|
+
options = {};
|
|
717
|
+
}
|
|
718
|
+
if (typeof optionsOrCallback === 'function') {
|
|
719
|
+
callback = optionsOrCallback;
|
|
720
|
+
options = {};
|
|
721
|
+
}
|
|
722
|
+
const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/';
|
|
723
|
+
const parameters = {
|
|
724
|
+
options: Object.assign({
|
|
725
|
+
url: (rootUrl + '/v2/{+parent}/queuedResources').replace(/([^:]\/)\/+/g, '$1'),
|
|
726
|
+
method: 'GET',
|
|
727
|
+
}, options),
|
|
728
|
+
params,
|
|
729
|
+
requiredParams: ['parent'],
|
|
730
|
+
pathParams: ['parent'],
|
|
731
|
+
context: this.context,
|
|
732
|
+
};
|
|
733
|
+
if (callback) {
|
|
734
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
735
|
+
}
|
|
736
|
+
else {
|
|
737
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
reset(paramsOrCallback, optionsOrCallback, callback) {
|
|
741
|
+
let params = (paramsOrCallback ||
|
|
742
|
+
{});
|
|
743
|
+
let options = (optionsOrCallback || {});
|
|
744
|
+
if (typeof paramsOrCallback === 'function') {
|
|
745
|
+
callback = paramsOrCallback;
|
|
746
|
+
params = {};
|
|
747
|
+
options = {};
|
|
748
|
+
}
|
|
749
|
+
if (typeof optionsOrCallback === 'function') {
|
|
750
|
+
callback = optionsOrCallback;
|
|
751
|
+
options = {};
|
|
752
|
+
}
|
|
753
|
+
const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/';
|
|
754
|
+
const parameters = {
|
|
755
|
+
options: Object.assign({
|
|
756
|
+
url: (rootUrl + '/v2/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'),
|
|
757
|
+
method: 'POST',
|
|
758
|
+
}, options),
|
|
759
|
+
params,
|
|
760
|
+
requiredParams: ['name'],
|
|
761
|
+
pathParams: ['name'],
|
|
762
|
+
context: this.context,
|
|
763
|
+
};
|
|
764
|
+
if (callback) {
|
|
765
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
766
|
+
}
|
|
767
|
+
else {
|
|
768
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
tpu_v2.Resource$Projects$Locations$Queuedresources = Resource$Projects$Locations$Queuedresources;
|
|
609
773
|
class Resource$Projects$Locations$Runtimeversions {
|
|
610
774
|
constructor(context) {
|
|
611
775
|
this.context = context;
|