Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f0fdbaf

Browse files
committedNov 1, 2022
feat(run): update the api
#### run:v2 The following keys were deleted: - resources.projects.resources.locations.resources.jobs.methods.delete.parameters.force (Total Keys: 2)
1 parent 606bdc2 commit f0fdbaf

6 files changed

+18
-24
lines changed
 

‎docs/dyn/run_v1.namespaces.executions.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ <h3>Method Details</h3>
148148
&quot;spec&quot;: { # ExecutionSpec describes how the execution will look. # Optional. Specification of the desired behavior of an execution. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
149149
&quot;parallelism&quot;: 42, # Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be &lt;= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
150150
&quot;taskCount&quot;: 42, # Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
151-
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. Describes the task(s) that will be created when executing an execution.
151+
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. The template used to create tasks for this execution.
152152
&quot;spec&quot;: { # TaskSpec is a description of a task. # Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
153153
&quot;containers&quot;: [ # Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided.
154154
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
@@ -488,7 +488,7 @@ <h3>Method Details</h3>
488488
&quot;spec&quot;: { # ExecutionSpec describes how the execution will look. # Optional. Specification of the desired behavior of an execution. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
489489
&quot;parallelism&quot;: 42, # Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be &lt;= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
490490
&quot;taskCount&quot;: 42, # Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
491-
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. Describes the task(s) that will be created when executing an execution.
491+
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. The template used to create tasks for this execution.
492492
&quot;spec&quot;: { # TaskSpec is a description of a task. # Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
493493
&quot;containers&quot;: [ # Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided.
494494
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
@@ -789,7 +789,7 @@ <h3>Method Details</h3>
789789
&quot;spec&quot;: { # ExecutionSpec describes how the execution will look. # Optional. Specification of the desired behavior of an execution. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
790790
&quot;parallelism&quot;: 42, # Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be &lt;= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
791791
&quot;taskCount&quot;: 42, # Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
792-
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. Describes the task(s) that will be created when executing an execution.
792+
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. The template used to create tasks for this execution.
793793
&quot;spec&quot;: { # TaskSpec is a description of a task. # Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
794794
&quot;containers&quot;: [ # Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided.
795795
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.

‎docs/dyn/run_v1.namespaces.jobs.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ <h3>Method Details</h3>
182182
&quot;spec&quot;: { # ExecutionSpec describes how the execution will look. # Required. ExecutionSpec holds the desired configuration for executions of this job.
183183
&quot;parallelism&quot;: 42, # Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be &lt;= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
184184
&quot;taskCount&quot;: 42, # Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
185-
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. Describes the task(s) that will be created when executing an execution.
185+
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. The template used to create tasks for this execution.
186186
&quot;spec&quot;: { # TaskSpec is a description of a task. # Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
187187
&quot;containers&quot;: [ # Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided.
188188
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
@@ -500,7 +500,7 @@ <h3>Method Details</h3>
500500
&quot;spec&quot;: { # ExecutionSpec describes how the execution will look. # Required. ExecutionSpec holds the desired configuration for executions of this job.
501501
&quot;parallelism&quot;: 42, # Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be &lt;= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
502502
&quot;taskCount&quot;: 42, # Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
503-
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. Describes the task(s) that will be created when executing an execution.
503+
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. The template used to create tasks for this execution.
504504
&quot;spec&quot;: { # TaskSpec is a description of a task. # Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
505505
&quot;containers&quot;: [ # Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided.
506506
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
@@ -869,7 +869,7 @@ <h3>Method Details</h3>
869869
&quot;spec&quot;: { # ExecutionSpec describes how the execution will look. # Required. ExecutionSpec holds the desired configuration for executions of this job.
870870
&quot;parallelism&quot;: 42, # Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be &lt;= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
871871
&quot;taskCount&quot;: 42, # Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
872-
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. Describes the task(s) that will be created when executing an execution.
872+
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. The template used to create tasks for this execution.
873873
&quot;spec&quot;: { # TaskSpec is a description of a task. # Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
874874
&quot;containers&quot;: [ # Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided.
875875
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
@@ -1204,7 +1204,7 @@ <h3>Method Details</h3>
12041204
&quot;spec&quot;: { # ExecutionSpec describes how the execution will look. # Required. ExecutionSpec holds the desired configuration for executions of this job.
12051205
&quot;parallelism&quot;: 42, # Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be &lt;= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
12061206
&quot;taskCount&quot;: 42, # Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
1207-
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. Describes the task(s) that will be created when executing an execution.
1207+
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. The template used to create tasks for this execution.
12081208
&quot;spec&quot;: { # TaskSpec is a description of a task. # Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
12091209
&quot;containers&quot;: [ # Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided.
12101210
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
@@ -1535,7 +1535,7 @@ <h3>Method Details</h3>
15351535
&quot;spec&quot;: { # ExecutionSpec describes how the execution will look. # Required. ExecutionSpec holds the desired configuration for executions of this job.
15361536
&quot;parallelism&quot;: 42, # Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be &lt;= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
15371537
&quot;taskCount&quot;: 42, # Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
1538-
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. Describes the task(s) that will be created when executing an execution.
1538+
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. The template used to create tasks for this execution.
15391539
&quot;spec&quot;: { # TaskSpec is a description of a task. # Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
15401540
&quot;containers&quot;: [ # Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided.
15411541
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
@@ -1853,7 +1853,7 @@ <h3>Method Details</h3>
18531853
&quot;spec&quot;: { # ExecutionSpec describes how the execution will look. # Required. ExecutionSpec holds the desired configuration for executions of this job.
18541854
&quot;parallelism&quot;: 42, # Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be &lt;= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
18551855
&quot;taskCount&quot;: 42, # Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
1856-
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. Describes the task(s) that will be created when executing an execution.
1856+
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. The template used to create tasks for this execution.
18571857
&quot;spec&quot;: { # TaskSpec is a description of a task. # Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
18581858
&quot;containers&quot;: [ # Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided.
18591859
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
@@ -2150,7 +2150,7 @@ <h3>Method Details</h3>
21502150
&quot;spec&quot;: { # ExecutionSpec describes how the execution will look. # Optional. Specification of the desired behavior of an execution. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
21512151
&quot;parallelism&quot;: 42, # Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be &lt;= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
21522152
&quot;taskCount&quot;: 42, # Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.
2153-
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. Describes the task(s) that will be created when executing an execution.
2153+
&quot;template&quot;: { # TaskTemplateSpec describes the data a task should have when created from a template. # Optional. The template used to create tasks for this execution.
21542154
&quot;spec&quot;: { # TaskSpec is a description of a task. # Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
21552155
&quot;containers&quot;: [ # Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided.
21562156
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.

‎docs/dyn/run_v2.projects.locations.jobs.executions.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ <h3>Method Details</h3>
187187
&quot;startTime&quot;: &quot;A String&quot;, # Output only. Represents time when the execution started to run. It is not guaranteed to be set in happens-before order across separate operations.
188188
&quot;succeededCount&quot;: 42, # Output only. The number of tasks which reached phase Succeeded.
189189
&quot;taskCount&quot;: 42, # Output only. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
190-
&quot;template&quot;: { # TaskTemplate describes the data a task should have when created from a template. # Output only. Describes the task(s) that will be created when executing an execution.
190+
&quot;template&quot;: { # TaskTemplate describes the data a task should have when created from a template. # Output only. The template used to create tasks for this execution.
191191
&quot;containers&quot;: [ # Holds the single container that defines the unit of execution for this task.
192192
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
193193
&quot;args&quot;: [ # Arguments to the entrypoint. The docker image&#x27;s CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container&#x27;s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
@@ -358,7 +358,7 @@ <h3>Method Details</h3>
358358
&quot;startTime&quot;: &quot;A String&quot;, # Output only. Represents time when the execution started to run. It is not guaranteed to be set in happens-before order across separate operations.
359359
&quot;succeededCount&quot;: 42, # Output only. The number of tasks which reached phase Succeeded.
360360
&quot;taskCount&quot;: 42, # Output only. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
361-
&quot;template&quot;: { # TaskTemplate describes the data a task should have when created from a template. # Output only. Describes the task(s) that will be created when executing an execution.
361+
&quot;template&quot;: { # TaskTemplate describes the data a task should have when created from a template. # Output only. The template used to create tasks for this execution.
362362
&quot;containers&quot;: [ # Holds the single container that defines the unit of execution for this task.
363363
{ # A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
364364
&quot;args&quot;: [ # Arguments to the entrypoint. The docker image&#x27;s CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container&#x27;s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

‎docs/dyn/run_v2.projects.locations.jobs.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h2>Instance Methods</h2>
8686
<code><a href="#create">create(parent, body=None, jobId=None, validateOnly=None, x__xgafv=None)</a></code></p>
8787
<p class="firstline">Create a Job.</p>
8888
<p class="toc_element">
89-
<code><a href="#delete">delete(name, etag=None, force=None, validateOnly=None, x__xgafv=None)</a></code></p>
89+
<code><a href="#delete">delete(name, etag=None, validateOnly=None, x__xgafv=None)</a></code></p>
9090
<p class="firstline">Deletes a Job.</p>
9191
<p class="toc_element">
9292
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
@@ -336,13 +336,12 @@ <h3>Method Details</h3>
336336
</div>
337337

338338
<div class="method">
339-
<code class="details" id="delete">delete(name, etag=None, force=None, validateOnly=None, x__xgafv=None)</code>
339+
<code class="details" id="delete">delete(name, etag=None, validateOnly=None, x__xgafv=None)</code>
340340
<pre>Deletes a Job.
341341

342342
Args:
343343
name: string, Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job} (required)
344344
etag: string, A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
345-
force: boolean, If set to true, the Job and its Executions will be deleted no matter whether any Executions are still running or not. If set to false or unset, the Job and its Executions can only be deleted if there are no running Executions. Any running Execution will fail the deletion.
346345
validateOnly: boolean, Indicates that the request should be validated without actually deleting any resources.
347346
x__xgafv: string, V1 error format.
348347
Allowed values

‎googleapiclient/discovery_cache/documents/run.v1.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2289,7 +2289,7 @@
22892289
}
22902290
}
22912291
},
2292-
"revision": "20221016",
2292+
"revision": "20221023",
22932293
"rootUrl": "https://run.googleapis.com/",
22942294
"schemas": {
22952295
"Addressable": {
@@ -2862,7 +2862,7 @@
28622862
},
28632863
"template": {
28642864
"$ref": "TaskTemplateSpec",
2865-
"description": "Optional. Describes the task(s) that will be created when executing an execution."
2865+
"description": "Optional. The template used to create tasks for this execution."
28662866
}
28672867
},
28682868
"type": "object"

‎googleapiclient/discovery_cache/documents/run.v2.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,6 @@
163163
"location": "query",
164164
"type": "string"
165165
},
166-
"force": {
167-
"description": "If set to true, the Job and its Executions will be deleted no matter whether any Executions are still running or not. If set to false or unset, the Job and its Executions can only be deleted if there are no running Executions. Any running Execution will fail the deletion.",
168-
"location": "query",
169-
"type": "boolean"
170-
},
171166
"name": {
172167
"description": "Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}",
173168
"location": "path",
@@ -1064,7 +1059,7 @@
10641059
}
10651060
}
10661061
},
1067-
"revision": "20221016",
1062+
"revision": "20221023",
10681063
"rootUrl": "https://run.googleapis.com/",
10691064
"schemas": {
10701065
"GoogleCloudRunV2BinaryAuthorization": {
@@ -1492,7 +1487,7 @@
14921487
},
14931488
"template": {
14941489
"$ref": "GoogleCloudRunV2TaskTemplate",
1495-
"description": "Output only. Describes the task(s) that will be created when executing an execution.",
1490+
"description": "Output only. The template used to create tasks for this execution.",
14961491
"readOnly": true
14971492
},
14981493
"uid": {

0 commit comments

Comments
 (0)
Please sign in to comment.