Skip to content

Commit

Permalink
feat(batch): update the api
Browse files Browse the repository at this point in the history
#### batch:v1

The following keys were deleted:
- schemas.CloudLoggingOption (Total Keys: 2)
- schemas.LogsPolicy.properties.cloudLoggingOption.$ref (Total Keys: 1)

The following keys were added:
- schemas.Container.properties.enableImageStreaming.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Dec 12, 2023
1 parent 79aa42d commit dfe3739
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
12 changes: 4 additions & 8 deletions docs/dyn/batch_v1.projects.locations.jobs.html
Expand Up @@ -187,8 +187,6 @@ <h3>Method Details</h3>
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;logsPolicy&quot;: { # LogsPolicy describes how outputs from a Job&#x27;s Tasks (stdout/stderr) will be preserved. # Log preservation policy for the Job.
&quot;cloudLoggingOption&quot;: { # CloudLoggingOption contains additional settings for cloud logging generated by Batch job. # Optional. Additional settings for Cloud Logging. It will only take effect when the destination of LogsPolicy is set to CLOUD_LOGGING.
},
&quot;destination&quot;: &quot;A String&quot;, # Where logs should be saved.
&quot;logsPath&quot;: &quot;A String&quot;, # The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.
},
Expand Down Expand Up @@ -308,6 +306,7 @@ <h3>Method Details</h3>
&quot;commands&quot;: [ # Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.
&quot;A String&quot;,
],
&quot;enableImageStreaming&quot;: True or False, # Optional. If set to true, container will run with Image streaming. The container runtime will be changed to containerd instead of docker. Currently, only imageUri, commands, entrypoint and volumes are supported and any other fields will be ignored. Please refer [here](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming) for the feature requirements and limitations.
&quot;entrypoint&quot;: &quot;A String&quot;, # Overrides the `ENTRYPOINT` specified in the container.
&quot;imageUri&quot;: &quot;A String&quot;, # The URI to pull the container image from.
&quot;options&quot;: &quot;A String&quot;, # Arbitrary additional options to include in the &quot;docker run&quot; command when running this container, e.g. &quot;--network host&quot;.
Expand Down Expand Up @@ -449,8 +448,6 @@ <h3>Method Details</h3>
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;logsPolicy&quot;: { # LogsPolicy describes how outputs from a Job&#x27;s Tasks (stdout/stderr) will be preserved. # Log preservation policy for the Job.
&quot;cloudLoggingOption&quot;: { # CloudLoggingOption contains additional settings for cloud logging generated by Batch job. # Optional. Additional settings for Cloud Logging. It will only take effect when the destination of LogsPolicy is set to CLOUD_LOGGING.
},
&quot;destination&quot;: &quot;A String&quot;, # Where logs should be saved.
&quot;logsPath&quot;: &quot;A String&quot;, # The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.
},
Expand Down Expand Up @@ -570,6 +567,7 @@ <h3>Method Details</h3>
&quot;commands&quot;: [ # Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.
&quot;A String&quot;,
],
&quot;enableImageStreaming&quot;: True or False, # Optional. If set to true, container will run with Image streaming. The container runtime will be changed to containerd instead of docker. Currently, only imageUri, commands, entrypoint and volumes are supported and any other fields will be ignored. Please refer [here](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming) for the feature requirements and limitations.
&quot;entrypoint&quot;: &quot;A String&quot;, # Overrides the `ENTRYPOINT` specified in the container.
&quot;imageUri&quot;: &quot;A String&quot;, # The URI to pull the container image from.
&quot;options&quot;: &quot;A String&quot;, # Arbitrary additional options to include in the &quot;docker run&quot; command when running this container, e.g. &quot;--network host&quot;.
Expand Down Expand Up @@ -753,8 +751,6 @@ <h3>Method Details</h3>
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;logsPolicy&quot;: { # LogsPolicy describes how outputs from a Job&#x27;s Tasks (stdout/stderr) will be preserved. # Log preservation policy for the Job.
&quot;cloudLoggingOption&quot;: { # CloudLoggingOption contains additional settings for cloud logging generated by Batch job. # Optional. Additional settings for Cloud Logging. It will only take effect when the destination of LogsPolicy is set to CLOUD_LOGGING.
},
&quot;destination&quot;: &quot;A String&quot;, # Where logs should be saved.
&quot;logsPath&quot;: &quot;A String&quot;, # The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.
},
Expand Down Expand Up @@ -874,6 +870,7 @@ <h3>Method Details</h3>
&quot;commands&quot;: [ # Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.
&quot;A String&quot;,
],
&quot;enableImageStreaming&quot;: True or False, # Optional. If set to true, container will run with Image streaming. The container runtime will be changed to containerd instead of docker. Currently, only imageUri, commands, entrypoint and volumes are supported and any other fields will be ignored. Please refer [here](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming) for the feature requirements and limitations.
&quot;entrypoint&quot;: &quot;A String&quot;, # Overrides the `ENTRYPOINT` specified in the container.
&quot;imageUri&quot;: &quot;A String&quot;, # The URI to pull the container image from.
&quot;options&quot;: &quot;A String&quot;, # Arbitrary additional options to include in the &quot;docker run&quot; command when running this container, e.g. &quot;--network host&quot;.
Expand Down Expand Up @@ -1026,8 +1023,6 @@ <h3>Method Details</h3>
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;logsPolicy&quot;: { # LogsPolicy describes how outputs from a Job&#x27;s Tasks (stdout/stderr) will be preserved. # Log preservation policy for the Job.
&quot;cloudLoggingOption&quot;: { # CloudLoggingOption contains additional settings for cloud logging generated by Batch job. # Optional. Additional settings for Cloud Logging. It will only take effect when the destination of LogsPolicy is set to CLOUD_LOGGING.
},
&quot;destination&quot;: &quot;A String&quot;, # Where logs should be saved.
&quot;logsPath&quot;: &quot;A String&quot;, # The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.
},
Expand Down Expand Up @@ -1147,6 +1142,7 @@ <h3>Method Details</h3>
&quot;commands&quot;: [ # Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.
&quot;A String&quot;,
],
&quot;enableImageStreaming&quot;: True or False, # Optional. If set to true, container will run with Image streaming. The container runtime will be changed to containerd instead of docker. Currently, only imageUri, commands, entrypoint and volumes are supported and any other fields will be ignored. Please refer [here](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming) for the feature requirements and limitations.
&quot;entrypoint&quot;: &quot;A String&quot;, # Overrides the `ENTRYPOINT` specified in the container.
&quot;imageUri&quot;: &quot;A String&quot;, # The URI to pull the container image from.
&quot;options&quot;: &quot;A String&quot;, # Arbitrary additional options to include in the &quot;docker run&quot; command when running this container, e.g. &quot;--network host&quot;.
Expand Down
1 change: 1 addition & 0 deletions docs/dyn/batch_v1.projects.locations.state.html
Expand Up @@ -256,6 +256,7 @@ <h3>Method Details</h3>
&quot;commands&quot;: [ # Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.
&quot;A String&quot;,
],
&quot;enableImageStreaming&quot;: True or False, # Optional. If set to true, container will run with Image streaming. The container runtime will be changed to containerd instead of docker. Currently, only imageUri, commands, entrypoint and volumes are supported and any other fields will be ignored. Please refer [here](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming) for the feature requirements and limitations.
&quot;entrypoint&quot;: &quot;A String&quot;, # Overrides the `ENTRYPOINT` specified in the container.
&quot;imageUri&quot;: &quot;A String&quot;, # The URI to pull the container image from.
&quot;options&quot;: &quot;A String&quot;, # Arbitrary additional options to include in the &quot;docker run&quot; command when running this container, e.g. &quot;--network host&quot;.
Expand Down
16 changes: 5 additions & 11 deletions googleapiclient/discovery_cache/documents/batch.v1.json
Expand Up @@ -561,7 +561,7 @@
}
}
},
"revision": "20231106",
"revision": "20231122",
"rootUrl": "https://batch.googleapis.com/",
"schemas": {
"Accelerator": {
Expand Down Expand Up @@ -1036,12 +1036,6 @@
"properties": {},
"type": "object"
},
"CloudLoggingOption": {
"description": "CloudLoggingOption contains additional settings for cloud logging generated by Batch job.",
"id": "CloudLoggingOption",
"properties": {},
"type": "object"
},
"ComputeResource": {
"description": "Compute resource requirements. ComputeResource defines the amount of resources required for each task. Make sure your tasks have enough resources to successfully run. If you also define the types of resources for a job to use with the [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicyortemplate) field, make sure both fields are compatible with each other.",
"id": "ComputeResource",
Expand Down Expand Up @@ -1079,6 +1073,10 @@
},
"type": "array"
},
"enableImageStreaming": {
"description": "Optional. If set to true, container will run with Image streaming. The container runtime will be changed to containerd instead of docker. Currently, only imageUri, commands, entrypoint and volumes are supported and any other fields will be ignored. Please refer [here](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming) for the feature requirements and limitations.",
"type": "boolean"
},
"entrypoint": {
"description": "Overrides the `ENTRYPOINT` specified in the container.",
"type": "string"
Expand Down Expand Up @@ -1594,10 +1592,6 @@
"description": "LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.",
"id": "LogsPolicy",
"properties": {
"cloudLoggingOption": {
"$ref": "CloudLoggingOption",
"description": "Optional. Additional settings for Cloud Logging. It will only take effect when the destination of LogsPolicy is set to CLOUD_LOGGING."
},
"destination": {
"description": "Where logs should be saved.",
"enum": [
Expand Down

0 comments on commit dfe3739

Please sign in to comment.