@maxim_mazurok/gapi.client.run-v2 0.0.20220807
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1958 -0
- package/package.json +20 -0
- package/readme.md +68 -0
- package/tests.ts +857 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1958 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Cloud Run Admin API v2 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/run/
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://run.googleapis.com/$discovery/rest?version=v2
|
|
13
|
+
// Revision: 20220807
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Cloud Run Admin API v2 */
|
|
19
|
+
function load(urlOrObject: "https://run.googleapis.com/$discovery/rest?version=v2"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "run", version: "v2"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "run", version: "v2", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace run {
|
|
26
|
+
interface GoogleCloudRunV2BinaryAuthorization {
|
|
27
|
+
/**
|
|
28
|
+
* If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see
|
|
29
|
+
* https://cloud.google.com/binary-authorization/docs/using-breakglass
|
|
30
|
+
*/
|
|
31
|
+
breakglassJustification?: string;
|
|
32
|
+
/** If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled. */
|
|
33
|
+
useDefault?: boolean;
|
|
34
|
+
}
|
|
35
|
+
interface GoogleCloudRunV2CloudSqlInstance {
|
|
36
|
+
/**
|
|
37
|
+
* The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more
|
|
38
|
+
* information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
|
|
39
|
+
*/
|
|
40
|
+
instances?: string[];
|
|
41
|
+
}
|
|
42
|
+
interface GoogleCloudRunV2Condition {
|
|
43
|
+
/** A reason for the execution condition. */
|
|
44
|
+
executionReason?: string;
|
|
45
|
+
/** Last time the condition transitioned from one status to another. */
|
|
46
|
+
lastTransitionTime?: string;
|
|
47
|
+
/** Human readable message indicating details about the current status. */
|
|
48
|
+
message?: string;
|
|
49
|
+
/** A common (service-level) reason for this condition. */
|
|
50
|
+
reason?: string;
|
|
51
|
+
/** A reason for the revision condition. */
|
|
52
|
+
revisionReason?: string;
|
|
53
|
+
/** How to interpret failures of this condition, one of Error, Warning, Info */
|
|
54
|
+
severity?: string;
|
|
55
|
+
/** State of the condition. */
|
|
56
|
+
state?: string;
|
|
57
|
+
/**
|
|
58
|
+
* type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types
|
|
59
|
+
* common to all resources include: * "Ready": True when the Resource is ready.
|
|
60
|
+
*/
|
|
61
|
+
type?: string;
|
|
62
|
+
}
|
|
63
|
+
interface GoogleCloudRunV2Container {
|
|
64
|
+
/**
|
|
65
|
+
* Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
|
|
66
|
+
* 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
|
|
67
|
+
* expanded, regardless of whether the variable exists or not. More info:
|
|
68
|
+
* https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
|
|
69
|
+
*/
|
|
70
|
+
args?: string[];
|
|
71
|
+
/**
|
|
72
|
+
* Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's
|
|
73
|
+
* 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
|
|
74
|
+
* references will never be expanded, regardless of whether the variable exists or not. More info:
|
|
75
|
+
* https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
|
|
76
|
+
*/
|
|
77
|
+
command?: string[];
|
|
78
|
+
/** List of environment variables to set in the container. */
|
|
79
|
+
env?: GoogleCloudRunV2EnvVar[];
|
|
80
|
+
/** Required. URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images */
|
|
81
|
+
image?: string;
|
|
82
|
+
/** Name of the container specified as a DNS_LABEL. */
|
|
83
|
+
name?: string;
|
|
84
|
+
/**
|
|
85
|
+
* List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be
|
|
86
|
+
* accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
|
|
87
|
+
*/
|
|
88
|
+
ports?: GoogleCloudRunV2ContainerPort[];
|
|
89
|
+
/** Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources */
|
|
90
|
+
resources?: GoogleCloudRunV2ResourceRequirements;
|
|
91
|
+
/** Volume to mount into the container's filesystem. */
|
|
92
|
+
volumeMounts?: GoogleCloudRunV2VolumeMount[];
|
|
93
|
+
/** Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. */
|
|
94
|
+
workingDir?: string;
|
|
95
|
+
}
|
|
96
|
+
interface GoogleCloudRunV2ContainerPort {
|
|
97
|
+
/** Port number the container listens on. This must be a valid TCP port number, 0 < container_port < 65536. */
|
|
98
|
+
containerPort?: number;
|
|
99
|
+
/** If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c". */
|
|
100
|
+
name?: string;
|
|
101
|
+
}
|
|
102
|
+
interface GoogleCloudRunV2EnvVar {
|
|
103
|
+
/** Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters. */
|
|
104
|
+
name?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved,
|
|
107
|
+
* 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
|
|
108
|
+
* of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes.
|
|
109
|
+
*/
|
|
110
|
+
value?: string;
|
|
111
|
+
/** Source for the environment variable's value. */
|
|
112
|
+
valueSource?: GoogleCloudRunV2EnvVarSource;
|
|
113
|
+
}
|
|
114
|
+
interface GoogleCloudRunV2EnvVarSource {
|
|
115
|
+
/** Selects a secret and a specific version from Cloud Secret Manager. */
|
|
116
|
+
secretKeyRef?: GoogleCloudRunV2SecretKeySelector;
|
|
117
|
+
}
|
|
118
|
+
interface GoogleCloudRunV2Execution {
|
|
119
|
+
/** KRM-style annotations for the resource. */
|
|
120
|
+
annotations?: { [P in string]: string };
|
|
121
|
+
/** Output only. Represents time when the execution was completed. It is not guaranteed to be set in happens-before order across separate operations. */
|
|
122
|
+
completionTime?: string;
|
|
123
|
+
/** Output only. The Condition of this Execution, containing its readiness status, and detailed error information in case it did not reach the desired state. */
|
|
124
|
+
conditions?: GoogleCloudRunV2Condition[];
|
|
125
|
+
/** Output only. Represents time when the execution was acknowledged by the execution controller. It is not guaranteed to be set in happens-before order across separate operations. */
|
|
126
|
+
createTime?: string;
|
|
127
|
+
/** Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request. */
|
|
128
|
+
deleteTime?: string;
|
|
129
|
+
/** Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. */
|
|
130
|
+
etag?: string;
|
|
131
|
+
/** Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request. */
|
|
132
|
+
expireTime?: string;
|
|
133
|
+
/** Output only. The number of tasks which reached phase Failed. */
|
|
134
|
+
failedCount?: number;
|
|
135
|
+
/** Output only. A number that monotonically increases every time the user modifies the desired state. */
|
|
136
|
+
generation?: string;
|
|
137
|
+
/** Output only. The name of the parent Job. */
|
|
138
|
+
job?: string;
|
|
139
|
+
/**
|
|
140
|
+
* KRM-style labels for the resource. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component,
|
|
141
|
+
* environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels
|
|
142
|
+
* Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved.
|
|
143
|
+
*/
|
|
144
|
+
labels?: { [P in string]: string };
|
|
145
|
+
/**
|
|
146
|
+
* Set the launch stage to a preview stage on write to allow use of preview features in that stage. On read, describes whether the resource uses preview features. Launch Stages are
|
|
147
|
+
* defined at [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages).
|
|
148
|
+
*/
|
|
149
|
+
launchStage?: string;
|
|
150
|
+
/** Output only. The unique name of this Execution. */
|
|
151
|
+
name?: string;
|
|
152
|
+
/** Output only. The generation of this Execution. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. */
|
|
153
|
+
observedGeneration?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Output only. Specifies the maximum desired number of tasks the execution should run at any given time. Must be <= task_count. The actual number of tasks running in steady state will
|
|
156
|
+
* be less than this number when ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info:
|
|
157
|
+
* https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
158
|
+
*/
|
|
159
|
+
parallelism?: number;
|
|
160
|
+
/**
|
|
161
|
+
* Output only. Indicates whether the resource's reconciliation is still in progress. See comments in `Job.reconciling` for additional information on reconciliation process in Cloud
|
|
162
|
+
* Run.
|
|
163
|
+
*/
|
|
164
|
+
reconciling?: boolean;
|
|
165
|
+
/** Output only. The number of actively running tasks. */
|
|
166
|
+
runningCount?: number;
|
|
167
|
+
/** Output only. Represents time when the execution started to run. It is not guaranteed to be set in happens-before order across separate operations. */
|
|
168
|
+
startTime?: string;
|
|
169
|
+
/** Output only. The number of tasks which reached phase Succeeded. */
|
|
170
|
+
succeededCount?: number;
|
|
171
|
+
/**
|
|
172
|
+
* 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
|
|
173
|
+
* the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
174
|
+
*/
|
|
175
|
+
taskCount?: number;
|
|
176
|
+
/** Output only. Describes the task(s) that will be created when executing an execution. */
|
|
177
|
+
template?: GoogleCloudRunV2TaskTemplate;
|
|
178
|
+
/** Output only. Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. */
|
|
179
|
+
uid?: string;
|
|
180
|
+
/** Output only. The last-modified time. */
|
|
181
|
+
updateTime?: string;
|
|
182
|
+
}
|
|
183
|
+
interface GoogleCloudRunV2ExecutionReference {
|
|
184
|
+
/** Creation timestamp of the execution. */
|
|
185
|
+
completionTime?: string;
|
|
186
|
+
/** Creation timestamp of the execution. */
|
|
187
|
+
createTime?: string;
|
|
188
|
+
/** Name of the execution. */
|
|
189
|
+
name?: string;
|
|
190
|
+
}
|
|
191
|
+
interface GoogleCloudRunV2ExecutionTemplate {
|
|
192
|
+
/** KRM-style annotations for the resource. */
|
|
193
|
+
annotations?: { [P in string]: string };
|
|
194
|
+
/** KRM-style labels for the resource. */
|
|
195
|
+
labels?: { [P in string]: string };
|
|
196
|
+
/**
|
|
197
|
+
* Specifies the maximum desired number of tasks the execution should run at given time. Must be <= task_count. When the job is run, if this field is 0 or unset, the maximum possible
|
|
198
|
+
* 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 remaining,
|
|
199
|
+
* i.e. when the work left to do is less than max parallelism.
|
|
200
|
+
*/
|
|
201
|
+
parallelism?: number;
|
|
202
|
+
/**
|
|
203
|
+
* 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
|
|
204
|
+
* execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
205
|
+
*/
|
|
206
|
+
taskCount?: number;
|
|
207
|
+
/** Required. Describes the task(s) that will be created when executing an execution. */
|
|
208
|
+
template?: GoogleCloudRunV2TaskTemplate;
|
|
209
|
+
}
|
|
210
|
+
interface GoogleCloudRunV2Job {
|
|
211
|
+
/**
|
|
212
|
+
* KRM-style annotations for the resource. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved
|
|
213
|
+
* when modifying objects. Cloud Run will populate some annotations using 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field follows Kubernetes annotations'
|
|
214
|
+
* namespacing, limits, and rules. More info: https://kubernetes.io/docs/user-guide/annotations
|
|
215
|
+
*/
|
|
216
|
+
annotations?: { [P in string]: string };
|
|
217
|
+
/** Settings for the Binary Authorization feature. */
|
|
218
|
+
binaryAuthorization?: GoogleCloudRunV2BinaryAuthorization;
|
|
219
|
+
/** Arbitrary identifier for the API client. */
|
|
220
|
+
client?: string;
|
|
221
|
+
/** Arbitrary version identifier for the API client. */
|
|
222
|
+
clientVersion?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in
|
|
225
|
+
* `reconciling` for additional information on reconciliation process in Cloud Run.
|
|
226
|
+
*/
|
|
227
|
+
conditions?: GoogleCloudRunV2Condition[];
|
|
228
|
+
/** Output only. The creation time. */
|
|
229
|
+
createTime?: string;
|
|
230
|
+
/** Output only. Email address of the authenticated creator. */
|
|
231
|
+
creator?: string;
|
|
232
|
+
/** Output only. The deletion time. */
|
|
233
|
+
deleteTime?: string;
|
|
234
|
+
/** Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. */
|
|
235
|
+
etag?: string;
|
|
236
|
+
/** Output only. Number of executions created for this job. */
|
|
237
|
+
executionCount?: number;
|
|
238
|
+
/** Output only. For a deleted resource, the time after which it will be permamently deleted. */
|
|
239
|
+
expireTime?: string;
|
|
240
|
+
/** Output only. A number that monotonically increases every time the user modifies the desired state. */
|
|
241
|
+
generation?: string;
|
|
242
|
+
/**
|
|
243
|
+
* KRM-style labels for the resource. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component,
|
|
244
|
+
* environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels
|
|
245
|
+
* Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved.
|
|
246
|
+
*/
|
|
247
|
+
labels?: { [P in string]: string };
|
|
248
|
+
/** Output only. Email address of the last authenticated modifier. */
|
|
249
|
+
lastModifier?: string;
|
|
250
|
+
/** Output only. Name of the last created execution. */
|
|
251
|
+
latestCreatedExecution?: GoogleCloudRunV2ExecutionReference;
|
|
252
|
+
/**
|
|
253
|
+
* The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is
|
|
254
|
+
* specified, GA is assumed.
|
|
255
|
+
*/
|
|
256
|
+
launchStage?: string;
|
|
257
|
+
/** The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job} */
|
|
258
|
+
name?: string;
|
|
259
|
+
/** Output only. The generation of this Job. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. */
|
|
260
|
+
observedGeneration?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Output only. Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud
|
|
263
|
+
* Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process,
|
|
264
|
+
* `observed_generation` and `latest_succeeded_execution`, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false),
|
|
265
|
+
* there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in
|
|
266
|
+
* `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `observed_generation` and `generation`, `latest_succeeded_execution` and
|
|
267
|
+
* `latest_created_execution`. If reconciliation failed, `observed_generation` and `latest_succeeded_execution` will have the state of the last succeeded execution or empty for newly
|
|
268
|
+
* created Job. Additional information on the failure can be found in `terminal_condition` and `conditions`.
|
|
269
|
+
*/
|
|
270
|
+
reconciling?: boolean;
|
|
271
|
+
/** Required. The template used to create executions for this Job. */
|
|
272
|
+
template?: GoogleCloudRunV2ExecutionTemplate;
|
|
273
|
+
/** Output only. The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state. */
|
|
274
|
+
terminalCondition?: GoogleCloudRunV2Condition;
|
|
275
|
+
/** Output only. Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. */
|
|
276
|
+
uid?: string;
|
|
277
|
+
/** Output only. The last-modified time. */
|
|
278
|
+
updateTime?: string;
|
|
279
|
+
}
|
|
280
|
+
interface GoogleCloudRunV2ListExecutionsResponse {
|
|
281
|
+
/** The resulting list of Executions. */
|
|
282
|
+
executions?: GoogleCloudRunV2Execution[];
|
|
283
|
+
/** A token indicating there are more items than page_size. Use it in the next ListExecutions request to continue. */
|
|
284
|
+
nextPageToken?: string;
|
|
285
|
+
}
|
|
286
|
+
interface GoogleCloudRunV2ListJobsResponse {
|
|
287
|
+
/** The resulting list of Jobs. */
|
|
288
|
+
jobs?: GoogleCloudRunV2Job[];
|
|
289
|
+
/** A token indicating there are more items than page_size. Use it in the next ListJobs request to continue. */
|
|
290
|
+
nextPageToken?: string;
|
|
291
|
+
}
|
|
292
|
+
interface GoogleCloudRunV2ListRevisionsResponse {
|
|
293
|
+
/** A token indicating there are more items than page_size. Use it in the next ListRevisions request to continue. */
|
|
294
|
+
nextPageToken?: string;
|
|
295
|
+
/** The resulting list of Revisions. */
|
|
296
|
+
revisions?: GoogleCloudRunV2Revision[];
|
|
297
|
+
}
|
|
298
|
+
interface GoogleCloudRunV2ListServicesResponse {
|
|
299
|
+
/** A token indicating there are more items than page_size. Use it in the next ListServices request to continue. */
|
|
300
|
+
nextPageToken?: string;
|
|
301
|
+
/** The resulting list of Services. */
|
|
302
|
+
services?: GoogleCloudRunV2Service[];
|
|
303
|
+
}
|
|
304
|
+
interface GoogleCloudRunV2ListTasksResponse {
|
|
305
|
+
/** A token indicating there are more items than page_size. Use it in the next ListTasks request to continue. */
|
|
306
|
+
nextPageToken?: string;
|
|
307
|
+
/** The resulting list of Tasks. */
|
|
308
|
+
tasks?: GoogleCloudRunV2Task[];
|
|
309
|
+
}
|
|
310
|
+
interface GoogleCloudRunV2ResourceRequirements {
|
|
311
|
+
/** Determines whether CPU should be throttled or not outside of requests. */
|
|
312
|
+
cpuIdle?: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form
|
|
315
|
+
* of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
|
|
316
|
+
*/
|
|
317
|
+
limits?: { [P in string]: string };
|
|
318
|
+
}
|
|
319
|
+
interface GoogleCloudRunV2Revision {
|
|
320
|
+
/** KRM-style annotations for the resource. */
|
|
321
|
+
annotations?: { [P in string]: string };
|
|
322
|
+
/** Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state. */
|
|
323
|
+
conditions?: GoogleCloudRunV2Condition[];
|
|
324
|
+
/** Holds the single container that defines the unit of execution for this Revision. */
|
|
325
|
+
containers?: GoogleCloudRunV2Container[];
|
|
326
|
+
/** Output only. The creation time. */
|
|
327
|
+
createTime?: string;
|
|
328
|
+
/** Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request. */
|
|
329
|
+
deleteTime?: string;
|
|
330
|
+
/** A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek */
|
|
331
|
+
encryptionKey?: string;
|
|
332
|
+
/** Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. */
|
|
333
|
+
etag?: string;
|
|
334
|
+
/** The execution environment being used to host this Revision. */
|
|
335
|
+
executionEnvironment?: string;
|
|
336
|
+
/** Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request. */
|
|
337
|
+
expireTime?: string;
|
|
338
|
+
/** Output only. A number that monotonically increases every time the user modifies the desired state. */
|
|
339
|
+
generation?: string;
|
|
340
|
+
/**
|
|
341
|
+
* KRM-style labels for the resource. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component,
|
|
342
|
+
* environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels
|
|
343
|
+
* Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved.
|
|
344
|
+
*/
|
|
345
|
+
labels?: { [P in string]: string };
|
|
346
|
+
/**
|
|
347
|
+
* Set the launch stage to a preview stage on write to allow use of preview features in that stage. On read, describes whether the resource uses preview features. Launch Stages are
|
|
348
|
+
* defined at [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages).
|
|
349
|
+
*/
|
|
350
|
+
launchStage?: string;
|
|
351
|
+
/** Output only. The Google Console URI to obtain logs for the Revision. */
|
|
352
|
+
logUri?: string;
|
|
353
|
+
/** Sets the maximum number of requests that each serving instance can receive. */
|
|
354
|
+
maxInstanceRequestConcurrency?: number;
|
|
355
|
+
/** Output only. The unique name of this Revision. */
|
|
356
|
+
name?: string;
|
|
357
|
+
/** Output only. The generation of this Revision currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. */
|
|
358
|
+
observedGeneration?: string;
|
|
359
|
+
/**
|
|
360
|
+
* Output only. Indicates whether the resource's reconciliation is still in progress. See comments in `Service.reconciling` for additional information on reconciliation process in
|
|
361
|
+
* Cloud Run.
|
|
362
|
+
*/
|
|
363
|
+
reconciling?: boolean;
|
|
364
|
+
/** Scaling settings for this revision. */
|
|
365
|
+
scaling?: GoogleCloudRunV2RevisionScaling;
|
|
366
|
+
/** Output only. The name of the parent service. */
|
|
367
|
+
service?: string;
|
|
368
|
+
/**
|
|
369
|
+
* Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what
|
|
370
|
+
* permissions the revision has.
|
|
371
|
+
*/
|
|
372
|
+
serviceAccount?: string;
|
|
373
|
+
/** Max allowed time for an instance to respond to a request. */
|
|
374
|
+
timeout?: string;
|
|
375
|
+
/** Output only. Server assigned unique identifier for the Revision. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. */
|
|
376
|
+
uid?: string;
|
|
377
|
+
/** Output only. The last-modified time. */
|
|
378
|
+
updateTime?: string;
|
|
379
|
+
/** A list of Volumes to make available to containers. */
|
|
380
|
+
volumes?: GoogleCloudRunV2Volume[];
|
|
381
|
+
/** VPC Access configuration for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. */
|
|
382
|
+
vpcAccess?: GoogleCloudRunV2VpcAccess;
|
|
383
|
+
}
|
|
384
|
+
interface GoogleCloudRunV2RevisionScaling {
|
|
385
|
+
/** Maximum number of serving instances that this resource should have. */
|
|
386
|
+
maxInstanceCount?: number;
|
|
387
|
+
/** Minimum number of serving instances that this resource should have. */
|
|
388
|
+
minInstanceCount?: number;
|
|
389
|
+
}
|
|
390
|
+
interface GoogleCloudRunV2RevisionTemplate {
|
|
391
|
+
/** KRM-style annotations for the resource. */
|
|
392
|
+
annotations?: { [P in string]: string };
|
|
393
|
+
/** Holds the single container that defines the unit of execution for this Revision. */
|
|
394
|
+
containers?: GoogleCloudRunV2Container[];
|
|
395
|
+
/** A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek */
|
|
396
|
+
encryptionKey?: string;
|
|
397
|
+
/** The sandbox environment to host this Revision. */
|
|
398
|
+
executionEnvironment?: string;
|
|
399
|
+
/** KRM-style labels for the resource. */
|
|
400
|
+
labels?: { [P in string]: string };
|
|
401
|
+
/** Sets the maximum number of requests that each serving instance can receive. */
|
|
402
|
+
maxInstanceRequestConcurrency?: number;
|
|
403
|
+
/** The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name. */
|
|
404
|
+
revision?: string;
|
|
405
|
+
/** Scaling settings for this Revision. */
|
|
406
|
+
scaling?: GoogleCloudRunV2RevisionScaling;
|
|
407
|
+
/**
|
|
408
|
+
* Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what
|
|
409
|
+
* permissions the revision has. If not provided, the revision will use the project's default service account.
|
|
410
|
+
*/
|
|
411
|
+
serviceAccount?: string;
|
|
412
|
+
/** Max allowed time for an instance to respond to a request. */
|
|
413
|
+
timeout?: string;
|
|
414
|
+
/** A list of Volumes to make available to containers. */
|
|
415
|
+
volumes?: GoogleCloudRunV2Volume[];
|
|
416
|
+
/** VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. */
|
|
417
|
+
vpcAccess?: GoogleCloudRunV2VpcAccess;
|
|
418
|
+
}
|
|
419
|
+
interface GoogleCloudRunV2RunJobRequest {
|
|
420
|
+
/** A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. */
|
|
421
|
+
etag?: string;
|
|
422
|
+
/** Indicates that the request should be validated without actually deleting any resources. */
|
|
423
|
+
validateOnly?: boolean;
|
|
424
|
+
}
|
|
425
|
+
interface GoogleCloudRunV2SecretKeySelector {
|
|
426
|
+
/**
|
|
427
|
+
* Required. The name of the secret in Cloud Secret Manager. Format: {secret_name} if the secret is in the same project. projects/{project}/secrets/{secret_name} if the secret is in a
|
|
428
|
+
* different project.
|
|
429
|
+
*/
|
|
430
|
+
secret?: string;
|
|
431
|
+
/** The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version. */
|
|
432
|
+
version?: string;
|
|
433
|
+
}
|
|
434
|
+
interface GoogleCloudRunV2SecretVolumeSource {
|
|
435
|
+
/**
|
|
436
|
+
* Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not
|
|
437
|
+
* affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer
|
|
438
|
+
* value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r),
|
|
439
|
+
* set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file
|
|
440
|
+
* mode, like fsGroup, and the result can be other mode bits set. This might be in conflict with other options that affect the file mode, like fsGroup, and as a result, other mode bits
|
|
441
|
+
* could be set.
|
|
442
|
+
*/
|
|
443
|
+
defaultMode?: number;
|
|
444
|
+
/**
|
|
445
|
+
* If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud
|
|
446
|
+
* Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
|
|
447
|
+
*/
|
|
448
|
+
items?: GoogleCloudRunV2VersionToPath[];
|
|
449
|
+
/**
|
|
450
|
+
* Required. The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different
|
|
451
|
+
* project.
|
|
452
|
+
*/
|
|
453
|
+
secret?: string;
|
|
454
|
+
}
|
|
455
|
+
interface GoogleCloudRunV2Service {
|
|
456
|
+
/**
|
|
457
|
+
* Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run will
|
|
458
|
+
* populate some annotations using 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field follows Kubernetes annotations' namespacing, limits, and rules. More info:
|
|
459
|
+
* https://kubernetes.io/docs/user-guide/annotations
|
|
460
|
+
*/
|
|
461
|
+
annotations?: { [P in string]: string };
|
|
462
|
+
/** Settings for the Binary Authorization feature. */
|
|
463
|
+
binaryAuthorization?: GoogleCloudRunV2BinaryAuthorization;
|
|
464
|
+
/** Arbitrary identifier for the API client. */
|
|
465
|
+
client?: string;
|
|
466
|
+
/** Arbitrary version identifier for the API client. */
|
|
467
|
+
clientVersion?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Service does not reach its Serving state. See comments
|
|
470
|
+
* in `reconciling` for additional information on reconciliation process in Cloud Run.
|
|
471
|
+
*/
|
|
472
|
+
conditions?: GoogleCloudRunV2Condition[];
|
|
473
|
+
/** Output only. The creation time. */
|
|
474
|
+
createTime?: string;
|
|
475
|
+
/** Output only. Email address of the authenticated creator. */
|
|
476
|
+
creator?: string;
|
|
477
|
+
/** Output only. The deletion time. */
|
|
478
|
+
deleteTime?: string;
|
|
479
|
+
/** User-provided description of the Service. This field currently has a 512-character limit. */
|
|
480
|
+
description?: string;
|
|
481
|
+
/** Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. */
|
|
482
|
+
etag?: string;
|
|
483
|
+
/** Output only. For a deleted resource, the time after which it will be permamently deleted. */
|
|
484
|
+
expireTime?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Output only. A number that monotonically increases every time the user modifies the desired state. Please note that unlike v1, this is an int64 value. As with most Google APIs, its
|
|
487
|
+
* JSON representation will be a `string` instead of an `integer`.
|
|
488
|
+
*/
|
|
489
|
+
generation?: string;
|
|
490
|
+
/** Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. */
|
|
491
|
+
ingress?: string;
|
|
492
|
+
/**
|
|
493
|
+
* Map of string keys and values that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or
|
|
494
|
+
* break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or
|
|
495
|
+
* https://cloud.google.com/run/docs/configuring/labels Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only,
|
|
496
|
+
* and user changes will not be preserved.
|
|
497
|
+
*/
|
|
498
|
+
labels?: { [P in string]: string };
|
|
499
|
+
/** Output only. Email address of the last authenticated modifier. */
|
|
500
|
+
lastModifier?: string;
|
|
501
|
+
/** Output only. Name of the last created revision. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. */
|
|
502
|
+
latestCreatedRevision?: string;
|
|
503
|
+
/** Output only. Name of the latest revision that is serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. */
|
|
504
|
+
latestReadyRevision?: string;
|
|
505
|
+
/**
|
|
506
|
+
* The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is
|
|
507
|
+
* specified, GA is assumed.
|
|
508
|
+
*/
|
|
509
|
+
launchStage?: string;
|
|
510
|
+
/**
|
|
511
|
+
* The fully qualified name of this Service. In CreateServiceRequest, this field is ignored, and instead composed from CreateServiceRequest.parent and CreateServiceRequest.service_id.
|
|
512
|
+
* Format: projects/{project}/locations/{location}/services/{service_id}
|
|
513
|
+
*/
|
|
514
|
+
name?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Output only. The generation of this Service currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. Please note
|
|
517
|
+
* that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a `string` instead of an `integer`.
|
|
518
|
+
*/
|
|
519
|
+
observedGeneration?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Output only. Returns true if the Service is currently being acted upon by the system to bring it into the desired state. When a new Service is created, or an existing one is
|
|
522
|
+
* updated, Cloud Run will asynchronously perform all necessary steps to bring the Service to the desired serving state. This process is called reconciliation. While reconciliation is
|
|
523
|
+
* in process, `observed_generation`, `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient values that might mismatch the intended state: Once reconciliation is
|
|
524
|
+
* over (and this field is false), there are two possible outcomes: reconciliation succeeded and the serving state matches the Service, or there was an error, and reconciliation
|
|
525
|
+
* failed. This state can be found in `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `traffic` and `traffic_statuses`, `observed_generation`
|
|
526
|
+
* and `generation`, `latest_ready_revision` and `latest_created_revision`. If reconciliation failed, `traffic_statuses`, `observed_generation`, and `latest_ready_revision` will have
|
|
527
|
+
* the state of the last serving revision, or empty for newly created Services. Additional information on the failure can be found in `terminal_condition` and `conditions`.
|
|
528
|
+
*/
|
|
529
|
+
reconciling?: boolean;
|
|
530
|
+
/** Required. The template used to create revisions for this Service. */
|
|
531
|
+
template?: GoogleCloudRunV2RevisionTemplate;
|
|
532
|
+
/**
|
|
533
|
+
* Output only. The Condition of this Service, containing its readiness status, and detailed error information in case it did not reach a serving state. See comments in `reconciling`
|
|
534
|
+
* for additional information on reconciliation process in Cloud Run.
|
|
535
|
+
*/
|
|
536
|
+
terminalCondition?: GoogleCloudRunV2Condition;
|
|
537
|
+
/**
|
|
538
|
+
* Specifies how to distribute traffic over a collection of Revisions belonging to the Service. If traffic is empty or not provided, defaults to 100% traffic to the latest `Ready`
|
|
539
|
+
* Revision.
|
|
540
|
+
*/
|
|
541
|
+
traffic?: GoogleCloudRunV2TrafficTarget[];
|
|
542
|
+
/** Output only. Detailed status information for corresponding traffic targets. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. */
|
|
543
|
+
trafficStatuses?: GoogleCloudRunV2TrafficTargetStatus[];
|
|
544
|
+
/** Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. */
|
|
545
|
+
uid?: string;
|
|
546
|
+
/** Output only. The last-modified time. */
|
|
547
|
+
updateTime?: string;
|
|
548
|
+
/** Output only. The main URI in which this Service is serving traffic. */
|
|
549
|
+
uri?: string;
|
|
550
|
+
}
|
|
551
|
+
interface GoogleCloudRunV2Task {
|
|
552
|
+
/** KRM-style annotations for the resource. */
|
|
553
|
+
annotations?: { [P in string]: string };
|
|
554
|
+
/** Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations. */
|
|
555
|
+
completionTime?: string;
|
|
556
|
+
/** Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state. */
|
|
557
|
+
conditions?: GoogleCloudRunV2Condition[];
|
|
558
|
+
/** Holds the single container that defines the unit of execution for this task. */
|
|
559
|
+
containers?: GoogleCloudRunV2Container[];
|
|
560
|
+
/** Output only. Represents time when the task was created by the job controller. It is not guaranteed to be set in happens-before order across separate operations. */
|
|
561
|
+
createTime?: string;
|
|
562
|
+
/** Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request. */
|
|
563
|
+
deleteTime?: string;
|
|
564
|
+
/**
|
|
565
|
+
* Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to
|
|
566
|
+
* https://cloud.google.com/run/docs/securing/using-cmek
|
|
567
|
+
*/
|
|
568
|
+
encryptionKey?: string;
|
|
569
|
+
/** Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. */
|
|
570
|
+
etag?: string;
|
|
571
|
+
/** Output only. The name of the parent Execution. */
|
|
572
|
+
execution?: string;
|
|
573
|
+
/** The execution environment being used to host this Task. */
|
|
574
|
+
executionEnvironment?: string;
|
|
575
|
+
/** Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request. */
|
|
576
|
+
expireTime?: string;
|
|
577
|
+
/** Output only. A number that monotonically increases every time the user modifies the desired state. */
|
|
578
|
+
generation?: string;
|
|
579
|
+
/** Output only. Index of the Task, unique per execution, and beginning at 0. */
|
|
580
|
+
index?: number;
|
|
581
|
+
/** Output only. The name of the parent Job. */
|
|
582
|
+
job?: string;
|
|
583
|
+
/**
|
|
584
|
+
* KRM-style labels for the resource. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component,
|
|
585
|
+
* environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels
|
|
586
|
+
* Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved.
|
|
587
|
+
*/
|
|
588
|
+
labels?: { [P in string]: string };
|
|
589
|
+
/** Output only. Result of the last attempt of this Task. */
|
|
590
|
+
lastAttemptResult?: GoogleCloudRunV2TaskAttemptResult;
|
|
591
|
+
/**
|
|
592
|
+
* Set the launch stage to a preview stage on write to allow use of preview features in that stage. On read, describes whether the resource uses preview features. Launch Stages are
|
|
593
|
+
* defined at [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages).
|
|
594
|
+
*/
|
|
595
|
+
launchStage?: string;
|
|
596
|
+
/** Number of retries allowed per Task, before marking this Task failed. */
|
|
597
|
+
maxRetries?: number;
|
|
598
|
+
/** Output only. The unique name of this Task. */
|
|
599
|
+
name?: string;
|
|
600
|
+
/** Output only. The generation of this Task. See comments in `Job.reconciling` for additional information on reconciliation process in Cloud Run. */
|
|
601
|
+
observedGeneration?: string;
|
|
602
|
+
/**
|
|
603
|
+
* Output only. Indicates whether the resource's reconciliation is still in progress. See comments in `Job.reconciling` for additional information on reconciliation process in Cloud
|
|
604
|
+
* Run.
|
|
605
|
+
*/
|
|
606
|
+
reconciling?: boolean;
|
|
607
|
+
/** Output only. The number of times this Task was retried. Tasks are retried when they fail up to the maxRetries limit. */
|
|
608
|
+
retried?: number;
|
|
609
|
+
/**
|
|
610
|
+
* Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task
|
|
611
|
+
* has. If not provided, the task will use the project's default service account.
|
|
612
|
+
*/
|
|
613
|
+
serviceAccount?: string;
|
|
614
|
+
/** Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations. */
|
|
615
|
+
startTime?: string;
|
|
616
|
+
/**
|
|
617
|
+
* Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning
|
|
618
|
+
* each retry can run for the full timeout.
|
|
619
|
+
*/
|
|
620
|
+
timeout?: string;
|
|
621
|
+
/** Output only. Server assigned unique identifier for the Task. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. */
|
|
622
|
+
uid?: string;
|
|
623
|
+
/** Output only. The last-modified time. */
|
|
624
|
+
updateTime?: string;
|
|
625
|
+
/** A list of Volumes to make available to containers. */
|
|
626
|
+
volumes?: GoogleCloudRunV2Volume[];
|
|
627
|
+
/** Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. */
|
|
628
|
+
vpcAccess?: GoogleCloudRunV2VpcAccess;
|
|
629
|
+
}
|
|
630
|
+
interface GoogleCloudRunV2TaskAttemptResult {
|
|
631
|
+
/**
|
|
632
|
+
* Output only. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible
|
|
633
|
+
* failure details.
|
|
634
|
+
*/
|
|
635
|
+
exitCode?: number;
|
|
636
|
+
/** Output only. The status of this attempt. If the status code is OK, then the attempt succeeded. */
|
|
637
|
+
status?: GoogleRpcStatus;
|
|
638
|
+
}
|
|
639
|
+
interface GoogleCloudRunV2TaskTemplate {
|
|
640
|
+
/** Holds the single container that defines the unit of execution for this task. */
|
|
641
|
+
containers?: GoogleCloudRunV2Container[];
|
|
642
|
+
/** A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek */
|
|
643
|
+
encryptionKey?: string;
|
|
644
|
+
/** The execution environment being used to host this Task. */
|
|
645
|
+
executionEnvironment?: string;
|
|
646
|
+
/** Number of retries allowed per Task, before marking this Task failed. */
|
|
647
|
+
maxRetries?: number;
|
|
648
|
+
/**
|
|
649
|
+
* Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task
|
|
650
|
+
* has. If not provided, the task will use the project's default service account.
|
|
651
|
+
*/
|
|
652
|
+
serviceAccount?: string;
|
|
653
|
+
/**
|
|
654
|
+
* Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning
|
|
655
|
+
* each retry can run for the full timeout.
|
|
656
|
+
*/
|
|
657
|
+
timeout?: string;
|
|
658
|
+
/** A list of Volumes to make available to containers. */
|
|
659
|
+
volumes?: GoogleCloudRunV2Volume[];
|
|
660
|
+
/** VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. */
|
|
661
|
+
vpcAccess?: GoogleCloudRunV2VpcAccess;
|
|
662
|
+
}
|
|
663
|
+
interface GoogleCloudRunV2TrafficTarget {
|
|
664
|
+
/** Specifies percent of the traffic to this Revision. This defaults to zero if unspecified. */
|
|
665
|
+
percent?: number;
|
|
666
|
+
/** Revision to which to send this portion of traffic, if traffic allocation is by revision. */
|
|
667
|
+
revision?: string;
|
|
668
|
+
/** Indicates a string to be part of the URI to exclusively reference this target. */
|
|
669
|
+
tag?: string;
|
|
670
|
+
/** The allocation type for this traffic target. */
|
|
671
|
+
type?: string;
|
|
672
|
+
}
|
|
673
|
+
interface GoogleCloudRunV2TrafficTargetStatus {
|
|
674
|
+
/** Specifies percent of the traffic to this Revision. */
|
|
675
|
+
percent?: number;
|
|
676
|
+
/** Revision to which this traffic is sent. */
|
|
677
|
+
revision?: string;
|
|
678
|
+
/** Indicates the string used in the URI to exclusively reference this target. */
|
|
679
|
+
tag?: string;
|
|
680
|
+
/** The allocation type for this traffic target. */
|
|
681
|
+
type?: string;
|
|
682
|
+
/** Displays the target URI. */
|
|
683
|
+
uri?: string;
|
|
684
|
+
}
|
|
685
|
+
interface GoogleCloudRunV2VersionToPath {
|
|
686
|
+
/**
|
|
687
|
+
* Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used. Notes * Internally, a umask of
|
|
688
|
+
* 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with
|
|
689
|
+
* a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755
|
|
690
|
+
* (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode
|
|
691
|
+
* bits set.
|
|
692
|
+
*/
|
|
693
|
+
mode?: number;
|
|
694
|
+
/** Required. The relative path of the secret in the container. */
|
|
695
|
+
path?: string;
|
|
696
|
+
/** The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version. */
|
|
697
|
+
version?: string;
|
|
698
|
+
}
|
|
699
|
+
interface GoogleCloudRunV2Volume {
|
|
700
|
+
/**
|
|
701
|
+
* For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud
|
|
702
|
+
* SQL and Cloud Run.
|
|
703
|
+
*/
|
|
704
|
+
cloudSqlInstance?: GoogleCloudRunV2CloudSqlInstance;
|
|
705
|
+
/** Required. Volume's name. */
|
|
706
|
+
name?: string;
|
|
707
|
+
/** Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret */
|
|
708
|
+
secret?: GoogleCloudRunV2SecretVolumeSource;
|
|
709
|
+
}
|
|
710
|
+
interface GoogleCloudRunV2VolumeMount {
|
|
711
|
+
/**
|
|
712
|
+
* Required. Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be `/cloudsql`. All
|
|
713
|
+
* instances defined in the Volume will be available as `/cloudsql/[instance]`. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
|
|
714
|
+
*/
|
|
715
|
+
mountPath?: string;
|
|
716
|
+
/** Required. This must match the Name of a Volume. */
|
|
717
|
+
name?: string;
|
|
718
|
+
}
|
|
719
|
+
interface GoogleCloudRunV2VpcAccess {
|
|
720
|
+
/** VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector} */
|
|
721
|
+
connector?: string;
|
|
722
|
+
/** Traffic VPC egress settings. */
|
|
723
|
+
egress?: string;
|
|
724
|
+
}
|
|
725
|
+
interface GoogleIamV1AuditConfig {
|
|
726
|
+
/** The configuration for logging of each type of permission. */
|
|
727
|
+
auditLogConfigs?: GoogleIamV1AuditLogConfig[];
|
|
728
|
+
/**
|
|
729
|
+
* Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all
|
|
730
|
+
* services.
|
|
731
|
+
*/
|
|
732
|
+
service?: string;
|
|
733
|
+
}
|
|
734
|
+
interface GoogleIamV1AuditLogConfig {
|
|
735
|
+
/** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
|
|
736
|
+
exemptedMembers?: string[];
|
|
737
|
+
/** The log type that this config enables. */
|
|
738
|
+
logType?: string;
|
|
739
|
+
}
|
|
740
|
+
interface GoogleIamV1Binding {
|
|
741
|
+
/**
|
|
742
|
+
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`,
|
|
743
|
+
* then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which
|
|
744
|
+
* resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
745
|
+
*/
|
|
746
|
+
condition?: GoogleTypeExpr;
|
|
747
|
+
/**
|
|
748
|
+
* Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on
|
|
749
|
+
* the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service
|
|
750
|
+
* account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
|
|
751
|
+
* represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier
|
|
752
|
+
* for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example,
|
|
753
|
+
* `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. *
|
|
754
|
+
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
|
|
755
|
+
* `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. *
|
|
756
|
+
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
|
|
757
|
+
* `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
|
|
758
|
+
* account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently
|
|
759
|
+
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in
|
|
760
|
+
* the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
|
|
761
|
+
*/
|
|
762
|
+
members?: string[];
|
|
763
|
+
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
764
|
+
role?: string;
|
|
765
|
+
}
|
|
766
|
+
interface GoogleIamV1Policy {
|
|
767
|
+
/** Specifies cloud audit logging configuration for this policy. */
|
|
768
|
+
auditConfigs?: GoogleIamV1AuditConfig[];
|
|
769
|
+
/**
|
|
770
|
+
* Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings`
|
|
771
|
+
* must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a
|
|
772
|
+
* principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another
|
|
773
|
+
* 1,450 principals to the `bindings` in the `Policy`.
|
|
774
|
+
*/
|
|
775
|
+
bindings?: GoogleIamV1Binding[];
|
|
776
|
+
/**
|
|
777
|
+
* `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make
|
|
778
|
+
* use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems
|
|
779
|
+
* are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM
|
|
780
|
+
* Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
|
|
781
|
+
* policy, and all of the conditions in the version `3` policy are lost.
|
|
782
|
+
*/
|
|
783
|
+
etag?: string;
|
|
784
|
+
/**
|
|
785
|
+
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings
|
|
786
|
+
* must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a
|
|
787
|
+
* policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use
|
|
788
|
+
* IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
|
|
789
|
+
* policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave
|
|
790
|
+
* the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
791
|
+
*/
|
|
792
|
+
version?: number;
|
|
793
|
+
}
|
|
794
|
+
interface GoogleIamV1SetIamPolicyRequest {
|
|
795
|
+
/**
|
|
796
|
+
* REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
|
|
797
|
+
* services (such as Projects) might reject them.
|
|
798
|
+
*/
|
|
799
|
+
policy?: GoogleIamV1Policy;
|
|
800
|
+
/**
|
|
801
|
+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used:
|
|
802
|
+
* `paths: "bindings, etag"`
|
|
803
|
+
*/
|
|
804
|
+
updateMask?: string;
|
|
805
|
+
}
|
|
806
|
+
interface GoogleIamV1TestIamPermissionsRequest {
|
|
807
|
+
/**
|
|
808
|
+
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
|
809
|
+
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
810
|
+
*/
|
|
811
|
+
permissions?: string[];
|
|
812
|
+
}
|
|
813
|
+
interface GoogleIamV1TestIamPermissionsResponse {
|
|
814
|
+
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
815
|
+
permissions?: string[];
|
|
816
|
+
}
|
|
817
|
+
interface GoogleLongrunningListOperationsResponse {
|
|
818
|
+
/** The standard List next-page token. */
|
|
819
|
+
nextPageToken?: string;
|
|
820
|
+
/** A list of operations that matches the specified filter in the request. */
|
|
821
|
+
operations?: GoogleLongrunningOperation[];
|
|
822
|
+
}
|
|
823
|
+
interface GoogleLongrunningOperation {
|
|
824
|
+
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
|
825
|
+
done?: boolean;
|
|
826
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
827
|
+
error?: GoogleRpcStatus;
|
|
828
|
+
/**
|
|
829
|
+
* Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
|
|
830
|
+
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
831
|
+
*/
|
|
832
|
+
metadata?: { [P in string]: any };
|
|
833
|
+
/**
|
|
834
|
+
* The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
|
|
835
|
+
* with `operations/{unique_id}`.
|
|
836
|
+
*/
|
|
837
|
+
name?: string;
|
|
838
|
+
/**
|
|
839
|
+
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
|
|
840
|
+
* original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
|
|
841
|
+
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
842
|
+
*/
|
|
843
|
+
response?: { [P in string]: any };
|
|
844
|
+
}
|
|
845
|
+
// tslint:disable-next-line:no-empty-interface
|
|
846
|
+
interface GoogleProtobufEmpty {
|
|
847
|
+
}
|
|
848
|
+
interface GoogleRpcStatus {
|
|
849
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
850
|
+
code?: number;
|
|
851
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
852
|
+
details?: Array<{ [P in string]: any }>;
|
|
853
|
+
/**
|
|
854
|
+
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
|
|
855
|
+
* client.
|
|
856
|
+
*/
|
|
857
|
+
message?: string;
|
|
858
|
+
}
|
|
859
|
+
interface GoogleTypeExpr {
|
|
860
|
+
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
861
|
+
description?: string;
|
|
862
|
+
/** Textual representation of an expression in Common Expression Language syntax. */
|
|
863
|
+
expression?: string;
|
|
864
|
+
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
|
865
|
+
location?: string;
|
|
866
|
+
/** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
|
|
867
|
+
title?: string;
|
|
868
|
+
}
|
|
869
|
+
interface TasksResource {
|
|
870
|
+
/** Gets information about a Task. */
|
|
871
|
+
get(request?: {
|
|
872
|
+
/** V1 error format. */
|
|
873
|
+
"$.xgafv"?: string;
|
|
874
|
+
/** OAuth access token. */
|
|
875
|
+
access_token?: string;
|
|
876
|
+
/** Data format for response. */
|
|
877
|
+
alt?: string;
|
|
878
|
+
/** JSONP */
|
|
879
|
+
callback?: string;
|
|
880
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
881
|
+
fields?: string;
|
|
882
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
883
|
+
key?: string;
|
|
884
|
+
/** Required. The full name of the Task. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task} */
|
|
885
|
+
name: string;
|
|
886
|
+
/** OAuth 2.0 token for the current user. */
|
|
887
|
+
oauth_token?: string;
|
|
888
|
+
/** Returns response with indentations and line breaks. */
|
|
889
|
+
prettyPrint?: boolean;
|
|
890
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
891
|
+
quotaUser?: string;
|
|
892
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
893
|
+
upload_protocol?: string;
|
|
894
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
895
|
+
uploadType?: string;
|
|
896
|
+
}): Request<GoogleCloudRunV2Task>;
|
|
897
|
+
/** List Tasks from an Execution of a Job. */
|
|
898
|
+
list(request?: {
|
|
899
|
+
/** V1 error format. */
|
|
900
|
+
"$.xgafv"?: string;
|
|
901
|
+
/** OAuth access token. */
|
|
902
|
+
access_token?: string;
|
|
903
|
+
/** Data format for response. */
|
|
904
|
+
alt?: string;
|
|
905
|
+
/** JSONP */
|
|
906
|
+
callback?: string;
|
|
907
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
908
|
+
fields?: string;
|
|
909
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
910
|
+
key?: string;
|
|
911
|
+
/** OAuth 2.0 token for the current user. */
|
|
912
|
+
oauth_token?: string;
|
|
913
|
+
/** Maximum number of Tasks to return in this call. */
|
|
914
|
+
pageSize?: number;
|
|
915
|
+
/** A page token received from a previous call to ListTasks. All other parameters must match. */
|
|
916
|
+
pageToken?: string;
|
|
917
|
+
/**
|
|
918
|
+
* Required. The Execution from which the Tasks should be listed. To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs,
|
|
919
|
+
* use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
|
|
920
|
+
*/
|
|
921
|
+
parent: string;
|
|
922
|
+
/** Returns response with indentations and line breaks. */
|
|
923
|
+
prettyPrint?: boolean;
|
|
924
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
925
|
+
quotaUser?: string;
|
|
926
|
+
/** If true, returns deleted (but unexpired) resources along with active ones. */
|
|
927
|
+
showDeleted?: boolean;
|
|
928
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
929
|
+
upload_protocol?: string;
|
|
930
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
931
|
+
uploadType?: string;
|
|
932
|
+
}): Request<GoogleCloudRunV2ListTasksResponse>;
|
|
933
|
+
}
|
|
934
|
+
interface ExecutionsResource {
|
|
935
|
+
/** Delete an Execution. */
|
|
936
|
+
delete(request?: {
|
|
937
|
+
/** V1 error format. */
|
|
938
|
+
"$.xgafv"?: string;
|
|
939
|
+
/** OAuth access token. */
|
|
940
|
+
access_token?: string;
|
|
941
|
+
/** Data format for response. */
|
|
942
|
+
alt?: string;
|
|
943
|
+
/** JSONP */
|
|
944
|
+
callback?: string;
|
|
945
|
+
/** A system-generated fingerprint for this version of the resource. This may be used to detect modification conflict during updates. */
|
|
946
|
+
etag?: string;
|
|
947
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
948
|
+
fields?: string;
|
|
949
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
950
|
+
key?: string;
|
|
951
|
+
/** Required. The name of the Execution to delete. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution} */
|
|
952
|
+
name: string;
|
|
953
|
+
/** OAuth 2.0 token for the current user. */
|
|
954
|
+
oauth_token?: string;
|
|
955
|
+
/** Returns response with indentations and line breaks. */
|
|
956
|
+
prettyPrint?: boolean;
|
|
957
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
958
|
+
quotaUser?: string;
|
|
959
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
960
|
+
upload_protocol?: string;
|
|
961
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
962
|
+
uploadType?: string;
|
|
963
|
+
/** Indicates that the request should be validated without actually deleting any resources. */
|
|
964
|
+
validateOnly?: boolean;
|
|
965
|
+
}): Request<GoogleLongrunningOperation>;
|
|
966
|
+
/** Gets information about a Execution. */
|
|
967
|
+
get(request?: {
|
|
968
|
+
/** V1 error format. */
|
|
969
|
+
"$.xgafv"?: string;
|
|
970
|
+
/** OAuth access token. */
|
|
971
|
+
access_token?: string;
|
|
972
|
+
/** Data format for response. */
|
|
973
|
+
alt?: string;
|
|
974
|
+
/** JSONP */
|
|
975
|
+
callback?: string;
|
|
976
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
977
|
+
fields?: string;
|
|
978
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
979
|
+
key?: string;
|
|
980
|
+
/** Required. The full name of the Execution. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution} */
|
|
981
|
+
name: string;
|
|
982
|
+
/** OAuth 2.0 token for the current user. */
|
|
983
|
+
oauth_token?: string;
|
|
984
|
+
/** Returns response with indentations and line breaks. */
|
|
985
|
+
prettyPrint?: boolean;
|
|
986
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
987
|
+
quotaUser?: string;
|
|
988
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
989
|
+
upload_protocol?: string;
|
|
990
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
991
|
+
uploadType?: string;
|
|
992
|
+
}): Request<GoogleCloudRunV2Execution>;
|
|
993
|
+
/** List Executions from a Job. */
|
|
994
|
+
list(request?: {
|
|
995
|
+
/** V1 error format. */
|
|
996
|
+
"$.xgafv"?: string;
|
|
997
|
+
/** OAuth access token. */
|
|
998
|
+
access_token?: string;
|
|
999
|
+
/** Data format for response. */
|
|
1000
|
+
alt?: string;
|
|
1001
|
+
/** JSONP */
|
|
1002
|
+
callback?: string;
|
|
1003
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1004
|
+
fields?: string;
|
|
1005
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1006
|
+
key?: string;
|
|
1007
|
+
/** OAuth 2.0 token for the current user. */
|
|
1008
|
+
oauth_token?: string;
|
|
1009
|
+
/** Maximum number of Executions to return in this call. */
|
|
1010
|
+
pageSize?: number;
|
|
1011
|
+
/** A page token received from a previous call to ListExecutions. All other parameters must match. */
|
|
1012
|
+
pageToken?: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* Required. The Execution from which the Executions should be listed. To list all Executions across Jobs, use "-" instead of Job name. Format:
|
|
1015
|
+
* projects/{project}/locations/{location}/jobs/{job}
|
|
1016
|
+
*/
|
|
1017
|
+
parent: string;
|
|
1018
|
+
/** Returns response with indentations and line breaks. */
|
|
1019
|
+
prettyPrint?: boolean;
|
|
1020
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1021
|
+
quotaUser?: string;
|
|
1022
|
+
/** If true, returns deleted (but unexpired) resources along with active ones. */
|
|
1023
|
+
showDeleted?: boolean;
|
|
1024
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1025
|
+
upload_protocol?: string;
|
|
1026
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1027
|
+
uploadType?: string;
|
|
1028
|
+
}): Request<GoogleCloudRunV2ListExecutionsResponse>;
|
|
1029
|
+
tasks: TasksResource;
|
|
1030
|
+
}
|
|
1031
|
+
interface JobsResource {
|
|
1032
|
+
/** Create a Job. */
|
|
1033
|
+
create(request: {
|
|
1034
|
+
/** V1 error format. */
|
|
1035
|
+
"$.xgafv"?: string;
|
|
1036
|
+
/** OAuth access token. */
|
|
1037
|
+
access_token?: string;
|
|
1038
|
+
/** Data format for response. */
|
|
1039
|
+
alt?: string;
|
|
1040
|
+
/** JSONP */
|
|
1041
|
+
callback?: string;
|
|
1042
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1043
|
+
fields?: string;
|
|
1044
|
+
/** Required. The unique identifier for the Job. The name of the job becomes {parent}/jobs/{job_id}. */
|
|
1045
|
+
jobId?: string;
|
|
1046
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1047
|
+
key?: string;
|
|
1048
|
+
/** OAuth 2.0 token for the current user. */
|
|
1049
|
+
oauth_token?: string;
|
|
1050
|
+
/** Required. The location and project in which this Job should be created. Format: projects/{projectnumber}/locations/{location} */
|
|
1051
|
+
parent: string;
|
|
1052
|
+
/** Returns response with indentations and line breaks. */
|
|
1053
|
+
prettyPrint?: boolean;
|
|
1054
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1055
|
+
quotaUser?: string;
|
|
1056
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1057
|
+
upload_protocol?: string;
|
|
1058
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1059
|
+
uploadType?: string;
|
|
1060
|
+
/** Indicates that the request should be validated and default values populated, without persisting the request or creating any resources. */
|
|
1061
|
+
validateOnly?: boolean;
|
|
1062
|
+
/** Request body */
|
|
1063
|
+
resource: GoogleCloudRunV2Job;
|
|
1064
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1065
|
+
create(request: {
|
|
1066
|
+
/** V1 error format. */
|
|
1067
|
+
"$.xgafv"?: string;
|
|
1068
|
+
/** OAuth access token. */
|
|
1069
|
+
access_token?: string;
|
|
1070
|
+
/** Data format for response. */
|
|
1071
|
+
alt?: string;
|
|
1072
|
+
/** JSONP */
|
|
1073
|
+
callback?: string;
|
|
1074
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1075
|
+
fields?: string;
|
|
1076
|
+
/** Required. The unique identifier for the Job. The name of the job becomes {parent}/jobs/{job_id}. */
|
|
1077
|
+
jobId?: string;
|
|
1078
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1079
|
+
key?: string;
|
|
1080
|
+
/** OAuth 2.0 token for the current user. */
|
|
1081
|
+
oauth_token?: string;
|
|
1082
|
+
/** Required. The location and project in which this Job should be created. Format: projects/{projectnumber}/locations/{location} */
|
|
1083
|
+
parent: string;
|
|
1084
|
+
/** Returns response with indentations and line breaks. */
|
|
1085
|
+
prettyPrint?: boolean;
|
|
1086
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1087
|
+
quotaUser?: string;
|
|
1088
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1089
|
+
upload_protocol?: string;
|
|
1090
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1091
|
+
uploadType?: string;
|
|
1092
|
+
/** Indicates that the request should be validated and default values populated, without persisting the request or creating any resources. */
|
|
1093
|
+
validateOnly?: boolean;
|
|
1094
|
+
},
|
|
1095
|
+
body: GoogleCloudRunV2Job): Request<GoogleLongrunningOperation>;
|
|
1096
|
+
/** Deletes a Job. */
|
|
1097
|
+
delete(request?: {
|
|
1098
|
+
/** V1 error format. */
|
|
1099
|
+
"$.xgafv"?: string;
|
|
1100
|
+
/** OAuth access token. */
|
|
1101
|
+
access_token?: string;
|
|
1102
|
+
/** Data format for response. */
|
|
1103
|
+
alt?: string;
|
|
1104
|
+
/** JSONP */
|
|
1105
|
+
callback?: string;
|
|
1106
|
+
/** A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. */
|
|
1107
|
+
etag?: string;
|
|
1108
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1109
|
+
fields?: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* 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
|
|
1112
|
+
* only be deleted if there are no running Executions. Any running Execution will fail the deletion.
|
|
1113
|
+
*/
|
|
1114
|
+
force?: boolean;
|
|
1115
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1116
|
+
key?: string;
|
|
1117
|
+
/** Required. The full name of the Job. Format: projects/{projectnumber}/locations/{location}/jobs/{job} */
|
|
1118
|
+
name: string;
|
|
1119
|
+
/** OAuth 2.0 token for the current user. */
|
|
1120
|
+
oauth_token?: string;
|
|
1121
|
+
/** Returns response with indentations and line breaks. */
|
|
1122
|
+
prettyPrint?: boolean;
|
|
1123
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1124
|
+
quotaUser?: string;
|
|
1125
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1126
|
+
upload_protocol?: string;
|
|
1127
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1128
|
+
uploadType?: string;
|
|
1129
|
+
/** Indicates that the request should be validated without actually deleting any resources. */
|
|
1130
|
+
validateOnly?: boolean;
|
|
1131
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1132
|
+
/** Gets information about a Job. */
|
|
1133
|
+
get(request?: {
|
|
1134
|
+
/** V1 error format. */
|
|
1135
|
+
"$.xgafv"?: string;
|
|
1136
|
+
/** OAuth access token. */
|
|
1137
|
+
access_token?: string;
|
|
1138
|
+
/** Data format for response. */
|
|
1139
|
+
alt?: string;
|
|
1140
|
+
/** JSONP */
|
|
1141
|
+
callback?: string;
|
|
1142
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1143
|
+
fields?: string;
|
|
1144
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1145
|
+
key?: string;
|
|
1146
|
+
/** Required. The full name of the Job. Format: projects/{projectnumber}/locations/{location}/jobs/{job} */
|
|
1147
|
+
name: string;
|
|
1148
|
+
/** OAuth 2.0 token for the current user. */
|
|
1149
|
+
oauth_token?: string;
|
|
1150
|
+
/** Returns response with indentations and line breaks. */
|
|
1151
|
+
prettyPrint?: boolean;
|
|
1152
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1153
|
+
quotaUser?: string;
|
|
1154
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1155
|
+
upload_protocol?: string;
|
|
1156
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1157
|
+
uploadType?: string;
|
|
1158
|
+
}): Request<GoogleCloudRunV2Job>;
|
|
1159
|
+
/** Get the IAM Access Control policy currently in effect for the given Job. This result does not include any inherited policies. */
|
|
1160
|
+
getIamPolicy(request?: {
|
|
1161
|
+
/** V1 error format. */
|
|
1162
|
+
"$.xgafv"?: string;
|
|
1163
|
+
/** OAuth access token. */
|
|
1164
|
+
access_token?: string;
|
|
1165
|
+
/** Data format for response. */
|
|
1166
|
+
alt?: string;
|
|
1167
|
+
/** JSONP */
|
|
1168
|
+
callback?: string;
|
|
1169
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1170
|
+
fields?: string;
|
|
1171
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1172
|
+
key?: string;
|
|
1173
|
+
/** OAuth 2.0 token for the current user. */
|
|
1174
|
+
oauth_token?: string;
|
|
1175
|
+
/**
|
|
1176
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
|
|
1177
|
+
* policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
|
|
1178
|
+
* in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
|
|
1179
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
1180
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1181
|
+
*/
|
|
1182
|
+
"options.requestedPolicyVersion"?: number;
|
|
1183
|
+
/** Returns response with indentations and line breaks. */
|
|
1184
|
+
prettyPrint?: boolean;
|
|
1185
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1186
|
+
quotaUser?: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
|
|
1189
|
+
* field.
|
|
1190
|
+
*/
|
|
1191
|
+
resource: string;
|
|
1192
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1193
|
+
upload_protocol?: string;
|
|
1194
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1195
|
+
uploadType?: string;
|
|
1196
|
+
}): Request<GoogleIamV1Policy>;
|
|
1197
|
+
/** List Jobs. */
|
|
1198
|
+
list(request?: {
|
|
1199
|
+
/** V1 error format. */
|
|
1200
|
+
"$.xgafv"?: string;
|
|
1201
|
+
/** OAuth access token. */
|
|
1202
|
+
access_token?: string;
|
|
1203
|
+
/** Data format for response. */
|
|
1204
|
+
alt?: string;
|
|
1205
|
+
/** JSONP */
|
|
1206
|
+
callback?: string;
|
|
1207
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1208
|
+
fields?: string;
|
|
1209
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1210
|
+
key?: string;
|
|
1211
|
+
/** OAuth 2.0 token for the current user. */
|
|
1212
|
+
oauth_token?: string;
|
|
1213
|
+
/** Maximum number of Jobs to return in this call. */
|
|
1214
|
+
pageSize?: number;
|
|
1215
|
+
/** A page token received from a previous call to ListJobs. All other parameters must match. */
|
|
1216
|
+
pageToken?: string;
|
|
1217
|
+
/** Required. The location and project to list resources on. Format: projects/{projectnumber}/locations/{location} */
|
|
1218
|
+
parent: string;
|
|
1219
|
+
/** Returns response with indentations and line breaks. */
|
|
1220
|
+
prettyPrint?: boolean;
|
|
1221
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1222
|
+
quotaUser?: string;
|
|
1223
|
+
/** If true, returns deleted (but unexpired) resources along with active ones. */
|
|
1224
|
+
showDeleted?: boolean;
|
|
1225
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1226
|
+
upload_protocol?: string;
|
|
1227
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1228
|
+
uploadType?: string;
|
|
1229
|
+
}): Request<GoogleCloudRunV2ListJobsResponse>;
|
|
1230
|
+
/** Updates a Job. */
|
|
1231
|
+
patch(request: {
|
|
1232
|
+
/** V1 error format. */
|
|
1233
|
+
"$.xgafv"?: string;
|
|
1234
|
+
/** OAuth access token. */
|
|
1235
|
+
access_token?: string;
|
|
1236
|
+
/** If set to true, and if the Job does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true. */
|
|
1237
|
+
allowMissing?: boolean;
|
|
1238
|
+
/** Data format for response. */
|
|
1239
|
+
alt?: string;
|
|
1240
|
+
/** JSONP */
|
|
1241
|
+
callback?: string;
|
|
1242
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1243
|
+
fields?: string;
|
|
1244
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1245
|
+
key?: string;
|
|
1246
|
+
/** The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job} */
|
|
1247
|
+
name: string;
|
|
1248
|
+
/** OAuth 2.0 token for the current user. */
|
|
1249
|
+
oauth_token?: string;
|
|
1250
|
+
/** Returns response with indentations and line breaks. */
|
|
1251
|
+
prettyPrint?: boolean;
|
|
1252
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1253
|
+
quotaUser?: string;
|
|
1254
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1255
|
+
upload_protocol?: string;
|
|
1256
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1257
|
+
uploadType?: string;
|
|
1258
|
+
/** Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. */
|
|
1259
|
+
validateOnly?: boolean;
|
|
1260
|
+
/** Request body */
|
|
1261
|
+
resource: GoogleCloudRunV2Job;
|
|
1262
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1263
|
+
patch(request: {
|
|
1264
|
+
/** V1 error format. */
|
|
1265
|
+
"$.xgafv"?: string;
|
|
1266
|
+
/** OAuth access token. */
|
|
1267
|
+
access_token?: string;
|
|
1268
|
+
/** If set to true, and if the Job does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true. */
|
|
1269
|
+
allowMissing?: boolean;
|
|
1270
|
+
/** Data format for response. */
|
|
1271
|
+
alt?: string;
|
|
1272
|
+
/** JSONP */
|
|
1273
|
+
callback?: string;
|
|
1274
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1275
|
+
fields?: string;
|
|
1276
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1277
|
+
key?: string;
|
|
1278
|
+
/** The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job} */
|
|
1279
|
+
name: string;
|
|
1280
|
+
/** OAuth 2.0 token for the current user. */
|
|
1281
|
+
oauth_token?: string;
|
|
1282
|
+
/** Returns response with indentations and line breaks. */
|
|
1283
|
+
prettyPrint?: boolean;
|
|
1284
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1285
|
+
quotaUser?: string;
|
|
1286
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1287
|
+
upload_protocol?: string;
|
|
1288
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1289
|
+
uploadType?: string;
|
|
1290
|
+
/** Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. */
|
|
1291
|
+
validateOnly?: boolean;
|
|
1292
|
+
},
|
|
1293
|
+
body: GoogleCloudRunV2Job): Request<GoogleLongrunningOperation>;
|
|
1294
|
+
/** Triggers creation of a new Execution of this Job. */
|
|
1295
|
+
run(request: {
|
|
1296
|
+
/** V1 error format. */
|
|
1297
|
+
"$.xgafv"?: string;
|
|
1298
|
+
/** OAuth access token. */
|
|
1299
|
+
access_token?: string;
|
|
1300
|
+
/** Data format for response. */
|
|
1301
|
+
alt?: string;
|
|
1302
|
+
/** JSONP */
|
|
1303
|
+
callback?: string;
|
|
1304
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1305
|
+
fields?: string;
|
|
1306
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1307
|
+
key?: string;
|
|
1308
|
+
/** Required. The full name of the Job. Format: projects/{projectnumber}/locations/{location}/jobs/{job} */
|
|
1309
|
+
name: string;
|
|
1310
|
+
/** OAuth 2.0 token for the current user. */
|
|
1311
|
+
oauth_token?: string;
|
|
1312
|
+
/** Returns response with indentations and line breaks. */
|
|
1313
|
+
prettyPrint?: boolean;
|
|
1314
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1315
|
+
quotaUser?: string;
|
|
1316
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1317
|
+
upload_protocol?: string;
|
|
1318
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1319
|
+
uploadType?: string;
|
|
1320
|
+
/** Request body */
|
|
1321
|
+
resource: GoogleCloudRunV2RunJobRequest;
|
|
1322
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1323
|
+
run(request: {
|
|
1324
|
+
/** V1 error format. */
|
|
1325
|
+
"$.xgafv"?: string;
|
|
1326
|
+
/** OAuth access token. */
|
|
1327
|
+
access_token?: string;
|
|
1328
|
+
/** Data format for response. */
|
|
1329
|
+
alt?: string;
|
|
1330
|
+
/** JSONP */
|
|
1331
|
+
callback?: string;
|
|
1332
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1333
|
+
fields?: string;
|
|
1334
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1335
|
+
key?: string;
|
|
1336
|
+
/** Required. The full name of the Job. Format: projects/{projectnumber}/locations/{location}/jobs/{job} */
|
|
1337
|
+
name: string;
|
|
1338
|
+
/** OAuth 2.0 token for the current user. */
|
|
1339
|
+
oauth_token?: string;
|
|
1340
|
+
/** Returns response with indentations and line breaks. */
|
|
1341
|
+
prettyPrint?: boolean;
|
|
1342
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1343
|
+
quotaUser?: string;
|
|
1344
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1345
|
+
upload_protocol?: string;
|
|
1346
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1347
|
+
uploadType?: string;
|
|
1348
|
+
},
|
|
1349
|
+
body: GoogleCloudRunV2RunJobRequest): Request<GoogleLongrunningOperation>;
|
|
1350
|
+
/** Sets the IAM Access control policy for the specified Job. Overwrites any existing policy. */
|
|
1351
|
+
setIamPolicy(request: {
|
|
1352
|
+
/** V1 error format. */
|
|
1353
|
+
"$.xgafv"?: string;
|
|
1354
|
+
/** OAuth access token. */
|
|
1355
|
+
access_token?: string;
|
|
1356
|
+
/** Data format for response. */
|
|
1357
|
+
alt?: string;
|
|
1358
|
+
/** JSONP */
|
|
1359
|
+
callback?: string;
|
|
1360
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1361
|
+
fields?: string;
|
|
1362
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1363
|
+
key?: string;
|
|
1364
|
+
/** OAuth 2.0 token for the current user. */
|
|
1365
|
+
oauth_token?: string;
|
|
1366
|
+
/** Returns response with indentations and line breaks. */
|
|
1367
|
+
prettyPrint?: boolean;
|
|
1368
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1369
|
+
quotaUser?: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
|
|
1372
|
+
* field.
|
|
1373
|
+
*/
|
|
1374
|
+
resource: string;
|
|
1375
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1376
|
+
upload_protocol?: string;
|
|
1377
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1378
|
+
uploadType?: string;
|
|
1379
|
+
},
|
|
1380
|
+
body: GoogleIamV1SetIamPolicyRequest): Request<GoogleIamV1Policy>;
|
|
1381
|
+
/** Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. */
|
|
1382
|
+
testIamPermissions(request: {
|
|
1383
|
+
/** V1 error format. */
|
|
1384
|
+
"$.xgafv"?: string;
|
|
1385
|
+
/** OAuth access token. */
|
|
1386
|
+
access_token?: string;
|
|
1387
|
+
/** Data format for response. */
|
|
1388
|
+
alt?: string;
|
|
1389
|
+
/** JSONP */
|
|
1390
|
+
callback?: string;
|
|
1391
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1392
|
+
fields?: string;
|
|
1393
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1394
|
+
key?: string;
|
|
1395
|
+
/** OAuth 2.0 token for the current user. */
|
|
1396
|
+
oauth_token?: string;
|
|
1397
|
+
/** Returns response with indentations and line breaks. */
|
|
1398
|
+
prettyPrint?: boolean;
|
|
1399
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1400
|
+
quotaUser?: string;
|
|
1401
|
+
/**
|
|
1402
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
|
|
1403
|
+
* this field.
|
|
1404
|
+
*/
|
|
1405
|
+
resource: string;
|
|
1406
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1407
|
+
upload_protocol?: string;
|
|
1408
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1409
|
+
uploadType?: string;
|
|
1410
|
+
},
|
|
1411
|
+
body: GoogleIamV1TestIamPermissionsRequest): Request<GoogleIamV1TestIamPermissionsResponse>;
|
|
1412
|
+
executions: ExecutionsResource;
|
|
1413
|
+
}
|
|
1414
|
+
interface OperationsResource {
|
|
1415
|
+
/**
|
|
1416
|
+
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't
|
|
1417
|
+
* support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
1418
|
+
*/
|
|
1419
|
+
delete(request?: {
|
|
1420
|
+
/** V1 error format. */
|
|
1421
|
+
"$.xgafv"?: string;
|
|
1422
|
+
/** OAuth access token. */
|
|
1423
|
+
access_token?: string;
|
|
1424
|
+
/** Data format for response. */
|
|
1425
|
+
alt?: string;
|
|
1426
|
+
/** JSONP */
|
|
1427
|
+
callback?: string;
|
|
1428
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1429
|
+
fields?: string;
|
|
1430
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1431
|
+
key?: string;
|
|
1432
|
+
/** The name of the operation resource to be deleted. */
|
|
1433
|
+
name: string;
|
|
1434
|
+
/** OAuth 2.0 token for the current user. */
|
|
1435
|
+
oauth_token?: string;
|
|
1436
|
+
/** Returns response with indentations and line breaks. */
|
|
1437
|
+
prettyPrint?: boolean;
|
|
1438
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1439
|
+
quotaUser?: string;
|
|
1440
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1441
|
+
upload_protocol?: string;
|
|
1442
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1443
|
+
uploadType?: string;
|
|
1444
|
+
}): Request<{}>;
|
|
1445
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
1446
|
+
get(request?: {
|
|
1447
|
+
/** V1 error format. */
|
|
1448
|
+
"$.xgafv"?: string;
|
|
1449
|
+
/** OAuth access token. */
|
|
1450
|
+
access_token?: string;
|
|
1451
|
+
/** Data format for response. */
|
|
1452
|
+
alt?: string;
|
|
1453
|
+
/** JSONP */
|
|
1454
|
+
callback?: string;
|
|
1455
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1456
|
+
fields?: string;
|
|
1457
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1458
|
+
key?: string;
|
|
1459
|
+
/** The name of the operation resource. */
|
|
1460
|
+
name: string;
|
|
1461
|
+
/** OAuth 2.0 token for the current user. */
|
|
1462
|
+
oauth_token?: string;
|
|
1463
|
+
/** Returns response with indentations and line breaks. */
|
|
1464
|
+
prettyPrint?: boolean;
|
|
1465
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1466
|
+
quotaUser?: string;
|
|
1467
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1468
|
+
upload_protocol?: string;
|
|
1469
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1470
|
+
uploadType?: string;
|
|
1471
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1472
|
+
/**
|
|
1473
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
1474
|
+
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
1475
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
1476
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
1477
|
+
*/
|
|
1478
|
+
list(request?: {
|
|
1479
|
+
/** V1 error format. */
|
|
1480
|
+
"$.xgafv"?: string;
|
|
1481
|
+
/** OAuth access token. */
|
|
1482
|
+
access_token?: string;
|
|
1483
|
+
/** Data format for response. */
|
|
1484
|
+
alt?: string;
|
|
1485
|
+
/** JSONP */
|
|
1486
|
+
callback?: string;
|
|
1487
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1488
|
+
fields?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Optional. A filter for matching the completed or in-progress operations. The supported formats of *filter* are: To query for only completed operations: done:true To query for
|
|
1491
|
+
* only ongoing operations: done:false Must be empty to query for all of the latest operations for the given parent project.
|
|
1492
|
+
*/
|
|
1493
|
+
filter?: string;
|
|
1494
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1495
|
+
key?: string;
|
|
1496
|
+
/** Required. To query for all of the operations for a project. */
|
|
1497
|
+
name: string;
|
|
1498
|
+
/** OAuth 2.0 token for the current user. */
|
|
1499
|
+
oauth_token?: string;
|
|
1500
|
+
/** The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set or set to less than or equal to 0, the default page size is 100. . */
|
|
1501
|
+
pageSize?: number;
|
|
1502
|
+
/** Token identifying which result to start with, which is returned by a previous list call. */
|
|
1503
|
+
pageToken?: string;
|
|
1504
|
+
/** Returns response with indentations and line breaks. */
|
|
1505
|
+
prettyPrint?: boolean;
|
|
1506
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1507
|
+
quotaUser?: string;
|
|
1508
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1509
|
+
upload_protocol?: string;
|
|
1510
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1511
|
+
uploadType?: string;
|
|
1512
|
+
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
1513
|
+
}
|
|
1514
|
+
interface RevisionsResource {
|
|
1515
|
+
/** Delete a Revision. */
|
|
1516
|
+
delete(request?: {
|
|
1517
|
+
/** V1 error format. */
|
|
1518
|
+
"$.xgafv"?: string;
|
|
1519
|
+
/** OAuth access token. */
|
|
1520
|
+
access_token?: string;
|
|
1521
|
+
/** Data format for response. */
|
|
1522
|
+
alt?: string;
|
|
1523
|
+
/** JSONP */
|
|
1524
|
+
callback?: string;
|
|
1525
|
+
/** A system-generated fingerprint for this version of the resource. This may be used to detect modification conflict during updates. */
|
|
1526
|
+
etag?: string;
|
|
1527
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1528
|
+
fields?: string;
|
|
1529
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1530
|
+
key?: string;
|
|
1531
|
+
/** Required. The name of the Revision to delete. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision} */
|
|
1532
|
+
name: string;
|
|
1533
|
+
/** OAuth 2.0 token for the current user. */
|
|
1534
|
+
oauth_token?: string;
|
|
1535
|
+
/** Returns response with indentations and line breaks. */
|
|
1536
|
+
prettyPrint?: boolean;
|
|
1537
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1538
|
+
quotaUser?: string;
|
|
1539
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1540
|
+
upload_protocol?: string;
|
|
1541
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1542
|
+
uploadType?: string;
|
|
1543
|
+
/** Indicates that the request should be validated without actually deleting any resources. */
|
|
1544
|
+
validateOnly?: boolean;
|
|
1545
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1546
|
+
/** Gets information about a Revision. */
|
|
1547
|
+
get(request?: {
|
|
1548
|
+
/** V1 error format. */
|
|
1549
|
+
"$.xgafv"?: string;
|
|
1550
|
+
/** OAuth access token. */
|
|
1551
|
+
access_token?: string;
|
|
1552
|
+
/** Data format for response. */
|
|
1553
|
+
alt?: string;
|
|
1554
|
+
/** JSONP */
|
|
1555
|
+
callback?: string;
|
|
1556
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1557
|
+
fields?: string;
|
|
1558
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1559
|
+
key?: string;
|
|
1560
|
+
/** Required. The full name of the Revision. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision} */
|
|
1561
|
+
name: string;
|
|
1562
|
+
/** OAuth 2.0 token for the current user. */
|
|
1563
|
+
oauth_token?: string;
|
|
1564
|
+
/** Returns response with indentations and line breaks. */
|
|
1565
|
+
prettyPrint?: boolean;
|
|
1566
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1567
|
+
quotaUser?: string;
|
|
1568
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1569
|
+
upload_protocol?: string;
|
|
1570
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1571
|
+
uploadType?: string;
|
|
1572
|
+
}): Request<GoogleCloudRunV2Revision>;
|
|
1573
|
+
/** List Revisions from a given Service, or from a given location. */
|
|
1574
|
+
list(request?: {
|
|
1575
|
+
/** V1 error format. */
|
|
1576
|
+
"$.xgafv"?: string;
|
|
1577
|
+
/** OAuth access token. */
|
|
1578
|
+
access_token?: string;
|
|
1579
|
+
/** Data format for response. */
|
|
1580
|
+
alt?: string;
|
|
1581
|
+
/** JSONP */
|
|
1582
|
+
callback?: string;
|
|
1583
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1584
|
+
fields?: string;
|
|
1585
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1586
|
+
key?: string;
|
|
1587
|
+
/** OAuth 2.0 token for the current user. */
|
|
1588
|
+
oauth_token?: string;
|
|
1589
|
+
/** Maximum number of revisions to return in this call. */
|
|
1590
|
+
pageSize?: number;
|
|
1591
|
+
/** A page token received from a previous call to ListRevisions. All other parameters must match. */
|
|
1592
|
+
pageToken?: string;
|
|
1593
|
+
/**
|
|
1594
|
+
* Required. The Service from which the Revisions should be listed. To list all Revisions across Services, use "-" instead of Service name. Format:
|
|
1595
|
+
* projects/{project}/locations/{location}/services/{service}
|
|
1596
|
+
*/
|
|
1597
|
+
parent: string;
|
|
1598
|
+
/** Returns response with indentations and line breaks. */
|
|
1599
|
+
prettyPrint?: boolean;
|
|
1600
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1601
|
+
quotaUser?: string;
|
|
1602
|
+
/** If true, returns deleted (but unexpired) resources along with active ones. */
|
|
1603
|
+
showDeleted?: boolean;
|
|
1604
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1605
|
+
upload_protocol?: string;
|
|
1606
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1607
|
+
uploadType?: string;
|
|
1608
|
+
}): Request<GoogleCloudRunV2ListRevisionsResponse>;
|
|
1609
|
+
}
|
|
1610
|
+
interface ServicesResource {
|
|
1611
|
+
/** Creates a new Service in a given project and location. */
|
|
1612
|
+
create(request: {
|
|
1613
|
+
/** V1 error format. */
|
|
1614
|
+
"$.xgafv"?: string;
|
|
1615
|
+
/** OAuth access token. */
|
|
1616
|
+
access_token?: string;
|
|
1617
|
+
/** Data format for response. */
|
|
1618
|
+
alt?: string;
|
|
1619
|
+
/** JSONP */
|
|
1620
|
+
callback?: string;
|
|
1621
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1622
|
+
fields?: string;
|
|
1623
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1624
|
+
key?: string;
|
|
1625
|
+
/** OAuth 2.0 token for the current user. */
|
|
1626
|
+
oauth_token?: string;
|
|
1627
|
+
/**
|
|
1628
|
+
* Required. The location and project in which this service should be created. Format: projects/{projectnumber}/locations/{location} Only lowercase, digits, and hyphens; must begin
|
|
1629
|
+
* with letter, and may not end with hyphen; must contain fewer than 50 characters.
|
|
1630
|
+
*/
|
|
1631
|
+
parent: string;
|
|
1632
|
+
/** Returns response with indentations and line breaks. */
|
|
1633
|
+
prettyPrint?: boolean;
|
|
1634
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1635
|
+
quotaUser?: string;
|
|
1636
|
+
/** Required. The unique identifier for the Service. The name of the service becomes {parent}/services/{service_id}. */
|
|
1637
|
+
serviceId?: string;
|
|
1638
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1639
|
+
upload_protocol?: string;
|
|
1640
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1641
|
+
uploadType?: string;
|
|
1642
|
+
/** Indicates that the request should be validated and default values populated, without persisting the request or creating any resources. */
|
|
1643
|
+
validateOnly?: boolean;
|
|
1644
|
+
/** Request body */
|
|
1645
|
+
resource: GoogleCloudRunV2Service;
|
|
1646
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1647
|
+
create(request: {
|
|
1648
|
+
/** V1 error format. */
|
|
1649
|
+
"$.xgafv"?: string;
|
|
1650
|
+
/** OAuth access token. */
|
|
1651
|
+
access_token?: string;
|
|
1652
|
+
/** Data format for response. */
|
|
1653
|
+
alt?: string;
|
|
1654
|
+
/** JSONP */
|
|
1655
|
+
callback?: string;
|
|
1656
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1657
|
+
fields?: string;
|
|
1658
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1659
|
+
key?: string;
|
|
1660
|
+
/** OAuth 2.0 token for the current user. */
|
|
1661
|
+
oauth_token?: string;
|
|
1662
|
+
/**
|
|
1663
|
+
* Required. The location and project in which this service should be created. Format: projects/{projectnumber}/locations/{location} Only lowercase, digits, and hyphens; must begin
|
|
1664
|
+
* with letter, and may not end with hyphen; must contain fewer than 50 characters.
|
|
1665
|
+
*/
|
|
1666
|
+
parent: string;
|
|
1667
|
+
/** Returns response with indentations and line breaks. */
|
|
1668
|
+
prettyPrint?: boolean;
|
|
1669
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1670
|
+
quotaUser?: string;
|
|
1671
|
+
/** Required. The unique identifier for the Service. The name of the service becomes {parent}/services/{service_id}. */
|
|
1672
|
+
serviceId?: string;
|
|
1673
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1674
|
+
upload_protocol?: string;
|
|
1675
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1676
|
+
uploadType?: string;
|
|
1677
|
+
/** Indicates that the request should be validated and default values populated, without persisting the request or creating any resources. */
|
|
1678
|
+
validateOnly?: boolean;
|
|
1679
|
+
},
|
|
1680
|
+
body: GoogleCloudRunV2Service): Request<GoogleLongrunningOperation>;
|
|
1681
|
+
/** Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions. */
|
|
1682
|
+
delete(request?: {
|
|
1683
|
+
/** V1 error format. */
|
|
1684
|
+
"$.xgafv"?: string;
|
|
1685
|
+
/** OAuth access token. */
|
|
1686
|
+
access_token?: string;
|
|
1687
|
+
/** Data format for response. */
|
|
1688
|
+
alt?: string;
|
|
1689
|
+
/** JSONP */
|
|
1690
|
+
callback?: string;
|
|
1691
|
+
/** A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. */
|
|
1692
|
+
etag?: string;
|
|
1693
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1694
|
+
fields?: string;
|
|
1695
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1696
|
+
key?: string;
|
|
1697
|
+
/** Required. The full name of the Service. Format: projects/{projectnumber}/locations/{location}/services/{service} */
|
|
1698
|
+
name: string;
|
|
1699
|
+
/** OAuth 2.0 token for the current user. */
|
|
1700
|
+
oauth_token?: string;
|
|
1701
|
+
/** Returns response with indentations and line breaks. */
|
|
1702
|
+
prettyPrint?: boolean;
|
|
1703
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1704
|
+
quotaUser?: string;
|
|
1705
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1706
|
+
upload_protocol?: string;
|
|
1707
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1708
|
+
uploadType?: string;
|
|
1709
|
+
/** Indicates that the request should be validated without actually deleting any resources. */
|
|
1710
|
+
validateOnly?: boolean;
|
|
1711
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1712
|
+
/** Gets information about a Service. */
|
|
1713
|
+
get(request?: {
|
|
1714
|
+
/** V1 error format. */
|
|
1715
|
+
"$.xgafv"?: string;
|
|
1716
|
+
/** OAuth access token. */
|
|
1717
|
+
access_token?: string;
|
|
1718
|
+
/** Data format for response. */
|
|
1719
|
+
alt?: string;
|
|
1720
|
+
/** JSONP */
|
|
1721
|
+
callback?: string;
|
|
1722
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1723
|
+
fields?: string;
|
|
1724
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1725
|
+
key?: string;
|
|
1726
|
+
/** Required. The full name of the Service. Format: projects/{projectnumber}/locations/{location}/services/{service} */
|
|
1727
|
+
name: string;
|
|
1728
|
+
/** OAuth 2.0 token for the current user. */
|
|
1729
|
+
oauth_token?: string;
|
|
1730
|
+
/** Returns response with indentations and line breaks. */
|
|
1731
|
+
prettyPrint?: boolean;
|
|
1732
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1733
|
+
quotaUser?: string;
|
|
1734
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1735
|
+
upload_protocol?: string;
|
|
1736
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1737
|
+
uploadType?: string;
|
|
1738
|
+
}): Request<GoogleCloudRunV2Service>;
|
|
1739
|
+
/** Get the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies. */
|
|
1740
|
+
getIamPolicy(request?: {
|
|
1741
|
+
/** V1 error format. */
|
|
1742
|
+
"$.xgafv"?: string;
|
|
1743
|
+
/** OAuth access token. */
|
|
1744
|
+
access_token?: string;
|
|
1745
|
+
/** Data format for response. */
|
|
1746
|
+
alt?: string;
|
|
1747
|
+
/** JSONP */
|
|
1748
|
+
callback?: string;
|
|
1749
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1750
|
+
fields?: string;
|
|
1751
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1752
|
+
key?: string;
|
|
1753
|
+
/** OAuth 2.0 token for the current user. */
|
|
1754
|
+
oauth_token?: string;
|
|
1755
|
+
/**
|
|
1756
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
|
|
1757
|
+
* policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
|
|
1758
|
+
* in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
|
|
1759
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
1760
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1761
|
+
*/
|
|
1762
|
+
"options.requestedPolicyVersion"?: number;
|
|
1763
|
+
/** Returns response with indentations and line breaks. */
|
|
1764
|
+
prettyPrint?: boolean;
|
|
1765
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1766
|
+
quotaUser?: string;
|
|
1767
|
+
/**
|
|
1768
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
|
|
1769
|
+
* field.
|
|
1770
|
+
*/
|
|
1771
|
+
resource: string;
|
|
1772
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1773
|
+
upload_protocol?: string;
|
|
1774
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1775
|
+
uploadType?: string;
|
|
1776
|
+
}): Request<GoogleIamV1Policy>;
|
|
1777
|
+
/** List Services. */
|
|
1778
|
+
list(request?: {
|
|
1779
|
+
/** V1 error format. */
|
|
1780
|
+
"$.xgafv"?: string;
|
|
1781
|
+
/** OAuth access token. */
|
|
1782
|
+
access_token?: string;
|
|
1783
|
+
/** Data format for response. */
|
|
1784
|
+
alt?: string;
|
|
1785
|
+
/** JSONP */
|
|
1786
|
+
callback?: string;
|
|
1787
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1788
|
+
fields?: string;
|
|
1789
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1790
|
+
key?: string;
|
|
1791
|
+
/** OAuth 2.0 token for the current user. */
|
|
1792
|
+
oauth_token?: string;
|
|
1793
|
+
/** Maximum number of Services to return in this call. */
|
|
1794
|
+
pageSize?: number;
|
|
1795
|
+
/** A page token received from a previous call to ListServices. All other parameters must match. */
|
|
1796
|
+
pageToken?: string;
|
|
1797
|
+
/**
|
|
1798
|
+
* Required. The location and project to list resources on. Location must be a valid GCP region, and may not be the "-" wildcard. Format:
|
|
1799
|
+
* projects/{projectnumber}/locations/{location}
|
|
1800
|
+
*/
|
|
1801
|
+
parent: string;
|
|
1802
|
+
/** Returns response with indentations and line breaks. */
|
|
1803
|
+
prettyPrint?: boolean;
|
|
1804
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1805
|
+
quotaUser?: string;
|
|
1806
|
+
/** If true, returns deleted (but unexpired) resources along with active ones. */
|
|
1807
|
+
showDeleted?: boolean;
|
|
1808
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1809
|
+
upload_protocol?: string;
|
|
1810
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1811
|
+
uploadType?: string;
|
|
1812
|
+
}): Request<GoogleCloudRunV2ListServicesResponse>;
|
|
1813
|
+
/** Updates a Service. */
|
|
1814
|
+
patch(request: {
|
|
1815
|
+
/** V1 error format. */
|
|
1816
|
+
"$.xgafv"?: string;
|
|
1817
|
+
/** OAuth access token. */
|
|
1818
|
+
access_token?: string;
|
|
1819
|
+
/** If set to true, and if the Service does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true. */
|
|
1820
|
+
allowMissing?: boolean;
|
|
1821
|
+
/** Data format for response. */
|
|
1822
|
+
alt?: string;
|
|
1823
|
+
/** JSONP */
|
|
1824
|
+
callback?: string;
|
|
1825
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1826
|
+
fields?: string;
|
|
1827
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1828
|
+
key?: string;
|
|
1829
|
+
/**
|
|
1830
|
+
* The fully qualified name of this Service. In CreateServiceRequest, this field is ignored, and instead composed from CreateServiceRequest.parent and
|
|
1831
|
+
* CreateServiceRequest.service_id. Format: projects/{project}/locations/{location}/services/{service_id}
|
|
1832
|
+
*/
|
|
1833
|
+
name: string;
|
|
1834
|
+
/** OAuth 2.0 token for the current user. */
|
|
1835
|
+
oauth_token?: string;
|
|
1836
|
+
/** Returns response with indentations and line breaks. */
|
|
1837
|
+
prettyPrint?: boolean;
|
|
1838
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1839
|
+
quotaUser?: string;
|
|
1840
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1841
|
+
upload_protocol?: string;
|
|
1842
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1843
|
+
uploadType?: string;
|
|
1844
|
+
/** Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. */
|
|
1845
|
+
validateOnly?: boolean;
|
|
1846
|
+
/** Request body */
|
|
1847
|
+
resource: GoogleCloudRunV2Service;
|
|
1848
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1849
|
+
patch(request: {
|
|
1850
|
+
/** V1 error format. */
|
|
1851
|
+
"$.xgafv"?: string;
|
|
1852
|
+
/** OAuth access token. */
|
|
1853
|
+
access_token?: string;
|
|
1854
|
+
/** If set to true, and if the Service does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true. */
|
|
1855
|
+
allowMissing?: boolean;
|
|
1856
|
+
/** Data format for response. */
|
|
1857
|
+
alt?: string;
|
|
1858
|
+
/** JSONP */
|
|
1859
|
+
callback?: string;
|
|
1860
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1861
|
+
fields?: string;
|
|
1862
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1863
|
+
key?: string;
|
|
1864
|
+
/**
|
|
1865
|
+
* The fully qualified name of this Service. In CreateServiceRequest, this field is ignored, and instead composed from CreateServiceRequest.parent and
|
|
1866
|
+
* CreateServiceRequest.service_id. Format: projects/{project}/locations/{location}/services/{service_id}
|
|
1867
|
+
*/
|
|
1868
|
+
name: string;
|
|
1869
|
+
/** OAuth 2.0 token for the current user. */
|
|
1870
|
+
oauth_token?: string;
|
|
1871
|
+
/** Returns response with indentations and line breaks. */
|
|
1872
|
+
prettyPrint?: boolean;
|
|
1873
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1874
|
+
quotaUser?: string;
|
|
1875
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1876
|
+
upload_protocol?: string;
|
|
1877
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1878
|
+
uploadType?: string;
|
|
1879
|
+
/** Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. */
|
|
1880
|
+
validateOnly?: boolean;
|
|
1881
|
+
},
|
|
1882
|
+
body: GoogleCloudRunV2Service): Request<GoogleLongrunningOperation>;
|
|
1883
|
+
/** Sets the IAM Access control policy for the specified Service. Overwrites any existing policy. */
|
|
1884
|
+
setIamPolicy(request: {
|
|
1885
|
+
/** V1 error format. */
|
|
1886
|
+
"$.xgafv"?: string;
|
|
1887
|
+
/** OAuth access token. */
|
|
1888
|
+
access_token?: string;
|
|
1889
|
+
/** Data format for response. */
|
|
1890
|
+
alt?: string;
|
|
1891
|
+
/** JSONP */
|
|
1892
|
+
callback?: string;
|
|
1893
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1894
|
+
fields?: string;
|
|
1895
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1896
|
+
key?: string;
|
|
1897
|
+
/** OAuth 2.0 token for the current user. */
|
|
1898
|
+
oauth_token?: string;
|
|
1899
|
+
/** Returns response with indentations and line breaks. */
|
|
1900
|
+
prettyPrint?: boolean;
|
|
1901
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1902
|
+
quotaUser?: string;
|
|
1903
|
+
/**
|
|
1904
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
|
|
1905
|
+
* field.
|
|
1906
|
+
*/
|
|
1907
|
+
resource: string;
|
|
1908
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1909
|
+
upload_protocol?: string;
|
|
1910
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1911
|
+
uploadType?: string;
|
|
1912
|
+
},
|
|
1913
|
+
body: GoogleIamV1SetIamPolicyRequest): Request<GoogleIamV1Policy>;
|
|
1914
|
+
/** Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. */
|
|
1915
|
+
testIamPermissions(request: {
|
|
1916
|
+
/** V1 error format. */
|
|
1917
|
+
"$.xgafv"?: string;
|
|
1918
|
+
/** OAuth access token. */
|
|
1919
|
+
access_token?: string;
|
|
1920
|
+
/** Data format for response. */
|
|
1921
|
+
alt?: string;
|
|
1922
|
+
/** JSONP */
|
|
1923
|
+
callback?: string;
|
|
1924
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1925
|
+
fields?: string;
|
|
1926
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1927
|
+
key?: string;
|
|
1928
|
+
/** OAuth 2.0 token for the current user. */
|
|
1929
|
+
oauth_token?: string;
|
|
1930
|
+
/** Returns response with indentations and line breaks. */
|
|
1931
|
+
prettyPrint?: boolean;
|
|
1932
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1933
|
+
quotaUser?: string;
|
|
1934
|
+
/**
|
|
1935
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
|
|
1936
|
+
* this field.
|
|
1937
|
+
*/
|
|
1938
|
+
resource: string;
|
|
1939
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1940
|
+
upload_protocol?: string;
|
|
1941
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1942
|
+
uploadType?: string;
|
|
1943
|
+
},
|
|
1944
|
+
body: GoogleIamV1TestIamPermissionsRequest): Request<GoogleIamV1TestIamPermissionsResponse>;
|
|
1945
|
+
revisions: RevisionsResource;
|
|
1946
|
+
}
|
|
1947
|
+
interface LocationsResource {
|
|
1948
|
+
jobs: JobsResource;
|
|
1949
|
+
operations: OperationsResource;
|
|
1950
|
+
services: ServicesResource;
|
|
1951
|
+
}
|
|
1952
|
+
interface ProjectsResource {
|
|
1953
|
+
locations: LocationsResource;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
const projects: ProjectsResource;
|
|
1957
|
+
}
|
|
1958
|
+
}
|