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.AgentMetadata.properties.instancePreemptionNoticeReceived.type (Total Keys: 1)
- schemas.Environment.properties.encryptedVariables.$ref (Total Keys: 1)
- schemas.Environment.properties.secretVariables (Total Keys: 2)
- schemas.KMSEnvMap (Total Keys: 4)
- schemas.ReportAgentStateResponse.properties.defaultReportInterval (Total Keys: 2)
  • Loading branch information
yoshi-automation committed Dec 20, 2022
1 parent 43f435c commit 3dd983b
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 3 deletions.
84 changes: 84 additions & 0 deletions docs/dyn/batch_v1.projects.locations.jobs.html
Expand Up @@ -233,6 +233,13 @@ <h3>Method Details</h3>
&quot;taskCountPerNode&quot;: &quot;A String&quot;, # Max number of tasks that can be run on a VM at the same time. If not specified, the system will decide a value based on available compute resources on a VM and task requirements.
&quot;taskEnvironments&quot;: [ # An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task&#x27;s parent TaskGroup, and the specific Task&#x27;s index in the TaskGroup (0 through BATCH_TASK_COUNT - 1). task_environments supports up to 200 entries.
{ # An Environment describes a collection of environment variables to set when executing Tasks.
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand All @@ -245,6 +252,13 @@ <h3>Method Details</h3>
&quot;memoryMib&quot;: &quot;A String&quot;, # Memory in MiB.
},
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables to set before running the Task.
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand Down Expand Up @@ -286,6 +300,13 @@ <h3>Method Details</h3>
],
},
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand Down Expand Up @@ -443,6 +464,13 @@ <h3>Method Details</h3>
&quot;taskCountPerNode&quot;: &quot;A String&quot;, # Max number of tasks that can be run on a VM at the same time. If not specified, the system will decide a value based on available compute resources on a VM and task requirements.
&quot;taskEnvironments&quot;: [ # An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task&#x27;s parent TaskGroup, and the specific Task&#x27;s index in the TaskGroup (0 through BATCH_TASK_COUNT - 1). task_environments supports up to 200 entries.
{ # An Environment describes a collection of environment variables to set when executing Tasks.
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand All @@ -455,6 +483,13 @@ <h3>Method Details</h3>
&quot;memoryMib&quot;: &quot;A String&quot;, # Memory in MiB.
},
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables to set before running the Task.
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand Down Expand Up @@ -496,6 +531,13 @@ <h3>Method Details</h3>
],
},
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand Down Expand Up @@ -695,6 +737,13 @@ <h3>Method Details</h3>
&quot;taskCountPerNode&quot;: &quot;A String&quot;, # Max number of tasks that can be run on a VM at the same time. If not specified, the system will decide a value based on available compute resources on a VM and task requirements.
&quot;taskEnvironments&quot;: [ # An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task&#x27;s parent TaskGroup, and the specific Task&#x27;s index in the TaskGroup (0 through BATCH_TASK_COUNT - 1). task_environments supports up to 200 entries.
{ # An Environment describes a collection of environment variables to set when executing Tasks.
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand All @@ -707,6 +756,13 @@ <h3>Method Details</h3>
&quot;memoryMib&quot;: &quot;A String&quot;, # Memory in MiB.
},
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables to set before running the Task.
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand Down Expand Up @@ -748,6 +804,13 @@ <h3>Method Details</h3>
],
},
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand Down Expand Up @@ -963,6 +1026,13 @@ <h3>Method Details</h3>
&quot;taskCountPerNode&quot;: &quot;A String&quot;, # Max number of tasks that can be run on a VM at the same time. If not specified, the system will decide a value based on available compute resources on a VM and task requirements.
&quot;taskEnvironments&quot;: [ # An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task&#x27;s parent TaskGroup, and the specific Task&#x27;s index in the TaskGroup (0 through BATCH_TASK_COUNT - 1). task_environments supports up to 200 entries.
{ # An Environment describes a collection of environment variables to set when executing Tasks.
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand All @@ -975,6 +1045,13 @@ <h3>Method Details</h3>
&quot;memoryMib&quot;: &quot;A String&quot;, # Memory in MiB.
},
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables to set before running the Task.
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand Down Expand Up @@ -1016,6 +1093,13 @@ <h3>Method Details</h3>
],
},
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
},
&quot;secretVariables&quot;: { # 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.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;variables&quot;: { # A map of environment variable names to values.
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand Down

0 comments on commit 3dd983b

Please sign in to comment.