@googleapis/tpu 9.0.0 → 11.0.1
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 +31 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +14 -3
- package/build/v1.js.map +1 -1
- package/build/v1alpha1.d.ts +14 -3
- package/build/v1alpha1.js.map +1 -1
- package/build/v2.d.ts +39 -3
- package/build/v2.js.map +1 -1
- package/build/v2alpha1.d.ts +110 -3
- package/build/v2alpha1.js +33 -0
- package/build/v2alpha1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +31 -37
- package/v1alpha1.ts +31 -37
- package/v2.ts +63 -51
- package/v2alpha1.ts +220 -59
package/v2alpha1.ts
CHANGED
|
@@ -220,6 +220,10 @@ export namespace tpu_v2alpha1 {
|
|
|
220
220
|
* Optional. Image from which boot disk is to be created. If not specified, the default image for the runtime version will be used. Example: `projects/$PROJECT_ID/global/images/$IMAGE_NAME`.
|
|
221
221
|
*/
|
|
222
222
|
sourceImage?: string | null;
|
|
223
|
+
/**
|
|
224
|
+
* Optional. The storage pool in which the boot disk is created. You can provide this as a partial or full URL to the resource.
|
|
225
|
+
*/
|
|
226
|
+
storagePool?: string | null;
|
|
223
227
|
}
|
|
224
228
|
/**
|
|
225
229
|
* Further data for the creating state.
|
|
@@ -286,6 +290,15 @@ export namespace tpu_v2alpha1 {
|
|
|
286
290
|
*/
|
|
287
291
|
guestAttributes?: Schema$GuestAttributes[];
|
|
288
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* Response for GetMaintenanceInfo.
|
|
295
|
+
*/
|
|
296
|
+
export interface Schema$GetMaintenanceInfoResponse {
|
|
297
|
+
/**
|
|
298
|
+
* The list of upcoming maintenance entries.
|
|
299
|
+
*/
|
|
300
|
+
nodeUpcomingMaintenances?: Schema$NodeUpcomingMaintenanceInfo[];
|
|
301
|
+
}
|
|
289
302
|
/**
|
|
290
303
|
* Guaranteed tier definition.
|
|
291
304
|
*/
|
|
@@ -410,6 +423,10 @@ export namespace tpu_v2alpha1 {
|
|
|
410
423
|
* A list of operations that matches the specified filter in the request.
|
|
411
424
|
*/
|
|
412
425
|
operations?: Schema$Operation[];
|
|
426
|
+
/**
|
|
427
|
+
* Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.
|
|
428
|
+
*/
|
|
429
|
+
unreachable?: string[] | null;
|
|
413
430
|
}
|
|
414
431
|
/**
|
|
415
432
|
* Response for ListQueuedResources.
|
|
@@ -680,6 +697,23 @@ export namespace tpu_v2alpha1 {
|
|
|
680
697
|
*/
|
|
681
698
|
parent?: string | null;
|
|
682
699
|
}
|
|
700
|
+
/**
|
|
701
|
+
* A tuple containing node name / ID and maintenance info.
|
|
702
|
+
*/
|
|
703
|
+
export interface Schema$NodeUpcomingMaintenanceInfo {
|
|
704
|
+
/**
|
|
705
|
+
* Unqualified node name.
|
|
706
|
+
*/
|
|
707
|
+
nodeName?: string | null;
|
|
708
|
+
/**
|
|
709
|
+
* UID of this node.
|
|
710
|
+
*/
|
|
711
|
+
nodeUid?: string | null;
|
|
712
|
+
/**
|
|
713
|
+
* Upcoming maintenance info for this node.
|
|
714
|
+
*/
|
|
715
|
+
upcomingMaintenance?: Schema$UpcomingMaintenance;
|
|
716
|
+
}
|
|
683
717
|
/**
|
|
684
718
|
* This resource represents a long-running operation that is the result of a network API call.
|
|
685
719
|
*/
|
|
@@ -1476,7 +1510,7 @@ export namespace tpu_v2alpha1 {
|
|
|
1476
1510
|
*
|
|
1477
1511
|
* // Do the magic
|
|
1478
1512
|
* const res = await tpu.projects.locations.list({
|
|
1479
|
-
* // Optional.
|
|
1513
|
+
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
1480
1514
|
* extraLocationTypes: 'placeholder-value',
|
|
1481
1515
|
* // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
|
|
1482
1516
|
* filter: 'placeholder-value',
|
|
@@ -1594,8 +1628,7 @@ export namespace tpu_v2alpha1 {
|
|
|
1594
1628
|
}
|
|
1595
1629
|
}
|
|
1596
1630
|
|
|
1597
|
-
export interface Params$Resource$Projects$Locations$Generateserviceidentity
|
|
1598
|
-
extends StandardParameters {
|
|
1631
|
+
export interface Params$Resource$Projects$Locations$Generateserviceidentity extends StandardParameters {
|
|
1599
1632
|
/**
|
|
1600
1633
|
* Required. The parent resource name.
|
|
1601
1634
|
*/
|
|
@@ -1606,17 +1639,15 @@ export namespace tpu_v2alpha1 {
|
|
|
1606
1639
|
*/
|
|
1607
1640
|
requestBody?: Schema$GenerateServiceIdentityRequest;
|
|
1608
1641
|
}
|
|
1609
|
-
export interface Params$Resource$Projects$Locations$Get
|
|
1610
|
-
extends StandardParameters {
|
|
1642
|
+
export interface Params$Resource$Projects$Locations$Get extends StandardParameters {
|
|
1611
1643
|
/**
|
|
1612
1644
|
* Resource name for the location.
|
|
1613
1645
|
*/
|
|
1614
1646
|
name?: string;
|
|
1615
1647
|
}
|
|
1616
|
-
export interface Params$Resource$Projects$Locations$List
|
|
1617
|
-
extends StandardParameters {
|
|
1648
|
+
export interface Params$Resource$Projects$Locations$List extends StandardParameters {
|
|
1618
1649
|
/**
|
|
1619
|
-
* Optional.
|
|
1650
|
+
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
1620
1651
|
*/
|
|
1621
1652
|
extraLocationTypes?: string[];
|
|
1622
1653
|
/**
|
|
@@ -1933,15 +1964,13 @@ export namespace tpu_v2alpha1 {
|
|
|
1933
1964
|
}
|
|
1934
1965
|
}
|
|
1935
1966
|
|
|
1936
|
-
export interface Params$Resource$Projects$Locations$Acceleratortypes$Get
|
|
1937
|
-
extends StandardParameters {
|
|
1967
|
+
export interface Params$Resource$Projects$Locations$Acceleratortypes$Get extends StandardParameters {
|
|
1938
1968
|
/**
|
|
1939
1969
|
* Required. The resource name.
|
|
1940
1970
|
*/
|
|
1941
1971
|
name?: string;
|
|
1942
1972
|
}
|
|
1943
|
-
export interface Params$Resource$Projects$Locations$Acceleratortypes$List
|
|
1944
|
-
extends StandardParameters {
|
|
1973
|
+
export interface Params$Resource$Projects$Locations$Acceleratortypes$List extends StandardParameters {
|
|
1945
1974
|
/**
|
|
1946
1975
|
* List filter.
|
|
1947
1976
|
*/
|
|
@@ -3514,8 +3543,7 @@ export namespace tpu_v2alpha1 {
|
|
|
3514
3543
|
}
|
|
3515
3544
|
}
|
|
3516
3545
|
|
|
3517
|
-
export interface Params$Resource$Projects$Locations$Nodes$Create
|
|
3518
|
-
extends StandardParameters {
|
|
3546
|
+
export interface Params$Resource$Projects$Locations$Nodes$Create extends StandardParameters {
|
|
3519
3547
|
/**
|
|
3520
3548
|
* The unqualified resource name.
|
|
3521
3549
|
*/
|
|
@@ -3534,8 +3562,7 @@ export namespace tpu_v2alpha1 {
|
|
|
3534
3562
|
*/
|
|
3535
3563
|
requestBody?: Schema$Node;
|
|
3536
3564
|
}
|
|
3537
|
-
export interface Params$Resource$Projects$Locations$Nodes$Delete
|
|
3538
|
-
extends StandardParameters {
|
|
3565
|
+
export interface Params$Resource$Projects$Locations$Nodes$Delete extends StandardParameters {
|
|
3539
3566
|
/**
|
|
3540
3567
|
* Required. The resource name.
|
|
3541
3568
|
*/
|
|
@@ -3545,15 +3572,13 @@ export namespace tpu_v2alpha1 {
|
|
|
3545
3572
|
*/
|
|
3546
3573
|
requestId?: string;
|
|
3547
3574
|
}
|
|
3548
|
-
export interface Params$Resource$Projects$Locations$Nodes$Get
|
|
3549
|
-
extends StandardParameters {
|
|
3575
|
+
export interface Params$Resource$Projects$Locations$Nodes$Get extends StandardParameters {
|
|
3550
3576
|
/**
|
|
3551
3577
|
* Required. The resource name.
|
|
3552
3578
|
*/
|
|
3553
3579
|
name?: string;
|
|
3554
3580
|
}
|
|
3555
|
-
export interface Params$Resource$Projects$Locations$Nodes$Getguestattributes
|
|
3556
|
-
extends StandardParameters {
|
|
3581
|
+
export interface Params$Resource$Projects$Locations$Nodes$Getguestattributes extends StandardParameters {
|
|
3557
3582
|
/**
|
|
3558
3583
|
* Required. The resource name.
|
|
3559
3584
|
*/
|
|
@@ -3564,8 +3589,7 @@ export namespace tpu_v2alpha1 {
|
|
|
3564
3589
|
*/
|
|
3565
3590
|
requestBody?: Schema$GetGuestAttributesRequest;
|
|
3566
3591
|
}
|
|
3567
|
-
export interface Params$Resource$Projects$Locations$Nodes$List
|
|
3568
|
-
extends StandardParameters {
|
|
3592
|
+
export interface Params$Resource$Projects$Locations$Nodes$List extends StandardParameters {
|
|
3569
3593
|
/**
|
|
3570
3594
|
* The maximum number of items to return.
|
|
3571
3595
|
*/
|
|
@@ -3579,8 +3603,7 @@ export namespace tpu_v2alpha1 {
|
|
|
3579
3603
|
*/
|
|
3580
3604
|
parent?: string;
|
|
3581
3605
|
}
|
|
3582
|
-
export interface Params$Resource$Projects$Locations$Nodes$Patch
|
|
3583
|
-
extends StandardParameters {
|
|
3606
|
+
export interface Params$Resource$Projects$Locations$Nodes$Patch extends StandardParameters {
|
|
3584
3607
|
/**
|
|
3585
3608
|
* Output only. Immutable. The name of the TPU.
|
|
3586
3609
|
*/
|
|
@@ -3595,8 +3618,7 @@ export namespace tpu_v2alpha1 {
|
|
|
3595
3618
|
*/
|
|
3596
3619
|
requestBody?: Schema$Node;
|
|
3597
3620
|
}
|
|
3598
|
-
export interface Params$Resource$Projects$Locations$Nodes$Performmaintenance
|
|
3599
|
-
extends StandardParameters {
|
|
3621
|
+
export interface Params$Resource$Projects$Locations$Nodes$Performmaintenance extends StandardParameters {
|
|
3600
3622
|
/**
|
|
3601
3623
|
* Required. The resource name.
|
|
3602
3624
|
*/
|
|
@@ -3607,8 +3629,7 @@ export namespace tpu_v2alpha1 {
|
|
|
3607
3629
|
*/
|
|
3608
3630
|
requestBody?: Schema$PerformMaintenanceRequest;
|
|
3609
3631
|
}
|
|
3610
|
-
export interface Params$Resource$Projects$Locations$Nodes$Simulatemaintenanceevent
|
|
3611
|
-
extends StandardParameters {
|
|
3632
|
+
export interface Params$Resource$Projects$Locations$Nodes$Simulatemaintenanceevent extends StandardParameters {
|
|
3612
3633
|
/**
|
|
3613
3634
|
* Required. The resource name.
|
|
3614
3635
|
*/
|
|
@@ -3619,8 +3640,7 @@ export namespace tpu_v2alpha1 {
|
|
|
3619
3640
|
*/
|
|
3620
3641
|
requestBody?: Schema$SimulateMaintenanceEventRequest;
|
|
3621
3642
|
}
|
|
3622
|
-
export interface Params$Resource$Projects$Locations$Nodes$Start
|
|
3623
|
-
extends StandardParameters {
|
|
3643
|
+
export interface Params$Resource$Projects$Locations$Nodes$Start extends StandardParameters {
|
|
3624
3644
|
/**
|
|
3625
3645
|
* Required. The resource name.
|
|
3626
3646
|
*/
|
|
@@ -3631,8 +3651,7 @@ export namespace tpu_v2alpha1 {
|
|
|
3631
3651
|
*/
|
|
3632
3652
|
requestBody?: Schema$StartNodeRequest;
|
|
3633
3653
|
}
|
|
3634
|
-
export interface Params$Resource$Projects$Locations$Nodes$Stop
|
|
3635
|
-
extends StandardParameters {
|
|
3654
|
+
export interface Params$Resource$Projects$Locations$Nodes$Stop extends StandardParameters {
|
|
3636
3655
|
/**
|
|
3637
3656
|
* Required. The resource name.
|
|
3638
3657
|
*/
|
|
@@ -4094,13 +4113,16 @@ export namespace tpu_v2alpha1 {
|
|
|
4094
4113
|
* pageSize: 'placeholder-value',
|
|
4095
4114
|
* // The standard list page token.
|
|
4096
4115
|
* pageToken: 'placeholder-value',
|
|
4116
|
+
* // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
|
|
4117
|
+
* returnPartialSuccess: 'placeholder-value',
|
|
4097
4118
|
* });
|
|
4098
4119
|
* console.log(res.data);
|
|
4099
4120
|
*
|
|
4100
4121
|
* // Example response
|
|
4101
4122
|
* // {
|
|
4102
4123
|
* // "nextPageToken": "my_nextPageToken",
|
|
4103
|
-
* // "operations": []
|
|
4124
|
+
* // "operations": [],
|
|
4125
|
+
* // "unreachable": []
|
|
4104
4126
|
* // }
|
|
4105
4127
|
* }
|
|
4106
4128
|
*
|
|
@@ -4202,29 +4224,25 @@ export namespace tpu_v2alpha1 {
|
|
|
4202
4224
|
}
|
|
4203
4225
|
}
|
|
4204
4226
|
|
|
4205
|
-
export interface Params$Resource$Projects$Locations$Operations$Cancel
|
|
4206
|
-
extends StandardParameters {
|
|
4227
|
+
export interface Params$Resource$Projects$Locations$Operations$Cancel extends StandardParameters {
|
|
4207
4228
|
/**
|
|
4208
4229
|
* The name of the operation resource to be cancelled.
|
|
4209
4230
|
*/
|
|
4210
4231
|
name?: string;
|
|
4211
4232
|
}
|
|
4212
|
-
export interface Params$Resource$Projects$Locations$Operations$Delete
|
|
4213
|
-
extends StandardParameters {
|
|
4233
|
+
export interface Params$Resource$Projects$Locations$Operations$Delete extends StandardParameters {
|
|
4214
4234
|
/**
|
|
4215
4235
|
* The name of the operation resource to be deleted.
|
|
4216
4236
|
*/
|
|
4217
4237
|
name?: string;
|
|
4218
4238
|
}
|
|
4219
|
-
export interface Params$Resource$Projects$Locations$Operations$Get
|
|
4220
|
-
extends StandardParameters {
|
|
4239
|
+
export interface Params$Resource$Projects$Locations$Operations$Get extends StandardParameters {
|
|
4221
4240
|
/**
|
|
4222
4241
|
* The name of the operation resource.
|
|
4223
4242
|
*/
|
|
4224
4243
|
name?: string;
|
|
4225
4244
|
}
|
|
4226
|
-
export interface Params$Resource$Projects$Locations$Operations$List
|
|
4227
|
-
extends StandardParameters {
|
|
4245
|
+
export interface Params$Resource$Projects$Locations$Operations$List extends StandardParameters {
|
|
4228
4246
|
/**
|
|
4229
4247
|
* The standard list filter.
|
|
4230
4248
|
*/
|
|
@@ -4241,6 +4259,10 @@ export namespace tpu_v2alpha1 {
|
|
|
4241
4259
|
* The standard list page token.
|
|
4242
4260
|
*/
|
|
4243
4261
|
pageToken?: string;
|
|
4262
|
+
/**
|
|
4263
|
+
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
|
|
4264
|
+
*/
|
|
4265
|
+
returnPartialSuccess?: boolean;
|
|
4244
4266
|
}
|
|
4245
4267
|
|
|
4246
4268
|
export class Resource$Projects$Locations$Queuedresources {
|
|
@@ -4700,6 +4722,148 @@ export namespace tpu_v2alpha1 {
|
|
|
4700
4722
|
}
|
|
4701
4723
|
}
|
|
4702
4724
|
|
|
4725
|
+
/**
|
|
4726
|
+
* Gets the maintenance info for a queued resource.
|
|
4727
|
+
* @example
|
|
4728
|
+
* ```js
|
|
4729
|
+
* // Before running the sample:
|
|
4730
|
+
* // - Enable the API at:
|
|
4731
|
+
* // https://console.developers.google.com/apis/api/tpu.googleapis.com
|
|
4732
|
+
* // - Login into gcloud by running:
|
|
4733
|
+
* // ```sh
|
|
4734
|
+
* // $ gcloud auth application-default login
|
|
4735
|
+
* // ```
|
|
4736
|
+
* // - Install the npm module by running:
|
|
4737
|
+
* // ```sh
|
|
4738
|
+
* // $ npm install googleapis
|
|
4739
|
+
* // ```
|
|
4740
|
+
*
|
|
4741
|
+
* const {google} = require('googleapis');
|
|
4742
|
+
* const tpu = google.tpu('v2alpha1');
|
|
4743
|
+
*
|
|
4744
|
+
* async function main() {
|
|
4745
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4746
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4747
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4748
|
+
* });
|
|
4749
|
+
*
|
|
4750
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4751
|
+
* const authClient = await auth.getClient();
|
|
4752
|
+
* google.options({auth: authClient});
|
|
4753
|
+
*
|
|
4754
|
+
* // Do the magic
|
|
4755
|
+
* const res = await tpu.projects.locations.queuedResources.getMaintenanceInfo({
|
|
4756
|
+
* // Required. The QueuedResource name.
|
|
4757
|
+
* name: 'projects/my-project/locations/my-location/queuedResources/my-queuedResource',
|
|
4758
|
+
* });
|
|
4759
|
+
* console.log(res.data);
|
|
4760
|
+
*
|
|
4761
|
+
* // Example response
|
|
4762
|
+
* // {
|
|
4763
|
+
* // "nodeUpcomingMaintenances": []
|
|
4764
|
+
* // }
|
|
4765
|
+
* }
|
|
4766
|
+
*
|
|
4767
|
+
* main().catch(e => {
|
|
4768
|
+
* console.error(e);
|
|
4769
|
+
* throw e;
|
|
4770
|
+
* });
|
|
4771
|
+
*
|
|
4772
|
+
* ```
|
|
4773
|
+
*
|
|
4774
|
+
* @param params - Parameters for request
|
|
4775
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4776
|
+
* @param callback - Optional callback that handles the response.
|
|
4777
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4778
|
+
*/
|
|
4779
|
+
getMaintenanceInfo(
|
|
4780
|
+
params: Params$Resource$Projects$Locations$Queuedresources$Getmaintenanceinfo,
|
|
4781
|
+
options: StreamMethodOptions
|
|
4782
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4783
|
+
getMaintenanceInfo(
|
|
4784
|
+
params?: Params$Resource$Projects$Locations$Queuedresources$Getmaintenanceinfo,
|
|
4785
|
+
options?: MethodOptions
|
|
4786
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GetMaintenanceInfoResponse>>;
|
|
4787
|
+
getMaintenanceInfo(
|
|
4788
|
+
params: Params$Resource$Projects$Locations$Queuedresources$Getmaintenanceinfo,
|
|
4789
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4790
|
+
callback: BodyResponseCallback<Readable>
|
|
4791
|
+
): void;
|
|
4792
|
+
getMaintenanceInfo(
|
|
4793
|
+
params: Params$Resource$Projects$Locations$Queuedresources$Getmaintenanceinfo,
|
|
4794
|
+
options:
|
|
4795
|
+
| MethodOptions
|
|
4796
|
+
| BodyResponseCallback<Schema$GetMaintenanceInfoResponse>,
|
|
4797
|
+
callback: BodyResponseCallback<Schema$GetMaintenanceInfoResponse>
|
|
4798
|
+
): void;
|
|
4799
|
+
getMaintenanceInfo(
|
|
4800
|
+
params: Params$Resource$Projects$Locations$Queuedresources$Getmaintenanceinfo,
|
|
4801
|
+
callback: BodyResponseCallback<Schema$GetMaintenanceInfoResponse>
|
|
4802
|
+
): void;
|
|
4803
|
+
getMaintenanceInfo(
|
|
4804
|
+
callback: BodyResponseCallback<Schema$GetMaintenanceInfoResponse>
|
|
4805
|
+
): void;
|
|
4806
|
+
getMaintenanceInfo(
|
|
4807
|
+
paramsOrCallback?:
|
|
4808
|
+
| Params$Resource$Projects$Locations$Queuedresources$Getmaintenanceinfo
|
|
4809
|
+
| BodyResponseCallback<Schema$GetMaintenanceInfoResponse>
|
|
4810
|
+
| BodyResponseCallback<Readable>,
|
|
4811
|
+
optionsOrCallback?:
|
|
4812
|
+
| MethodOptions
|
|
4813
|
+
| StreamMethodOptions
|
|
4814
|
+
| BodyResponseCallback<Schema$GetMaintenanceInfoResponse>
|
|
4815
|
+
| BodyResponseCallback<Readable>,
|
|
4816
|
+
callback?:
|
|
4817
|
+
| BodyResponseCallback<Schema$GetMaintenanceInfoResponse>
|
|
4818
|
+
| BodyResponseCallback<Readable>
|
|
4819
|
+
):
|
|
4820
|
+
| void
|
|
4821
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GetMaintenanceInfoResponse>>
|
|
4822
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4823
|
+
let params = (paramsOrCallback ||
|
|
4824
|
+
{}) as Params$Resource$Projects$Locations$Queuedresources$Getmaintenanceinfo;
|
|
4825
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4826
|
+
|
|
4827
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4828
|
+
callback = paramsOrCallback;
|
|
4829
|
+
params =
|
|
4830
|
+
{} as Params$Resource$Projects$Locations$Queuedresources$Getmaintenanceinfo;
|
|
4831
|
+
options = {};
|
|
4832
|
+
}
|
|
4833
|
+
|
|
4834
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4835
|
+
callback = optionsOrCallback;
|
|
4836
|
+
options = {};
|
|
4837
|
+
}
|
|
4838
|
+
|
|
4839
|
+
const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/';
|
|
4840
|
+
const parameters = {
|
|
4841
|
+
options: Object.assign(
|
|
4842
|
+
{
|
|
4843
|
+
url: (rootUrl + '/v2alpha1/{+name}:getMaintenanceInfo').replace(
|
|
4844
|
+
/([^:]\/)\/+/g,
|
|
4845
|
+
'$1'
|
|
4846
|
+
),
|
|
4847
|
+
method: 'GET',
|
|
4848
|
+
apiVersion: '',
|
|
4849
|
+
},
|
|
4850
|
+
options
|
|
4851
|
+
),
|
|
4852
|
+
params,
|
|
4853
|
+
requiredParams: ['name'],
|
|
4854
|
+
pathParams: ['name'],
|
|
4855
|
+
context: this.context,
|
|
4856
|
+
};
|
|
4857
|
+
if (callback) {
|
|
4858
|
+
createAPIRequest<Schema$GetMaintenanceInfoResponse>(
|
|
4859
|
+
parameters,
|
|
4860
|
+
callback as BodyResponseCallback<unknown>
|
|
4861
|
+
);
|
|
4862
|
+
} else {
|
|
4863
|
+
return createAPIRequest<Schema$GetMaintenanceInfoResponse>(parameters);
|
|
4864
|
+
}
|
|
4865
|
+
}
|
|
4866
|
+
|
|
4703
4867
|
/**
|
|
4704
4868
|
* Lists queued resources.
|
|
4705
4869
|
* @example
|
|
@@ -5149,8 +5313,7 @@ export namespace tpu_v2alpha1 {
|
|
|
5149
5313
|
}
|
|
5150
5314
|
}
|
|
5151
5315
|
|
|
5152
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$Create
|
|
5153
|
-
extends StandardParameters {
|
|
5316
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Create extends StandardParameters {
|
|
5154
5317
|
/**
|
|
5155
5318
|
* Required. The parent resource name.
|
|
5156
5319
|
*/
|
|
@@ -5169,8 +5332,7 @@ export namespace tpu_v2alpha1 {
|
|
|
5169
5332
|
*/
|
|
5170
5333
|
requestBody?: Schema$QueuedResource;
|
|
5171
5334
|
}
|
|
5172
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$Delete
|
|
5173
|
-
extends StandardParameters {
|
|
5335
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Delete extends StandardParameters {
|
|
5174
5336
|
/**
|
|
5175
5337
|
* 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.
|
|
5176
5338
|
*/
|
|
@@ -5184,15 +5346,19 @@ export namespace tpu_v2alpha1 {
|
|
|
5184
5346
|
*/
|
|
5185
5347
|
requestId?: string;
|
|
5186
5348
|
}
|
|
5187
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$Get
|
|
5188
|
-
extends StandardParameters {
|
|
5349
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Get extends StandardParameters {
|
|
5189
5350
|
/**
|
|
5190
5351
|
* Required. The resource name.
|
|
5191
5352
|
*/
|
|
5192
5353
|
name?: string;
|
|
5193
5354
|
}
|
|
5194
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$
|
|
5195
|
-
|
|
5355
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Getmaintenanceinfo extends StandardParameters {
|
|
5356
|
+
/**
|
|
5357
|
+
* Required. The QueuedResource name.
|
|
5358
|
+
*/
|
|
5359
|
+
name?: string;
|
|
5360
|
+
}
|
|
5361
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$List extends StandardParameters {
|
|
5196
5362
|
/**
|
|
5197
5363
|
* The maximum number of items to return.
|
|
5198
5364
|
*/
|
|
@@ -5206,8 +5372,7 @@ export namespace tpu_v2alpha1 {
|
|
|
5206
5372
|
*/
|
|
5207
5373
|
parent?: string;
|
|
5208
5374
|
}
|
|
5209
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$Performmaintenancequeuedresource
|
|
5210
|
-
extends StandardParameters {
|
|
5375
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Performmaintenancequeuedresource extends StandardParameters {
|
|
5211
5376
|
/**
|
|
5212
5377
|
* Required. The name of the QueuedResource which holds the nodes to perform maintenance on.
|
|
5213
5378
|
*/
|
|
@@ -5218,8 +5383,7 @@ export namespace tpu_v2alpha1 {
|
|
|
5218
5383
|
*/
|
|
5219
5384
|
requestBody?: Schema$PerformMaintenanceQueuedResourceRequest;
|
|
5220
5385
|
}
|
|
5221
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$Reset
|
|
5222
|
-
extends StandardParameters {
|
|
5386
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Reset extends StandardParameters {
|
|
5223
5387
|
/**
|
|
5224
5388
|
* Required. The name of the queued resource.
|
|
5225
5389
|
*/
|
|
@@ -5382,8 +5546,7 @@ export namespace tpu_v2alpha1 {
|
|
|
5382
5546
|
}
|
|
5383
5547
|
}
|
|
5384
5548
|
|
|
5385
|
-
export interface Params$Resource$Projects$Locations$Reservations$List
|
|
5386
|
-
extends StandardParameters {
|
|
5549
|
+
export interface Params$Resource$Projects$Locations$Reservations$List extends StandardParameters {
|
|
5387
5550
|
/**
|
|
5388
5551
|
* The maximum number of items to return. Defaults to 0 if not specified, which means no limit.
|
|
5389
5552
|
*/
|
|
@@ -5691,15 +5854,13 @@ export namespace tpu_v2alpha1 {
|
|
|
5691
5854
|
}
|
|
5692
5855
|
}
|
|
5693
5856
|
|
|
5694
|
-
export interface Params$Resource$Projects$Locations$Runtimeversions$Get
|
|
5695
|
-
extends StandardParameters {
|
|
5857
|
+
export interface Params$Resource$Projects$Locations$Runtimeversions$Get extends StandardParameters {
|
|
5696
5858
|
/**
|
|
5697
5859
|
* Required. The resource name.
|
|
5698
5860
|
*/
|
|
5699
5861
|
name?: string;
|
|
5700
5862
|
}
|
|
5701
|
-
export interface Params$Resource$Projects$Locations$Runtimeversions$List
|
|
5702
|
-
extends StandardParameters {
|
|
5863
|
+
export interface Params$Resource$Projects$Locations$Runtimeversions$List extends StandardParameters {
|
|
5703
5864
|
/**
|
|
5704
5865
|
* List filter.
|
|
5705
5866
|
*/
|