Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#2030)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Jun 17, 2023
1 parent 922fc6a commit 3eb845f
Show file tree
Hide file tree
Showing 33 changed files with 3,097 additions and 270 deletions.
15 changes: 15 additions & 0 deletions api-list.json
Expand Up @@ -2479,6 +2479,21 @@
"documentationLink": "https://developers.google.com/domains/rdap/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "doubleclickbidmanager:v1.1",
"name": "doubleclickbidmanager",
"version": "v1.1",
"title": "DoubleClick Bid Manager API",
"description": "DoubleClick Bid Manager API allows users to manage and create campaigns and reports.",
"discoveryRestUrl": "https://doubleclickbidmanager.googleapis.com/$discovery/rest?version=v1.1",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
},
"documentationLink": "https://developers.google.com/bid-manager/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "doubleclickbidmanager:v2",
Expand Down
157 changes: 154 additions & 3 deletions batch/v1/batch-api.json
Expand Up @@ -556,7 +556,7 @@
}
}
},
"revision": "20230518",
"revision": "20230607",
"rootUrl": "https://batch.googleapis.com/",
"schemas": {
"Accelerator": {
Expand Down Expand Up @@ -594,6 +594,64 @@
},
"type": "object"
},
"AgentContainer": {
"description": "Container runnable representation on the agent side.",
"id": "AgentContainer",
"properties": {
"commands": {
"description": "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.",
"items": {
"type": "string"
},
"type": "array"
},
"entrypoint": {
"description": "Overrides the `ENTRYPOINT` specified in the container.",
"type": "string"
},
"imageUri": {
"description": "The URI to pull the container image from.",
"type": "string"
},
"options": {
"description": "Arbitrary additional options to include in the \"docker run\" command when running this container, e.g. \"--network host\".",
"type": "string"
},
"volumes": {
"description": "Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"AgentEnvironment": {
"description": "AgentEnvironment is the Environment representation between Agent and CLH communication. The environment is used in both task level and agent level.",
"id": "AgentEnvironment",
"properties": {
"encryptedVariables": {
"$ref": "AgentKMSEnvMap",
"description": "An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values."
},
"secretVariables": {
"additionalProperties": {
"type": "string"
},
"description": "A map of environment variable names to Secret Manager secret names. The VM will access the named secrets to set the value of each environment variable.",
"type": "object"
},
"variables": {
"additionalProperties": {
"type": "string"
},
"description": "A map of environment variable names to values.",
"type": "object"
}
},
"type": "object"
},
"AgentInfo": {
"description": "VM Agent Info.",
"id": "AgentInfo",
Expand Down Expand Up @@ -637,6 +695,21 @@
},
"type": "object"
},
"AgentKMSEnvMap": {
"description": "AgentKMSEnvMap contains the encrypted key/value pair to be used in the environment on the Agent side.",
"id": "AgentKMSEnvMap",
"properties": {
"cipherText": {
"description": "The value of the cipherText response from the `encrypt` method.",
"type": "string"
},
"keyName": {
"description": "The name of the KMS key that will be used to decrypt the cipher text.",
"type": "string"
}
},
"type": "object"
},
"AgentMetadata": {
"description": "VM Agent Metadata.",
"id": "AgentMetadata",
Expand Down Expand Up @@ -685,10 +758,29 @@
},
"type": "object"
},
"AgentScript": {
"description": "Script runnable representation on the agent side.",
"id": "AgentScript",
"properties": {
"path": {
"description": "Script file path on the host VM. To specify an interpreter, please add a `#!`(also known as [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the first line of the file.(For example, to execute the script using bash, `#!/bin/bash` should be the first line of the file. To execute the script using`Python3`, `#!/usr/bin/env python3` should be the first line of the file.) Otherwise, the file will by default be excuted by `/bin/sh`.",
"type": "string"
},
"text": {
"description": "Shell script text. To specify an interpreter, please add a `#!\\n` at the beginning of the text.(For example, to execute the script using bash, `#!/bin/bash\\n` should be added. To execute the script using`Python3`, `#!/usr/bin/env python3\\n` should be added.) Otherwise, the script will by default be excuted by `/bin/sh`.",
"type": "string"
}
},
"type": "object"
},
"AgentTask": {
"description": "TODO(b/182501497) The message needs to be redefined when the Agent API server updates data in storage per the backend design.",
"id": "AgentTask",
"properties": {
"agentTaskSpec": {
"$ref": "AgentTaskSpec",
"description": "AgentTaskSpec is the taskSpec representation between Agent and CLH communication. This field will replace the TaskSpec field above in future to have a better separation between user-facaing API and internal API."
},
"intendedState": {
"description": "The intended state of the task.",
"enum": [
Expand All @@ -712,7 +804,7 @@
},
"spec": {
"$ref": "TaskSpec",
"description": "Task Spec."
"description": "Task Spec. This field will be replaced by agent_task_spec below in future."
},
"status": {
"$ref": "TaskStatus",
Expand Down Expand Up @@ -759,6 +851,65 @@
},
"type": "object"
},
"AgentTaskRunnable": {
"description": "AgentTaskRunnable is the Runnable representation between Agent and CLH communication.",
"id": "AgentTaskRunnable",
"properties": {
"alwaysRun": {
"description": "By default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging. The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables.",
"type": "boolean"
},
"background": {
"description": "This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables. This is useful to provide services to other Runnables (or to provide debugging support tools like SSH servers).",
"type": "boolean"
},
"container": {
"$ref": "AgentContainer",
"description": "Container runnable."
},
"environment": {
"$ref": "AgentEnvironment",
"description": "Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup)."
},
"ignoreExitStatus": {
"description": "Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.",
"type": "boolean"
},
"script": {
"$ref": "AgentScript",
"description": "Script runnable."
},
"timeout": {
"description": "Timeout for this Runnable.",
"format": "google-duration",
"type": "string"
}
},
"type": "object"
},
"AgentTaskSpec": {
"description": "AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication.",
"id": "AgentTaskSpec",
"properties": {
"environment": {
"$ref": "AgentEnvironment",
"description": "Environment variables to set before running the Task."
},
"maxRunDuration": {
"description": "Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.",
"format": "google-duration",
"type": "string"
},
"runnables": {
"description": "AgentTaskRunnable is runanbles that will be executed on the agent.",
"items": {
"$ref": "AgentTaskRunnable"
},
"type": "array"
}
},
"type": "object"
},
"AgentTimingInfo": {
"description": "VM timing information",
"id": "AgentTimingInfo",
Expand Down Expand Up @@ -929,7 +1080,7 @@
"type": "string"
},
"image": {
"description": "Name of a public or custom image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name: projects/{project}/global/images/family/{image_family} * 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.",
"description": "Name of a public or custom image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name: projects/{project}/global/images/family/{image_family} * 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. * \"batch-hpc-centos\": use Batch HPC CentOS images.",
"type": "string"
},
"sizeGb": {
Expand Down

0 comments on commit 3eb845f

Please sign in to comment.