@maxim_mazurok/gapi.client.batch-v1 0.0.20230726 → 0.0.20230807
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 +20 -18
- package/package.json +2 -2
- package/tests.ts +1 -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: 20230807
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -341,17 +341,19 @@ declare namespace gapi.client {
|
|
|
341
341
|
diskInterface?:
|
|
342
342
|
string;
|
|
343
343
|
/**
|
|
344
|
-
*
|
|
345
|
-
* Specify the image version: projects/project/global/images/image_version You can also use Batch customized image in short
|
|
346
|
-
* disk: * `batch-debian`: use Batch Debian images. * `batch-centos`: use Batch CentOS images. * `batch-cos`: use Batch
|
|
347
|
-
* CentOS images.
|
|
344
|
+
* URL for a VM image to use as the data source for this disk. For example, the following are all valid URLs: * Specify the image by its family name:
|
|
345
|
+
* projects/{project}/global/images/family/{image_family} * Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in short
|
|
346
|
+
* 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
|
|
347
|
+
* Container-Optimized images. * `batch-hpc-centos`: use Batch HPC CentOS images.
|
|
348
348
|
*/
|
|
349
349
|
image?:
|
|
350
350
|
string;
|
|
351
351
|
/**
|
|
352
|
-
* Disk size in GB.
|
|
353
|
-
*
|
|
354
|
-
* If both this field and the boot_disk_mib field in task spec's compute_resource are defined, Batch
|
|
352
|
+
* Disk size in GB. **Non-Boot Disk**: If the `type` specifies a persistent disk, this field is ignored if `data_source` is set as `image` or `snapshot`. If the `type` specifies a
|
|
353
|
+
* local SSD, this field should be a multiple of 375 GB, otherwise, the final size will be the next greater multiple of 375 GB. **Boot Disk**: Batch will calculate the boot disk size
|
|
354
|
+
* based on source image and task requirements if you do not speicify the size. If both this field and the `boot_disk_mib` field in task spec's `compute_resource` are defined, Batch
|
|
355
|
+
* will only honor this field. Also, this field should be no smaller than the source disk's size when the `data_source` is set as `snapshot` or `image`. For example, if you set an
|
|
356
|
+
* image as the `data_source` field and the image's default disk size 30 GB, you can only use this field to make the disk larger or equal to 30 GB.
|
|
355
357
|
*/
|
|
356
358
|
sizeGb?:
|
|
357
359
|
string;
|
|
@@ -392,8 +394,8 @@ declare namespace gapi.client {
|
|
|
392
394
|
bootDisk?:
|
|
393
395
|
Disk;
|
|
394
396
|
/**
|
|
395
|
-
* Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non
|
|
396
|
-
*
|
|
397
|
+
* Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a
|
|
398
|
+
* file system or a raw storage drive that is not ready for data storage and accessing.
|
|
397
399
|
*/
|
|
398
400
|
disks?:
|
|
399
401
|
AttachedDisk[];
|
|
@@ -612,8 +614,8 @@ declare namespace gapi.client {
|
|
|
612
614
|
}
|
|
613
615
|
interface NetworkInterface {
|
|
614
616
|
/**
|
|
615
|
-
* The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs:
|
|
616
|
-
* https://www.googleapis.com/compute/v1/projects/project/global/networks/network projects/project/global/networks/network global/networks/network
|
|
617
|
+
* The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: *
|
|
618
|
+
* https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}
|
|
617
619
|
*/
|
|
618
620
|
network?:
|
|
619
621
|
string;
|
|
@@ -625,9 +627,9 @@ declare namespace gapi.client {
|
|
|
625
627
|
noExternalIpAddress?:
|
|
626
628
|
boolean;
|
|
627
629
|
/**
|
|
628
|
-
* The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:
|
|
629
|
-
* https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork projects/project/regions/region/subnetworks/subnetwork
|
|
630
|
-
* regions/region/subnetworks/subnetwork
|
|
630
|
+
* The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: *
|
|
631
|
+
* https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} *
|
|
632
|
+
* regions/{region}/subnetworks/{subnetwork}
|
|
631
633
|
*/
|
|
632
634
|
subnetwork?:
|
|
633
635
|
string;
|
|
@@ -665,9 +667,9 @@ declare namespace gapi.client {
|
|
|
665
667
|
name?:
|
|
666
668
|
string;
|
|
667
669
|
/**
|
|
668
|
-
* The normal response of the operation
|
|
669
|
-
*
|
|
670
|
-
*
|
|
670
|
+
* The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original
|
|
671
|
+
* method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original
|
|
672
|
+
* method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
671
673
|
*/
|
|
672
674
|
response?:
|
|
673
675
|
{ [P in string]: any };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.batch-v1",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20230807",
|
|
4
4
|
"description": "TypeScript typings for Batch API v1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"types": "index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/gapi.client": "*",
|
|
18
|
-
"@types/gapi.client.discovery": "*"
|
|
18
|
+
"@types/gapi.client.discovery-v1": "*"
|
|
19
19
|
}
|
|
20
20
|
}
|
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: 20230807
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|