@maxim_mazurok/gapi.client.cloudfunctions-v2beta 0.0.20220805
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 +1205 -0
- package/package.json +20 -0
- package/readme.md +68 -0
- package/tests.ts +384 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1205 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Cloud Functions API v2beta 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/functions
|
|
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://cloudfunctions.googleapis.com/$discovery/rest?version=v2beta
|
|
13
|
+
// Revision: 20220805
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Cloud Functions API v2beta */
|
|
19
|
+
function load(urlOrObject: "https://cloudfunctions.googleapis.com/$discovery/rest?version=v2beta"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "cloudfunctions", version: "v2beta"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "cloudfunctions", version: "v2beta", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace cloudfunctions {
|
|
26
|
+
interface AuditConfig {
|
|
27
|
+
/** The configuration for logging of each type of permission. */
|
|
28
|
+
auditLogConfigs?: AuditLogConfig[];
|
|
29
|
+
/**
|
|
30
|
+
* 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
|
|
31
|
+
* services.
|
|
32
|
+
*/
|
|
33
|
+
service?: string;
|
|
34
|
+
}
|
|
35
|
+
interface AuditLogConfig {
|
|
36
|
+
/** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
|
|
37
|
+
exemptedMembers?: string[];
|
|
38
|
+
/** The log type that this config enables. */
|
|
39
|
+
logType?: string;
|
|
40
|
+
}
|
|
41
|
+
interface Binding {
|
|
42
|
+
/**
|
|
43
|
+
* 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`,
|
|
44
|
+
* 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
|
|
45
|
+
* resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
46
|
+
*/
|
|
47
|
+
condition?: Expr;
|
|
48
|
+
/**
|
|
49
|
+
* 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
|
|
50
|
+
* 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
|
|
51
|
+
* account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
|
|
52
|
+
* represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier
|
|
53
|
+
* for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example,
|
|
54
|
+
* `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`. *
|
|
55
|
+
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
|
|
56
|
+
* `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. *
|
|
57
|
+
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
|
|
58
|
+
* `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
|
|
59
|
+
* 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
|
|
60
|
+
* 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
|
|
61
|
+
* the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
|
|
62
|
+
*/
|
|
63
|
+
members?: string[];
|
|
64
|
+
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
65
|
+
role?: string;
|
|
66
|
+
}
|
|
67
|
+
interface BuildConfig {
|
|
68
|
+
/** Output only. The Cloud Build name of the latest successful deployment of the function. */
|
|
69
|
+
build?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Optional. User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be
|
|
72
|
+
* pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern
|
|
73
|
+
* `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format
|
|
74
|
+
* must be 'DOCKER'.
|
|
75
|
+
*/
|
|
76
|
+
dockerRepository?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with
|
|
79
|
+
* given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in `source_location`.
|
|
80
|
+
*/
|
|
81
|
+
entryPoint?: string;
|
|
82
|
+
/** User-provided build-time environment variables for the function */
|
|
83
|
+
environmentVariables?: { [P in string]: string };
|
|
84
|
+
/**
|
|
85
|
+
* The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the
|
|
86
|
+
* [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
|
|
87
|
+
*/
|
|
88
|
+
runtime?: string;
|
|
89
|
+
/** The location of the function source code. */
|
|
90
|
+
source?: Source;
|
|
91
|
+
/** Output only. A permanent fixed identifier for source. */
|
|
92
|
+
sourceProvenance?: SourceProvenance;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}`
|
|
95
|
+
* where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is
|
|
96
|
+
* not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder
|
|
97
|
+
* (roles/cloudbuild.customworkers.builder) in the project.
|
|
98
|
+
*/
|
|
99
|
+
workerPool?: string;
|
|
100
|
+
}
|
|
101
|
+
interface EventFilter {
|
|
102
|
+
/** Required. The name of a CloudEvents attribute. */
|
|
103
|
+
attribute?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are
|
|
106
|
+
* matched. The only allowed value is `match-path-pattern`.
|
|
107
|
+
*/
|
|
108
|
+
operator?: string;
|
|
109
|
+
/** Required. The value for the attribute. */
|
|
110
|
+
value?: string;
|
|
111
|
+
}
|
|
112
|
+
interface EventTrigger {
|
|
113
|
+
/**
|
|
114
|
+
* Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events
|
|
115
|
+
* from Eventarc SaaS partners.
|
|
116
|
+
*/
|
|
117
|
+
channel?: string;
|
|
118
|
+
/** Criteria used to filter events. */
|
|
119
|
+
eventFilters?: EventFilter[];
|
|
120
|
+
/** Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`. */
|
|
121
|
+
eventType?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only
|
|
124
|
+
* valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.
|
|
125
|
+
*/
|
|
126
|
+
pubsubTopic?: string;
|
|
127
|
+
/** Optional. If unset, then defaults to ignoring failures (i.e. not retrying them). */
|
|
128
|
+
retryPolicy?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty,
|
|
131
|
+
* defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.
|
|
132
|
+
*/
|
|
133
|
+
serviceAccountEmail?: string;
|
|
134
|
+
/** Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`. */
|
|
135
|
+
trigger?: string;
|
|
136
|
+
/**
|
|
137
|
+
* The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or
|
|
138
|
+
* multi-region, or the global region. If not provided, defaults to the same region as the function.
|
|
139
|
+
*/
|
|
140
|
+
triggerRegion?: string;
|
|
141
|
+
}
|
|
142
|
+
interface Expr {
|
|
143
|
+
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
144
|
+
description?: string;
|
|
145
|
+
/** Textual representation of an expression in Common Expression Language syntax. */
|
|
146
|
+
expression?: string;
|
|
147
|
+
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
|
148
|
+
location?: string;
|
|
149
|
+
/** 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. */
|
|
150
|
+
title?: string;
|
|
151
|
+
}
|
|
152
|
+
interface Function {
|
|
153
|
+
/** Describes the Build step of the function that builds a container from the given source. */
|
|
154
|
+
buildConfig?: BuildConfig;
|
|
155
|
+
/** User-provided description of a function. */
|
|
156
|
+
description?: string;
|
|
157
|
+
/** Describe whether the function is gen1 or gen2. */
|
|
158
|
+
environment?: string;
|
|
159
|
+
/** An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. */
|
|
160
|
+
eventTrigger?: EventTrigger;
|
|
161
|
+
/** Labels associated with this Cloud Function. */
|
|
162
|
+
labels?: { [P in string]: string };
|
|
163
|
+
/** A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*` */
|
|
164
|
+
name?: string;
|
|
165
|
+
/** Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed). */
|
|
166
|
+
serviceConfig?: ServiceConfig;
|
|
167
|
+
/** Output only. State of the function. */
|
|
168
|
+
state?: string;
|
|
169
|
+
/** Output only. State Messages for this Cloud Function. */
|
|
170
|
+
stateMessages?: GoogleCloudFunctionsV2betaStateMessage[];
|
|
171
|
+
/** Output only. The last update timestamp of a Cloud Function. */
|
|
172
|
+
updateTime?: string;
|
|
173
|
+
}
|
|
174
|
+
// tslint:disable-next-line:no-empty-interface
|
|
175
|
+
interface GenerateDownloadUrlRequest {
|
|
176
|
+
}
|
|
177
|
+
interface GenerateDownloadUrlResponse {
|
|
178
|
+
/** The generated Google Cloud Storage signed URL that should be used for function source code download. */
|
|
179
|
+
downloadUrl?: string;
|
|
180
|
+
}
|
|
181
|
+
// tslint:disable-next-line:no-empty-interface
|
|
182
|
+
interface GenerateUploadUrlRequest {
|
|
183
|
+
}
|
|
184
|
+
interface GenerateUploadUrlResponse {
|
|
185
|
+
/**
|
|
186
|
+
* The location of the source code in the upload bucket. Once the archive is uploaded using the `upload_url` use this field to set the `function.build_config.source.storage_source`
|
|
187
|
+
* during CreateFunction and UpdateFunction. Generation defaults to 0, as Cloud Storage provides a new generation only upon uploading a new object or version of an object.
|
|
188
|
+
*/
|
|
189
|
+
storageSource?: StorageSource;
|
|
190
|
+
/** The generated Google Cloud Storage signed URL that should be used for a function source code upload. The uploaded file should be a zip archive which contains a function. */
|
|
191
|
+
uploadUrl?: string;
|
|
192
|
+
}
|
|
193
|
+
interface GoogleCloudFunctionsV2alphaOperationMetadata {
|
|
194
|
+
/** API version used to start the operation. */
|
|
195
|
+
apiVersion?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of
|
|
198
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
199
|
+
*/
|
|
200
|
+
cancelRequested?: boolean;
|
|
201
|
+
/** The time the operation was created. */
|
|
202
|
+
createTime?: string;
|
|
203
|
+
/** The time the operation finished running. */
|
|
204
|
+
endTime?: string;
|
|
205
|
+
/** The original request that started the operation. */
|
|
206
|
+
requestResource?: { [P in string]: any };
|
|
207
|
+
/** Mechanism for reporting in-progress stages */
|
|
208
|
+
stages?: GoogleCloudFunctionsV2alphaStage[];
|
|
209
|
+
/** Human-readable status of the operation, if any. */
|
|
210
|
+
statusDetail?: string;
|
|
211
|
+
/** Server-defined resource path for the target of the operation. */
|
|
212
|
+
target?: string;
|
|
213
|
+
/** Name of the verb executed by the operation. */
|
|
214
|
+
verb?: string;
|
|
215
|
+
}
|
|
216
|
+
interface GoogleCloudFunctionsV2alphaStage {
|
|
217
|
+
/** Message describing the Stage */
|
|
218
|
+
message?: string;
|
|
219
|
+
/** Name of the Stage. This will be unique for each Stage. */
|
|
220
|
+
name?: string;
|
|
221
|
+
/** Resource of the Stage */
|
|
222
|
+
resource?: string;
|
|
223
|
+
/** Link to the current Stage resource */
|
|
224
|
+
resourceUri?: string;
|
|
225
|
+
/** Current state of the Stage */
|
|
226
|
+
state?: string;
|
|
227
|
+
/** State messages from the current Stage. */
|
|
228
|
+
stateMessages?: GoogleCloudFunctionsV2alphaStateMessage[];
|
|
229
|
+
}
|
|
230
|
+
interface GoogleCloudFunctionsV2alphaStateMessage {
|
|
231
|
+
/** The message. */
|
|
232
|
+
message?: string;
|
|
233
|
+
/** Severity of the state message. */
|
|
234
|
+
severity?: string;
|
|
235
|
+
/** One-word CamelCase type of the state message. */
|
|
236
|
+
type?: string;
|
|
237
|
+
}
|
|
238
|
+
interface GoogleCloudFunctionsV2betaOperationMetadata {
|
|
239
|
+
/** API version used to start the operation. */
|
|
240
|
+
apiVersion?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of
|
|
243
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
244
|
+
*/
|
|
245
|
+
cancelRequested?: boolean;
|
|
246
|
+
/** The time the operation was created. */
|
|
247
|
+
createTime?: string;
|
|
248
|
+
/** The time the operation finished running. */
|
|
249
|
+
endTime?: string;
|
|
250
|
+
/** The original request that started the operation. */
|
|
251
|
+
requestResource?: { [P in string]: any };
|
|
252
|
+
/** Mechanism for reporting in-progress stages */
|
|
253
|
+
stages?: GoogleCloudFunctionsV2betaStage[];
|
|
254
|
+
/** Human-readable status of the operation, if any. */
|
|
255
|
+
statusDetail?: string;
|
|
256
|
+
/** Server-defined resource path for the target of the operation. */
|
|
257
|
+
target?: string;
|
|
258
|
+
/** Name of the verb executed by the operation. */
|
|
259
|
+
verb?: string;
|
|
260
|
+
}
|
|
261
|
+
interface GoogleCloudFunctionsV2betaStage {
|
|
262
|
+
/** Message describing the Stage */
|
|
263
|
+
message?: string;
|
|
264
|
+
/** Name of the Stage. This will be unique for each Stage. */
|
|
265
|
+
name?: string;
|
|
266
|
+
/** Resource of the Stage */
|
|
267
|
+
resource?: string;
|
|
268
|
+
/** Link to the current Stage resource */
|
|
269
|
+
resourceUri?: string;
|
|
270
|
+
/** Current state of the Stage */
|
|
271
|
+
state?: string;
|
|
272
|
+
/** State messages from the current Stage. */
|
|
273
|
+
stateMessages?: GoogleCloudFunctionsV2betaStateMessage[];
|
|
274
|
+
}
|
|
275
|
+
interface GoogleCloudFunctionsV2betaStateMessage {
|
|
276
|
+
/** The message. */
|
|
277
|
+
message?: string;
|
|
278
|
+
/** Severity of the state message. */
|
|
279
|
+
severity?: string;
|
|
280
|
+
/** One-word CamelCase type of the state message. */
|
|
281
|
+
type?: string;
|
|
282
|
+
}
|
|
283
|
+
interface GoogleCloudFunctionsV2OperationMetadata {
|
|
284
|
+
/** API version used to start the operation. */
|
|
285
|
+
apiVersion?: string;
|
|
286
|
+
/**
|
|
287
|
+
* Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of
|
|
288
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
289
|
+
*/
|
|
290
|
+
cancelRequested?: boolean;
|
|
291
|
+
/** The time the operation was created. */
|
|
292
|
+
createTime?: string;
|
|
293
|
+
/** The time the operation finished running. */
|
|
294
|
+
endTime?: string;
|
|
295
|
+
/** The original request that started the operation. */
|
|
296
|
+
requestResource?: { [P in string]: any };
|
|
297
|
+
/** Mechanism for reporting in-progress stages */
|
|
298
|
+
stages?: GoogleCloudFunctionsV2Stage[];
|
|
299
|
+
/** Human-readable status of the operation, if any. */
|
|
300
|
+
statusDetail?: string;
|
|
301
|
+
/** Server-defined resource path for the target of the operation. */
|
|
302
|
+
target?: string;
|
|
303
|
+
/** Name of the verb executed by the operation. */
|
|
304
|
+
verb?: string;
|
|
305
|
+
}
|
|
306
|
+
interface GoogleCloudFunctionsV2Stage {
|
|
307
|
+
/** Message describing the Stage */
|
|
308
|
+
message?: string;
|
|
309
|
+
/** Name of the Stage. This will be unique for each Stage. */
|
|
310
|
+
name?: string;
|
|
311
|
+
/** Resource of the Stage */
|
|
312
|
+
resource?: string;
|
|
313
|
+
/** Link to the current Stage resource */
|
|
314
|
+
resourceUri?: string;
|
|
315
|
+
/** Current state of the Stage */
|
|
316
|
+
state?: string;
|
|
317
|
+
/** State messages from the current Stage. */
|
|
318
|
+
stateMessages?: GoogleCloudFunctionsV2StateMessage[];
|
|
319
|
+
}
|
|
320
|
+
interface GoogleCloudFunctionsV2StateMessage {
|
|
321
|
+
/** The message. */
|
|
322
|
+
message?: string;
|
|
323
|
+
/** Severity of the state message. */
|
|
324
|
+
severity?: string;
|
|
325
|
+
/** One-word CamelCase type of the state message. */
|
|
326
|
+
type?: string;
|
|
327
|
+
}
|
|
328
|
+
interface ListFunctionsResponse {
|
|
329
|
+
/** The functions that match the request. */
|
|
330
|
+
// tslint:disable-next-line:ban-types
|
|
331
|
+
functions?: Function[];
|
|
332
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
333
|
+
nextPageToken?: string;
|
|
334
|
+
/** Locations that could not be reached. The response does not include any functions from these locations. */
|
|
335
|
+
unreachable?: string[];
|
|
336
|
+
}
|
|
337
|
+
interface ListLocationsResponse {
|
|
338
|
+
/** A list of locations that matches the specified filter in the request. */
|
|
339
|
+
locations?: Location[];
|
|
340
|
+
/** The standard List next-page token. */
|
|
341
|
+
nextPageToken?: string;
|
|
342
|
+
}
|
|
343
|
+
interface ListOperationsResponse {
|
|
344
|
+
/** The standard List next-page token. */
|
|
345
|
+
nextPageToken?: string;
|
|
346
|
+
/** A list of operations that matches the specified filter in the request. */
|
|
347
|
+
operations?: Operation[];
|
|
348
|
+
}
|
|
349
|
+
interface ListRuntimesResponse {
|
|
350
|
+
/** The runtimes that match the request. */
|
|
351
|
+
runtimes?: Runtime[];
|
|
352
|
+
}
|
|
353
|
+
interface Location {
|
|
354
|
+
/** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
|
|
355
|
+
displayName?: string;
|
|
356
|
+
/** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
|
|
357
|
+
labels?: { [P in string]: string };
|
|
358
|
+
/** The canonical id for this location. For example: `"us-east1"`. */
|
|
359
|
+
locationId?: string;
|
|
360
|
+
/** Service-specific metadata. For example the available capacity at the given location. */
|
|
361
|
+
metadata?: { [P in string]: any };
|
|
362
|
+
/** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
|
|
363
|
+
name?: string;
|
|
364
|
+
}
|
|
365
|
+
interface Operation {
|
|
366
|
+
/** 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. */
|
|
367
|
+
done?: boolean;
|
|
368
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
369
|
+
error?: Status;
|
|
370
|
+
/**
|
|
371
|
+
* 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
|
|
372
|
+
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
373
|
+
*/
|
|
374
|
+
metadata?: { [P in string]: any };
|
|
375
|
+
/**
|
|
376
|
+
* 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
|
|
377
|
+
* with `operations/{unique_id}`.
|
|
378
|
+
*/
|
|
379
|
+
name?: string;
|
|
380
|
+
/**
|
|
381
|
+
* 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
|
|
382
|
+
* 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
|
|
383
|
+
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
384
|
+
*/
|
|
385
|
+
response?: { [P in string]: any };
|
|
386
|
+
}
|
|
387
|
+
interface OperationMetadataV1 {
|
|
388
|
+
/** The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations. */
|
|
389
|
+
buildId?: string;
|
|
390
|
+
/** The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. `projects//locations//builds/`. */
|
|
391
|
+
buildName?: string;
|
|
392
|
+
/** The original request that started the operation. */
|
|
393
|
+
request?: { [P in string]: any };
|
|
394
|
+
/** An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments. */
|
|
395
|
+
sourceToken?: string;
|
|
396
|
+
/** Target of the operation - for example `projects/project-1/locations/region-1/functions/function-1` */
|
|
397
|
+
target?: string;
|
|
398
|
+
/** Type of operation. */
|
|
399
|
+
type?: string;
|
|
400
|
+
/** The last update timestamp of the operation. */
|
|
401
|
+
updateTime?: string;
|
|
402
|
+
/** Version id of the function created or updated by an API call. This field is only populated for Create and Update operations. */
|
|
403
|
+
versionId?: string;
|
|
404
|
+
}
|
|
405
|
+
interface Policy {
|
|
406
|
+
/** Specifies cloud audit logging configuration for this policy. */
|
|
407
|
+
auditConfigs?: AuditConfig[];
|
|
408
|
+
/**
|
|
409
|
+
* 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`
|
|
410
|
+
* 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
|
|
411
|
+
* 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
|
|
412
|
+
* 1,450 principals to the `bindings` in the `Policy`.
|
|
413
|
+
*/
|
|
414
|
+
bindings?: Binding[];
|
|
415
|
+
/**
|
|
416
|
+
* `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
|
|
417
|
+
* 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
|
|
418
|
+
* 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
|
|
419
|
+
* 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`
|
|
420
|
+
* policy, and all of the conditions in the version `3` policy are lost.
|
|
421
|
+
*/
|
|
422
|
+
etag?: string;
|
|
423
|
+
/**
|
|
424
|
+
* 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
|
|
425
|
+
* 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
|
|
426
|
+
* 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
|
|
427
|
+
* 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`
|
|
428
|
+
* 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
|
|
429
|
+
* 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).
|
|
430
|
+
*/
|
|
431
|
+
version?: number;
|
|
432
|
+
}
|
|
433
|
+
interface RepoSource {
|
|
434
|
+
/** Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */
|
|
435
|
+
branchName?: string;
|
|
436
|
+
/** Explicit commit SHA to build. */
|
|
437
|
+
commitSha?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for
|
|
440
|
+
* that step's execution. eg. helloworld (no leading slash allowed)
|
|
441
|
+
*/
|
|
442
|
+
dir?: string;
|
|
443
|
+
/** Only trigger a build if the revision regex does NOT match the revision regex. */
|
|
444
|
+
invertRegex?: boolean;
|
|
445
|
+
/** ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. */
|
|
446
|
+
projectId?: string;
|
|
447
|
+
/** Name of the Cloud Source Repository. */
|
|
448
|
+
repoName?: string;
|
|
449
|
+
/** Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */
|
|
450
|
+
tagName?: string;
|
|
451
|
+
}
|
|
452
|
+
interface Runtime {
|
|
453
|
+
/** The user facing name, eg 'Go 1.13', 'Node.js 12', etc. */
|
|
454
|
+
displayName?: string;
|
|
455
|
+
/** The environment for the runtime. */
|
|
456
|
+
environment?: string;
|
|
457
|
+
/** The name of the runtime, e.g., 'go113', 'nodejs12', etc. */
|
|
458
|
+
name?: string;
|
|
459
|
+
/** The stage of life this runtime is in, e.g., BETA, GA, etc. */
|
|
460
|
+
stage?: string;
|
|
461
|
+
/** Warning messages, e.g., a deprecation warning. */
|
|
462
|
+
warnings?: string[];
|
|
463
|
+
}
|
|
464
|
+
interface SecretEnvVar {
|
|
465
|
+
/** Name of the environment variable. */
|
|
466
|
+
key?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same
|
|
469
|
+
* project as the function.
|
|
470
|
+
*/
|
|
471
|
+
projectId?: string;
|
|
472
|
+
/** Name of the secret in secret manager (not the full resource name). */
|
|
473
|
+
secret?: string;
|
|
474
|
+
/**
|
|
475
|
+
* Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not
|
|
476
|
+
* reflected until new instances start.
|
|
477
|
+
*/
|
|
478
|
+
version?: string;
|
|
479
|
+
}
|
|
480
|
+
interface SecretVersion {
|
|
481
|
+
/**
|
|
482
|
+
* Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and
|
|
483
|
+
* path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
|
|
484
|
+
*/
|
|
485
|
+
path?: string;
|
|
486
|
+
/** Version of the secret (version number or the string 'latest'). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately. */
|
|
487
|
+
version?: string;
|
|
488
|
+
}
|
|
489
|
+
interface SecretVolume {
|
|
490
|
+
/**
|
|
491
|
+
* The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets`
|
|
492
|
+
* directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
|
|
493
|
+
*/
|
|
494
|
+
mountPath?: string;
|
|
495
|
+
/**
|
|
496
|
+
* Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same
|
|
497
|
+
* project as the function.
|
|
498
|
+
*/
|
|
499
|
+
projectId?: string;
|
|
500
|
+
/** Name of the secret in secret manager (not the full resource name). */
|
|
501
|
+
secret?: string;
|
|
502
|
+
/** List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point. */
|
|
503
|
+
versions?: SecretVersion[];
|
|
504
|
+
}
|
|
505
|
+
interface ServiceConfig {
|
|
506
|
+
/**
|
|
507
|
+
* Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring
|
|
508
|
+
* any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
|
|
509
|
+
*/
|
|
510
|
+
allTrafficOnLatestRevision?: boolean;
|
|
511
|
+
/**
|
|
512
|
+
* The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See
|
|
513
|
+
* https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
|
|
514
|
+
*/
|
|
515
|
+
availableMemory?: string;
|
|
516
|
+
/** Environment variables that shall be available during function execution. */
|
|
517
|
+
environmentVariables?: { [P in string]: string };
|
|
518
|
+
/** The ingress settings for the function, controlling what traffic can reach it. */
|
|
519
|
+
ingressSettings?: string;
|
|
520
|
+
/**
|
|
521
|
+
* The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time,
|
|
522
|
+
* create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max
|
|
523
|
+
* instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
|
|
524
|
+
*/
|
|
525
|
+
maxInstanceCount?: number;
|
|
526
|
+
/**
|
|
527
|
+
* The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing
|
|
528
|
+
* the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always.
|
|
529
|
+
* This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
|
|
530
|
+
*/
|
|
531
|
+
minInstanceCount?: number;
|
|
532
|
+
/** Output only. The name of service revision. */
|
|
533
|
+
revision?: string;
|
|
534
|
+
/** Secret environment variables configuration. */
|
|
535
|
+
secretEnvironmentVariables?: SecretEnvVar[];
|
|
536
|
+
/** Secret volumes configuration. */
|
|
537
|
+
secretVolumes?: SecretVolume[];
|
|
538
|
+
/** Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}` */
|
|
539
|
+
service?: string;
|
|
540
|
+
/** The email of the service's service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`. */
|
|
541
|
+
serviceAccountEmail?: string;
|
|
542
|
+
/** The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds. */
|
|
543
|
+
timeoutSeconds?: number;
|
|
544
|
+
/** Output only. URI of the Service deployed. */
|
|
545
|
+
uri?: string;
|
|
546
|
+
/** The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*/locations/*/connectors/*`. */
|
|
547
|
+
vpcConnector?: string;
|
|
548
|
+
/** The egress settings for the connector, controlling what traffic is diverted through it. */
|
|
549
|
+
vpcConnectorEgressSettings?: string;
|
|
550
|
+
}
|
|
551
|
+
interface SetIamPolicyRequest {
|
|
552
|
+
/**
|
|
553
|
+
* 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
|
|
554
|
+
* services (such as Projects) might reject them.
|
|
555
|
+
*/
|
|
556
|
+
policy?: Policy;
|
|
557
|
+
/**
|
|
558
|
+
* 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:
|
|
559
|
+
* `paths: "bindings, etag"`
|
|
560
|
+
*/
|
|
561
|
+
updateMask?: string;
|
|
562
|
+
}
|
|
563
|
+
interface Source {
|
|
564
|
+
/** If provided, get the source from this location in a Cloud Source Repository. */
|
|
565
|
+
repoSource?: RepoSource;
|
|
566
|
+
/** If provided, get the source from this location in Google Cloud Storage. */
|
|
567
|
+
storageSource?: StorageSource;
|
|
568
|
+
}
|
|
569
|
+
interface SourceProvenance {
|
|
570
|
+
/** A copy of the build's `source.repo_source`, if exists, with any revisions resolved. */
|
|
571
|
+
resolvedRepoSource?: RepoSource;
|
|
572
|
+
/** A copy of the build's `source.storage_source`, if exists, with any generations resolved. */
|
|
573
|
+
resolvedStorageSource?: StorageSource;
|
|
574
|
+
}
|
|
575
|
+
interface Status {
|
|
576
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
577
|
+
code?: number;
|
|
578
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
579
|
+
details?: Array<{ [P in string]: any }>;
|
|
580
|
+
/**
|
|
581
|
+
* 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
|
|
582
|
+
* client.
|
|
583
|
+
*/
|
|
584
|
+
message?: string;
|
|
585
|
+
}
|
|
586
|
+
interface StorageSource {
|
|
587
|
+
/** Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
|
|
588
|
+
bucket?: string;
|
|
589
|
+
/** Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. */
|
|
590
|
+
generation?: string;
|
|
591
|
+
/** Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build. */
|
|
592
|
+
object?: string;
|
|
593
|
+
}
|
|
594
|
+
interface TestIamPermissionsRequest {
|
|
595
|
+
/**
|
|
596
|
+
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
|
597
|
+
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
598
|
+
*/
|
|
599
|
+
permissions?: string[];
|
|
600
|
+
}
|
|
601
|
+
interface TestIamPermissionsResponse {
|
|
602
|
+
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
603
|
+
permissions?: string[];
|
|
604
|
+
}
|
|
605
|
+
interface FunctionsResource {
|
|
606
|
+
/** Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error. */
|
|
607
|
+
create(request: {
|
|
608
|
+
/** V1 error format. */
|
|
609
|
+
"$.xgafv"?: string;
|
|
610
|
+
/** OAuth access token. */
|
|
611
|
+
access_token?: string;
|
|
612
|
+
/** Data format for response. */
|
|
613
|
+
alt?: string;
|
|
614
|
+
/** JSONP */
|
|
615
|
+
callback?: string;
|
|
616
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
617
|
+
fields?: string;
|
|
618
|
+
/** The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. */
|
|
619
|
+
functionId?: string;
|
|
620
|
+
/** 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. */
|
|
621
|
+
key?: string;
|
|
622
|
+
/** OAuth 2.0 token for the current user. */
|
|
623
|
+
oauth_token?: string;
|
|
624
|
+
/** Required. The project and location in which the function should be created, specified in the format `projects/*/locations/*` */
|
|
625
|
+
parent: string;
|
|
626
|
+
/** Returns response with indentations and line breaks. */
|
|
627
|
+
prettyPrint?: boolean;
|
|
628
|
+
/** 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. */
|
|
629
|
+
quotaUser?: string;
|
|
630
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
631
|
+
upload_protocol?: string;
|
|
632
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
633
|
+
uploadType?: string;
|
|
634
|
+
/** Request body */
|
|
635
|
+
// tslint:disable-next-line:ban-types
|
|
636
|
+
resource: Function;
|
|
637
|
+
}): Request<Operation>;
|
|
638
|
+
create(request: {
|
|
639
|
+
/** V1 error format. */
|
|
640
|
+
"$.xgafv"?: string;
|
|
641
|
+
/** OAuth access token. */
|
|
642
|
+
access_token?: string;
|
|
643
|
+
/** Data format for response. */
|
|
644
|
+
alt?: string;
|
|
645
|
+
/** JSONP */
|
|
646
|
+
callback?: string;
|
|
647
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
648
|
+
fields?: string;
|
|
649
|
+
/** The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. */
|
|
650
|
+
functionId?: string;
|
|
651
|
+
/** 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. */
|
|
652
|
+
key?: string;
|
|
653
|
+
/** OAuth 2.0 token for the current user. */
|
|
654
|
+
oauth_token?: string;
|
|
655
|
+
/** Required. The project and location in which the function should be created, specified in the format `projects/*/locations/*` */
|
|
656
|
+
parent: string;
|
|
657
|
+
/** Returns response with indentations and line breaks. */
|
|
658
|
+
prettyPrint?: boolean;
|
|
659
|
+
/** 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. */
|
|
660
|
+
quotaUser?: string;
|
|
661
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
662
|
+
upload_protocol?: string;
|
|
663
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
664
|
+
uploadType?: string;
|
|
665
|
+
},
|
|
666
|
+
// tslint:disable-next-line:ban-types
|
|
667
|
+
body: Function): Request<Operation>;
|
|
668
|
+
/** Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function. */
|
|
669
|
+
delete(request?: {
|
|
670
|
+
/** V1 error format. */
|
|
671
|
+
"$.xgafv"?: string;
|
|
672
|
+
/** OAuth access token. */
|
|
673
|
+
access_token?: string;
|
|
674
|
+
/** Data format for response. */
|
|
675
|
+
alt?: string;
|
|
676
|
+
/** JSONP */
|
|
677
|
+
callback?: string;
|
|
678
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
679
|
+
fields?: string;
|
|
680
|
+
/** 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. */
|
|
681
|
+
key?: string;
|
|
682
|
+
/** Required. The name of the function which should be deleted. */
|
|
683
|
+
name: string;
|
|
684
|
+
/** OAuth 2.0 token for the current user. */
|
|
685
|
+
oauth_token?: string;
|
|
686
|
+
/** Returns response with indentations and line breaks. */
|
|
687
|
+
prettyPrint?: boolean;
|
|
688
|
+
/** 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. */
|
|
689
|
+
quotaUser?: string;
|
|
690
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
691
|
+
upload_protocol?: string;
|
|
692
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
693
|
+
uploadType?: string;
|
|
694
|
+
}): Request<Operation>;
|
|
695
|
+
/**
|
|
696
|
+
* Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more
|
|
697
|
+
* information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls
|
|
698
|
+
*/
|
|
699
|
+
generateDownloadUrl(request: {
|
|
700
|
+
/** V1 error format. */
|
|
701
|
+
"$.xgafv"?: string;
|
|
702
|
+
/** OAuth access token. */
|
|
703
|
+
access_token?: string;
|
|
704
|
+
/** Data format for response. */
|
|
705
|
+
alt?: string;
|
|
706
|
+
/** JSONP */
|
|
707
|
+
callback?: string;
|
|
708
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
709
|
+
fields?: string;
|
|
710
|
+
/** 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. */
|
|
711
|
+
key?: string;
|
|
712
|
+
/** Required. The name of function for which source code Google Cloud Storage signed URL should be generated. */
|
|
713
|
+
name: string;
|
|
714
|
+
/** OAuth 2.0 token for the current user. */
|
|
715
|
+
oauth_token?: string;
|
|
716
|
+
/** Returns response with indentations and line breaks. */
|
|
717
|
+
prettyPrint?: boolean;
|
|
718
|
+
/** 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. */
|
|
719
|
+
quotaUser?: string;
|
|
720
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
721
|
+
upload_protocol?: string;
|
|
722
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
723
|
+
uploadType?: string;
|
|
724
|
+
/** Request body */
|
|
725
|
+
resource: GenerateDownloadUrlRequest;
|
|
726
|
+
}): Request<GenerateDownloadUrlResponse>;
|
|
727
|
+
generateDownloadUrl(request: {
|
|
728
|
+
/** V1 error format. */
|
|
729
|
+
"$.xgafv"?: string;
|
|
730
|
+
/** OAuth access token. */
|
|
731
|
+
access_token?: string;
|
|
732
|
+
/** Data format for response. */
|
|
733
|
+
alt?: string;
|
|
734
|
+
/** JSONP */
|
|
735
|
+
callback?: string;
|
|
736
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
737
|
+
fields?: string;
|
|
738
|
+
/** 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. */
|
|
739
|
+
key?: string;
|
|
740
|
+
/** Required. The name of function for which source code Google Cloud Storage signed URL should be generated. */
|
|
741
|
+
name: string;
|
|
742
|
+
/** OAuth 2.0 token for the current user. */
|
|
743
|
+
oauth_token?: string;
|
|
744
|
+
/** Returns response with indentations and line breaks. */
|
|
745
|
+
prettyPrint?: boolean;
|
|
746
|
+
/** 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. */
|
|
747
|
+
quotaUser?: string;
|
|
748
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
749
|
+
upload_protocol?: string;
|
|
750
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
751
|
+
uploadType?: string;
|
|
752
|
+
},
|
|
753
|
+
body: GenerateDownloadUrlRequest): Request<GenerateDownloadUrlResponse>;
|
|
754
|
+
/**
|
|
755
|
+
* Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls.
|
|
756
|
+
* Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When
|
|
757
|
+
* uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * No credentials should be attached - the signed URLs
|
|
758
|
+
* provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have
|
|
759
|
+
* permissions to upload files to the URL. When making a HTTP PUT request, these two headers need to be specified: * `content-type: application/zip` And this header SHOULD NOT be
|
|
760
|
+
* specified: * `Authorization: Bearer YOUR_TOKEN`
|
|
761
|
+
*/
|
|
762
|
+
generateUploadUrl(request: {
|
|
763
|
+
/** V1 error format. */
|
|
764
|
+
"$.xgafv"?: string;
|
|
765
|
+
/** OAuth access token. */
|
|
766
|
+
access_token?: string;
|
|
767
|
+
/** Data format for response. */
|
|
768
|
+
alt?: string;
|
|
769
|
+
/** JSONP */
|
|
770
|
+
callback?: string;
|
|
771
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
772
|
+
fields?: string;
|
|
773
|
+
/** 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. */
|
|
774
|
+
key?: string;
|
|
775
|
+
/** OAuth 2.0 token for the current user. */
|
|
776
|
+
oauth_token?: string;
|
|
777
|
+
/** Required. The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/*/locations/*`. */
|
|
778
|
+
parent: string;
|
|
779
|
+
/** Returns response with indentations and line breaks. */
|
|
780
|
+
prettyPrint?: boolean;
|
|
781
|
+
/** 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. */
|
|
782
|
+
quotaUser?: string;
|
|
783
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
784
|
+
upload_protocol?: string;
|
|
785
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
786
|
+
uploadType?: string;
|
|
787
|
+
/** Request body */
|
|
788
|
+
resource: GenerateUploadUrlRequest;
|
|
789
|
+
}): Request<GenerateUploadUrlResponse>;
|
|
790
|
+
generateUploadUrl(request: {
|
|
791
|
+
/** V1 error format. */
|
|
792
|
+
"$.xgafv"?: string;
|
|
793
|
+
/** OAuth access token. */
|
|
794
|
+
access_token?: string;
|
|
795
|
+
/** Data format for response. */
|
|
796
|
+
alt?: string;
|
|
797
|
+
/** JSONP */
|
|
798
|
+
callback?: string;
|
|
799
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
800
|
+
fields?: string;
|
|
801
|
+
/** 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. */
|
|
802
|
+
key?: string;
|
|
803
|
+
/** OAuth 2.0 token for the current user. */
|
|
804
|
+
oauth_token?: string;
|
|
805
|
+
/** Required. The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/*/locations/*`. */
|
|
806
|
+
parent: string;
|
|
807
|
+
/** Returns response with indentations and line breaks. */
|
|
808
|
+
prettyPrint?: boolean;
|
|
809
|
+
/** 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. */
|
|
810
|
+
quotaUser?: string;
|
|
811
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
812
|
+
upload_protocol?: string;
|
|
813
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
814
|
+
uploadType?: string;
|
|
815
|
+
},
|
|
816
|
+
body: GenerateUploadUrlRequest): Request<GenerateUploadUrlResponse>;
|
|
817
|
+
/** Returns a function with the given name from the requested project. */
|
|
818
|
+
get(request?: {
|
|
819
|
+
/** V1 error format. */
|
|
820
|
+
"$.xgafv"?: string;
|
|
821
|
+
/** OAuth access token. */
|
|
822
|
+
access_token?: string;
|
|
823
|
+
/** Data format for response. */
|
|
824
|
+
alt?: string;
|
|
825
|
+
/** JSONP */
|
|
826
|
+
callback?: string;
|
|
827
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
828
|
+
fields?: string;
|
|
829
|
+
/** 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. */
|
|
830
|
+
key?: string;
|
|
831
|
+
/** Required. The name of the function which details should be obtained. */
|
|
832
|
+
name: string;
|
|
833
|
+
/** OAuth 2.0 token for the current user. */
|
|
834
|
+
oauth_token?: string;
|
|
835
|
+
/** Returns response with indentations and line breaks. */
|
|
836
|
+
prettyPrint?: boolean;
|
|
837
|
+
/** 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. */
|
|
838
|
+
quotaUser?: string;
|
|
839
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
840
|
+
upload_protocol?: string;
|
|
841
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
842
|
+
uploadType?: string;
|
|
843
|
+
}
|
|
844
|
+
// tslint:disable-next-line:ban-types
|
|
845
|
+
): Request<Function>;
|
|
846
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
847
|
+
getIamPolicy(request?: {
|
|
848
|
+
/** V1 error format. */
|
|
849
|
+
"$.xgafv"?: string;
|
|
850
|
+
/** OAuth access token. */
|
|
851
|
+
access_token?: string;
|
|
852
|
+
/** Data format for response. */
|
|
853
|
+
alt?: string;
|
|
854
|
+
/** JSONP */
|
|
855
|
+
callback?: string;
|
|
856
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
857
|
+
fields?: string;
|
|
858
|
+
/** 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. */
|
|
859
|
+
key?: string;
|
|
860
|
+
/** OAuth 2.0 token for the current user. */
|
|
861
|
+
oauth_token?: string;
|
|
862
|
+
/**
|
|
863
|
+
* 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
|
|
864
|
+
* 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
|
|
865
|
+
* 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
|
|
866
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
867
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
868
|
+
*/
|
|
869
|
+
"options.requestedPolicyVersion"?: number;
|
|
870
|
+
/** Returns response with indentations and line breaks. */
|
|
871
|
+
prettyPrint?: boolean;
|
|
872
|
+
/** 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. */
|
|
873
|
+
quotaUser?: string;
|
|
874
|
+
/**
|
|
875
|
+
* 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
|
|
876
|
+
* field.
|
|
877
|
+
*/
|
|
878
|
+
resource: string;
|
|
879
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
880
|
+
upload_protocol?: string;
|
|
881
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
882
|
+
uploadType?: string;
|
|
883
|
+
}): Request<Policy>;
|
|
884
|
+
/** Returns a list of functions that belong to the requested project. */
|
|
885
|
+
list(request?: {
|
|
886
|
+
/** V1 error format. */
|
|
887
|
+
"$.xgafv"?: string;
|
|
888
|
+
/** OAuth access token. */
|
|
889
|
+
access_token?: string;
|
|
890
|
+
/** Data format for response. */
|
|
891
|
+
alt?: string;
|
|
892
|
+
/** JSONP */
|
|
893
|
+
callback?: string;
|
|
894
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
895
|
+
fields?: string;
|
|
896
|
+
/** The filter for Functions that match the filter expression, following the syntax outlined in https://google.aip.dev/160. */
|
|
897
|
+
filter?: string;
|
|
898
|
+
/** 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. */
|
|
899
|
+
key?: string;
|
|
900
|
+
/** OAuth 2.0 token for the current user. */
|
|
901
|
+
oauth_token?: string;
|
|
902
|
+
/** The sorting order of the resources returned. Value should be a comma separated list of fields. The default sorting oder is ascending. See https://google.aip.dev/132#ordering. */
|
|
903
|
+
orderBy?: string;
|
|
904
|
+
/** Maximum number of functions to return per call. */
|
|
905
|
+
pageSize?: number;
|
|
906
|
+
/**
|
|
907
|
+
* The value returned by the last `ListFunctionsResponse`; indicates that this is a continuation of a prior `ListFunctions` call, and that the system should return the next page of
|
|
908
|
+
* data.
|
|
909
|
+
*/
|
|
910
|
+
pageToken?: string;
|
|
911
|
+
/**
|
|
912
|
+
* Required. The project and location from which the function should be listed, specified in the format `projects/*/locations/*` If you want to list functions in all locations,
|
|
913
|
+
* use "-" in place of a location. When listing functions in all locations, if one or more location(s) are unreachable, the response will contain functions from all reachable
|
|
914
|
+
* locations along with the names of any unreachable locations.
|
|
915
|
+
*/
|
|
916
|
+
parent: string;
|
|
917
|
+
/** Returns response with indentations and line breaks. */
|
|
918
|
+
prettyPrint?: boolean;
|
|
919
|
+
/** 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. */
|
|
920
|
+
quotaUser?: string;
|
|
921
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
922
|
+
upload_protocol?: string;
|
|
923
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
924
|
+
uploadType?: string;
|
|
925
|
+
}): Request<ListFunctionsResponse>;
|
|
926
|
+
/** Updates existing function. */
|
|
927
|
+
patch(request: {
|
|
928
|
+
/** V1 error format. */
|
|
929
|
+
"$.xgafv"?: string;
|
|
930
|
+
/** OAuth access token. */
|
|
931
|
+
access_token?: string;
|
|
932
|
+
/** Data format for response. */
|
|
933
|
+
alt?: string;
|
|
934
|
+
/** JSONP */
|
|
935
|
+
callback?: string;
|
|
936
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
937
|
+
fields?: string;
|
|
938
|
+
/** 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. */
|
|
939
|
+
key?: string;
|
|
940
|
+
/** A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*` */
|
|
941
|
+
name: string;
|
|
942
|
+
/** OAuth 2.0 token for the current user. */
|
|
943
|
+
oauth_token?: string;
|
|
944
|
+
/** Returns response with indentations and line breaks. */
|
|
945
|
+
prettyPrint?: boolean;
|
|
946
|
+
/** 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. */
|
|
947
|
+
quotaUser?: string;
|
|
948
|
+
/** The list of fields to be updated. If no field mask is provided, all provided fields in the request will be updated. */
|
|
949
|
+
updateMask?: string;
|
|
950
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
951
|
+
upload_protocol?: string;
|
|
952
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
953
|
+
uploadType?: string;
|
|
954
|
+
/** Request body */
|
|
955
|
+
// tslint:disable-next-line:ban-types
|
|
956
|
+
resource: Function;
|
|
957
|
+
}): Request<Operation>;
|
|
958
|
+
patch(request: {
|
|
959
|
+
/** V1 error format. */
|
|
960
|
+
"$.xgafv"?: string;
|
|
961
|
+
/** OAuth access token. */
|
|
962
|
+
access_token?: string;
|
|
963
|
+
/** Data format for response. */
|
|
964
|
+
alt?: string;
|
|
965
|
+
/** JSONP */
|
|
966
|
+
callback?: string;
|
|
967
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
968
|
+
fields?: string;
|
|
969
|
+
/** 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. */
|
|
970
|
+
key?: string;
|
|
971
|
+
/** A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*` */
|
|
972
|
+
name: string;
|
|
973
|
+
/** OAuth 2.0 token for the current user. */
|
|
974
|
+
oauth_token?: string;
|
|
975
|
+
/** Returns response with indentations and line breaks. */
|
|
976
|
+
prettyPrint?: boolean;
|
|
977
|
+
/** 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. */
|
|
978
|
+
quotaUser?: string;
|
|
979
|
+
/** The list of fields to be updated. If no field mask is provided, all provided fields in the request will be updated. */
|
|
980
|
+
updateMask?: string;
|
|
981
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
982
|
+
upload_protocol?: string;
|
|
983
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
984
|
+
uploadType?: string;
|
|
985
|
+
},
|
|
986
|
+
// tslint:disable-next-line:ban-types
|
|
987
|
+
body: Function): Request<Operation>;
|
|
988
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
989
|
+
setIamPolicy(request: {
|
|
990
|
+
/** V1 error format. */
|
|
991
|
+
"$.xgafv"?: string;
|
|
992
|
+
/** OAuth access token. */
|
|
993
|
+
access_token?: string;
|
|
994
|
+
/** Data format for response. */
|
|
995
|
+
alt?: string;
|
|
996
|
+
/** JSONP */
|
|
997
|
+
callback?: string;
|
|
998
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
999
|
+
fields?: string;
|
|
1000
|
+
/** 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. */
|
|
1001
|
+
key?: string;
|
|
1002
|
+
/** OAuth 2.0 token for the current user. */
|
|
1003
|
+
oauth_token?: string;
|
|
1004
|
+
/** Returns response with indentations and line breaks. */
|
|
1005
|
+
prettyPrint?: boolean;
|
|
1006
|
+
/** 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. */
|
|
1007
|
+
quotaUser?: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* 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
|
|
1010
|
+
* field.
|
|
1011
|
+
*/
|
|
1012
|
+
resource: string;
|
|
1013
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1014
|
+
upload_protocol?: string;
|
|
1015
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1016
|
+
uploadType?: string;
|
|
1017
|
+
},
|
|
1018
|
+
body: SetIamPolicyRequest): Request<Policy>;
|
|
1019
|
+
/**
|
|
1020
|
+
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
|
|
1021
|
+
* operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
1022
|
+
*/
|
|
1023
|
+
testIamPermissions(request: {
|
|
1024
|
+
/** V1 error format. */
|
|
1025
|
+
"$.xgafv"?: string;
|
|
1026
|
+
/** OAuth access token. */
|
|
1027
|
+
access_token?: string;
|
|
1028
|
+
/** Data format for response. */
|
|
1029
|
+
alt?: string;
|
|
1030
|
+
/** JSONP */
|
|
1031
|
+
callback?: string;
|
|
1032
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1033
|
+
fields?: string;
|
|
1034
|
+
/** 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. */
|
|
1035
|
+
key?: string;
|
|
1036
|
+
/** OAuth 2.0 token for the current user. */
|
|
1037
|
+
oauth_token?: string;
|
|
1038
|
+
/** Returns response with indentations and line breaks. */
|
|
1039
|
+
prettyPrint?: boolean;
|
|
1040
|
+
/** 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. */
|
|
1041
|
+
quotaUser?: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* 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
|
|
1044
|
+
* this field.
|
|
1045
|
+
*/
|
|
1046
|
+
resource: string;
|
|
1047
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1048
|
+
upload_protocol?: string;
|
|
1049
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1050
|
+
uploadType?: string;
|
|
1051
|
+
},
|
|
1052
|
+
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
1053
|
+
}
|
|
1054
|
+
interface OperationsResource {
|
|
1055
|
+
/** 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. */
|
|
1056
|
+
get(request?: {
|
|
1057
|
+
/** V1 error format. */
|
|
1058
|
+
"$.xgafv"?: string;
|
|
1059
|
+
/** OAuth access token. */
|
|
1060
|
+
access_token?: string;
|
|
1061
|
+
/** Data format for response. */
|
|
1062
|
+
alt?: string;
|
|
1063
|
+
/** JSONP */
|
|
1064
|
+
callback?: string;
|
|
1065
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1066
|
+
fields?: string;
|
|
1067
|
+
/** 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. */
|
|
1068
|
+
key?: string;
|
|
1069
|
+
/** The name of the operation resource. */
|
|
1070
|
+
name: string;
|
|
1071
|
+
/** OAuth 2.0 token for the current user. */
|
|
1072
|
+
oauth_token?: string;
|
|
1073
|
+
/** Returns response with indentations and line breaks. */
|
|
1074
|
+
prettyPrint?: boolean;
|
|
1075
|
+
/** 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. */
|
|
1076
|
+
quotaUser?: string;
|
|
1077
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1078
|
+
upload_protocol?: string;
|
|
1079
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1080
|
+
uploadType?: string;
|
|
1081
|
+
}): Request<Operation>;
|
|
1082
|
+
/**
|
|
1083
|
+
* 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
|
|
1084
|
+
* 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
|
|
1085
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
1086
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
1087
|
+
*/
|
|
1088
|
+
list(request?: {
|
|
1089
|
+
/** V1 error format. */
|
|
1090
|
+
"$.xgafv"?: string;
|
|
1091
|
+
/** OAuth access token. */
|
|
1092
|
+
access_token?: string;
|
|
1093
|
+
/** Data format for response. */
|
|
1094
|
+
alt?: string;
|
|
1095
|
+
/** JSONP */
|
|
1096
|
+
callback?: string;
|
|
1097
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1098
|
+
fields?: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* Required. A filter for matching the requested operations. The supported formats of *filter* are: To query for a specific function: project:*,location:*,function:* To query for
|
|
1101
|
+
* all of the latest operations for a project: project:*,latest:true
|
|
1102
|
+
*/
|
|
1103
|
+
filter?: string;
|
|
1104
|
+
/** 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. */
|
|
1105
|
+
key?: string;
|
|
1106
|
+
/** Must not be set. */
|
|
1107
|
+
name: string;
|
|
1108
|
+
/** OAuth 2.0 token for the current user. */
|
|
1109
|
+
oauth_token?: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set, the default page size is 100. Pagination is only supported when
|
|
1112
|
+
* querying for a specific function.
|
|
1113
|
+
*/
|
|
1114
|
+
pageSize?: number;
|
|
1115
|
+
/** Token identifying which result to start with, which is returned by a previous list call. Pagination is only supported when querying for a specific function. */
|
|
1116
|
+
pageToken?: string;
|
|
1117
|
+
/** Returns response with indentations and line breaks. */
|
|
1118
|
+
prettyPrint?: boolean;
|
|
1119
|
+
/** 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. */
|
|
1120
|
+
quotaUser?: string;
|
|
1121
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1122
|
+
upload_protocol?: string;
|
|
1123
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1124
|
+
uploadType?: string;
|
|
1125
|
+
}): Request<ListOperationsResponse>;
|
|
1126
|
+
}
|
|
1127
|
+
interface RuntimesResource {
|
|
1128
|
+
/** Returns a list of runtimes that are supported for the requested project. */
|
|
1129
|
+
list(request?: {
|
|
1130
|
+
/** V1 error format. */
|
|
1131
|
+
"$.xgafv"?: string;
|
|
1132
|
+
/** OAuth access token. */
|
|
1133
|
+
access_token?: string;
|
|
1134
|
+
/** Data format for response. */
|
|
1135
|
+
alt?: string;
|
|
1136
|
+
/** JSONP */
|
|
1137
|
+
callback?: string;
|
|
1138
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1139
|
+
fields?: string;
|
|
1140
|
+
/** The filter for Runtimes that match the filter expression, following the syntax outlined in https://google.aip.dev/160. */
|
|
1141
|
+
filter?: string;
|
|
1142
|
+
/** 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. */
|
|
1143
|
+
key?: string;
|
|
1144
|
+
/** OAuth 2.0 token for the current user. */
|
|
1145
|
+
oauth_token?: string;
|
|
1146
|
+
/** Required. The project and location from which the runtimes should be listed, specified in the format `projects/*/locations/*` */
|
|
1147
|
+
parent: string;
|
|
1148
|
+
/** Returns response with indentations and line breaks. */
|
|
1149
|
+
prettyPrint?: boolean;
|
|
1150
|
+
/** 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. */
|
|
1151
|
+
quotaUser?: string;
|
|
1152
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1153
|
+
upload_protocol?: string;
|
|
1154
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1155
|
+
uploadType?: string;
|
|
1156
|
+
}): Request<ListRuntimesResponse>;
|
|
1157
|
+
}
|
|
1158
|
+
interface LocationsResource {
|
|
1159
|
+
/** Lists information about the supported locations for this service. */
|
|
1160
|
+
list(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
|
+
/**
|
|
1172
|
+
* A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in
|
|
1173
|
+
* [AIP-160](https://google.aip.dev/160).
|
|
1174
|
+
*/
|
|
1175
|
+
filter?: string;
|
|
1176
|
+
/** 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. */
|
|
1177
|
+
key?: string;
|
|
1178
|
+
/** The resource that owns the locations collection, if applicable. */
|
|
1179
|
+
name: string;
|
|
1180
|
+
/** OAuth 2.0 token for the current user. */
|
|
1181
|
+
oauth_token?: string;
|
|
1182
|
+
/** The maximum number of results to return. If not set, the service selects a default. */
|
|
1183
|
+
pageSize?: number;
|
|
1184
|
+
/** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
|
|
1185
|
+
pageToken?: string;
|
|
1186
|
+
/** Returns response with indentations and line breaks. */
|
|
1187
|
+
prettyPrint?: boolean;
|
|
1188
|
+
/** 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. */
|
|
1189
|
+
quotaUser?: string;
|
|
1190
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1191
|
+
upload_protocol?: string;
|
|
1192
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1193
|
+
uploadType?: string;
|
|
1194
|
+
}): Request<ListLocationsResponse>;
|
|
1195
|
+
functions: FunctionsResource;
|
|
1196
|
+
operations: OperationsResource;
|
|
1197
|
+
runtimes: RuntimesResource;
|
|
1198
|
+
}
|
|
1199
|
+
interface ProjectsResource {
|
|
1200
|
+
locations: LocationsResource;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
const projects: ProjectsResource;
|
|
1204
|
+
}
|
|
1205
|
+
}
|