Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
yoshi-automation committed Jan 31, 2023
1 parent f702bb4 commit 0157ea5
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
40 changes: 40 additions & 0 deletions docs/dyn/batch_v1.projects.locations.jobs.html
Expand Up @@ -180,6 +180,9 @@ <h3>Method Details</h3>
},
&quot;serviceAccount&quot;: { # Carries information about a Google Cloud service account. # Service account that VMs will run as.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;scopes&quot;: [ # 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.
&quot;A String&quot;,
],
},
},
&quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Job was created.
Expand Down Expand Up @@ -222,6 +225,13 @@ <h3>Method Details</h3>
},
&quot;instances&quot;: [ # Status of instances allocated for the TaskGroup.
{ # VM instance status.
&quot;bootDisk&quot;: { # 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.
&quot;diskInterface&quot;: &quot;A String&quot;, # Local SSDs are available through both &quot;SCSI&quot; and &quot;NVMe&quot; interfaces. If not indicated, &quot;NVMe&quot; will be the default one for local ssds. We only support &quot;SCSI&quot; for persistent disks now.
&quot;image&quot;: &quot;A String&quot;, # 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: &quot;batch-debian&quot;: use Batch Debian images. &quot;batch-centos&quot;: use Batch CentOS images. &quot;batch-cos&quot;: use Batch Container-Optimized images.
&quot;sizeGb&quot;: &quot;A String&quot;, # 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&#x27;s compute_resource are defined, Batch will only honor this field.
&quot;snapshot&quot;: &quot;A String&quot;, # Name of a snapshot used as the data source.
&quot;type&quot;: &quot;A String&quot;, # Disk type as shown in `gcloud compute disk-types list`. For example, local SSD uses type &quot;local-ssd&quot;. Persistent disks and boot disks use &quot;pd-balanced&quot;, &quot;pd-extreme&quot;, &quot;pd-ssd&quot; or &quot;pd-standard&quot;.
},
&quot;machineType&quot;: &quot;A String&quot;, # The Compute Engine machine type.
&quot;provisioningModel&quot;: &quot;A String&quot;, # The VM instance provisioning model.
&quot;taskPack&quot;: &quot;A String&quot;, # The max number of tasks can be assigned to this instance type.
Expand Down Expand Up @@ -418,6 +428,9 @@ <h3>Method Details</h3>
},
&quot;serviceAccount&quot;: { # Carries information about a Google Cloud service account. # Service account that VMs will run as.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;scopes&quot;: [ # 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.
&quot;A String&quot;,
],
},
},
&quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Job was created.
Expand Down Expand Up @@ -460,6 +473,13 @@ <h3>Method Details</h3>
},
&quot;instances&quot;: [ # Status of instances allocated for the TaskGroup.
{ # VM instance status.
&quot;bootDisk&quot;: { # 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.
&quot;diskInterface&quot;: &quot;A String&quot;, # Local SSDs are available through both &quot;SCSI&quot; and &quot;NVMe&quot; interfaces. If not indicated, &quot;NVMe&quot; will be the default one for local ssds. We only support &quot;SCSI&quot; for persistent disks now.
&quot;image&quot;: &quot;A String&quot;, # 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: &quot;batch-debian&quot;: use Batch Debian images. &quot;batch-centos&quot;: use Batch CentOS images. &quot;batch-cos&quot;: use Batch Container-Optimized images.
&quot;sizeGb&quot;: &quot;A String&quot;, # 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&#x27;s compute_resource are defined, Batch will only honor this field.
&quot;snapshot&quot;: &quot;A String&quot;, # Name of a snapshot used as the data source.
&quot;type&quot;: &quot;A String&quot;, # Disk type as shown in `gcloud compute disk-types list`. For example, local SSD uses type &quot;local-ssd&quot;. Persistent disks and boot disks use &quot;pd-balanced&quot;, &quot;pd-extreme&quot;, &quot;pd-ssd&quot; or &quot;pd-standard&quot;.
},
&quot;machineType&quot;: &quot;A String&quot;, # The Compute Engine machine type.
&quot;provisioningModel&quot;: &quot;A String&quot;, # The VM instance provisioning model.
&quot;taskPack&quot;: &quot;A String&quot;, # The max number of tasks can be assigned to this instance type.
Expand Down Expand Up @@ -698,6 +718,9 @@ <h3>Method Details</h3>
},
&quot;serviceAccount&quot;: { # Carries information about a Google Cloud service account. # Service account that VMs will run as.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;scopes&quot;: [ # 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.
&quot;A String&quot;,
],
},
},
&quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Job was created.
Expand Down Expand Up @@ -740,6 +763,13 @@ <h3>Method Details</h3>
},
&quot;instances&quot;: [ # Status of instances allocated for the TaskGroup.
{ # VM instance status.
&quot;bootDisk&quot;: { # 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.
&quot;diskInterface&quot;: &quot;A String&quot;, # Local SSDs are available through both &quot;SCSI&quot; and &quot;NVMe&quot; interfaces. If not indicated, &quot;NVMe&quot; will be the default one for local ssds. We only support &quot;SCSI&quot; for persistent disks now.
&quot;image&quot;: &quot;A String&quot;, # 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: &quot;batch-debian&quot;: use Batch Debian images. &quot;batch-centos&quot;: use Batch CentOS images. &quot;batch-cos&quot;: use Batch Container-Optimized images.
&quot;sizeGb&quot;: &quot;A String&quot;, # 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&#x27;s compute_resource are defined, Batch will only honor this field.
&quot;snapshot&quot;: &quot;A String&quot;, # Name of a snapshot used as the data source.
&quot;type&quot;: &quot;A String&quot;, # Disk type as shown in `gcloud compute disk-types list`. For example, local SSD uses type &quot;local-ssd&quot;. Persistent disks and boot disks use &quot;pd-balanced&quot;, &quot;pd-extreme&quot;, &quot;pd-ssd&quot; or &quot;pd-standard&quot;.
},
&quot;machineType&quot;: &quot;A String&quot;, # The Compute Engine machine type.
&quot;provisioningModel&quot;: &quot;A String&quot;, # The VM instance provisioning model.
&quot;taskPack&quot;: &quot;A String&quot;, # The max number of tasks can be assigned to this instance type.
Expand Down Expand Up @@ -994,6 +1024,9 @@ <h3>Method Details</h3>
},
&quot;serviceAccount&quot;: { # Carries information about a Google Cloud service account. # Service account that VMs will run as.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;scopes&quot;: [ # 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.
&quot;A String&quot;,
],
},
},
&quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Job was created.
Expand Down Expand Up @@ -1036,6 +1069,13 @@ <h3>Method Details</h3>
},
&quot;instances&quot;: [ # Status of instances allocated for the TaskGroup.
{ # VM instance status.
&quot;bootDisk&quot;: { # 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.
&quot;diskInterface&quot;: &quot;A String&quot;, # Local SSDs are available through both &quot;SCSI&quot; and &quot;NVMe&quot; interfaces. If not indicated, &quot;NVMe&quot; will be the default one for local ssds. We only support &quot;SCSI&quot; for persistent disks now.
&quot;image&quot;: &quot;A String&quot;, # 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: &quot;batch-debian&quot;: use Batch Debian images. &quot;batch-centos&quot;: use Batch CentOS images. &quot;batch-cos&quot;: use Batch Container-Optimized images.
&quot;sizeGb&quot;: &quot;A String&quot;, # 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&#x27;s compute_resource are defined, Batch will only honor this field.
&quot;snapshot&quot;: &quot;A String&quot;, # Name of a snapshot used as the data source.
&quot;type&quot;: &quot;A String&quot;, # Disk type as shown in `gcloud compute disk-types list`. For example, local SSD uses type &quot;local-ssd&quot;. Persistent disks and boot disks use &quot;pd-balanced&quot;, &quot;pd-extreme&quot;, &quot;pd-ssd&quot; or &quot;pd-standard&quot;.
},
&quot;machineType&quot;: &quot;A String&quot;, # The Compute Engine machine type.
&quot;provisioningModel&quot;: &quot;A String&quot;, # The VM instance provisioning model.
&quot;taskPack&quot;: &quot;A String&quot;, # The max number of tasks can be assigned to this instance type.
Expand Down
13 changes: 12 additions & 1 deletion googleapiclient/discovery_cache/documents/batch.v1.json
Expand Up @@ -643,7 +643,7 @@
}
}
},
"revision": "20230111",
"revision": "20230118",
"rootUrl": "https://batch.googleapis.com/",
"schemas": {
"Accelerator": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 0157ea5

Please sign in to comment.