@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/v2.ts
CHANGED
|
@@ -184,10 +184,28 @@ export namespace tpu_v2 {
|
|
|
184
184
|
*/
|
|
185
185
|
sourceDisk?: string | null;
|
|
186
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Sets the boot disk configuration for the TPU node.
|
|
189
|
+
*/
|
|
190
|
+
export interface Schema$BootDiskConfig {
|
|
191
|
+
/**
|
|
192
|
+
* Optional. Customer encryption key for boot disk.
|
|
193
|
+
*/
|
|
194
|
+
customerEncryptionKey?: Schema$CustomerEncryptionKey;
|
|
195
|
+
}
|
|
187
196
|
/**
|
|
188
197
|
* Further data for the creating state.
|
|
189
198
|
*/
|
|
190
199
|
export interface Schema$CreatingData {}
|
|
200
|
+
/**
|
|
201
|
+
* Defines the customer encryption key for disk encryption.
|
|
202
|
+
*/
|
|
203
|
+
export interface Schema$CustomerEncryptionKey {
|
|
204
|
+
/**
|
|
205
|
+
* The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1
|
|
206
|
+
*/
|
|
207
|
+
kmsKeyName?: string | null;
|
|
208
|
+
}
|
|
191
209
|
/**
|
|
192
210
|
* Further data for the deleting state.
|
|
193
211
|
*/
|
|
@@ -360,6 +378,10 @@ export namespace tpu_v2 {
|
|
|
360
378
|
* A list of operations that matches the specified filter in the request.
|
|
361
379
|
*/
|
|
362
380
|
operations?: Schema$Operation[];
|
|
381
|
+
/**
|
|
382
|
+
* 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.
|
|
383
|
+
*/
|
|
384
|
+
unreachable?: string[] | null;
|
|
363
385
|
}
|
|
364
386
|
/**
|
|
365
387
|
* Response for ListQueuedResources.
|
|
@@ -491,6 +513,10 @@ export namespace tpu_v2 {
|
|
|
491
513
|
* Output only. The API version that created this Node.
|
|
492
514
|
*/
|
|
493
515
|
apiVersion?: string | null;
|
|
516
|
+
/**
|
|
517
|
+
* Optional. Boot disk configuration.
|
|
518
|
+
*/
|
|
519
|
+
bootDiskConfig?: Schema$BootDiskConfig;
|
|
494
520
|
/**
|
|
495
521
|
* The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.
|
|
496
522
|
*/
|
|
@@ -1288,7 +1314,7 @@ export namespace tpu_v2 {
|
|
|
1288
1314
|
*
|
|
1289
1315
|
* // Do the magic
|
|
1290
1316
|
* const res = await tpu.projects.locations.list({
|
|
1291
|
-
* // Optional.
|
|
1317
|
+
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
1292
1318
|
* extraLocationTypes: 'placeholder-value',
|
|
1293
1319
|
* // 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).
|
|
1294
1320
|
* filter: 'placeholder-value',
|
|
@@ -1406,8 +1432,7 @@ export namespace tpu_v2 {
|
|
|
1406
1432
|
}
|
|
1407
1433
|
}
|
|
1408
1434
|
|
|
1409
|
-
export interface Params$Resource$Projects$Locations$Generateserviceidentity
|
|
1410
|
-
extends StandardParameters {
|
|
1435
|
+
export interface Params$Resource$Projects$Locations$Generateserviceidentity extends StandardParameters {
|
|
1411
1436
|
/**
|
|
1412
1437
|
* Required. The parent resource name.
|
|
1413
1438
|
*/
|
|
@@ -1418,17 +1443,15 @@ export namespace tpu_v2 {
|
|
|
1418
1443
|
*/
|
|
1419
1444
|
requestBody?: Schema$GenerateServiceIdentityRequest;
|
|
1420
1445
|
}
|
|
1421
|
-
export interface Params$Resource$Projects$Locations$Get
|
|
1422
|
-
extends StandardParameters {
|
|
1446
|
+
export interface Params$Resource$Projects$Locations$Get extends StandardParameters {
|
|
1423
1447
|
/**
|
|
1424
1448
|
* Resource name for the location.
|
|
1425
1449
|
*/
|
|
1426
1450
|
name?: string;
|
|
1427
1451
|
}
|
|
1428
|
-
export interface Params$Resource$Projects$Locations$List
|
|
1429
|
-
extends StandardParameters {
|
|
1452
|
+
export interface Params$Resource$Projects$Locations$List extends StandardParameters {
|
|
1430
1453
|
/**
|
|
1431
|
-
* Optional.
|
|
1454
|
+
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
1432
1455
|
*/
|
|
1433
1456
|
extraLocationTypes?: string[];
|
|
1434
1457
|
/**
|
|
@@ -1745,15 +1768,13 @@ export namespace tpu_v2 {
|
|
|
1745
1768
|
}
|
|
1746
1769
|
}
|
|
1747
1770
|
|
|
1748
|
-
export interface Params$Resource$Projects$Locations$Acceleratortypes$Get
|
|
1749
|
-
extends StandardParameters {
|
|
1771
|
+
export interface Params$Resource$Projects$Locations$Acceleratortypes$Get extends StandardParameters {
|
|
1750
1772
|
/**
|
|
1751
1773
|
* Required. The resource name.
|
|
1752
1774
|
*/
|
|
1753
1775
|
name?: string;
|
|
1754
1776
|
}
|
|
1755
|
-
export interface Params$Resource$Projects$Locations$Acceleratortypes$List
|
|
1756
|
-
extends StandardParameters {
|
|
1777
|
+
export interface Params$Resource$Projects$Locations$Acceleratortypes$List extends StandardParameters {
|
|
1757
1778
|
/**
|
|
1758
1779
|
* List filter.
|
|
1759
1780
|
*/
|
|
@@ -1825,6 +1846,7 @@ export namespace tpu_v2 {
|
|
|
1825
1846
|
* // "acceleratorConfig": {},
|
|
1826
1847
|
* // "acceleratorType": "my_acceleratorType",
|
|
1827
1848
|
* // "apiVersion": "my_apiVersion",
|
|
1849
|
+
* // "bootDiskConfig": {},
|
|
1828
1850
|
* // "cidrBlock": "my_cidrBlock",
|
|
1829
1851
|
* // "createTime": "my_createTime",
|
|
1830
1852
|
* // "dataDisks": [],
|
|
@@ -2137,6 +2159,7 @@ export namespace tpu_v2 {
|
|
|
2137
2159
|
* // "acceleratorConfig": {},
|
|
2138
2160
|
* // "acceleratorType": "my_acceleratorType",
|
|
2139
2161
|
* // "apiVersion": "my_apiVersion",
|
|
2162
|
+
* // "bootDiskConfig": {},
|
|
2140
2163
|
* // "cidrBlock": "my_cidrBlock",
|
|
2141
2164
|
* // "createTime": "my_createTime",
|
|
2142
2165
|
* // "dataDisks": [],
|
|
@@ -2592,6 +2615,7 @@ export namespace tpu_v2 {
|
|
|
2592
2615
|
* // "acceleratorConfig": {},
|
|
2593
2616
|
* // "acceleratorType": "my_acceleratorType",
|
|
2594
2617
|
* // "apiVersion": "my_apiVersion",
|
|
2618
|
+
* // "bootDiskConfig": {},
|
|
2595
2619
|
* // "cidrBlock": "my_cidrBlock",
|
|
2596
2620
|
* // "createTime": "my_createTime",
|
|
2597
2621
|
* // "dataDisks": [],
|
|
@@ -3011,8 +3035,7 @@ export namespace tpu_v2 {
|
|
|
3011
3035
|
}
|
|
3012
3036
|
}
|
|
3013
3037
|
|
|
3014
|
-
export interface Params$Resource$Projects$Locations$Nodes$Create
|
|
3015
|
-
extends StandardParameters {
|
|
3038
|
+
export interface Params$Resource$Projects$Locations$Nodes$Create extends StandardParameters {
|
|
3016
3039
|
/**
|
|
3017
3040
|
* The unqualified resource name.
|
|
3018
3041
|
*/
|
|
@@ -3027,22 +3050,19 @@ export namespace tpu_v2 {
|
|
|
3027
3050
|
*/
|
|
3028
3051
|
requestBody?: Schema$Node;
|
|
3029
3052
|
}
|
|
3030
|
-
export interface Params$Resource$Projects$Locations$Nodes$Delete
|
|
3031
|
-
extends StandardParameters {
|
|
3053
|
+
export interface Params$Resource$Projects$Locations$Nodes$Delete extends StandardParameters {
|
|
3032
3054
|
/**
|
|
3033
3055
|
* Required. The resource name.
|
|
3034
3056
|
*/
|
|
3035
3057
|
name?: string;
|
|
3036
3058
|
}
|
|
3037
|
-
export interface Params$Resource$Projects$Locations$Nodes$Get
|
|
3038
|
-
extends StandardParameters {
|
|
3059
|
+
export interface Params$Resource$Projects$Locations$Nodes$Get extends StandardParameters {
|
|
3039
3060
|
/**
|
|
3040
3061
|
* Required. The resource name.
|
|
3041
3062
|
*/
|
|
3042
3063
|
name?: string;
|
|
3043
3064
|
}
|
|
3044
|
-
export interface Params$Resource$Projects$Locations$Nodes$Getguestattributes
|
|
3045
|
-
extends StandardParameters {
|
|
3065
|
+
export interface Params$Resource$Projects$Locations$Nodes$Getguestattributes extends StandardParameters {
|
|
3046
3066
|
/**
|
|
3047
3067
|
* Required. The resource name.
|
|
3048
3068
|
*/
|
|
@@ -3053,8 +3073,7 @@ export namespace tpu_v2 {
|
|
|
3053
3073
|
*/
|
|
3054
3074
|
requestBody?: Schema$GetGuestAttributesRequest;
|
|
3055
3075
|
}
|
|
3056
|
-
export interface Params$Resource$Projects$Locations$Nodes$List
|
|
3057
|
-
extends StandardParameters {
|
|
3076
|
+
export interface Params$Resource$Projects$Locations$Nodes$List extends StandardParameters {
|
|
3058
3077
|
/**
|
|
3059
3078
|
* The maximum number of items to return.
|
|
3060
3079
|
*/
|
|
@@ -3068,8 +3087,7 @@ export namespace tpu_v2 {
|
|
|
3068
3087
|
*/
|
|
3069
3088
|
parent?: string;
|
|
3070
3089
|
}
|
|
3071
|
-
export interface Params$Resource$Projects$Locations$Nodes$Patch
|
|
3072
|
-
extends StandardParameters {
|
|
3090
|
+
export interface Params$Resource$Projects$Locations$Nodes$Patch extends StandardParameters {
|
|
3073
3091
|
/**
|
|
3074
3092
|
* Output only. Immutable. The name of the TPU.
|
|
3075
3093
|
*/
|
|
@@ -3084,8 +3102,7 @@ export namespace tpu_v2 {
|
|
|
3084
3102
|
*/
|
|
3085
3103
|
requestBody?: Schema$Node;
|
|
3086
3104
|
}
|
|
3087
|
-
export interface Params$Resource$Projects$Locations$Nodes$Start
|
|
3088
|
-
extends StandardParameters {
|
|
3105
|
+
export interface Params$Resource$Projects$Locations$Nodes$Start extends StandardParameters {
|
|
3089
3106
|
/**
|
|
3090
3107
|
* Required. The resource name.
|
|
3091
3108
|
*/
|
|
@@ -3096,8 +3113,7 @@ export namespace tpu_v2 {
|
|
|
3096
3113
|
*/
|
|
3097
3114
|
requestBody?: Schema$StartNodeRequest;
|
|
3098
3115
|
}
|
|
3099
|
-
export interface Params$Resource$Projects$Locations$Nodes$Stop
|
|
3100
|
-
extends StandardParameters {
|
|
3116
|
+
export interface Params$Resource$Projects$Locations$Nodes$Stop extends StandardParameters {
|
|
3101
3117
|
/**
|
|
3102
3118
|
* Required. The resource name.
|
|
3103
3119
|
*/
|
|
@@ -3556,13 +3572,16 @@ export namespace tpu_v2 {
|
|
|
3556
3572
|
* pageSize: 'placeholder-value',
|
|
3557
3573
|
* // The standard list page token.
|
|
3558
3574
|
* pageToken: 'placeholder-value',
|
|
3575
|
+
* // 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.
|
|
3576
|
+
* returnPartialSuccess: 'placeholder-value',
|
|
3559
3577
|
* });
|
|
3560
3578
|
* console.log(res.data);
|
|
3561
3579
|
*
|
|
3562
3580
|
* // Example response
|
|
3563
3581
|
* // {
|
|
3564
3582
|
* // "nextPageToken": "my_nextPageToken",
|
|
3565
|
-
* // "operations": []
|
|
3583
|
+
* // "operations": [],
|
|
3584
|
+
* // "unreachable": []
|
|
3566
3585
|
* // }
|
|
3567
3586
|
* }
|
|
3568
3587
|
*
|
|
@@ -3664,29 +3683,25 @@ export namespace tpu_v2 {
|
|
|
3664
3683
|
}
|
|
3665
3684
|
}
|
|
3666
3685
|
|
|
3667
|
-
export interface Params$Resource$Projects$Locations$Operations$Cancel
|
|
3668
|
-
extends StandardParameters {
|
|
3686
|
+
export interface Params$Resource$Projects$Locations$Operations$Cancel extends StandardParameters {
|
|
3669
3687
|
/**
|
|
3670
3688
|
* The name of the operation resource to be cancelled.
|
|
3671
3689
|
*/
|
|
3672
3690
|
name?: string;
|
|
3673
3691
|
}
|
|
3674
|
-
export interface Params$Resource$Projects$Locations$Operations$Delete
|
|
3675
|
-
extends StandardParameters {
|
|
3692
|
+
export interface Params$Resource$Projects$Locations$Operations$Delete extends StandardParameters {
|
|
3676
3693
|
/**
|
|
3677
3694
|
* The name of the operation resource to be deleted.
|
|
3678
3695
|
*/
|
|
3679
3696
|
name?: string;
|
|
3680
3697
|
}
|
|
3681
|
-
export interface Params$Resource$Projects$Locations$Operations$Get
|
|
3682
|
-
extends StandardParameters {
|
|
3698
|
+
export interface Params$Resource$Projects$Locations$Operations$Get extends StandardParameters {
|
|
3683
3699
|
/**
|
|
3684
3700
|
* The name of the operation resource.
|
|
3685
3701
|
*/
|
|
3686
3702
|
name?: string;
|
|
3687
3703
|
}
|
|
3688
|
-
export interface Params$Resource$Projects$Locations$Operations$List
|
|
3689
|
-
extends StandardParameters {
|
|
3704
|
+
export interface Params$Resource$Projects$Locations$Operations$List extends StandardParameters {
|
|
3690
3705
|
/**
|
|
3691
3706
|
* The standard list filter.
|
|
3692
3707
|
*/
|
|
@@ -3703,6 +3718,10 @@ export namespace tpu_v2 {
|
|
|
3703
3718
|
* The standard list page token.
|
|
3704
3719
|
*/
|
|
3705
3720
|
pageToken?: string;
|
|
3721
|
+
/**
|
|
3722
|
+
* 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.
|
|
3723
|
+
*/
|
|
3724
|
+
returnPartialSuccess?: boolean;
|
|
3706
3725
|
}
|
|
3707
3726
|
|
|
3708
3727
|
export class Resource$Projects$Locations$Queuedresources {
|
|
@@ -4448,8 +4467,7 @@ export namespace tpu_v2 {
|
|
|
4448
4467
|
}
|
|
4449
4468
|
}
|
|
4450
4469
|
|
|
4451
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$Create
|
|
4452
|
-
extends StandardParameters {
|
|
4470
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Create extends StandardParameters {
|
|
4453
4471
|
/**
|
|
4454
4472
|
* Required. The parent resource name.
|
|
4455
4473
|
*/
|
|
@@ -4468,8 +4486,7 @@ export namespace tpu_v2 {
|
|
|
4468
4486
|
*/
|
|
4469
4487
|
requestBody?: Schema$QueuedResource;
|
|
4470
4488
|
}
|
|
4471
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$Delete
|
|
4472
|
-
extends StandardParameters {
|
|
4489
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Delete extends StandardParameters {
|
|
4473
4490
|
/**
|
|
4474
4491
|
* 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.
|
|
4475
4492
|
*/
|
|
@@ -4483,15 +4500,13 @@ export namespace tpu_v2 {
|
|
|
4483
4500
|
*/
|
|
4484
4501
|
requestId?: string;
|
|
4485
4502
|
}
|
|
4486
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$Get
|
|
4487
|
-
extends StandardParameters {
|
|
4503
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Get extends StandardParameters {
|
|
4488
4504
|
/**
|
|
4489
4505
|
* Required. The resource name.
|
|
4490
4506
|
*/
|
|
4491
4507
|
name?: string;
|
|
4492
4508
|
}
|
|
4493
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$List
|
|
4494
|
-
extends StandardParameters {
|
|
4509
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$List extends StandardParameters {
|
|
4495
4510
|
/**
|
|
4496
4511
|
* Optional. The maximum number of items to return.
|
|
4497
4512
|
*/
|
|
@@ -4505,8 +4520,7 @@ export namespace tpu_v2 {
|
|
|
4505
4520
|
*/
|
|
4506
4521
|
parent?: string;
|
|
4507
4522
|
}
|
|
4508
|
-
export interface Params$Resource$Projects$Locations$Queuedresources$Reset
|
|
4509
|
-
extends StandardParameters {
|
|
4523
|
+
export interface Params$Resource$Projects$Locations$Queuedresources$Reset extends StandardParameters {
|
|
4510
4524
|
/**
|
|
4511
4525
|
* Required. The name of the queued resource.
|
|
4512
4526
|
*/
|
|
@@ -4811,15 +4825,13 @@ export namespace tpu_v2 {
|
|
|
4811
4825
|
}
|
|
4812
4826
|
}
|
|
4813
4827
|
|
|
4814
|
-
export interface Params$Resource$Projects$Locations$Runtimeversions$Get
|
|
4815
|
-
extends StandardParameters {
|
|
4828
|
+
export interface Params$Resource$Projects$Locations$Runtimeversions$Get extends StandardParameters {
|
|
4816
4829
|
/**
|
|
4817
4830
|
* Required. The resource name.
|
|
4818
4831
|
*/
|
|
4819
4832
|
name?: string;
|
|
4820
4833
|
}
|
|
4821
|
-
export interface Params$Resource$Projects$Locations$Runtimeversions$List
|
|
4822
|
-
extends StandardParameters {
|
|
4834
|
+
export interface Params$Resource$Projects$Locations$Runtimeversions$List extends StandardParameters {
|
|
4823
4835
|
/**
|
|
4824
4836
|
* List filter.
|
|
4825
4837
|
*/
|