Skip to content

Commit 3eb845f

Browse files
authoredJun 17, 2023
feat(all): auto-regenerate discovery clients (#2030)
1 parent 922fc6a commit 3eb845f

33 files changed

+3097
-270
lines changed
 

‎api-list.json

+15
Original file line numberDiff line numberDiff line change
@@ -2479,6 +2479,21 @@
24792479
"documentationLink": "https://developers.google.com/domains/rdap/",
24802480
"preferred": true
24812481
},
2482+
{
2483+
"kind": "discovery#directoryItem",
2484+
"id": "doubleclickbidmanager:v1.1",
2485+
"name": "doubleclickbidmanager",
2486+
"version": "v1.1",
2487+
"title": "DoubleClick Bid Manager API",
2488+
"description": "DoubleClick Bid Manager API allows users to manage and create campaigns and reports.",
2489+
"discoveryRestUrl": "https://doubleclickbidmanager.googleapis.com/$discovery/rest?version=v1.1",
2490+
"icons": {
2491+
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
2492+
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
2493+
},
2494+
"documentationLink": "https://developers.google.com/bid-manager/",
2495+
"preferred": false
2496+
},
24822497
{
24832498
"kind": "discovery#directoryItem",
24842499
"id": "doubleclickbidmanager:v2",

‎batch/v1/batch-api.json

+154-3
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@
556556
}
557557
}
558558
},
559-
"revision": "20230518",
559+
"revision": "20230607",
560560
"rootUrl": "https://batch.googleapis.com/",
561561
"schemas": {
562562
"Accelerator": {
@@ -594,6 +594,64 @@
594594
},
595595
"type": "object"
596596
},
597+
"AgentContainer": {
598+
"description": "Container runnable representation on the agent side.",
599+
"id": "AgentContainer",
600+
"properties": {
601+
"commands": {
602+
"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.",
603+
"items": {
604+
"type": "string"
605+
},
606+
"type": "array"
607+
},
608+
"entrypoint": {
609+
"description": "Overrides the `ENTRYPOINT` specified in the container.",
610+
"type": "string"
611+
},
612+
"imageUri": {
613+
"description": "The URI to pull the container image from.",
614+
"type": "string"
615+
},
616+
"options": {
617+
"description": "Arbitrary additional options to include in the \"docker run\" command when running this container, e.g. \"--network host\".",
618+
"type": "string"
619+
},
620+
"volumes": {
621+
"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",
622+
"items": {
623+
"type": "string"
624+
},
625+
"type": "array"
626+
}
627+
},
628+
"type": "object"
629+
},
630+
"AgentEnvironment": {
631+
"description": "AgentEnvironment is the Environment representation between Agent and CLH communication. The environment is used in both task level and agent level.",
632+
"id": "AgentEnvironment",
633+
"properties": {
634+
"encryptedVariables": {
635+
"$ref": "AgentKMSEnvMap",
636+
"description": "An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values."
637+
},
638+
"secretVariables": {
639+
"additionalProperties": {
640+
"type": "string"
641+
},
642+
"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.",
643+
"type": "object"
644+
},
645+
"variables": {
646+
"additionalProperties": {
647+
"type": "string"
648+
},
649+
"description": "A map of environment variable names to values.",
650+
"type": "object"
651+
}
652+
},
653+
"type": "object"
654+
},
597655
"AgentInfo": {
598656
"description": "VM Agent Info.",
599657
"id": "AgentInfo",
@@ -637,6 +695,21 @@
637695
},
638696
"type": "object"
639697
},
698+
"AgentKMSEnvMap": {
699+
"description": "AgentKMSEnvMap contains the encrypted key/value pair to be used in the environment on the Agent side.",
700+
"id": "AgentKMSEnvMap",
701+
"properties": {
702+
"cipherText": {
703+
"description": "The value of the cipherText response from the `encrypt` method.",
704+
"type": "string"
705+
},
706+
"keyName": {
707+
"description": "The name of the KMS key that will be used to decrypt the cipher text.",
708+
"type": "string"
709+
}
710+
},
711+
"type": "object"
712+
},
640713
"AgentMetadata": {
641714
"description": "VM Agent Metadata.",
642715
"id": "AgentMetadata",
@@ -685,10 +758,29 @@
685758
},
686759
"type": "object"
687760
},
761+
"AgentScript": {
762+
"description": "Script runnable representation on the agent side.",
763+
"id": "AgentScript",
764+
"properties": {
765+
"path": {
766+
"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`.",
767+
"type": "string"
768+
},
769+
"text": {
770+
"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`.",
771+
"type": "string"
772+
}
773+
},
774+
"type": "object"
775+
},
688776
"AgentTask": {
689777
"description": "TODO(b/182501497) The message needs to be redefined when the Agent API server updates data in storage per the backend design.",
690778
"id": "AgentTask",
691779
"properties": {
780+
"agentTaskSpec": {
781+
"$ref": "AgentTaskSpec",
782+
"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."
783+
},
692784
"intendedState": {
693785
"description": "The intended state of the task.",
694786
"enum": [
@@ -712,7 +804,7 @@
712804
},
713805
"spec": {
714806
"$ref": "TaskSpec",
715-
"description": "Task Spec."
807+
"description": "Task Spec. This field will be replaced by agent_task_spec below in future."
716808
},
717809
"status": {
718810
"$ref": "TaskStatus",
@@ -759,6 +851,65 @@
759851
},
760852
"type": "object"
761853
},
854+
"AgentTaskRunnable": {
855+
"description": "AgentTaskRunnable is the Runnable representation between Agent and CLH communication.",
856+
"id": "AgentTaskRunnable",
857+
"properties": {
858+
"alwaysRun": {
859+
"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.",
860+
"type": "boolean"
861+
},
862+
"background": {
863+
"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).",
864+
"type": "boolean"
865+
},
866+
"container": {
867+
"$ref": "AgentContainer",
868+
"description": "Container runnable."
869+
},
870+
"environment": {
871+
"$ref": "AgentEnvironment",
872+
"description": "Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup)."
873+
},
874+
"ignoreExitStatus": {
875+
"description": "Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.",
876+
"type": "boolean"
877+
},
878+
"script": {
879+
"$ref": "AgentScript",
880+
"description": "Script runnable."
881+
},
882+
"timeout": {
883+
"description": "Timeout for this Runnable.",
884+
"format": "google-duration",
885+
"type": "string"
886+
}
887+
},
888+
"type": "object"
889+
},
890+
"AgentTaskSpec": {
891+
"description": "AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication.",
892+
"id": "AgentTaskSpec",
893+
"properties": {
894+
"environment": {
895+
"$ref": "AgentEnvironment",
896+
"description": "Environment variables to set before running the Task."
897+
},
898+
"maxRunDuration": {
899+
"description": "Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.",
900+
"format": "google-duration",
901+
"type": "string"
902+
},
903+
"runnables": {
904+
"description": "AgentTaskRunnable is runanbles that will be executed on the agent.",
905+
"items": {
906+
"$ref": "AgentTaskRunnable"
907+
},
908+
"type": "array"
909+
}
910+
},
911+
"type": "object"
912+
},
762913
"AgentTimingInfo": {
763914
"description": "VM timing information",
764915
"id": "AgentTimingInfo",
@@ -929,7 +1080,7 @@
9291080
"type": "string"
9301081
},
9311082
"image": {
932-
"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.",
1083+
"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.",
9331084
"type": "string"
9341085
},
9351086
"sizeGb": {

0 commit comments

Comments
 (0)