Skip to content

Commit dfe3739

Browse files
feat(batch): update the api
#### 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)
1 parent 79aa42d commit dfe3739

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

docs/dyn/batch_v1.projects.locations.jobs.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ <h3>Method Details</h3>
187187
&quot;a_key&quot;: &quot;A String&quot;,
188188
},
189189
&quot;logsPolicy&quot;: { # LogsPolicy describes how outputs from a Job&#x27;s Tasks (stdout/stderr) will be preserved. # Log preservation policy for the Job.
190-
&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.
191-
},
192190
&quot;destination&quot;: &quot;A String&quot;, # Where logs should be saved.
193191
&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.
194192
},
@@ -308,6 +306,7 @@ <h3>Method Details</h3>
308306
&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.
309307
&quot;A String&quot;,
310308
],
309+
&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.
311310
&quot;entrypoint&quot;: &quot;A String&quot;, # Overrides the `ENTRYPOINT` specified in the container.
312311
&quot;imageUri&quot;: &quot;A String&quot;, # The URI to pull the container image from.
313312
&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;.
@@ -449,8 +448,6 @@ <h3>Method Details</h3>
449448
&quot;a_key&quot;: &quot;A String&quot;,
450449
},
451450
&quot;logsPolicy&quot;: { # LogsPolicy describes how outputs from a Job&#x27;s Tasks (stdout/stderr) will be preserved. # Log preservation policy for the Job.
452-
&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.
453-
},
454451
&quot;destination&quot;: &quot;A String&quot;, # Where logs should be saved.
455452
&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.
456453
},
@@ -570,6 +567,7 @@ <h3>Method Details</h3>
570567
&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.
571568
&quot;A String&quot;,
572569
],
570+
&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.
573571
&quot;entrypoint&quot;: &quot;A String&quot;, # Overrides the `ENTRYPOINT` specified in the container.
574572
&quot;imageUri&quot;: &quot;A String&quot;, # The URI to pull the container image from.
575573
&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;.
@@ -753,8 +751,6 @@ <h3>Method Details</h3>
753751
&quot;a_key&quot;: &quot;A String&quot;,
754752
},
755753
&quot;logsPolicy&quot;: { # LogsPolicy describes how outputs from a Job&#x27;s Tasks (stdout/stderr) will be preserved. # Log preservation policy for the Job.
756-
&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.
757-
},
758754
&quot;destination&quot;: &quot;A String&quot;, # Where logs should be saved.
759755
&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.
760756
},
@@ -874,6 +870,7 @@ <h3>Method Details</h3>
874870
&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.
875871
&quot;A String&quot;,
876872
],
873+
&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.
877874
&quot;entrypoint&quot;: &quot;A String&quot;, # Overrides the `ENTRYPOINT` specified in the container.
878875
&quot;imageUri&quot;: &quot;A String&quot;, # The URI to pull the container image from.
879876
&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;.
@@ -1026,8 +1023,6 @@ <h3>Method Details</h3>
10261023
&quot;a_key&quot;: &quot;A String&quot;,
10271024
},
10281025
&quot;logsPolicy&quot;: { # LogsPolicy describes how outputs from a Job&#x27;s Tasks (stdout/stderr) will be preserved. # Log preservation policy for the Job.
1029-
&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.
1030-
},
10311026
&quot;destination&quot;: &quot;A String&quot;, # Where logs should be saved.
10321027
&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.
10331028
},
@@ -1147,6 +1142,7 @@ <h3>Method Details</h3>
11471142
&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.
11481143
&quot;A String&quot;,
11491144
],
1145+
&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.
11501146
&quot;entrypoint&quot;: &quot;A String&quot;, # Overrides the `ENTRYPOINT` specified in the container.
11511147
&quot;imageUri&quot;: &quot;A String&quot;, # The URI to pull the container image from.
11521148
&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;.

docs/dyn/batch_v1.projects.locations.state.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ <h3>Method Details</h3>
256256
&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.
257257
&quot;A String&quot;,
258258
],
259+
&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.
259260
&quot;entrypoint&quot;: &quot;A String&quot;, # Overrides the `ENTRYPOINT` specified in the container.
260261
&quot;imageUri&quot;: &quot;A String&quot;, # The URI to pull the container image from.
261262
&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;.

googleapiclient/discovery_cache/documents/batch.v1.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@
561561
}
562562
}
563563
},
564-
"revision": "20231106",
564+
"revision": "20231122",
565565
"rootUrl": "https://batch.googleapis.com/",
566566
"schemas": {
567567
"Accelerator": {
@@ -1036,12 +1036,6 @@
10361036
"properties": {},
10371037
"type": "object"
10381038
},
1039-
"CloudLoggingOption": {
1040-
"description": "CloudLoggingOption contains additional settings for cloud logging generated by Batch job.",
1041-
"id": "CloudLoggingOption",
1042-
"properties": {},
1043-
"type": "object"
1044-
},
10451039
"ComputeResource": {
10461040
"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.",
10471041
"id": "ComputeResource",
@@ -1079,6 +1073,10 @@
10791073
},
10801074
"type": "array"
10811075
},
1076+
"enableImageStreaming": {
1077+
"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.",
1078+
"type": "boolean"
1079+
},
10821080
"entrypoint": {
10831081
"description": "Overrides the `ENTRYPOINT` specified in the container.",
10841082
"type": "string"
@@ -1594,10 +1592,6 @@
15941592
"description": "LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.",
15951593
"id": "LogsPolicy",
15961594
"properties": {
1597-
"cloudLoggingOption": {
1598-
"$ref": "CloudLoggingOption",
1599-
"description": "Optional. Additional settings for Cloud Logging. It will only take effect when the destination of LogsPolicy is set to CLOUD_LOGGING."
1600-
},
16011595
"destination": {
16021596
"description": "Where logs should be saved.",
16031597
"enum": [

0 commit comments

Comments
 (0)