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 added:
- schemas.AgentTaskSpec.properties.userAccount.$ref (Total Keys: 1)
- schemas.AgentTaskUserAccount (Total Keys: 6)
- schemas.CloudLoggingOption (Total Keys: 2)
- schemas.LogsPolicy.properties.cloudLoggingOption.$ref (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Nov 7, 2023
1 parent bb23d81 commit 922850d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/dyn/batch_v1.projects.locations.jobs.html
Expand Up @@ -187,6 +187,8 @@ <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 @@ -447,6 +449,8 @@ <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 @@ -749,6 +753,8 @@ <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 @@ -1020,6 +1026,8 @@ <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
4 changes: 4 additions & 0 deletions docs/dyn/batch_v1.projects.locations.state.html
Expand Up @@ -204,6 +204,10 @@ <h3>Method Details</h3>
&quot;timeout&quot;: &quot;A String&quot;, # Timeout for this Runnable.
},
],
&quot;userAccount&quot;: { # AgentTaskUserAccount contains the information of a POSIX account on the guest os which is used to execute the runnables. # User account on the VM to run the runnables in the agentTaskSpec. If not set, the runnable will be run under root user.
&quot;gid&quot;: &quot;A String&quot;, # gid id an unique identifier of the POSIX account group corresponding to the user account.
&quot;uid&quot;: &quot;A String&quot;, # uid is an unique identifier of the POSIX account corresponding to the user account.
},
},
&quot;intendedState&quot;: &quot;A String&quot;, # The intended state of the task.
&quot;reachedBarrier&quot;: &quot;A String&quot;, # The highest barrier reached by all tasks in the task&#x27;s TaskGroup.
Expand Down
33 changes: 32 additions & 1 deletion googleapiclient/discovery_cache/documents/batch.v1.json
Expand Up @@ -561,7 +561,7 @@
}
}
},
"revision": "20231018",
"revision": "20231029",
"rootUrl": "https://batch.googleapis.com/",
"schemas": {
"Accelerator": {
Expand Down Expand Up @@ -917,6 +917,27 @@
"$ref": "AgentTaskRunnable"
},
"type": "array"
},
"userAccount": {
"$ref": "AgentTaskUserAccount",
"description": "User account on the VM to run the runnables in the agentTaskSpec. If not set, the runnable will be run under root user."
}
},
"type": "object"
},
"AgentTaskUserAccount": {
"description": "AgentTaskUserAccount contains the information of a POSIX account on the guest os which is used to execute the runnables.",
"id": "AgentTaskUserAccount",
"properties": {
"gid": {
"description": "gid id an unique identifier of the POSIX account group corresponding to the user account.",
"format": "int64",
"type": "string"
},
"uid": {
"description": "uid is an unique identifier of the POSIX account corresponding to the user account.",
"format": "int64",
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -1015,6 +1036,12 @@
"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 @@ -1567,6 +1594,10 @@
"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 922850d

Please sign in to comment.