Skip to content

Commit 3dd983b

Browse files
feat(batch): update the api
#### 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)
1 parent 43f435c commit 3dd983b

File tree

3 files changed

+137
-3
lines changed

3 files changed

+137
-3
lines changed

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

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,13 @@ <h3>Method Details</h3>
233233
&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.
234234
&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.
235235
{ # An Environment describes a collection of environment variables to set when executing Tasks.
236+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
237+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
238+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
239+
},
240+
&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.
241+
&quot;a_key&quot;: &quot;A String&quot;,
242+
},
236243
&quot;variables&quot;: { # A map of environment variable names to values.
237244
&quot;a_key&quot;: &quot;A String&quot;,
238245
},
@@ -245,6 +252,13 @@ <h3>Method Details</h3>
245252
&quot;memoryMib&quot;: &quot;A String&quot;, # Memory in MiB.
246253
},
247254
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables to set before running the Task.
255+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
256+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
257+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
258+
},
259+
&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.
260+
&quot;a_key&quot;: &quot;A String&quot;,
261+
},
248262
&quot;variables&quot;: { # A map of environment variable names to values.
249263
&quot;a_key&quot;: &quot;A String&quot;,
250264
},
@@ -286,6 +300,13 @@ <h3>Method Details</h3>
286300
],
287301
},
288302
&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).
303+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
304+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
305+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
306+
},
307+
&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.
308+
&quot;a_key&quot;: &quot;A String&quot;,
309+
},
289310
&quot;variables&quot;: { # A map of environment variable names to values.
290311
&quot;a_key&quot;: &quot;A String&quot;,
291312
},
@@ -443,6 +464,13 @@ <h3>Method Details</h3>
443464
&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.
444465
&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.
445466
{ # An Environment describes a collection of environment variables to set when executing Tasks.
467+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
468+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
469+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
470+
},
471+
&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.
472+
&quot;a_key&quot;: &quot;A String&quot;,
473+
},
446474
&quot;variables&quot;: { # A map of environment variable names to values.
447475
&quot;a_key&quot;: &quot;A String&quot;,
448476
},
@@ -455,6 +483,13 @@ <h3>Method Details</h3>
455483
&quot;memoryMib&quot;: &quot;A String&quot;, # Memory in MiB.
456484
},
457485
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables to set before running the Task.
486+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
487+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
488+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
489+
},
490+
&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.
491+
&quot;a_key&quot;: &quot;A String&quot;,
492+
},
458493
&quot;variables&quot;: { # A map of environment variable names to values.
459494
&quot;a_key&quot;: &quot;A String&quot;,
460495
},
@@ -496,6 +531,13 @@ <h3>Method Details</h3>
496531
],
497532
},
498533
&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).
534+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
535+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
536+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
537+
},
538+
&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.
539+
&quot;a_key&quot;: &quot;A String&quot;,
540+
},
499541
&quot;variables&quot;: { # A map of environment variable names to values.
500542
&quot;a_key&quot;: &quot;A String&quot;,
501543
},
@@ -695,6 +737,13 @@ <h3>Method Details</h3>
695737
&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.
696738
&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.
697739
{ # An Environment describes a collection of environment variables to set when executing Tasks.
740+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
741+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
742+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
743+
},
744+
&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.
745+
&quot;a_key&quot;: &quot;A String&quot;,
746+
},
698747
&quot;variables&quot;: { # A map of environment variable names to values.
699748
&quot;a_key&quot;: &quot;A String&quot;,
700749
},
@@ -707,6 +756,13 @@ <h3>Method Details</h3>
707756
&quot;memoryMib&quot;: &quot;A String&quot;, # Memory in MiB.
708757
},
709758
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables to set before running the Task.
759+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
760+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
761+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
762+
},
763+
&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.
764+
&quot;a_key&quot;: &quot;A String&quot;,
765+
},
710766
&quot;variables&quot;: { # A map of environment variable names to values.
711767
&quot;a_key&quot;: &quot;A String&quot;,
712768
},
@@ -748,6 +804,13 @@ <h3>Method Details</h3>
748804
],
749805
},
750806
&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).
807+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
808+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
809+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
810+
},
811+
&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.
812+
&quot;a_key&quot;: &quot;A String&quot;,
813+
},
751814
&quot;variables&quot;: { # A map of environment variable names to values.
752815
&quot;a_key&quot;: &quot;A String&quot;,
753816
},
@@ -963,6 +1026,13 @@ <h3>Method Details</h3>
9631026
&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.
9641027
&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.
9651028
{ # An Environment describes a collection of environment variables to set when executing Tasks.
1029+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
1030+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
1031+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
1032+
},
1033+
&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.
1034+
&quot;a_key&quot;: &quot;A String&quot;,
1035+
},
9661036
&quot;variables&quot;: { # A map of environment variable names to values.
9671037
&quot;a_key&quot;: &quot;A String&quot;,
9681038
},
@@ -975,6 +1045,13 @@ <h3>Method Details</h3>
9751045
&quot;memoryMib&quot;: &quot;A String&quot;, # Memory in MiB.
9761046
},
9771047
&quot;environment&quot;: { # An Environment describes a collection of environment variables to set when executing Tasks. # Environment variables to set before running the Task.
1048+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
1049+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
1050+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
1051+
},
1052+
&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.
1053+
&quot;a_key&quot;: &quot;A String&quot;,
1054+
},
9781055
&quot;variables&quot;: { # A map of environment variable names to values.
9791056
&quot;a_key&quot;: &quot;A String&quot;,
9801057
},
@@ -1016,6 +1093,13 @@ <h3>Method Details</h3>
10161093
],
10171094
},
10181095
&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).
1096+
&quot;encryptedVariables&quot;: { # An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
1097+
&quot;cipherText&quot;: &quot;A String&quot;, # The value of the cipherText response from the `encrypt` method.
1098+
&quot;keyName&quot;: &quot;A String&quot;, # The name of the KMS key that will be used to decrypt the cipher text.
1099+
},
1100+
&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.
1101+
&quot;a_key&quot;: &quot;A String&quot;,
1102+
},
10191103
&quot;variables&quot;: { # A map of environment variable names to values.
10201104
&quot;a_key&quot;: &quot;A String&quot;,
10211105
},

0 commit comments

Comments
 (0)