From 0157ea5c3f9c7f42fd566f003014886ac2fa4fe7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 31 Jan 2023 07:07:55 +0000 Subject: [PATCH] feat(batch): update the api #### batch:v1 The following keys were added: - schemas.InstanceStatus.properties.bootDisk.$ref (Total Keys: 1) - schemas.ServiceAccount.properties.scopes (Total Keys: 2) --- .../dyn/batch_v1.projects.locations.jobs.html | 40 +++++++++++++++++++ .../discovery_cache/documents/batch.v1.json | 13 +++++- 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/docs/dyn/batch_v1.projects.locations.jobs.html b/docs/dyn/batch_v1.projects.locations.jobs.html index 976c5ff592d..6503dfbaecc 100644 --- a/docs/dyn/batch_v1.projects.locations.jobs.html +++ b/docs/dyn/batch_v1.projects.locations.jobs.html @@ -180,6 +180,9 @@

Method Details

}, "serviceAccount": { # Carries information about a Google Cloud service account. # Service account that VMs will run as. "email": "A String", # Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here. + "scopes": [ # List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default. + "A String", + ], }, }, "createTime": "A String", # Output only. When the Job was created. @@ -222,6 +225,13 @@

Method Details

}, "instances": [ # Status of instances allocated for the TaskGroup. { # VM instance status. + "bootDisk": { # A new persistent disk or a local ssd. A VM can only have one local SSD setting but multiple local SSD partitions. https://cloud.google.com/compute/docs/disks#pdspecs. https://cloud.google.com/compute/docs/disks#localssds. # The VM boot disk. + "diskInterface": "A String", # 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. + "image": "A String", # 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: 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 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 Container-Optimized images. + "sizeGb": "A String", # 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 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. If both this field and the boot_disk_mib field in task spec's compute_resource are defined, Batch will only honor this field. + "snapshot": "A String", # Name of a snapshot used as the data source. + "type": "A String", # 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 "pd-standard". + }, "machineType": "A String", # The Compute Engine machine type. "provisioningModel": "A String", # The VM instance provisioning model. "taskPack": "A String", # The max number of tasks can be assigned to this instance type. @@ -418,6 +428,9 @@

Method Details

}, "serviceAccount": { # Carries information about a Google Cloud service account. # Service account that VMs will run as. "email": "A String", # Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here. + "scopes": [ # List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default. + "A String", + ], }, }, "createTime": "A String", # Output only. When the Job was created. @@ -460,6 +473,13 @@

Method Details

}, "instances": [ # Status of instances allocated for the TaskGroup. { # VM instance status. + "bootDisk": { # A new persistent disk or a local ssd. A VM can only have one local SSD setting but multiple local SSD partitions. https://cloud.google.com/compute/docs/disks#pdspecs. https://cloud.google.com/compute/docs/disks#localssds. # The VM boot disk. + "diskInterface": "A String", # 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. + "image": "A String", # 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: 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 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 Container-Optimized images. + "sizeGb": "A String", # 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 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. If both this field and the boot_disk_mib field in task spec's compute_resource are defined, Batch will only honor this field. + "snapshot": "A String", # Name of a snapshot used as the data source. + "type": "A String", # 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 "pd-standard". + }, "machineType": "A String", # The Compute Engine machine type. "provisioningModel": "A String", # The VM instance provisioning model. "taskPack": "A String", # The max number of tasks can be assigned to this instance type. @@ -698,6 +718,9 @@

Method Details

}, "serviceAccount": { # Carries information about a Google Cloud service account. # Service account that VMs will run as. "email": "A String", # Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here. + "scopes": [ # List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default. + "A String", + ], }, }, "createTime": "A String", # Output only. When the Job was created. @@ -740,6 +763,13 @@

Method Details

}, "instances": [ # Status of instances allocated for the TaskGroup. { # VM instance status. + "bootDisk": { # A new persistent disk or a local ssd. A VM can only have one local SSD setting but multiple local SSD partitions. https://cloud.google.com/compute/docs/disks#pdspecs. https://cloud.google.com/compute/docs/disks#localssds. # The VM boot disk. + "diskInterface": "A String", # 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. + "image": "A String", # 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: 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 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 Container-Optimized images. + "sizeGb": "A String", # 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 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. If both this field and the boot_disk_mib field in task spec's compute_resource are defined, Batch will only honor this field. + "snapshot": "A String", # Name of a snapshot used as the data source. + "type": "A String", # 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 "pd-standard". + }, "machineType": "A String", # The Compute Engine machine type. "provisioningModel": "A String", # The VM instance provisioning model. "taskPack": "A String", # The max number of tasks can be assigned to this instance type. @@ -994,6 +1024,9 @@

Method Details

}, "serviceAccount": { # Carries information about a Google Cloud service account. # Service account that VMs will run as. "email": "A String", # Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here. + "scopes": [ # List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default. + "A String", + ], }, }, "createTime": "A String", # Output only. When the Job was created. @@ -1036,6 +1069,13 @@

Method Details

}, "instances": [ # Status of instances allocated for the TaskGroup. { # VM instance status. + "bootDisk": { # A new persistent disk or a local ssd. A VM can only have one local SSD setting but multiple local SSD partitions. https://cloud.google.com/compute/docs/disks#pdspecs. https://cloud.google.com/compute/docs/disks#localssds. # The VM boot disk. + "diskInterface": "A String", # 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. + "image": "A String", # 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: 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 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 Container-Optimized images. + "sizeGb": "A String", # 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 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. If both this field and the boot_disk_mib field in task spec's compute_resource are defined, Batch will only honor this field. + "snapshot": "A String", # Name of a snapshot used as the data source. + "type": "A String", # 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 "pd-standard". + }, "machineType": "A String", # The Compute Engine machine type. "provisioningModel": "A String", # The VM instance provisioning model. "taskPack": "A String", # The max number of tasks can be assigned to this instance type. diff --git a/googleapiclient/discovery_cache/documents/batch.v1.json b/googleapiclient/discovery_cache/documents/batch.v1.json index cd60ac52b39..4e648b62405 100644 --- a/googleapiclient/discovery_cache/documents/batch.v1.json +++ b/googleapiclient/discovery_cache/documents/batch.v1.json @@ -643,7 +643,7 @@ } } }, - "revision": "20230111", + "revision": "20230118", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -1224,6 +1224,10 @@ "description": "VM instance status.", "id": "InstanceStatus", "properties": { + "bootDisk": { + "$ref": "Disk", + "description": "The VM boot disk." + }, "machineType": { "description": "The Compute Engine machine type.", "type": "string" @@ -1906,6 +1910,13 @@ "email": { "description": "Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here.", "type": "string" + }, + "scopes": { + "description": "List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object"