@maxim_mazurok/gapi.client.batch-v1 0.0.20221214 → 0.0.20230105
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/index.d.ts +16 -5
- package/package.json +1 -1
- package/tests.ts +8 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://batch.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230105
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -203,16 +203,25 @@ declare namespace gapi.client {
|
|
|
203
203
|
interface Disk {
|
|
204
204
|
/** Local SSDs are available through both "SCSI" and "NVMe" interfaces. If not indicated, "NVMe" will be the default one for local ssds. We only support "SCSI" for persistent disks now. */
|
|
205
205
|
diskInterface?: string;
|
|
206
|
-
/**
|
|
206
|
+
/**
|
|
207
|
+
* Name of a public or custom image used as the data source. For example, the following are all valid URLs: (1) Specify the image by its family name:
|
|
208
|
+
* projects/{project}/global/images/family/{image_family} (2) Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in
|
|
209
|
+
* short names. The following image values are supported for a boot disk: "batch-debian": use Batch Debian images. "batch-centos": use Batch CentOS images. "batch-cos": use Batch
|
|
210
|
+
* Container-Optimized images.
|
|
211
|
+
*/
|
|
207
212
|
image?: string;
|
|
208
213
|
/**
|
|
209
|
-
* Disk size in GB.
|
|
210
|
-
* next greater multiple of 375 GB.
|
|
214
|
+
* Disk size in GB. For persistent disk, this field is ignored if `data_source` is `image` or `snapshot`. For local SSD, size_gb should be a multiple of 375GB, otherwise, the final
|
|
215
|
+
* size will be the next greater multiple of 375 GB. For boot disk, Batch will calculate the boot disk size based on source image and task requirements if you do not speicify the size.
|
|
216
|
+
* If both this field and the boot_disk_mib field in task spec's compute_resource are defined, Batch will only honor this field.
|
|
211
217
|
*/
|
|
212
218
|
sizeGb?: string;
|
|
213
219
|
/** Name of a snapshot used as the data source. */
|
|
214
220
|
snapshot?: string;
|
|
215
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* Disk type as shown in `gcloud compute disk-types list`. For example, local SSD uses type "local-ssd". Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" or
|
|
223
|
+
* "pd-standard".
|
|
224
|
+
*/
|
|
216
225
|
type?: string;
|
|
217
226
|
}
|
|
218
227
|
// tslint:disable-next-line:no-empty-interface
|
|
@@ -243,6 +252,8 @@ declare namespace gapi.client {
|
|
|
243
252
|
interface InstancePolicy {
|
|
244
253
|
/** The accelerators attached to each VM instance. */
|
|
245
254
|
accelerators?: Accelerator[];
|
|
255
|
+
/** Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. */
|
|
256
|
+
bootDisk?: Disk;
|
|
246
257
|
/** Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. */
|
|
247
258
|
disks?: AttachedDisk[];
|
|
248
259
|
/** The Compute Engine machine type. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230105
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -59,6 +59,13 @@ gapi.load('client', async () => {
|
|
|
59
59
|
type: "Test string",
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
|
+
bootDisk: {
|
|
63
|
+
diskInterface: "Test string",
|
|
64
|
+
image: "Test string",
|
|
65
|
+
sizeGb: "Test string",
|
|
66
|
+
snapshot: "Test string",
|
|
67
|
+
type: "Test string",
|
|
68
|
+
},
|
|
62
69
|
disks: [
|
|
63
70
|
{
|
|
64
71
|
deviceName: "Test string",
|