@maxim_mazurok/gapi.client.cloudbuild-v1 0.0.20220730
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 +3848 -0
- package/package.json +20 -0
- package/readme.md +88 -0
- package/tests.ts +2559 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,3848 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Cloud Build API v1 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/cloud-build/docs/
|
|
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://cloudbuild.googleapis.com/$discovery/rest?version=v1
|
|
13
|
+
// Revision: 20220730
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Cloud Build API v1 */
|
|
19
|
+
function load(urlOrObject: "https://cloudbuild.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "cloudbuild", version: "v1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "cloudbuild", version: "v1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace cloudbuild {
|
|
26
|
+
interface ApprovalConfig {
|
|
27
|
+
/** Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start. */
|
|
28
|
+
approvalRequired?: boolean;
|
|
29
|
+
}
|
|
30
|
+
interface ApprovalResult {
|
|
31
|
+
/** Output only. The time when the approval decision was made. */
|
|
32
|
+
approvalTime?: string;
|
|
33
|
+
/** Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called. */
|
|
34
|
+
approverAccount?: string;
|
|
35
|
+
/** Optional. An optional comment for this manual approval result. */
|
|
36
|
+
comment?: string;
|
|
37
|
+
/** Required. The decision of this manual approval. */
|
|
38
|
+
decision?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use
|
|
41
|
+
* case is a link to an external job that approved this Build.
|
|
42
|
+
*/
|
|
43
|
+
url?: string;
|
|
44
|
+
}
|
|
45
|
+
interface ApproveBuildRequest {
|
|
46
|
+
/** Approval decision and metadata. */
|
|
47
|
+
approvalResult?: ApprovalResult;
|
|
48
|
+
}
|
|
49
|
+
interface ArtifactObjects {
|
|
50
|
+
/**
|
|
51
|
+
* Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name
|
|
52
|
+
* Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this
|
|
53
|
+
* location as a prefix.
|
|
54
|
+
*/
|
|
55
|
+
location?: string;
|
|
56
|
+
/** Path globs used to match files in the build's workspace. */
|
|
57
|
+
paths?: string[];
|
|
58
|
+
/** Output only. Stores timing information for pushing all artifact objects. */
|
|
59
|
+
timing?: TimeSpan;
|
|
60
|
+
}
|
|
61
|
+
interface ArtifactResult {
|
|
62
|
+
/** The file hash of the artifact. */
|
|
63
|
+
fileHash?: FileHashes[];
|
|
64
|
+
/** The path of an artifact in a Google Cloud Storage bucket, with the generation number. For example, `gs://mybucket/path/to/output.jar#generation`. */
|
|
65
|
+
location?: string;
|
|
66
|
+
}
|
|
67
|
+
interface Artifacts {
|
|
68
|
+
/**
|
|
69
|
+
* A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed
|
|
70
|
+
* images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.
|
|
71
|
+
*/
|
|
72
|
+
images?: string[];
|
|
73
|
+
/**
|
|
74
|
+
* A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the
|
|
75
|
+
* specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results
|
|
76
|
+
* field. If any objects fail to be pushed, the build is marked FAILURE.
|
|
77
|
+
*/
|
|
78
|
+
objects?: ArtifactObjects;
|
|
79
|
+
}
|
|
80
|
+
interface BatchCreateBitbucketServerConnectedRepositoriesRequest {
|
|
81
|
+
/** Required. Requests to connect Bitbucket Server repositories. */
|
|
82
|
+
requests?: CreateBitbucketServerConnectedRepositoryRequest[];
|
|
83
|
+
}
|
|
84
|
+
interface BatchCreateBitbucketServerConnectedRepositoriesResponse {
|
|
85
|
+
/** The connected Bitbucket Server repositories. */
|
|
86
|
+
bitbucketServerConnectedRepositories?: BitbucketServerConnectedRepository[];
|
|
87
|
+
}
|
|
88
|
+
interface BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata {
|
|
89
|
+
/** Time the operation was completed. */
|
|
90
|
+
completeTime?: string;
|
|
91
|
+
/** The name of the `BitbucketServerConfig` that added connected repositories. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` */
|
|
92
|
+
config?: string;
|
|
93
|
+
/** Time the operation was created. */
|
|
94
|
+
createTime?: string;
|
|
95
|
+
}
|
|
96
|
+
interface BitbucketServerConfig {
|
|
97
|
+
/**
|
|
98
|
+
* Required. Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. If you need to change it, please create another
|
|
99
|
+
* BitbucketServerConfig.
|
|
100
|
+
*/
|
|
101
|
+
apiKey?: string;
|
|
102
|
+
/** Output only. Connected Bitbucket Server repositories for this config. */
|
|
103
|
+
connectedRepositories?: BitbucketServerRepositoryId[];
|
|
104
|
+
/** Time when the config was created. */
|
|
105
|
+
createTime?: string;
|
|
106
|
+
/** Required. Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig. */
|
|
107
|
+
hostUri?: string;
|
|
108
|
+
/** The resource name for the config. */
|
|
109
|
+
name?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Optional. The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the
|
|
112
|
+
* Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server
|
|
113
|
+
* instance will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the
|
|
114
|
+
* name of a VPC network in the project.
|
|
115
|
+
*/
|
|
116
|
+
peeredNetwork?: string;
|
|
117
|
+
/** Required. Secret Manager secrets needed by the config. */
|
|
118
|
+
secrets?: BitbucketServerSecrets;
|
|
119
|
+
/** Optional. SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt. */
|
|
120
|
+
sslCa?: string;
|
|
121
|
+
/** Username of the account Cloud Build will use on Bitbucket Server. */
|
|
122
|
+
username?: string;
|
|
123
|
+
/** Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config. */
|
|
124
|
+
webhookKey?: string;
|
|
125
|
+
}
|
|
126
|
+
interface BitbucketServerConnectedRepository {
|
|
127
|
+
/** The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` */
|
|
128
|
+
parent?: string;
|
|
129
|
+
/** The Bitbucket Server repositories to connect. */
|
|
130
|
+
repo?: BitbucketServerRepositoryId;
|
|
131
|
+
/** Output only. The status of the repo connection request. */
|
|
132
|
+
status?: Status;
|
|
133
|
+
}
|
|
134
|
+
interface BitbucketServerRepository {
|
|
135
|
+
/** Link to the browse repo page on the Bitbucket Server instance. */
|
|
136
|
+
browseUri?: string;
|
|
137
|
+
/** Description of the repository. */
|
|
138
|
+
description?: string;
|
|
139
|
+
/** Display name of the repository. */
|
|
140
|
+
displayName?: string;
|
|
141
|
+
/** The resource name of the repository. */
|
|
142
|
+
name?: string;
|
|
143
|
+
/** Identifier for a repository hosted on a Bitbucket Server. */
|
|
144
|
+
repoId?: BitbucketServerRepositoryId;
|
|
145
|
+
}
|
|
146
|
+
interface BitbucketServerRepositoryId {
|
|
147
|
+
/** Required. Identifier for the project storing the repository. */
|
|
148
|
+
projectKey?: string;
|
|
149
|
+
/** Required. Identifier for the repository. */
|
|
150
|
+
repoSlug?: string;
|
|
151
|
+
/** Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo. */
|
|
152
|
+
webhookId?: number;
|
|
153
|
+
}
|
|
154
|
+
interface BitbucketServerSecrets {
|
|
155
|
+
/** Required. The resource name for the admin access token's secret version. */
|
|
156
|
+
adminAccessTokenVersionName?: string;
|
|
157
|
+
/** Required. The resource name for the read access token's secret version. */
|
|
158
|
+
readAccessTokenVersionName?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Required. Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another
|
|
161
|
+
* BitbucketServerConfig.
|
|
162
|
+
*/
|
|
163
|
+
webhookSecretVersionName?: string;
|
|
164
|
+
}
|
|
165
|
+
interface BitbucketServerTriggerConfig {
|
|
166
|
+
/** Output only. The BitbucketServerConfig specified in the bitbucket_server_config_resource field. */
|
|
167
|
+
bitbucketServerConfig?: BitbucketServerConfig;
|
|
168
|
+
/** Required. The Bitbucket server config resource that this trigger config maps to. */
|
|
169
|
+
bitbucketServerConfigResource?: string;
|
|
170
|
+
/** Required. Key of the project that the repo is in. For example: The key for https://mybitbucket.server/projects/TEST/repos/test-repo is "TEST". */
|
|
171
|
+
projectKey?: string;
|
|
172
|
+
/** Filter to match changes in pull requests. */
|
|
173
|
+
pullRequest?: PullRequestFilter;
|
|
174
|
+
/** Filter to match changes in refs like branches, tags. */
|
|
175
|
+
push?: PushFilter;
|
|
176
|
+
/**
|
|
177
|
+
* Required. Slug of the repository. A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL. For example, if the
|
|
178
|
+
* repository name is 'test repo', in the URL it would become 'test-repo' as in https://mybitbucket.server/projects/TEST/repos/test-repo.
|
|
179
|
+
*/
|
|
180
|
+
repoSlug?: string;
|
|
181
|
+
}
|
|
182
|
+
interface Build {
|
|
183
|
+
/** Output only. Describes this build's approval configuration, status, and result. */
|
|
184
|
+
approval?: BuildApproval;
|
|
185
|
+
/** Artifacts produced by the build that should be uploaded upon successful completion of all build steps. */
|
|
186
|
+
artifacts?: Artifacts;
|
|
187
|
+
/** Secrets and secret environment variables. */
|
|
188
|
+
availableSecrets?: Secrets;
|
|
189
|
+
/** Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically. */
|
|
190
|
+
buildTriggerId?: string;
|
|
191
|
+
/** Output only. Time at which the request to create the build was received. */
|
|
192
|
+
createTime?: string;
|
|
193
|
+
/** Output only. Contains information about the build when status=FAILURE. */
|
|
194
|
+
failureInfo?: FailureInfo;
|
|
195
|
+
/** Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution. */
|
|
196
|
+
finishTime?: string;
|
|
197
|
+
/** Output only. Unique identifier of the build. */
|
|
198
|
+
id?: string;
|
|
199
|
+
/**
|
|
200
|
+
* A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account's credentials. The digests of the pushed
|
|
201
|
+
* images will be stored in the `Build` resource's results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
|
|
202
|
+
*/
|
|
203
|
+
images?: string[];
|
|
204
|
+
/**
|
|
205
|
+
* Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be
|
|
206
|
+
* of the format `${logs_bucket}/log-${build_id}.txt`.
|
|
207
|
+
*/
|
|
208
|
+
logsBucket?: string;
|
|
209
|
+
/** Output only. URL to logs for this build in Google Cloud Console. */
|
|
210
|
+
logUrl?: string;
|
|
211
|
+
/** Output only. The 'Build' name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service. */
|
|
212
|
+
name?: string;
|
|
213
|
+
/** Special options for this build. */
|
|
214
|
+
options?: BuildOptions;
|
|
215
|
+
/** Output only. ID of the project. */
|
|
216
|
+
projectId?: string;
|
|
217
|
+
/**
|
|
218
|
+
* TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from
|
|
219
|
+
* create_time.
|
|
220
|
+
*/
|
|
221
|
+
queueTtl?: string;
|
|
222
|
+
/** Output only. Results of the build. */
|
|
223
|
+
results?: Results;
|
|
224
|
+
/**
|
|
225
|
+
* Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to
|
|
226
|
+
* configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
|
|
227
|
+
*/
|
|
228
|
+
secrets?: Secret[];
|
|
229
|
+
/**
|
|
230
|
+
* IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or
|
|
231
|
+
* uniqueId of the service account.
|
|
232
|
+
*/
|
|
233
|
+
serviceAccount?: string;
|
|
234
|
+
/** The location of the source files to build. */
|
|
235
|
+
source?: Source;
|
|
236
|
+
/** Output only. A permanent fixed identifier for source. */
|
|
237
|
+
sourceProvenance?: SourceProvenance;
|
|
238
|
+
/** Output only. Time at which execution of the build was started. */
|
|
239
|
+
startTime?: string;
|
|
240
|
+
/** Output only. Status of the build. */
|
|
241
|
+
status?: string;
|
|
242
|
+
/** Output only. Customer-readable message about the current status. */
|
|
243
|
+
statusDetail?: string;
|
|
244
|
+
/** Required. The operations to be performed on the workspace. */
|
|
245
|
+
steps?: BuildStep[];
|
|
246
|
+
/** Substitutions data for `Build` resource. */
|
|
247
|
+
substitutions?: { [P in string]: string };
|
|
248
|
+
/** Tags for annotation of a `Build`. These are not docker tags. */
|
|
249
|
+
tags?: string[];
|
|
250
|
+
/**
|
|
251
|
+
* Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`.
|
|
252
|
+
* `timeout` starts ticking from `startTime`. Default time is ten minutes.
|
|
253
|
+
*/
|
|
254
|
+
timeout?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE:
|
|
257
|
+
* time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
|
|
258
|
+
*/
|
|
259
|
+
timing?: { [P in string]: TimeSpan };
|
|
260
|
+
/** Output only. Non-fatal problems encountered during the execution of the build. */
|
|
261
|
+
warnings?: Warning[];
|
|
262
|
+
}
|
|
263
|
+
interface BuildApproval {
|
|
264
|
+
/** Output only. Configuration for manual approval of this build. */
|
|
265
|
+
config?: ApprovalConfig;
|
|
266
|
+
/** Output only. Result of manual approval for this Build. */
|
|
267
|
+
result?: ApprovalResult;
|
|
268
|
+
/** Output only. The state of this build's approval. */
|
|
269
|
+
state?: string;
|
|
270
|
+
}
|
|
271
|
+
interface BuildOperationMetadata {
|
|
272
|
+
/** The build that the operation is tracking. */
|
|
273
|
+
build?: Build;
|
|
274
|
+
}
|
|
275
|
+
interface BuildOptions {
|
|
276
|
+
/**
|
|
277
|
+
* Requested disk size for the VM that runs the build. Note that this is *NOT* "disk free"; some of the space will be used by the operating system and build utilities. Also note that
|
|
278
|
+
* this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that
|
|
279
|
+
* request more than the maximum are rejected with an error.
|
|
280
|
+
*/
|
|
281
|
+
diskSizeGb?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build
|
|
284
|
+
* configuration file.
|
|
285
|
+
*/
|
|
286
|
+
dynamicSubstitutions?: boolean;
|
|
287
|
+
/**
|
|
288
|
+
* A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will
|
|
289
|
+
* use the build step value. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
|
|
290
|
+
*/
|
|
291
|
+
env?: string[];
|
|
292
|
+
/** Option to specify the logging mode, which determines if and where build logs are stored. */
|
|
293
|
+
logging?: string;
|
|
294
|
+
/** Option to define build log streaming behavior to Google Cloud Storage. */
|
|
295
|
+
logStreamingOption?: string;
|
|
296
|
+
/** Compute Engine machine type on which to run the build. */
|
|
297
|
+
machineType?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for
|
|
300
|
+
* more information.
|
|
301
|
+
*/
|
|
302
|
+
pool?: PoolOption;
|
|
303
|
+
/** Requested verifiability options. */
|
|
304
|
+
requestedVerifyOption?: string;
|
|
305
|
+
/**
|
|
306
|
+
* A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. These variables
|
|
307
|
+
* will be available to all build steps in this build.
|
|
308
|
+
*/
|
|
309
|
+
secretEnv?: string[];
|
|
310
|
+
/** Requested hash for SourceProvenance. */
|
|
311
|
+
sourceProvenanceHash?: string[];
|
|
312
|
+
/**
|
|
313
|
+
* Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build
|
|
314
|
+
* configuration file.
|
|
315
|
+
*/
|
|
316
|
+
substitutionOption?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their
|
|
319
|
+
* contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it
|
|
320
|
+
* is indicative of a build request with an incorrect configuration.
|
|
321
|
+
*/
|
|
322
|
+
volumes?: Volume[];
|
|
323
|
+
/** This field deprecated; please use `pool.name` instead. */
|
|
324
|
+
workerPool?: string;
|
|
325
|
+
}
|
|
326
|
+
interface BuildStep {
|
|
327
|
+
/**
|
|
328
|
+
* A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that
|
|
329
|
+
* entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
|
|
330
|
+
*/
|
|
331
|
+
args?: string[];
|
|
332
|
+
/**
|
|
333
|
+
* Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be
|
|
334
|
+
* outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the
|
|
335
|
+
* build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.
|
|
336
|
+
*/
|
|
337
|
+
dir?: string;
|
|
338
|
+
/** Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used. */
|
|
339
|
+
entrypoint?: string;
|
|
340
|
+
/** A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". */
|
|
341
|
+
env?: string[];
|
|
342
|
+
/** Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency. */
|
|
343
|
+
id?: string;
|
|
344
|
+
/**
|
|
345
|
+
* Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not,
|
|
346
|
+
* the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all
|
|
347
|
+
* of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also
|
|
348
|
+
* have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous
|
|
349
|
+
* build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.
|
|
350
|
+
*/
|
|
351
|
+
name?: string;
|
|
352
|
+
/** Output only. Stores timing information for pulling this build step's builder image only. */
|
|
353
|
+
pullTiming?: TimeSpan;
|
|
354
|
+
/** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
|
|
355
|
+
script?: string;
|
|
356
|
+
/** A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. */
|
|
357
|
+
secretEnv?: string[];
|
|
358
|
+
/** Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses. */
|
|
359
|
+
status?: string;
|
|
360
|
+
/** Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out. */
|
|
361
|
+
timeout?: string;
|
|
362
|
+
/** Output only. Stores timing information for executing this build step. */
|
|
363
|
+
timing?: TimeSpan;
|
|
364
|
+
/**
|
|
365
|
+
* List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their
|
|
366
|
+
* contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
|
|
367
|
+
*/
|
|
368
|
+
volumes?: Volume[];
|
|
369
|
+
/**
|
|
370
|
+
* The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty,
|
|
371
|
+
* this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
|
|
372
|
+
*/
|
|
373
|
+
waitFor?: string[];
|
|
374
|
+
}
|
|
375
|
+
interface BuildTrigger {
|
|
376
|
+
/** Configuration for manual approval to start a build invocation of this BuildTrigger. */
|
|
377
|
+
approvalConfig?: ApprovalConfig;
|
|
378
|
+
/**
|
|
379
|
+
* Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available
|
|
380
|
+
* for GitHub App Triggers.
|
|
381
|
+
*/
|
|
382
|
+
autodetect?: boolean;
|
|
383
|
+
/** BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received. */
|
|
384
|
+
bitbucketServerTriggerConfig?: BitbucketServerTriggerConfig;
|
|
385
|
+
/** Contents of the build template. */
|
|
386
|
+
build?: Build;
|
|
387
|
+
/** Output only. Time when the trigger was created. */
|
|
388
|
+
createTime?: string;
|
|
389
|
+
/** Human-readable description of this trigger. */
|
|
390
|
+
description?: string;
|
|
391
|
+
/** If true, the trigger will never automatically execute a build. */
|
|
392
|
+
disabled?: boolean;
|
|
393
|
+
/**
|
|
394
|
+
* EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is
|
|
395
|
+
* set.
|
|
396
|
+
*/
|
|
397
|
+
eventType?: string;
|
|
398
|
+
/** Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml). */
|
|
399
|
+
filename?: string;
|
|
400
|
+
/** A Common Expression Language string. */
|
|
401
|
+
filter?: string;
|
|
402
|
+
/** The file source describing the local or remote Build template. */
|
|
403
|
+
gitFileSource?: GitFileSource;
|
|
404
|
+
/** GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`. */
|
|
405
|
+
github?: GitHubEventsConfig;
|
|
406
|
+
/** Output only. Unique identifier of the trigger. */
|
|
407
|
+
id?: string;
|
|
408
|
+
/**
|
|
409
|
+
* ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**". If ignored_files and changed files are both
|
|
410
|
+
* empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If
|
|
411
|
+
* the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
|
|
412
|
+
*/
|
|
413
|
+
ignoredFiles?: string[];
|
|
414
|
+
/**
|
|
415
|
+
* If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub
|
|
416
|
+
* triggers results in INVALID_ARGUMENT error.
|
|
417
|
+
*/
|
|
418
|
+
includeBuildLogs?: string;
|
|
419
|
+
/**
|
|
420
|
+
* If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of
|
|
421
|
+
* the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If
|
|
422
|
+
* not, then we do not trigger a build.
|
|
423
|
+
*/
|
|
424
|
+
includedFiles?: string[];
|
|
425
|
+
/**
|
|
426
|
+
* User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and
|
|
427
|
+
* dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.
|
|
428
|
+
*/
|
|
429
|
+
name?: string;
|
|
430
|
+
/** PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. */
|
|
431
|
+
pubsubConfig?: PubsubConfig;
|
|
432
|
+
/** The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service. */
|
|
433
|
+
resourceName?: string;
|
|
434
|
+
/**
|
|
435
|
+
* The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set, then the
|
|
436
|
+
* standard Cloud Build service account ([PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`
|
|
437
|
+
*/
|
|
438
|
+
serviceAccount?: string;
|
|
439
|
+
/**
|
|
440
|
+
* The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build
|
|
441
|
+
* source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
|
|
442
|
+
*/
|
|
443
|
+
sourceToBuild?: GitRepoSource;
|
|
444
|
+
/** Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`. */
|
|
445
|
+
substitutions?: { [P in string]: string };
|
|
446
|
+
/** Tags for annotation of a `BuildTrigger` */
|
|
447
|
+
tags?: string[];
|
|
448
|
+
/**
|
|
449
|
+
* Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that
|
|
450
|
+
* matches that regular expression will trigger a build. Mutually exclusive with `github`.
|
|
451
|
+
*/
|
|
452
|
+
triggerTemplate?: RepoSource;
|
|
453
|
+
/** WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL. */
|
|
454
|
+
webhookConfig?: WebhookConfig;
|
|
455
|
+
}
|
|
456
|
+
interface BuiltImage {
|
|
457
|
+
/** Docker Registry 2.0 digest. */
|
|
458
|
+
digest?: string;
|
|
459
|
+
/** Name used to push the container image to Google Container Registry, as presented to `docker push`. */
|
|
460
|
+
name?: string;
|
|
461
|
+
/** Output only. Stores timing information for pushing the specified image. */
|
|
462
|
+
pushTiming?: TimeSpan;
|
|
463
|
+
}
|
|
464
|
+
interface CancelBuildRequest {
|
|
465
|
+
/** Required. ID of the build. */
|
|
466
|
+
id?: string;
|
|
467
|
+
/** The name of the `Build` to cancel. Format: `projects/{project}/locations/{location}/builds/{build}` */
|
|
468
|
+
name?: string;
|
|
469
|
+
/** Required. ID of the project. */
|
|
470
|
+
projectId?: string;
|
|
471
|
+
}
|
|
472
|
+
// tslint:disable-next-line:no-empty-interface
|
|
473
|
+
interface CancelOperationRequest {
|
|
474
|
+
}
|
|
475
|
+
interface CreateBitbucketServerConfigOperationMetadata {
|
|
476
|
+
/** The resource name of the BitbucketServerConfig to be created. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. */
|
|
477
|
+
bitbucketServerConfig?: string;
|
|
478
|
+
/** Time the operation was completed. */
|
|
479
|
+
completeTime?: string;
|
|
480
|
+
/** Time the operation was created. */
|
|
481
|
+
createTime?: string;
|
|
482
|
+
}
|
|
483
|
+
interface CreateBitbucketServerConnectedRepositoryRequest {
|
|
484
|
+
/** Required. The Bitbucket Server repository to connect. */
|
|
485
|
+
bitbucketServerConnectedRepository?: BitbucketServerConnectedRepository;
|
|
486
|
+
/** Required. The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` */
|
|
487
|
+
parent?: string;
|
|
488
|
+
}
|
|
489
|
+
interface CreateGitHubEnterpriseConfigOperationMetadata {
|
|
490
|
+
/** Time the operation was completed. */
|
|
491
|
+
completeTime?: string;
|
|
492
|
+
/** Time the operation was created. */
|
|
493
|
+
createTime?: string;
|
|
494
|
+
/** The resource name of the GitHubEnterprise to be created. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. */
|
|
495
|
+
githubEnterpriseConfig?: string;
|
|
496
|
+
}
|
|
497
|
+
interface CreateWorkerPoolOperationMetadata {
|
|
498
|
+
/** Time the operation was completed. */
|
|
499
|
+
completeTime?: string;
|
|
500
|
+
/** Time the operation was created. */
|
|
501
|
+
createTime?: string;
|
|
502
|
+
/** The resource name of the `WorkerPool` to create. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`. */
|
|
503
|
+
workerPool?: string;
|
|
504
|
+
}
|
|
505
|
+
interface DeleteBitbucketServerConfigOperationMetadata {
|
|
506
|
+
/** The resource name of the BitbucketServerConfig to be deleted. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. */
|
|
507
|
+
bitbucketServerConfig?: string;
|
|
508
|
+
/** Time the operation was completed. */
|
|
509
|
+
completeTime?: string;
|
|
510
|
+
/** Time the operation was created. */
|
|
511
|
+
createTime?: string;
|
|
512
|
+
}
|
|
513
|
+
interface DeleteGitHubEnterpriseConfigOperationMetadata {
|
|
514
|
+
/** Time the operation was completed. */
|
|
515
|
+
completeTime?: string;
|
|
516
|
+
/** Time the operation was created. */
|
|
517
|
+
createTime?: string;
|
|
518
|
+
/** The resource name of the GitHubEnterprise to be deleted. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. */
|
|
519
|
+
githubEnterpriseConfig?: string;
|
|
520
|
+
}
|
|
521
|
+
interface DeleteWorkerPoolOperationMetadata {
|
|
522
|
+
/** Time the operation was completed. */
|
|
523
|
+
completeTime?: string;
|
|
524
|
+
/** Time the operation was created. */
|
|
525
|
+
createTime?: string;
|
|
526
|
+
/** The resource name of the `WorkerPool` being deleted. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`. */
|
|
527
|
+
workerPool?: string;
|
|
528
|
+
}
|
|
529
|
+
// tslint:disable-next-line:no-empty-interface
|
|
530
|
+
interface Empty {
|
|
531
|
+
}
|
|
532
|
+
interface FailureInfo {
|
|
533
|
+
/** Explains the failure issue in more detail using hard-coded text. */
|
|
534
|
+
detail?: string;
|
|
535
|
+
/** The name of the failure. */
|
|
536
|
+
type?: string;
|
|
537
|
+
}
|
|
538
|
+
interface FileHashes {
|
|
539
|
+
/** Collection of file hashes. */
|
|
540
|
+
fileHash?: Hash[];
|
|
541
|
+
}
|
|
542
|
+
interface GitFileSource {
|
|
543
|
+
/** The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. */
|
|
544
|
+
bitbucketServerConfig?: string;
|
|
545
|
+
/**
|
|
546
|
+
* The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.
|
|
547
|
+
* `projects/{project}/githubEnterpriseConfigs/{id}`.
|
|
548
|
+
*/
|
|
549
|
+
githubEnterpriseConfig?: string;
|
|
550
|
+
/** The path of the file, with the repo root as the root of the path. */
|
|
551
|
+
path?: string;
|
|
552
|
+
/** See RepoType above. */
|
|
553
|
+
repoType?: string;
|
|
554
|
+
/**
|
|
555
|
+
* The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here:
|
|
556
|
+
* https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
|
|
557
|
+
*/
|
|
558
|
+
revision?: string;
|
|
559
|
+
/**
|
|
560
|
+
* The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read
|
|
561
|
+
* the specified path.
|
|
562
|
+
*/
|
|
563
|
+
uri?: string;
|
|
564
|
+
}
|
|
565
|
+
interface GitHubEnterpriseConfig {
|
|
566
|
+
/** Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server. */
|
|
567
|
+
appId?: string;
|
|
568
|
+
/** Output only. Time when the installation was associated with the project. */
|
|
569
|
+
createTime?: string;
|
|
570
|
+
/** Name to display for this config. */
|
|
571
|
+
displayName?: string;
|
|
572
|
+
/** The URL of the github enterprise host the configuration is for. */
|
|
573
|
+
hostUrl?: string;
|
|
574
|
+
/** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
|
|
575
|
+
name?: string;
|
|
576
|
+
/**
|
|
577
|
+
* Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub
|
|
578
|
+
* Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server
|
|
579
|
+
* will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a
|
|
580
|
+
* VPC network in the project.
|
|
581
|
+
*/
|
|
582
|
+
peeredNetwork?: string;
|
|
583
|
+
/** Names of secrets in Secret Manager. */
|
|
584
|
+
secrets?: GitHubEnterpriseSecrets;
|
|
585
|
+
/** Optional. SSL certificate to use for requests to GitHub Enterprise. */
|
|
586
|
+
sslCa?: string;
|
|
587
|
+
/** The key that should be attached to webhook calls to the ReceiveWebhook endpoint. */
|
|
588
|
+
webhookKey?: string;
|
|
589
|
+
}
|
|
590
|
+
interface GitHubEnterpriseSecrets {
|
|
591
|
+
/** The resource name for the OAuth client ID secret in Secret Manager. */
|
|
592
|
+
oauthClientIdName?: string;
|
|
593
|
+
/** The resource name for the OAuth client ID secret version in Secret Manager. */
|
|
594
|
+
oauthClientIdVersionName?: string;
|
|
595
|
+
/** The resource name for the OAuth secret in Secret Manager. */
|
|
596
|
+
oauthSecretName?: string;
|
|
597
|
+
/** The resource name for the OAuth secret secret version in Secret Manager. */
|
|
598
|
+
oauthSecretVersionName?: string;
|
|
599
|
+
/** The resource name for the private key secret. */
|
|
600
|
+
privateKeyName?: string;
|
|
601
|
+
/** The resource name for the private key secret version. */
|
|
602
|
+
privateKeyVersionName?: string;
|
|
603
|
+
/** The resource name for the webhook secret in Secret Manager. */
|
|
604
|
+
webhookSecretName?: string;
|
|
605
|
+
/** The resource name for the webhook secret secret version in Secret Manager. */
|
|
606
|
+
webhookSecretVersionName?: string;
|
|
607
|
+
}
|
|
608
|
+
interface GitHubEventsConfig {
|
|
609
|
+
/** Optional. The resource name of the github enterprise config that should be applied to this installation. For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
|
|
610
|
+
enterpriseConfigResourceName?: string;
|
|
611
|
+
/** The installationID that emits the GitHub event. */
|
|
612
|
+
installationId?: string;
|
|
613
|
+
/** Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is "cloud-builders". */
|
|
614
|
+
name?: string;
|
|
615
|
+
/** Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform". */
|
|
616
|
+
owner?: string;
|
|
617
|
+
/** filter to match changes in pull requests. */
|
|
618
|
+
pullRequest?: PullRequestFilter;
|
|
619
|
+
/** filter to match changes in refs like branches, tags. */
|
|
620
|
+
push?: PushFilter;
|
|
621
|
+
}
|
|
622
|
+
interface GitRepoSource {
|
|
623
|
+
/** The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. */
|
|
624
|
+
bitbucketServerConfig?: string;
|
|
625
|
+
/**
|
|
626
|
+
* The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.
|
|
627
|
+
* `projects/{project}/githubEnterpriseConfigs/{id}`.
|
|
628
|
+
*/
|
|
629
|
+
githubEnterpriseConfig?: string;
|
|
630
|
+
/** The branch or tag to use. Must start with "refs/" (required). */
|
|
631
|
+
ref?: string;
|
|
632
|
+
/** See RepoType below. */
|
|
633
|
+
repoType?: string;
|
|
634
|
+
/** The URI of the repo. Either uri or repository can be specified and is required. */
|
|
635
|
+
uri?: string;
|
|
636
|
+
}
|
|
637
|
+
interface GoogleDevtoolsCloudbuildV2OperationMetadata {
|
|
638
|
+
/** Output only. API version used to start the operation. */
|
|
639
|
+
apiVersion?: string;
|
|
640
|
+
/** Output only. The time the operation was created. */
|
|
641
|
+
createTime?: string;
|
|
642
|
+
/** Output only. The time the operation finished running. */
|
|
643
|
+
endTime?: string;
|
|
644
|
+
/**
|
|
645
|
+
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a
|
|
646
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
647
|
+
*/
|
|
648
|
+
requestedCancellation?: boolean;
|
|
649
|
+
/** Output only. Human-readable status of the operation, if any. */
|
|
650
|
+
statusMessage?: string;
|
|
651
|
+
/** Output only. Server-defined resource path for the target of the operation. */
|
|
652
|
+
target?: string;
|
|
653
|
+
/** Output only. Name of the verb executed by the operation. */
|
|
654
|
+
verb?: string;
|
|
655
|
+
}
|
|
656
|
+
interface Hash {
|
|
657
|
+
/** The type of hash that was performed. */
|
|
658
|
+
type?: string;
|
|
659
|
+
/** The hash value. */
|
|
660
|
+
value?: string;
|
|
661
|
+
}
|
|
662
|
+
interface HttpBody {
|
|
663
|
+
/** The HTTP Content-Type header value specifying the content type of the body. */
|
|
664
|
+
contentType?: string;
|
|
665
|
+
/** The HTTP request/response body as raw binary. */
|
|
666
|
+
data?: string;
|
|
667
|
+
/** Application specific response metadata. Must be set in the first response for streaming APIs. */
|
|
668
|
+
extensions?: Array<{ [P in string]: any }>;
|
|
669
|
+
}
|
|
670
|
+
interface HTTPDelivery {
|
|
671
|
+
/** The URI to which JSON-containing HTTP POST requests should be sent. */
|
|
672
|
+
uri?: string;
|
|
673
|
+
}
|
|
674
|
+
interface InlineSecret {
|
|
675
|
+
/**
|
|
676
|
+
* Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step.
|
|
677
|
+
* Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.
|
|
678
|
+
*/
|
|
679
|
+
envMap?: { [P in string]: string };
|
|
680
|
+
/** Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/* */
|
|
681
|
+
kmsKeyName?: string;
|
|
682
|
+
}
|
|
683
|
+
interface ListBitbucketServerConfigsResponse {
|
|
684
|
+
/** A list of BitbucketServerConfigs */
|
|
685
|
+
bitbucketServerConfigs?: BitbucketServerConfig[];
|
|
686
|
+
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
687
|
+
nextPageToken?: string;
|
|
688
|
+
}
|
|
689
|
+
interface ListBitbucketServerRepositoriesResponse {
|
|
690
|
+
/** List of Bitbucket Server repositories. */
|
|
691
|
+
bitbucketServerRepositories?: BitbucketServerRepository[];
|
|
692
|
+
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
693
|
+
nextPageToken?: string;
|
|
694
|
+
}
|
|
695
|
+
interface ListBuildsResponse {
|
|
696
|
+
/** Builds will be sorted by `create_time`, descending. */
|
|
697
|
+
builds?: Build[];
|
|
698
|
+
/** Token to receive the next page of results. This will be absent if the end of the response list has been reached. */
|
|
699
|
+
nextPageToken?: string;
|
|
700
|
+
}
|
|
701
|
+
interface ListBuildTriggersResponse {
|
|
702
|
+
/** Token to receive the next page of results. */
|
|
703
|
+
nextPageToken?: string;
|
|
704
|
+
/** `BuildTriggers` for the project, sorted by `create_time` descending. */
|
|
705
|
+
triggers?: BuildTrigger[];
|
|
706
|
+
}
|
|
707
|
+
interface ListGithubEnterpriseConfigsResponse {
|
|
708
|
+
/** A list of GitHubEnterpriseConfigs */
|
|
709
|
+
configs?: GitHubEnterpriseConfig[];
|
|
710
|
+
}
|
|
711
|
+
interface ListWorkerPoolsResponse {
|
|
712
|
+
/** Continuation token used to page through large result sets. Provide this value in a subsequent ListWorkerPoolsRequest to return the next page of results. */
|
|
713
|
+
nextPageToken?: string;
|
|
714
|
+
/** `WorkerPools` for the specified project. */
|
|
715
|
+
workerPools?: WorkerPool[];
|
|
716
|
+
}
|
|
717
|
+
interface NetworkConfig {
|
|
718
|
+
/** Option to configure network egress for the workers. */
|
|
719
|
+
egressOption?: string;
|
|
720
|
+
/**
|
|
721
|
+
* Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service
|
|
722
|
+
* producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC
|
|
723
|
+
* network in the project. See [Understanding network configuration options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
|
|
724
|
+
*/
|
|
725
|
+
peeredNetwork?: string;
|
|
726
|
+
}
|
|
727
|
+
interface Notification {
|
|
728
|
+
/** The filter string to use for notification filtering. Currently, this is assumed to be a CEL program. See https://opensource.google/projects/cel for more. */
|
|
729
|
+
filter?: string;
|
|
730
|
+
/** Configuration for HTTP delivery. */
|
|
731
|
+
httpDelivery?: HTTPDelivery;
|
|
732
|
+
/** Configuration for Slack delivery. */
|
|
733
|
+
slackDelivery?: SlackDelivery;
|
|
734
|
+
/** Configuration for SMTP (email) delivery. */
|
|
735
|
+
smtpDelivery?: SMTPDelivery;
|
|
736
|
+
/** Escape hatch for users to supply custom delivery configs. */
|
|
737
|
+
structDelivery?: { [P in string]: any };
|
|
738
|
+
}
|
|
739
|
+
interface NotifierConfig {
|
|
740
|
+
/** The API version of this configuration format. */
|
|
741
|
+
apiVersion?: string;
|
|
742
|
+
/** The type of notifier to use (e.g. SMTPNotifier). */
|
|
743
|
+
kind?: string;
|
|
744
|
+
/** Metadata for referring to/handling/deploying this notifier. */
|
|
745
|
+
metadata?: NotifierMetadata;
|
|
746
|
+
/** The actual configuration for this notifier. */
|
|
747
|
+
spec?: NotifierSpec;
|
|
748
|
+
}
|
|
749
|
+
interface NotifierMetadata {
|
|
750
|
+
/** The human-readable and user-given name for the notifier. For example: "repo-merge-email-notifier". */
|
|
751
|
+
name?: string;
|
|
752
|
+
/** The string representing the name and version of notifier to deploy. Expected to be of the form of "/:". For example: "gcr.io/my-project/notifiers/smtp:1.2.34". */
|
|
753
|
+
notifier?: string;
|
|
754
|
+
}
|
|
755
|
+
interface NotifierSecret {
|
|
756
|
+
/** Name is the local name of the secret, such as the verbatim string "my-smtp-password". */
|
|
757
|
+
name?: string;
|
|
758
|
+
/**
|
|
759
|
+
* Value is interpreted to be a resource path for fetching the actual (versioned) secret data for this secret. For example, this would be a Google Cloud Secret Manager secret version
|
|
760
|
+
* resource path like: "projects/my-project/secrets/my-secret/versions/latest".
|
|
761
|
+
*/
|
|
762
|
+
value?: string;
|
|
763
|
+
}
|
|
764
|
+
interface NotifierSecretRef {
|
|
765
|
+
/** The value of `secret_ref` should be a `name` that is registered in a `Secret` in the `secrets` list of the `Spec`. */
|
|
766
|
+
secretRef?: string;
|
|
767
|
+
}
|
|
768
|
+
interface NotifierSpec {
|
|
769
|
+
/** The configuration of this particular notifier. */
|
|
770
|
+
notification?: Notification;
|
|
771
|
+
/** Configurations for secret resources used by this particular notifier. */
|
|
772
|
+
secrets?: NotifierSecret[];
|
|
773
|
+
}
|
|
774
|
+
interface Operation {
|
|
775
|
+
/** 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. */
|
|
776
|
+
done?: boolean;
|
|
777
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
778
|
+
error?: Status;
|
|
779
|
+
/**
|
|
780
|
+
* 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
|
|
781
|
+
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
782
|
+
*/
|
|
783
|
+
metadata?: { [P in string]: any };
|
|
784
|
+
/**
|
|
785
|
+
* 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
|
|
786
|
+
* with `operations/{unique_id}`.
|
|
787
|
+
*/
|
|
788
|
+
name?: string;
|
|
789
|
+
/**
|
|
790
|
+
* 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
|
|
791
|
+
* 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
|
|
792
|
+
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
793
|
+
*/
|
|
794
|
+
response?: { [P in string]: any };
|
|
795
|
+
}
|
|
796
|
+
interface OperationMetadata {
|
|
797
|
+
/** Output only. API version used to start the operation. */
|
|
798
|
+
apiVersion?: string;
|
|
799
|
+
/**
|
|
800
|
+
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a
|
|
801
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
802
|
+
*/
|
|
803
|
+
cancelRequested?: boolean;
|
|
804
|
+
/** Output only. The time the operation was created. */
|
|
805
|
+
createTime?: string;
|
|
806
|
+
/** Output only. The time the operation finished running. */
|
|
807
|
+
endTime?: string;
|
|
808
|
+
/** Output only. Human-readable status of the operation, if any. */
|
|
809
|
+
statusDetail?: string;
|
|
810
|
+
/** Output only. Server-defined resource path for the target of the operation. */
|
|
811
|
+
target?: string;
|
|
812
|
+
/** Output only. Name of the verb executed by the operation. */
|
|
813
|
+
verb?: string;
|
|
814
|
+
}
|
|
815
|
+
interface PoolOption {
|
|
816
|
+
/**
|
|
817
|
+
* The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format
|
|
818
|
+
* projects/{project}/locations/{location}/workerPools/{workerPoolId}
|
|
819
|
+
*/
|
|
820
|
+
name?: string;
|
|
821
|
+
}
|
|
822
|
+
interface PrivatePoolV1Config {
|
|
823
|
+
/** Network configuration for the pool. */
|
|
824
|
+
networkConfig?: NetworkConfig;
|
|
825
|
+
/** Machine configuration for the workers in the pool. */
|
|
826
|
+
workerConfig?: WorkerConfig;
|
|
827
|
+
}
|
|
828
|
+
interface ProcessAppManifestCallbackOperationMetadata {
|
|
829
|
+
/** Time the operation was completed. */
|
|
830
|
+
completeTime?: string;
|
|
831
|
+
/** Time the operation was created. */
|
|
832
|
+
createTime?: string;
|
|
833
|
+
/** The resource name of the GitHubEnterprise to be created. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. */
|
|
834
|
+
githubEnterpriseConfig?: string;
|
|
835
|
+
}
|
|
836
|
+
interface PubsubConfig {
|
|
837
|
+
/** Service account that will make the push request. */
|
|
838
|
+
serviceAccountEmail?: string;
|
|
839
|
+
/** Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests. */
|
|
840
|
+
state?: string;
|
|
841
|
+
/** Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`. */
|
|
842
|
+
subscription?: string;
|
|
843
|
+
/** The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`. */
|
|
844
|
+
topic?: string;
|
|
845
|
+
}
|
|
846
|
+
interface PullRequestFilter {
|
|
847
|
+
/** Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */
|
|
848
|
+
branch?: string;
|
|
849
|
+
/** Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`. */
|
|
850
|
+
commentControl?: string;
|
|
851
|
+
/** If true, branches that do NOT match the git_ref will trigger a build. */
|
|
852
|
+
invertRegex?: boolean;
|
|
853
|
+
}
|
|
854
|
+
interface PushFilter {
|
|
855
|
+
/** Regexes 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 */
|
|
856
|
+
branch?: string;
|
|
857
|
+
/** When true, only trigger a build if the revision regex does NOT match the git_ref regex. */
|
|
858
|
+
invertRegex?: boolean;
|
|
859
|
+
/** Regexes 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 */
|
|
860
|
+
tag?: string;
|
|
861
|
+
}
|
|
862
|
+
// tslint:disable-next-line:no-empty-interface
|
|
863
|
+
interface ReceiveTriggerWebhookResponse {
|
|
864
|
+
}
|
|
865
|
+
interface RemoveBitbucketServerConnectedRepositoryRequest {
|
|
866
|
+
/** The connected repository to remove. */
|
|
867
|
+
connectedRepository?: BitbucketServerRepositoryId;
|
|
868
|
+
}
|
|
869
|
+
interface RepoSource {
|
|
870
|
+
/** 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 */
|
|
871
|
+
branchName?: string;
|
|
872
|
+
/** Explicit commit SHA to build. */
|
|
873
|
+
commitSha?: string;
|
|
874
|
+
/**
|
|
875
|
+
* 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
|
|
876
|
+
* that step's execution.
|
|
877
|
+
*/
|
|
878
|
+
dir?: string;
|
|
879
|
+
/** Only trigger a build if the revision regex does NOT match the revision regex. */
|
|
880
|
+
invertRegex?: boolean;
|
|
881
|
+
/** ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. */
|
|
882
|
+
projectId?: string;
|
|
883
|
+
/** Name of the Cloud Source Repository. */
|
|
884
|
+
repoName?: string;
|
|
885
|
+
/** Substitutions to use in a triggered build. Should only be used with RunBuildTrigger */
|
|
886
|
+
substitutions?: { [P in string]: string };
|
|
887
|
+
/** 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 */
|
|
888
|
+
tagName?: string;
|
|
889
|
+
}
|
|
890
|
+
interface Results {
|
|
891
|
+
/** Path to the artifact manifest. Only populated when artifacts are uploaded. */
|
|
892
|
+
artifactManifest?: string;
|
|
893
|
+
/** Time to push all non-container artifacts. */
|
|
894
|
+
artifactTiming?: TimeSpan;
|
|
895
|
+
/** List of build step digests, in the order corresponding to build step indices. */
|
|
896
|
+
buildStepImages?: string[];
|
|
897
|
+
/**
|
|
898
|
+
* List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
|
|
899
|
+
* can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
|
|
900
|
+
*/
|
|
901
|
+
buildStepOutputs?: string[];
|
|
902
|
+
/** Container images that were built as a part of the build. */
|
|
903
|
+
images?: BuiltImage[];
|
|
904
|
+
/** Number of artifacts uploaded. Only populated when artifacts are uploaded. */
|
|
905
|
+
numArtifacts?: string;
|
|
906
|
+
}
|
|
907
|
+
interface RetryBuildRequest {
|
|
908
|
+
/** Required. Build ID of the original build. */
|
|
909
|
+
id?: string;
|
|
910
|
+
/** The name of the `Build` to retry. Format: `projects/{project}/locations/{location}/builds/{build}` */
|
|
911
|
+
name?: string;
|
|
912
|
+
/** Required. ID of the project. */
|
|
913
|
+
projectId?: string;
|
|
914
|
+
}
|
|
915
|
+
interface RunBuildTriggerRequest {
|
|
916
|
+
/** Required. ID of the project. */
|
|
917
|
+
projectId?: string;
|
|
918
|
+
/** Source to build against this trigger. Branch and tag names cannot consist of regular expressions. */
|
|
919
|
+
source?: RepoSource;
|
|
920
|
+
/** Required. ID of the trigger. */
|
|
921
|
+
triggerId?: string;
|
|
922
|
+
}
|
|
923
|
+
interface RunWorkflowCustomOperationMetadata {
|
|
924
|
+
/** Output only. API version used to start the operation. */
|
|
925
|
+
apiVersion?: string;
|
|
926
|
+
/** Output only. The time the operation was created. */
|
|
927
|
+
createTime?: string;
|
|
928
|
+
/** Output only. The time the operation finished running. */
|
|
929
|
+
endTime?: string;
|
|
930
|
+
/** Output only. ID of the pipeline run created by RunWorkflow. */
|
|
931
|
+
pipelineRunId?: string;
|
|
932
|
+
/**
|
|
933
|
+
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a
|
|
934
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
935
|
+
*/
|
|
936
|
+
requestedCancellation?: boolean;
|
|
937
|
+
/** Output only. Server-defined resource path for the target of the operation. */
|
|
938
|
+
target?: string;
|
|
939
|
+
/** Output only. Name of the verb executed by the operation. */
|
|
940
|
+
verb?: string;
|
|
941
|
+
}
|
|
942
|
+
interface Secret {
|
|
943
|
+
/** Cloud KMS key name to use to decrypt these envs. */
|
|
944
|
+
kmsKeyName?: string;
|
|
945
|
+
/**
|
|
946
|
+
* Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step.
|
|
947
|
+
* Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.
|
|
948
|
+
*/
|
|
949
|
+
secretEnv?: { [P in string]: string };
|
|
950
|
+
}
|
|
951
|
+
interface SecretManagerSecret {
|
|
952
|
+
/** Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. */
|
|
953
|
+
env?: string;
|
|
954
|
+
/** Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/* */
|
|
955
|
+
versionName?: string;
|
|
956
|
+
}
|
|
957
|
+
interface Secrets {
|
|
958
|
+
/** Secrets encrypted with KMS key and the associated secret environment variable. */
|
|
959
|
+
inline?: InlineSecret[];
|
|
960
|
+
/** Secrets in Secret Manager and associated secret environment variable. */
|
|
961
|
+
secretManager?: SecretManagerSecret[];
|
|
962
|
+
}
|
|
963
|
+
interface SlackDelivery {
|
|
964
|
+
/** The secret reference for the Slack webhook URI for sending messages to a channel. */
|
|
965
|
+
webhookUri?: NotifierSecretRef;
|
|
966
|
+
}
|
|
967
|
+
interface SMTPDelivery {
|
|
968
|
+
/** This is the SMTP account/email that appears in the `From:` of the email. If empty, it is assumed to be sender. */
|
|
969
|
+
fromAddress?: string;
|
|
970
|
+
/** The SMTP sender's password. */
|
|
971
|
+
password?: NotifierSecretRef;
|
|
972
|
+
/** The SMTP port of the server. */
|
|
973
|
+
port?: string;
|
|
974
|
+
/** This is the list of addresses to which we send the email (i.e. in the `To:` of the email). */
|
|
975
|
+
recipientAddresses?: string[];
|
|
976
|
+
/** This is the SMTP account/email that is used to send the message. */
|
|
977
|
+
senderAddress?: string;
|
|
978
|
+
/** The address of the SMTP server. */
|
|
979
|
+
server?: string;
|
|
980
|
+
}
|
|
981
|
+
interface Source {
|
|
982
|
+
/** If provided, get the source from this location in a Cloud Source Repository. */
|
|
983
|
+
repoSource?: RepoSource;
|
|
984
|
+
/** If provided, get the source from this location in Google Cloud Storage. */
|
|
985
|
+
storageSource?: StorageSource;
|
|
986
|
+
/**
|
|
987
|
+
* If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description
|
|
988
|
+
* [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
|
|
989
|
+
*/
|
|
990
|
+
storageSourceManifest?: StorageSourceManifest;
|
|
991
|
+
}
|
|
992
|
+
interface SourceProvenance {
|
|
993
|
+
/**
|
|
994
|
+
* Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated
|
|
995
|
+
* if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the
|
|
996
|
+
* build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
|
|
997
|
+
*/
|
|
998
|
+
fileHashes?: { [P in string]: FileHashes };
|
|
999
|
+
/** A copy of the build's `source.repo_source`, if exists, with any revisions resolved. */
|
|
1000
|
+
resolvedRepoSource?: RepoSource;
|
|
1001
|
+
/** A copy of the build's `source.storage_source`, if exists, with any generations resolved. */
|
|
1002
|
+
resolvedStorageSource?: StorageSource;
|
|
1003
|
+
/** A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview. */
|
|
1004
|
+
resolvedStorageSourceManifest?: StorageSourceManifest;
|
|
1005
|
+
}
|
|
1006
|
+
interface Status {
|
|
1007
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1008
|
+
code?: number;
|
|
1009
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1010
|
+
details?: Array<{ [P in string]: any }>;
|
|
1011
|
+
/**
|
|
1012
|
+
* 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
|
|
1013
|
+
* client.
|
|
1014
|
+
*/
|
|
1015
|
+
message?: string;
|
|
1016
|
+
}
|
|
1017
|
+
interface StorageSource {
|
|
1018
|
+
/** Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
|
|
1019
|
+
bucket?: string;
|
|
1020
|
+
/** Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. */
|
|
1021
|
+
generation?: string;
|
|
1022
|
+
/** Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build. */
|
|
1023
|
+
object?: string;
|
|
1024
|
+
}
|
|
1025
|
+
interface StorageSourceManifest {
|
|
1026
|
+
/** Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
|
|
1027
|
+
bucket?: string;
|
|
1028
|
+
/** Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. */
|
|
1029
|
+
generation?: string;
|
|
1030
|
+
/** Google Cloud Storage object containing the source manifest. This object must be a JSON file. */
|
|
1031
|
+
object?: string;
|
|
1032
|
+
}
|
|
1033
|
+
interface TimeSpan {
|
|
1034
|
+
/** End of time span. */
|
|
1035
|
+
endTime?: string;
|
|
1036
|
+
/** Start of time span. */
|
|
1037
|
+
startTime?: string;
|
|
1038
|
+
}
|
|
1039
|
+
interface UpdateBitbucketServerConfigOperationMetadata {
|
|
1040
|
+
/** The resource name of the BitbucketServerConfig to be updated. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. */
|
|
1041
|
+
bitbucketServerConfig?: string;
|
|
1042
|
+
/** Time the operation was completed. */
|
|
1043
|
+
completeTime?: string;
|
|
1044
|
+
/** Time the operation was created. */
|
|
1045
|
+
createTime?: string;
|
|
1046
|
+
}
|
|
1047
|
+
interface UpdateGitHubEnterpriseConfigOperationMetadata {
|
|
1048
|
+
/** Time the operation was completed. */
|
|
1049
|
+
completeTime?: string;
|
|
1050
|
+
/** Time the operation was created. */
|
|
1051
|
+
createTime?: string;
|
|
1052
|
+
/** The resource name of the GitHubEnterprise to be updated. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. */
|
|
1053
|
+
githubEnterpriseConfig?: string;
|
|
1054
|
+
}
|
|
1055
|
+
interface UpdateWorkerPoolOperationMetadata {
|
|
1056
|
+
/** Time the operation was completed. */
|
|
1057
|
+
completeTime?: string;
|
|
1058
|
+
/** Time the operation was created. */
|
|
1059
|
+
createTime?: string;
|
|
1060
|
+
/** The resource name of the `WorkerPool` being updated. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`. */
|
|
1061
|
+
workerPool?: string;
|
|
1062
|
+
}
|
|
1063
|
+
interface Volume {
|
|
1064
|
+
/** Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps. */
|
|
1065
|
+
name?: string;
|
|
1066
|
+
/** Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths. */
|
|
1067
|
+
path?: string;
|
|
1068
|
+
}
|
|
1069
|
+
interface Warning {
|
|
1070
|
+
/** The priority for this warning. */
|
|
1071
|
+
priority?: string;
|
|
1072
|
+
/** Explanation of the warning generated. */
|
|
1073
|
+
text?: string;
|
|
1074
|
+
}
|
|
1075
|
+
interface WebhookConfig {
|
|
1076
|
+
/** Required. Resource name for the secret required as a URL parameter. */
|
|
1077
|
+
secret?: string;
|
|
1078
|
+
/** Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests. */
|
|
1079
|
+
state?: string;
|
|
1080
|
+
}
|
|
1081
|
+
interface WorkerConfig {
|
|
1082
|
+
/**
|
|
1083
|
+
* Size of the disk attached to the worker, in GB. See [Worker pool config file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). Specify a value of
|
|
1084
|
+
* up to 1000. If `0` is specified, Cloud Build will use a standard disk size.
|
|
1085
|
+
*/
|
|
1086
|
+
diskSizeGb?: string;
|
|
1087
|
+
/**
|
|
1088
|
+
* Machine type of a worker, such as `e2-medium`. See [Worker pool config file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). If left blank, Cloud
|
|
1089
|
+
* Build will use a sensible default.
|
|
1090
|
+
*/
|
|
1091
|
+
machineType?: string;
|
|
1092
|
+
}
|
|
1093
|
+
interface WorkerPool {
|
|
1094
|
+
/** User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations. */
|
|
1095
|
+
annotations?: { [P in string]: string };
|
|
1096
|
+
/** Output only. Time at which the request to create the `WorkerPool` was received. */
|
|
1097
|
+
createTime?: string;
|
|
1098
|
+
/** Output only. Time at which the request to delete the `WorkerPool` was received. */
|
|
1099
|
+
deleteTime?: string;
|
|
1100
|
+
/** A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters. */
|
|
1101
|
+
displayName?: string;
|
|
1102
|
+
/** Output only. Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding. */
|
|
1103
|
+
etag?: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* Output only. The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by
|
|
1106
|
+
* `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.
|
|
1107
|
+
*/
|
|
1108
|
+
name?: string;
|
|
1109
|
+
/** Legacy Private Pool configuration. */
|
|
1110
|
+
privatePoolV1Config?: PrivatePoolV1Config;
|
|
1111
|
+
/** Output only. `WorkerPool` state. */
|
|
1112
|
+
state?: string;
|
|
1113
|
+
/** Output only. A unique identifier for the `WorkerPool`. */
|
|
1114
|
+
uid?: string;
|
|
1115
|
+
/** Output only. Time at which the request to update the `WorkerPool` was received. */
|
|
1116
|
+
updateTime?: string;
|
|
1117
|
+
}
|
|
1118
|
+
interface LocationsResource {
|
|
1119
|
+
/** ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook. */
|
|
1120
|
+
regionalWebhook(request: {
|
|
1121
|
+
/** V1 error format. */
|
|
1122
|
+
"$.xgafv"?: string;
|
|
1123
|
+
/** OAuth access token. */
|
|
1124
|
+
access_token?: string;
|
|
1125
|
+
/** Data format for response. */
|
|
1126
|
+
alt?: string;
|
|
1127
|
+
/** JSONP */
|
|
1128
|
+
callback?: string;
|
|
1129
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1130
|
+
fields?: string;
|
|
1131
|
+
/** 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. */
|
|
1132
|
+
key?: string;
|
|
1133
|
+
/** Required. The location where the webhook should be sent. */
|
|
1134
|
+
location: string;
|
|
1135
|
+
/** OAuth 2.0 token for the current user. */
|
|
1136
|
+
oauth_token?: string;
|
|
1137
|
+
/** Returns response with indentations and line breaks. */
|
|
1138
|
+
prettyPrint?: boolean;
|
|
1139
|
+
/** 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. */
|
|
1140
|
+
quotaUser?: string;
|
|
1141
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1142
|
+
upload_protocol?: string;
|
|
1143
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1144
|
+
uploadType?: string;
|
|
1145
|
+
/** For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation. */
|
|
1146
|
+
webhookKey?: string;
|
|
1147
|
+
/** Request body */
|
|
1148
|
+
resource: HttpBody;
|
|
1149
|
+
}): Request<{}>;
|
|
1150
|
+
regionalWebhook(request: {
|
|
1151
|
+
/** V1 error format. */
|
|
1152
|
+
"$.xgafv"?: string;
|
|
1153
|
+
/** OAuth access token. */
|
|
1154
|
+
access_token?: string;
|
|
1155
|
+
/** Data format for response. */
|
|
1156
|
+
alt?: string;
|
|
1157
|
+
/** JSONP */
|
|
1158
|
+
callback?: string;
|
|
1159
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1160
|
+
fields?: string;
|
|
1161
|
+
/** 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. */
|
|
1162
|
+
key?: string;
|
|
1163
|
+
/** Required. The location where the webhook should be sent. */
|
|
1164
|
+
location: string;
|
|
1165
|
+
/** OAuth 2.0 token for the current user. */
|
|
1166
|
+
oauth_token?: string;
|
|
1167
|
+
/** Returns response with indentations and line breaks. */
|
|
1168
|
+
prettyPrint?: boolean;
|
|
1169
|
+
/** 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. */
|
|
1170
|
+
quotaUser?: string;
|
|
1171
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1172
|
+
upload_protocol?: string;
|
|
1173
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1174
|
+
uploadType?: string;
|
|
1175
|
+
/** For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation. */
|
|
1176
|
+
webhookKey?: string;
|
|
1177
|
+
},
|
|
1178
|
+
body: HttpBody): Request<{}>;
|
|
1179
|
+
}
|
|
1180
|
+
interface OperationsResource {
|
|
1181
|
+
/**
|
|
1182
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
|
|
1183
|
+
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
|
|
1184
|
+
* operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
|
|
1185
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
1186
|
+
*/
|
|
1187
|
+
cancel(request: {
|
|
1188
|
+
/** V1 error format. */
|
|
1189
|
+
"$.xgafv"?: string;
|
|
1190
|
+
/** OAuth access token. */
|
|
1191
|
+
access_token?: string;
|
|
1192
|
+
/** Data format for response. */
|
|
1193
|
+
alt?: string;
|
|
1194
|
+
/** JSONP */
|
|
1195
|
+
callback?: string;
|
|
1196
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1197
|
+
fields?: string;
|
|
1198
|
+
/** 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. */
|
|
1199
|
+
key?: string;
|
|
1200
|
+
/** The name of the operation resource to be cancelled. */
|
|
1201
|
+
name: string;
|
|
1202
|
+
/** OAuth 2.0 token for the current user. */
|
|
1203
|
+
oauth_token?: string;
|
|
1204
|
+
/** Returns response with indentations and line breaks. */
|
|
1205
|
+
prettyPrint?: boolean;
|
|
1206
|
+
/** 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. */
|
|
1207
|
+
quotaUser?: string;
|
|
1208
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1209
|
+
upload_protocol?: string;
|
|
1210
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1211
|
+
uploadType?: string;
|
|
1212
|
+
/** Request body */
|
|
1213
|
+
resource: CancelOperationRequest;
|
|
1214
|
+
}): Request<{}>;
|
|
1215
|
+
cancel(request: {
|
|
1216
|
+
/** V1 error format. */
|
|
1217
|
+
"$.xgafv"?: string;
|
|
1218
|
+
/** OAuth access token. */
|
|
1219
|
+
access_token?: string;
|
|
1220
|
+
/** Data format for response. */
|
|
1221
|
+
alt?: string;
|
|
1222
|
+
/** JSONP */
|
|
1223
|
+
callback?: string;
|
|
1224
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1225
|
+
fields?: string;
|
|
1226
|
+
/** 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. */
|
|
1227
|
+
key?: string;
|
|
1228
|
+
/** The name of the operation resource to be cancelled. */
|
|
1229
|
+
name: string;
|
|
1230
|
+
/** OAuth 2.0 token for the current user. */
|
|
1231
|
+
oauth_token?: string;
|
|
1232
|
+
/** Returns response with indentations and line breaks. */
|
|
1233
|
+
prettyPrint?: boolean;
|
|
1234
|
+
/** 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. */
|
|
1235
|
+
quotaUser?: string;
|
|
1236
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1237
|
+
upload_protocol?: string;
|
|
1238
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1239
|
+
uploadType?: string;
|
|
1240
|
+
},
|
|
1241
|
+
body: CancelOperationRequest): Request<{}>;
|
|
1242
|
+
/** 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. */
|
|
1243
|
+
get(request?: {
|
|
1244
|
+
/** V1 error format. */
|
|
1245
|
+
"$.xgafv"?: string;
|
|
1246
|
+
/** OAuth access token. */
|
|
1247
|
+
access_token?: string;
|
|
1248
|
+
/** Data format for response. */
|
|
1249
|
+
alt?: string;
|
|
1250
|
+
/** JSONP */
|
|
1251
|
+
callback?: string;
|
|
1252
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1253
|
+
fields?: string;
|
|
1254
|
+
/** 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. */
|
|
1255
|
+
key?: string;
|
|
1256
|
+
/** The name of the operation resource. */
|
|
1257
|
+
name: string;
|
|
1258
|
+
/** OAuth 2.0 token for the current user. */
|
|
1259
|
+
oauth_token?: string;
|
|
1260
|
+
/** Returns response with indentations and line breaks. */
|
|
1261
|
+
prettyPrint?: boolean;
|
|
1262
|
+
/** 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. */
|
|
1263
|
+
quotaUser?: string;
|
|
1264
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1265
|
+
upload_protocol?: string;
|
|
1266
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1267
|
+
uploadType?: string;
|
|
1268
|
+
}): Request<Operation>;
|
|
1269
|
+
}
|
|
1270
|
+
interface BuildsResource {
|
|
1271
|
+
/**
|
|
1272
|
+
* Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately
|
|
1273
|
+
* done.
|
|
1274
|
+
*/
|
|
1275
|
+
approve(request: {
|
|
1276
|
+
/** V1 error format. */
|
|
1277
|
+
"$.xgafv"?: string;
|
|
1278
|
+
/** OAuth access token. */
|
|
1279
|
+
access_token?: string;
|
|
1280
|
+
/** Data format for response. */
|
|
1281
|
+
alt?: string;
|
|
1282
|
+
/** JSONP */
|
|
1283
|
+
callback?: string;
|
|
1284
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1285
|
+
fields?: string;
|
|
1286
|
+
/** 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. */
|
|
1287
|
+
key?: string;
|
|
1288
|
+
/** Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}" */
|
|
1289
|
+
name: string;
|
|
1290
|
+
/** OAuth 2.0 token for the current user. */
|
|
1291
|
+
oauth_token?: string;
|
|
1292
|
+
/** Returns response with indentations and line breaks. */
|
|
1293
|
+
prettyPrint?: boolean;
|
|
1294
|
+
/** 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. */
|
|
1295
|
+
quotaUser?: string;
|
|
1296
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1297
|
+
upload_protocol?: string;
|
|
1298
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1299
|
+
uploadType?: string;
|
|
1300
|
+
/** Request body */
|
|
1301
|
+
resource: ApproveBuildRequest;
|
|
1302
|
+
}): Request<Operation>;
|
|
1303
|
+
approve(request: {
|
|
1304
|
+
/** V1 error format. */
|
|
1305
|
+
"$.xgafv"?: string;
|
|
1306
|
+
/** OAuth access token. */
|
|
1307
|
+
access_token?: string;
|
|
1308
|
+
/** Data format for response. */
|
|
1309
|
+
alt?: string;
|
|
1310
|
+
/** JSONP */
|
|
1311
|
+
callback?: string;
|
|
1312
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1313
|
+
fields?: string;
|
|
1314
|
+
/** 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. */
|
|
1315
|
+
key?: string;
|
|
1316
|
+
/** Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}" */
|
|
1317
|
+
name: string;
|
|
1318
|
+
/** OAuth 2.0 token for the current user. */
|
|
1319
|
+
oauth_token?: string;
|
|
1320
|
+
/** Returns response with indentations and line breaks. */
|
|
1321
|
+
prettyPrint?: boolean;
|
|
1322
|
+
/** 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. */
|
|
1323
|
+
quotaUser?: string;
|
|
1324
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1325
|
+
upload_protocol?: string;
|
|
1326
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1327
|
+
uploadType?: string;
|
|
1328
|
+
},
|
|
1329
|
+
body: ApproveBuildRequest): Request<Operation>;
|
|
1330
|
+
/** Cancels a build in progress. */
|
|
1331
|
+
cancel(request: {
|
|
1332
|
+
/** V1 error format. */
|
|
1333
|
+
"$.xgafv"?: string;
|
|
1334
|
+
/** OAuth access token. */
|
|
1335
|
+
access_token?: string;
|
|
1336
|
+
/** Data format for response. */
|
|
1337
|
+
alt?: string;
|
|
1338
|
+
/** JSONP */
|
|
1339
|
+
callback?: string;
|
|
1340
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1341
|
+
fields?: string;
|
|
1342
|
+
/** Required. ID of the build. */
|
|
1343
|
+
id: string;
|
|
1344
|
+
/** 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. */
|
|
1345
|
+
key?: string;
|
|
1346
|
+
/** OAuth 2.0 token for the current user. */
|
|
1347
|
+
oauth_token?: string;
|
|
1348
|
+
/** Returns response with indentations and line breaks. */
|
|
1349
|
+
prettyPrint?: boolean;
|
|
1350
|
+
/** Required. ID of the project. */
|
|
1351
|
+
projectId: string;
|
|
1352
|
+
/** 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. */
|
|
1353
|
+
quotaUser?: string;
|
|
1354
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1355
|
+
upload_protocol?: string;
|
|
1356
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1357
|
+
uploadType?: string;
|
|
1358
|
+
/** Request body */
|
|
1359
|
+
resource: CancelBuildRequest;
|
|
1360
|
+
}): Request<Build>;
|
|
1361
|
+
cancel(request: {
|
|
1362
|
+
/** V1 error format. */
|
|
1363
|
+
"$.xgafv"?: string;
|
|
1364
|
+
/** OAuth access token. */
|
|
1365
|
+
access_token?: string;
|
|
1366
|
+
/** Data format for response. */
|
|
1367
|
+
alt?: string;
|
|
1368
|
+
/** JSONP */
|
|
1369
|
+
callback?: string;
|
|
1370
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1371
|
+
fields?: string;
|
|
1372
|
+
/** Required. ID of the build. */
|
|
1373
|
+
id: string;
|
|
1374
|
+
/** 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. */
|
|
1375
|
+
key?: string;
|
|
1376
|
+
/** OAuth 2.0 token for the current user. */
|
|
1377
|
+
oauth_token?: string;
|
|
1378
|
+
/** Returns response with indentations and line breaks. */
|
|
1379
|
+
prettyPrint?: boolean;
|
|
1380
|
+
/** Required. ID of the project. */
|
|
1381
|
+
projectId: string;
|
|
1382
|
+
/** 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. */
|
|
1383
|
+
quotaUser?: string;
|
|
1384
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1385
|
+
upload_protocol?: string;
|
|
1386
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1387
|
+
uploadType?: string;
|
|
1388
|
+
},
|
|
1389
|
+
body: CancelBuildRequest): Request<Build>;
|
|
1390
|
+
/**
|
|
1391
|
+
* Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build
|
|
1392
|
+
* status (such as `SUCCESS` or `FAILURE`).
|
|
1393
|
+
*/
|
|
1394
|
+
create(request: {
|
|
1395
|
+
/** V1 error format. */
|
|
1396
|
+
"$.xgafv"?: string;
|
|
1397
|
+
/** OAuth access token. */
|
|
1398
|
+
access_token?: string;
|
|
1399
|
+
/** Data format for response. */
|
|
1400
|
+
alt?: string;
|
|
1401
|
+
/** JSONP */
|
|
1402
|
+
callback?: string;
|
|
1403
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1404
|
+
fields?: string;
|
|
1405
|
+
/** 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. */
|
|
1406
|
+
key?: string;
|
|
1407
|
+
/** OAuth 2.0 token for the current user. */
|
|
1408
|
+
oauth_token?: string;
|
|
1409
|
+
/** The parent resource where this build will be created. Format: `projects/{project}/locations/{location}` */
|
|
1410
|
+
parent?: string;
|
|
1411
|
+
/** Returns response with indentations and line breaks. */
|
|
1412
|
+
prettyPrint?: boolean;
|
|
1413
|
+
/** Required. ID of the project. */
|
|
1414
|
+
projectId: string;
|
|
1415
|
+
/** 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. */
|
|
1416
|
+
quotaUser?: string;
|
|
1417
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1418
|
+
upload_protocol?: string;
|
|
1419
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1420
|
+
uploadType?: string;
|
|
1421
|
+
/** Request body */
|
|
1422
|
+
resource: Build;
|
|
1423
|
+
}): Request<Operation>;
|
|
1424
|
+
create(request: {
|
|
1425
|
+
/** V1 error format. */
|
|
1426
|
+
"$.xgafv"?: string;
|
|
1427
|
+
/** OAuth access token. */
|
|
1428
|
+
access_token?: string;
|
|
1429
|
+
/** Data format for response. */
|
|
1430
|
+
alt?: string;
|
|
1431
|
+
/** JSONP */
|
|
1432
|
+
callback?: string;
|
|
1433
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1434
|
+
fields?: string;
|
|
1435
|
+
/** 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. */
|
|
1436
|
+
key?: string;
|
|
1437
|
+
/** OAuth 2.0 token for the current user. */
|
|
1438
|
+
oauth_token?: string;
|
|
1439
|
+
/** The parent resource where this build will be created. Format: `projects/{project}/locations/{location}` */
|
|
1440
|
+
parent?: string;
|
|
1441
|
+
/** Returns response with indentations and line breaks. */
|
|
1442
|
+
prettyPrint?: boolean;
|
|
1443
|
+
/** Required. ID of the project. */
|
|
1444
|
+
projectId: string;
|
|
1445
|
+
/** 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. */
|
|
1446
|
+
quotaUser?: string;
|
|
1447
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1448
|
+
upload_protocol?: string;
|
|
1449
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1450
|
+
uploadType?: string;
|
|
1451
|
+
},
|
|
1452
|
+
body: Build): Request<Operation>;
|
|
1453
|
+
/** Returns information about a previously requested build. The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and timing information. */
|
|
1454
|
+
get(request?: {
|
|
1455
|
+
/** V1 error format. */
|
|
1456
|
+
"$.xgafv"?: string;
|
|
1457
|
+
/** OAuth access token. */
|
|
1458
|
+
access_token?: string;
|
|
1459
|
+
/** Data format for response. */
|
|
1460
|
+
alt?: string;
|
|
1461
|
+
/** JSONP */
|
|
1462
|
+
callback?: string;
|
|
1463
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1464
|
+
fields?: string;
|
|
1465
|
+
/** Required. ID of the build. */
|
|
1466
|
+
id: string;
|
|
1467
|
+
/** 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. */
|
|
1468
|
+
key?: string;
|
|
1469
|
+
/** The name of the `Build` to retrieve. Format: `projects/{project}/locations/{location}/builds/{build}` */
|
|
1470
|
+
name?: string;
|
|
1471
|
+
/** OAuth 2.0 token for the current user. */
|
|
1472
|
+
oauth_token?: string;
|
|
1473
|
+
/** Returns response with indentations and line breaks. */
|
|
1474
|
+
prettyPrint?: boolean;
|
|
1475
|
+
/** Required. ID of the project. */
|
|
1476
|
+
projectId: string;
|
|
1477
|
+
/** 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. */
|
|
1478
|
+
quotaUser?: string;
|
|
1479
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1480
|
+
upload_protocol?: string;
|
|
1481
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1482
|
+
uploadType?: string;
|
|
1483
|
+
}): Request<Build>;
|
|
1484
|
+
/** Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully. */
|
|
1485
|
+
list(request?: {
|
|
1486
|
+
/** V1 error format. */
|
|
1487
|
+
"$.xgafv"?: string;
|
|
1488
|
+
/** OAuth access token. */
|
|
1489
|
+
access_token?: string;
|
|
1490
|
+
/** Data format for response. */
|
|
1491
|
+
alt?: string;
|
|
1492
|
+
/** JSONP */
|
|
1493
|
+
callback?: string;
|
|
1494
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1495
|
+
fields?: string;
|
|
1496
|
+
/** The raw filter text to constrain the results. */
|
|
1497
|
+
filter?: string;
|
|
1498
|
+
/** 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. */
|
|
1499
|
+
key?: string;
|
|
1500
|
+
/** OAuth 2.0 token for the current user. */
|
|
1501
|
+
oauth_token?: string;
|
|
1502
|
+
/** Number of results to return in the list. */
|
|
1503
|
+
pageSize?: number;
|
|
1504
|
+
/**
|
|
1505
|
+
* The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In
|
|
1506
|
+
* this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more.
|
|
1507
|
+
*/
|
|
1508
|
+
pageToken?: string;
|
|
1509
|
+
/** The parent of the collection of `Builds`. Format: `projects/{project}/locations/{location}` */
|
|
1510
|
+
parent?: string;
|
|
1511
|
+
/** Returns response with indentations and line breaks. */
|
|
1512
|
+
prettyPrint?: boolean;
|
|
1513
|
+
/** Required. ID of the project. */
|
|
1514
|
+
projectId: string;
|
|
1515
|
+
/** 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. */
|
|
1516
|
+
quotaUser?: string;
|
|
1517
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1518
|
+
upload_protocol?: string;
|
|
1519
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1520
|
+
uploadType?: string;
|
|
1521
|
+
}): Request<ListBuildsResponse>;
|
|
1522
|
+
/**
|
|
1523
|
+
* Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered
|
|
1524
|
+
* builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that
|
|
1525
|
+
* specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the
|
|
1526
|
+
* original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the
|
|
1527
|
+
* original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the
|
|
1528
|
+
* original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which
|
|
1529
|
+
* may or may not be available depending on the bucket's lifecycle management settings.
|
|
1530
|
+
*/
|
|
1531
|
+
retry(request: {
|
|
1532
|
+
/** V1 error format. */
|
|
1533
|
+
"$.xgafv"?: string;
|
|
1534
|
+
/** OAuth access token. */
|
|
1535
|
+
access_token?: string;
|
|
1536
|
+
/** Data format for response. */
|
|
1537
|
+
alt?: string;
|
|
1538
|
+
/** JSONP */
|
|
1539
|
+
callback?: string;
|
|
1540
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1541
|
+
fields?: string;
|
|
1542
|
+
/** Required. Build ID of the original build. */
|
|
1543
|
+
id: string;
|
|
1544
|
+
/** 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. */
|
|
1545
|
+
key?: string;
|
|
1546
|
+
/** OAuth 2.0 token for the current user. */
|
|
1547
|
+
oauth_token?: string;
|
|
1548
|
+
/** Returns response with indentations and line breaks. */
|
|
1549
|
+
prettyPrint?: boolean;
|
|
1550
|
+
/** Required. ID of the project. */
|
|
1551
|
+
projectId: string;
|
|
1552
|
+
/** 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. */
|
|
1553
|
+
quotaUser?: string;
|
|
1554
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1555
|
+
upload_protocol?: string;
|
|
1556
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1557
|
+
uploadType?: string;
|
|
1558
|
+
/** Request body */
|
|
1559
|
+
resource: RetryBuildRequest;
|
|
1560
|
+
}): Request<Operation>;
|
|
1561
|
+
retry(request: {
|
|
1562
|
+
/** V1 error format. */
|
|
1563
|
+
"$.xgafv"?: string;
|
|
1564
|
+
/** OAuth access token. */
|
|
1565
|
+
access_token?: string;
|
|
1566
|
+
/** Data format for response. */
|
|
1567
|
+
alt?: string;
|
|
1568
|
+
/** JSONP */
|
|
1569
|
+
callback?: string;
|
|
1570
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1571
|
+
fields?: string;
|
|
1572
|
+
/** Required. Build ID of the original build. */
|
|
1573
|
+
id: string;
|
|
1574
|
+
/** 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. */
|
|
1575
|
+
key?: string;
|
|
1576
|
+
/** OAuth 2.0 token for the current user. */
|
|
1577
|
+
oauth_token?: string;
|
|
1578
|
+
/** Returns response with indentations and line breaks. */
|
|
1579
|
+
prettyPrint?: boolean;
|
|
1580
|
+
/** Required. ID of the project. */
|
|
1581
|
+
projectId: string;
|
|
1582
|
+
/** 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. */
|
|
1583
|
+
quotaUser?: string;
|
|
1584
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1585
|
+
upload_protocol?: string;
|
|
1586
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1587
|
+
uploadType?: string;
|
|
1588
|
+
},
|
|
1589
|
+
body: RetryBuildRequest): Request<Operation>;
|
|
1590
|
+
}
|
|
1591
|
+
interface GithubEnterpriseConfigsResource {
|
|
1592
|
+
/** Create an association between a GCP project and a GitHub Enterprise server. */
|
|
1593
|
+
create(request: {
|
|
1594
|
+
/** V1 error format. */
|
|
1595
|
+
"$.xgafv"?: string;
|
|
1596
|
+
/** OAuth access token. */
|
|
1597
|
+
access_token?: string;
|
|
1598
|
+
/** Data format for response. */
|
|
1599
|
+
alt?: string;
|
|
1600
|
+
/** JSONP */
|
|
1601
|
+
callback?: string;
|
|
1602
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1603
|
+
fields?: string;
|
|
1604
|
+
/**
|
|
1605
|
+
* Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name. ghe_config_id must meet the
|
|
1606
|
+
* following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
|
|
1607
|
+
*/
|
|
1608
|
+
gheConfigId?: string;
|
|
1609
|
+
/** 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. */
|
|
1610
|
+
key?: string;
|
|
1611
|
+
/** OAuth 2.0 token for the current user. */
|
|
1612
|
+
oauth_token?: string;
|
|
1613
|
+
/** Name of the parent project. For example: projects/{$project_number} or projects/{$project_id} */
|
|
1614
|
+
parent: string;
|
|
1615
|
+
/** Returns response with indentations and line breaks. */
|
|
1616
|
+
prettyPrint?: boolean;
|
|
1617
|
+
/** ID of the project. */
|
|
1618
|
+
projectId?: string;
|
|
1619
|
+
/** 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. */
|
|
1620
|
+
quotaUser?: string;
|
|
1621
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1622
|
+
upload_protocol?: string;
|
|
1623
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1624
|
+
uploadType?: string;
|
|
1625
|
+
/** Request body */
|
|
1626
|
+
resource: GitHubEnterpriseConfig;
|
|
1627
|
+
}): Request<Operation>;
|
|
1628
|
+
create(request: {
|
|
1629
|
+
/** V1 error format. */
|
|
1630
|
+
"$.xgafv"?: string;
|
|
1631
|
+
/** OAuth access token. */
|
|
1632
|
+
access_token?: string;
|
|
1633
|
+
/** Data format for response. */
|
|
1634
|
+
alt?: string;
|
|
1635
|
+
/** JSONP */
|
|
1636
|
+
callback?: string;
|
|
1637
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1638
|
+
fields?: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name. ghe_config_id must meet the
|
|
1641
|
+
* following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
|
|
1642
|
+
*/
|
|
1643
|
+
gheConfigId?: string;
|
|
1644
|
+
/** 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. */
|
|
1645
|
+
key?: string;
|
|
1646
|
+
/** OAuth 2.0 token for the current user. */
|
|
1647
|
+
oauth_token?: string;
|
|
1648
|
+
/** Name of the parent project. For example: projects/{$project_number} or projects/{$project_id} */
|
|
1649
|
+
parent: string;
|
|
1650
|
+
/** Returns response with indentations and line breaks. */
|
|
1651
|
+
prettyPrint?: boolean;
|
|
1652
|
+
/** ID of the project. */
|
|
1653
|
+
projectId?: string;
|
|
1654
|
+
/** 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. */
|
|
1655
|
+
quotaUser?: string;
|
|
1656
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1657
|
+
upload_protocol?: string;
|
|
1658
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1659
|
+
uploadType?: string;
|
|
1660
|
+
},
|
|
1661
|
+
body: GitHubEnterpriseConfig): Request<Operation>;
|
|
1662
|
+
/** Delete an association between a GCP project and a GitHub Enterprise server. */
|
|
1663
|
+
delete(request?: {
|
|
1664
|
+
/** V1 error format. */
|
|
1665
|
+
"$.xgafv"?: string;
|
|
1666
|
+
/** OAuth access token. */
|
|
1667
|
+
access_token?: string;
|
|
1668
|
+
/** Data format for response. */
|
|
1669
|
+
alt?: string;
|
|
1670
|
+
/** JSONP */
|
|
1671
|
+
callback?: string;
|
|
1672
|
+
/** Unique identifier of the `GitHubEnterpriseConfig` */
|
|
1673
|
+
configId?: string;
|
|
1674
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1675
|
+
fields?: string;
|
|
1676
|
+
/** 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. */
|
|
1677
|
+
key?: string;
|
|
1678
|
+
/** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
|
|
1679
|
+
name: string;
|
|
1680
|
+
/** OAuth 2.0 token for the current user. */
|
|
1681
|
+
oauth_token?: string;
|
|
1682
|
+
/** Returns response with indentations and line breaks. */
|
|
1683
|
+
prettyPrint?: boolean;
|
|
1684
|
+
/** ID of the project */
|
|
1685
|
+
projectId?: string;
|
|
1686
|
+
/** 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. */
|
|
1687
|
+
quotaUser?: string;
|
|
1688
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1689
|
+
upload_protocol?: string;
|
|
1690
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1691
|
+
uploadType?: string;
|
|
1692
|
+
}): Request<Operation>;
|
|
1693
|
+
/** Retrieve a GitHubEnterpriseConfig. */
|
|
1694
|
+
get(request?: {
|
|
1695
|
+
/** V1 error format. */
|
|
1696
|
+
"$.xgafv"?: string;
|
|
1697
|
+
/** OAuth access token. */
|
|
1698
|
+
access_token?: string;
|
|
1699
|
+
/** Data format for response. */
|
|
1700
|
+
alt?: string;
|
|
1701
|
+
/** JSONP */
|
|
1702
|
+
callback?: string;
|
|
1703
|
+
/** Unique identifier of the `GitHubEnterpriseConfig` */
|
|
1704
|
+
configId?: string;
|
|
1705
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1706
|
+
fields?: string;
|
|
1707
|
+
/** 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. */
|
|
1708
|
+
key?: string;
|
|
1709
|
+
/** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
|
|
1710
|
+
name: string;
|
|
1711
|
+
/** OAuth 2.0 token for the current user. */
|
|
1712
|
+
oauth_token?: string;
|
|
1713
|
+
/** Returns response with indentations and line breaks. */
|
|
1714
|
+
prettyPrint?: boolean;
|
|
1715
|
+
/** ID of the project */
|
|
1716
|
+
projectId?: string;
|
|
1717
|
+
/** 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. */
|
|
1718
|
+
quotaUser?: string;
|
|
1719
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1720
|
+
upload_protocol?: string;
|
|
1721
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1722
|
+
uploadType?: string;
|
|
1723
|
+
}): Request<GitHubEnterpriseConfig>;
|
|
1724
|
+
/** List all GitHubEnterpriseConfigs for a given project. */
|
|
1725
|
+
list(request?: {
|
|
1726
|
+
/** V1 error format. */
|
|
1727
|
+
"$.xgafv"?: string;
|
|
1728
|
+
/** OAuth access token. */
|
|
1729
|
+
access_token?: string;
|
|
1730
|
+
/** Data format for response. */
|
|
1731
|
+
alt?: string;
|
|
1732
|
+
/** JSONP */
|
|
1733
|
+
callback?: string;
|
|
1734
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1735
|
+
fields?: string;
|
|
1736
|
+
/** 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. */
|
|
1737
|
+
key?: string;
|
|
1738
|
+
/** OAuth 2.0 token for the current user. */
|
|
1739
|
+
oauth_token?: string;
|
|
1740
|
+
/** Name of the parent project. For example: projects/{$project_number} or projects/{$project_id} */
|
|
1741
|
+
parent: string;
|
|
1742
|
+
/** Returns response with indentations and line breaks. */
|
|
1743
|
+
prettyPrint?: boolean;
|
|
1744
|
+
/** ID of the project */
|
|
1745
|
+
projectId?: string;
|
|
1746
|
+
/** 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. */
|
|
1747
|
+
quotaUser?: string;
|
|
1748
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1749
|
+
upload_protocol?: string;
|
|
1750
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1751
|
+
uploadType?: string;
|
|
1752
|
+
}): Request<ListGithubEnterpriseConfigsResponse>;
|
|
1753
|
+
/** Update an association between a GCP project and a GitHub Enterprise server. */
|
|
1754
|
+
patch(request: {
|
|
1755
|
+
/** V1 error format. */
|
|
1756
|
+
"$.xgafv"?: string;
|
|
1757
|
+
/** OAuth access token. */
|
|
1758
|
+
access_token?: string;
|
|
1759
|
+
/** Data format for response. */
|
|
1760
|
+
alt?: string;
|
|
1761
|
+
/** JSONP */
|
|
1762
|
+
callback?: string;
|
|
1763
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1764
|
+
fields?: string;
|
|
1765
|
+
/** 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. */
|
|
1766
|
+
key?: string;
|
|
1767
|
+
/** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
|
|
1768
|
+
name: string;
|
|
1769
|
+
/** OAuth 2.0 token for the current user. */
|
|
1770
|
+
oauth_token?: string;
|
|
1771
|
+
/** Returns response with indentations and line breaks. */
|
|
1772
|
+
prettyPrint?: boolean;
|
|
1773
|
+
/** 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. */
|
|
1774
|
+
quotaUser?: string;
|
|
1775
|
+
/**
|
|
1776
|
+
* Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be
|
|
1777
|
+
* performed.
|
|
1778
|
+
*/
|
|
1779
|
+
updateMask?: string;
|
|
1780
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1781
|
+
upload_protocol?: string;
|
|
1782
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1783
|
+
uploadType?: string;
|
|
1784
|
+
/** Request body */
|
|
1785
|
+
resource: GitHubEnterpriseConfig;
|
|
1786
|
+
}): Request<Operation>;
|
|
1787
|
+
patch(request: {
|
|
1788
|
+
/** V1 error format. */
|
|
1789
|
+
"$.xgafv"?: string;
|
|
1790
|
+
/** OAuth access token. */
|
|
1791
|
+
access_token?: string;
|
|
1792
|
+
/** Data format for response. */
|
|
1793
|
+
alt?: string;
|
|
1794
|
+
/** JSONP */
|
|
1795
|
+
callback?: string;
|
|
1796
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1797
|
+
fields?: string;
|
|
1798
|
+
/** 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. */
|
|
1799
|
+
key?: string;
|
|
1800
|
+
/** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
|
|
1801
|
+
name: string;
|
|
1802
|
+
/** OAuth 2.0 token for the current user. */
|
|
1803
|
+
oauth_token?: string;
|
|
1804
|
+
/** Returns response with indentations and line breaks. */
|
|
1805
|
+
prettyPrint?: boolean;
|
|
1806
|
+
/** 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. */
|
|
1807
|
+
quotaUser?: string;
|
|
1808
|
+
/**
|
|
1809
|
+
* Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be
|
|
1810
|
+
* performed.
|
|
1811
|
+
*/
|
|
1812
|
+
updateMask?: string;
|
|
1813
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1814
|
+
upload_protocol?: string;
|
|
1815
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1816
|
+
uploadType?: string;
|
|
1817
|
+
},
|
|
1818
|
+
body: GitHubEnterpriseConfig): Request<Operation>;
|
|
1819
|
+
}
|
|
1820
|
+
interface ConnectedRepositoriesResource {
|
|
1821
|
+
/** Batch connecting Bitbucket Server repositories to Cloud Build. */
|
|
1822
|
+
batchCreate(request: {
|
|
1823
|
+
/** V1 error format. */
|
|
1824
|
+
"$.xgafv"?: string;
|
|
1825
|
+
/** OAuth access token. */
|
|
1826
|
+
access_token?: string;
|
|
1827
|
+
/** Data format for response. */
|
|
1828
|
+
alt?: string;
|
|
1829
|
+
/** JSONP */
|
|
1830
|
+
callback?: string;
|
|
1831
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1832
|
+
fields?: string;
|
|
1833
|
+
/** 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. */
|
|
1834
|
+
key?: string;
|
|
1835
|
+
/** OAuth 2.0 token for the current user. */
|
|
1836
|
+
oauth_token?: string;
|
|
1837
|
+
/** The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` */
|
|
1838
|
+
parent: string;
|
|
1839
|
+
/** Returns response with indentations and line breaks. */
|
|
1840
|
+
prettyPrint?: boolean;
|
|
1841
|
+
/** 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. */
|
|
1842
|
+
quotaUser?: string;
|
|
1843
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1844
|
+
upload_protocol?: string;
|
|
1845
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1846
|
+
uploadType?: string;
|
|
1847
|
+
/** Request body */
|
|
1848
|
+
resource: BatchCreateBitbucketServerConnectedRepositoriesRequest;
|
|
1849
|
+
}): Request<Operation>;
|
|
1850
|
+
batchCreate(request: {
|
|
1851
|
+
/** V1 error format. */
|
|
1852
|
+
"$.xgafv"?: string;
|
|
1853
|
+
/** OAuth access token. */
|
|
1854
|
+
access_token?: string;
|
|
1855
|
+
/** Data format for response. */
|
|
1856
|
+
alt?: string;
|
|
1857
|
+
/** JSONP */
|
|
1858
|
+
callback?: string;
|
|
1859
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1860
|
+
fields?: string;
|
|
1861
|
+
/** 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. */
|
|
1862
|
+
key?: string;
|
|
1863
|
+
/** OAuth 2.0 token for the current user. */
|
|
1864
|
+
oauth_token?: string;
|
|
1865
|
+
/** The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` */
|
|
1866
|
+
parent: string;
|
|
1867
|
+
/** Returns response with indentations and line breaks. */
|
|
1868
|
+
prettyPrint?: boolean;
|
|
1869
|
+
/** 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. */
|
|
1870
|
+
quotaUser?: string;
|
|
1871
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1872
|
+
upload_protocol?: string;
|
|
1873
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1874
|
+
uploadType?: string;
|
|
1875
|
+
},
|
|
1876
|
+
body: BatchCreateBitbucketServerConnectedRepositoriesRequest): Request<Operation>;
|
|
1877
|
+
}
|
|
1878
|
+
interface ReposResource {
|
|
1879
|
+
/** List all repositories for a given `BitbucketServerConfig`. This API is experimental. */
|
|
1880
|
+
list(request?: {
|
|
1881
|
+
/** V1 error format. */
|
|
1882
|
+
"$.xgafv"?: string;
|
|
1883
|
+
/** OAuth access token. */
|
|
1884
|
+
access_token?: string;
|
|
1885
|
+
/** Data format for response. */
|
|
1886
|
+
alt?: string;
|
|
1887
|
+
/** JSONP */
|
|
1888
|
+
callback?: string;
|
|
1889
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1890
|
+
fields?: string;
|
|
1891
|
+
/** 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. */
|
|
1892
|
+
key?: string;
|
|
1893
|
+
/** OAuth 2.0 token for the current user. */
|
|
1894
|
+
oauth_token?: string;
|
|
1895
|
+
/**
|
|
1896
|
+
* The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 50 configs will be returned. The maximum value is 1000; values
|
|
1897
|
+
* above 1000 will be coerced to 1000.
|
|
1898
|
+
*/
|
|
1899
|
+
pageSize?: number;
|
|
1900
|
+
/**
|
|
1901
|
+
* A page token, received from a previous `ListBitbucketServerRepositoriesRequest` call. Provide this to retrieve the subsequent page. When paginating, all other parameters
|
|
1902
|
+
* provided to `ListBitbucketServerConfigsRequest` must match the call that provided the page token.
|
|
1903
|
+
*/
|
|
1904
|
+
pageToken?: string;
|
|
1905
|
+
/** Required. Name of the parent resource. */
|
|
1906
|
+
parent: string;
|
|
1907
|
+
/** Returns response with indentations and line breaks. */
|
|
1908
|
+
prettyPrint?: boolean;
|
|
1909
|
+
/** 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. */
|
|
1910
|
+
quotaUser?: string;
|
|
1911
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1912
|
+
upload_protocol?: string;
|
|
1913
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1914
|
+
uploadType?: string;
|
|
1915
|
+
}): Request<ListBitbucketServerRepositoriesResponse>;
|
|
1916
|
+
}
|
|
1917
|
+
interface BitbucketServerConfigsResource {
|
|
1918
|
+
/** Creates a new `BitbucketServerConfig`. This API is experimental. */
|
|
1919
|
+
create(request: {
|
|
1920
|
+
/** V1 error format. */
|
|
1921
|
+
"$.xgafv"?: string;
|
|
1922
|
+
/** OAuth access token. */
|
|
1923
|
+
access_token?: string;
|
|
1924
|
+
/** Data format for response. */
|
|
1925
|
+
alt?: string;
|
|
1926
|
+
/**
|
|
1927
|
+
* Optional. The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name. bitbucket_server_config_id must meet
|
|
1928
|
+
* the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric
|
|
1929
|
+
* character.
|
|
1930
|
+
*/
|
|
1931
|
+
bitbucketServerConfigId?: string;
|
|
1932
|
+
/** JSONP */
|
|
1933
|
+
callback?: string;
|
|
1934
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1935
|
+
fields?: string;
|
|
1936
|
+
/** 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. */
|
|
1937
|
+
key?: string;
|
|
1938
|
+
/** OAuth 2.0 token for the current user. */
|
|
1939
|
+
oauth_token?: string;
|
|
1940
|
+
/** Required. Name of the parent resource. */
|
|
1941
|
+
parent: string;
|
|
1942
|
+
/** Returns response with indentations and line breaks. */
|
|
1943
|
+
prettyPrint?: boolean;
|
|
1944
|
+
/** 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. */
|
|
1945
|
+
quotaUser?: string;
|
|
1946
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1947
|
+
upload_protocol?: string;
|
|
1948
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1949
|
+
uploadType?: string;
|
|
1950
|
+
/** Request body */
|
|
1951
|
+
resource: BitbucketServerConfig;
|
|
1952
|
+
}): Request<Operation>;
|
|
1953
|
+
create(request: {
|
|
1954
|
+
/** V1 error format. */
|
|
1955
|
+
"$.xgafv"?: string;
|
|
1956
|
+
/** OAuth access token. */
|
|
1957
|
+
access_token?: string;
|
|
1958
|
+
/** Data format for response. */
|
|
1959
|
+
alt?: string;
|
|
1960
|
+
/**
|
|
1961
|
+
* Optional. The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name. bitbucket_server_config_id must meet
|
|
1962
|
+
* the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric
|
|
1963
|
+
* character.
|
|
1964
|
+
*/
|
|
1965
|
+
bitbucketServerConfigId?: string;
|
|
1966
|
+
/** JSONP */
|
|
1967
|
+
callback?: string;
|
|
1968
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1969
|
+
fields?: string;
|
|
1970
|
+
/** 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. */
|
|
1971
|
+
key?: string;
|
|
1972
|
+
/** OAuth 2.0 token for the current user. */
|
|
1973
|
+
oauth_token?: string;
|
|
1974
|
+
/** Required. Name of the parent resource. */
|
|
1975
|
+
parent: string;
|
|
1976
|
+
/** Returns response with indentations and line breaks. */
|
|
1977
|
+
prettyPrint?: boolean;
|
|
1978
|
+
/** 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. */
|
|
1979
|
+
quotaUser?: string;
|
|
1980
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1981
|
+
upload_protocol?: string;
|
|
1982
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1983
|
+
uploadType?: string;
|
|
1984
|
+
},
|
|
1985
|
+
body: BitbucketServerConfig): Request<Operation>;
|
|
1986
|
+
/** Delete a `BitbucketServerConfig`. This API is experimental. */
|
|
1987
|
+
delete(request?: {
|
|
1988
|
+
/** V1 error format. */
|
|
1989
|
+
"$.xgafv"?: string;
|
|
1990
|
+
/** OAuth access token. */
|
|
1991
|
+
access_token?: string;
|
|
1992
|
+
/** Data format for response. */
|
|
1993
|
+
alt?: string;
|
|
1994
|
+
/** JSONP */
|
|
1995
|
+
callback?: string;
|
|
1996
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1997
|
+
fields?: string;
|
|
1998
|
+
/** 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. */
|
|
1999
|
+
key?: string;
|
|
2000
|
+
/** Required. The config resource name. */
|
|
2001
|
+
name: string;
|
|
2002
|
+
/** OAuth 2.0 token for the current user. */
|
|
2003
|
+
oauth_token?: string;
|
|
2004
|
+
/** Returns response with indentations and line breaks. */
|
|
2005
|
+
prettyPrint?: boolean;
|
|
2006
|
+
/** 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. */
|
|
2007
|
+
quotaUser?: string;
|
|
2008
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2009
|
+
upload_protocol?: string;
|
|
2010
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2011
|
+
uploadType?: string;
|
|
2012
|
+
}): Request<Operation>;
|
|
2013
|
+
/** Retrieve a `BitbucketServerConfig`. This API is experimental. */
|
|
2014
|
+
get(request?: {
|
|
2015
|
+
/** V1 error format. */
|
|
2016
|
+
"$.xgafv"?: string;
|
|
2017
|
+
/** OAuth access token. */
|
|
2018
|
+
access_token?: string;
|
|
2019
|
+
/** Data format for response. */
|
|
2020
|
+
alt?: string;
|
|
2021
|
+
/** JSONP */
|
|
2022
|
+
callback?: string;
|
|
2023
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2024
|
+
fields?: string;
|
|
2025
|
+
/** 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. */
|
|
2026
|
+
key?: string;
|
|
2027
|
+
/** Required. The config resource name. */
|
|
2028
|
+
name: string;
|
|
2029
|
+
/** OAuth 2.0 token for the current user. */
|
|
2030
|
+
oauth_token?: string;
|
|
2031
|
+
/** Returns response with indentations and line breaks. */
|
|
2032
|
+
prettyPrint?: boolean;
|
|
2033
|
+
/** 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. */
|
|
2034
|
+
quotaUser?: string;
|
|
2035
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2036
|
+
upload_protocol?: string;
|
|
2037
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2038
|
+
uploadType?: string;
|
|
2039
|
+
}): Request<BitbucketServerConfig>;
|
|
2040
|
+
/** List all `BitbucketServerConfigs` for a given project. This API is experimental. */
|
|
2041
|
+
list(request?: {
|
|
2042
|
+
/** V1 error format. */
|
|
2043
|
+
"$.xgafv"?: string;
|
|
2044
|
+
/** OAuth access token. */
|
|
2045
|
+
access_token?: string;
|
|
2046
|
+
/** Data format for response. */
|
|
2047
|
+
alt?: string;
|
|
2048
|
+
/** JSONP */
|
|
2049
|
+
callback?: string;
|
|
2050
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2051
|
+
fields?: string;
|
|
2052
|
+
/** 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. */
|
|
2053
|
+
key?: string;
|
|
2054
|
+
/** OAuth 2.0 token for the current user. */
|
|
2055
|
+
oauth_token?: string;
|
|
2056
|
+
/**
|
|
2057
|
+
* The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 50 configs will be returned. The maximum value is 1000; values
|
|
2058
|
+
* above 1000 will be coerced to 1000.
|
|
2059
|
+
*/
|
|
2060
|
+
pageSize?: number;
|
|
2061
|
+
/**
|
|
2062
|
+
* A page token, received from a previous `ListBitbucketServerConfigsRequest` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
|
|
2063
|
+
* `ListBitbucketServerConfigsRequest` must match the call that provided the page token.
|
|
2064
|
+
*/
|
|
2065
|
+
pageToken?: string;
|
|
2066
|
+
/** Required. Name of the parent resource. */
|
|
2067
|
+
parent: string;
|
|
2068
|
+
/** Returns response with indentations and line breaks. */
|
|
2069
|
+
prettyPrint?: boolean;
|
|
2070
|
+
/** 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. */
|
|
2071
|
+
quotaUser?: string;
|
|
2072
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2073
|
+
upload_protocol?: string;
|
|
2074
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2075
|
+
uploadType?: string;
|
|
2076
|
+
}): Request<ListBitbucketServerConfigsResponse>;
|
|
2077
|
+
/** Updates an existing `BitbucketServerConfig`. This API is experimental. */
|
|
2078
|
+
patch(request: {
|
|
2079
|
+
/** V1 error format. */
|
|
2080
|
+
"$.xgafv"?: string;
|
|
2081
|
+
/** OAuth access token. */
|
|
2082
|
+
access_token?: string;
|
|
2083
|
+
/** Data format for response. */
|
|
2084
|
+
alt?: string;
|
|
2085
|
+
/** JSONP */
|
|
2086
|
+
callback?: string;
|
|
2087
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2088
|
+
fields?: string;
|
|
2089
|
+
/** 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. */
|
|
2090
|
+
key?: string;
|
|
2091
|
+
/** The resource name for the config. */
|
|
2092
|
+
name: string;
|
|
2093
|
+
/** OAuth 2.0 token for the current user. */
|
|
2094
|
+
oauth_token?: string;
|
|
2095
|
+
/** Returns response with indentations and line breaks. */
|
|
2096
|
+
prettyPrint?: boolean;
|
|
2097
|
+
/** 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. */
|
|
2098
|
+
quotaUser?: string;
|
|
2099
|
+
/**
|
|
2100
|
+
* Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be
|
|
2101
|
+
* performed.
|
|
2102
|
+
*/
|
|
2103
|
+
updateMask?: string;
|
|
2104
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2105
|
+
upload_protocol?: string;
|
|
2106
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2107
|
+
uploadType?: string;
|
|
2108
|
+
/** Request body */
|
|
2109
|
+
resource: BitbucketServerConfig;
|
|
2110
|
+
}): Request<Operation>;
|
|
2111
|
+
patch(request: {
|
|
2112
|
+
/** V1 error format. */
|
|
2113
|
+
"$.xgafv"?: string;
|
|
2114
|
+
/** OAuth access token. */
|
|
2115
|
+
access_token?: string;
|
|
2116
|
+
/** Data format for response. */
|
|
2117
|
+
alt?: string;
|
|
2118
|
+
/** JSONP */
|
|
2119
|
+
callback?: string;
|
|
2120
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2121
|
+
fields?: string;
|
|
2122
|
+
/** 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. */
|
|
2123
|
+
key?: string;
|
|
2124
|
+
/** The resource name for the config. */
|
|
2125
|
+
name: string;
|
|
2126
|
+
/** OAuth 2.0 token for the current user. */
|
|
2127
|
+
oauth_token?: string;
|
|
2128
|
+
/** Returns response with indentations and line breaks. */
|
|
2129
|
+
prettyPrint?: boolean;
|
|
2130
|
+
/** 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. */
|
|
2131
|
+
quotaUser?: string;
|
|
2132
|
+
/**
|
|
2133
|
+
* Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be
|
|
2134
|
+
* performed.
|
|
2135
|
+
*/
|
|
2136
|
+
updateMask?: string;
|
|
2137
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2138
|
+
upload_protocol?: string;
|
|
2139
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2140
|
+
uploadType?: string;
|
|
2141
|
+
},
|
|
2142
|
+
body: BitbucketServerConfig): Request<Operation>;
|
|
2143
|
+
/** Remove a Bitbucket Server repository from a given BitbucketServerConfig's connected repositories. This API is experimental. */
|
|
2144
|
+
removeBitbucketServerConnectedRepository(request: {
|
|
2145
|
+
/** V1 error format. */
|
|
2146
|
+
"$.xgafv"?: string;
|
|
2147
|
+
/** OAuth access token. */
|
|
2148
|
+
access_token?: string;
|
|
2149
|
+
/** Data format for response. */
|
|
2150
|
+
alt?: string;
|
|
2151
|
+
/** JSONP */
|
|
2152
|
+
callback?: string;
|
|
2153
|
+
/** Required. The name of the `BitbucketServerConfig` to remove a connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` */
|
|
2154
|
+
config: string;
|
|
2155
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2156
|
+
fields?: string;
|
|
2157
|
+
/** 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. */
|
|
2158
|
+
key?: string;
|
|
2159
|
+
/** OAuth 2.0 token for the current user. */
|
|
2160
|
+
oauth_token?: string;
|
|
2161
|
+
/** Returns response with indentations and line breaks. */
|
|
2162
|
+
prettyPrint?: boolean;
|
|
2163
|
+
/** 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. */
|
|
2164
|
+
quotaUser?: string;
|
|
2165
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2166
|
+
upload_protocol?: string;
|
|
2167
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2168
|
+
uploadType?: string;
|
|
2169
|
+
/** Request body */
|
|
2170
|
+
resource: RemoveBitbucketServerConnectedRepositoryRequest;
|
|
2171
|
+
}): Request<{}>;
|
|
2172
|
+
removeBitbucketServerConnectedRepository(request: {
|
|
2173
|
+
/** V1 error format. */
|
|
2174
|
+
"$.xgafv"?: string;
|
|
2175
|
+
/** OAuth access token. */
|
|
2176
|
+
access_token?: string;
|
|
2177
|
+
/** Data format for response. */
|
|
2178
|
+
alt?: string;
|
|
2179
|
+
/** JSONP */
|
|
2180
|
+
callback?: string;
|
|
2181
|
+
/** Required. The name of the `BitbucketServerConfig` to remove a connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` */
|
|
2182
|
+
config: string;
|
|
2183
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2184
|
+
fields?: string;
|
|
2185
|
+
/** 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. */
|
|
2186
|
+
key?: string;
|
|
2187
|
+
/** OAuth 2.0 token for the current user. */
|
|
2188
|
+
oauth_token?: string;
|
|
2189
|
+
/** Returns response with indentations and line breaks. */
|
|
2190
|
+
prettyPrint?: boolean;
|
|
2191
|
+
/** 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. */
|
|
2192
|
+
quotaUser?: string;
|
|
2193
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2194
|
+
upload_protocol?: string;
|
|
2195
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2196
|
+
uploadType?: string;
|
|
2197
|
+
},
|
|
2198
|
+
body: RemoveBitbucketServerConnectedRepositoryRequest): Request<{}>;
|
|
2199
|
+
connectedRepositories: ConnectedRepositoriesResource;
|
|
2200
|
+
repos: ReposResource;
|
|
2201
|
+
}
|
|
2202
|
+
interface BuildsResource {
|
|
2203
|
+
/**
|
|
2204
|
+
* Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately
|
|
2205
|
+
* done.
|
|
2206
|
+
*/
|
|
2207
|
+
approve(request: {
|
|
2208
|
+
/** V1 error format. */
|
|
2209
|
+
"$.xgafv"?: string;
|
|
2210
|
+
/** OAuth access token. */
|
|
2211
|
+
access_token?: string;
|
|
2212
|
+
/** Data format for response. */
|
|
2213
|
+
alt?: string;
|
|
2214
|
+
/** JSONP */
|
|
2215
|
+
callback?: string;
|
|
2216
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2217
|
+
fields?: string;
|
|
2218
|
+
/** 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. */
|
|
2219
|
+
key?: string;
|
|
2220
|
+
/** Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}" */
|
|
2221
|
+
name: string;
|
|
2222
|
+
/** OAuth 2.0 token for the current user. */
|
|
2223
|
+
oauth_token?: string;
|
|
2224
|
+
/** Returns response with indentations and line breaks. */
|
|
2225
|
+
prettyPrint?: boolean;
|
|
2226
|
+
/** 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. */
|
|
2227
|
+
quotaUser?: string;
|
|
2228
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2229
|
+
upload_protocol?: string;
|
|
2230
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2231
|
+
uploadType?: string;
|
|
2232
|
+
/** Request body */
|
|
2233
|
+
resource: ApproveBuildRequest;
|
|
2234
|
+
}): Request<Operation>;
|
|
2235
|
+
approve(request: {
|
|
2236
|
+
/** V1 error format. */
|
|
2237
|
+
"$.xgafv"?: string;
|
|
2238
|
+
/** OAuth access token. */
|
|
2239
|
+
access_token?: string;
|
|
2240
|
+
/** Data format for response. */
|
|
2241
|
+
alt?: string;
|
|
2242
|
+
/** JSONP */
|
|
2243
|
+
callback?: string;
|
|
2244
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2245
|
+
fields?: string;
|
|
2246
|
+
/** 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. */
|
|
2247
|
+
key?: string;
|
|
2248
|
+
/** Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}" */
|
|
2249
|
+
name: string;
|
|
2250
|
+
/** OAuth 2.0 token for the current user. */
|
|
2251
|
+
oauth_token?: string;
|
|
2252
|
+
/** Returns response with indentations and line breaks. */
|
|
2253
|
+
prettyPrint?: boolean;
|
|
2254
|
+
/** 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. */
|
|
2255
|
+
quotaUser?: string;
|
|
2256
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2257
|
+
upload_protocol?: string;
|
|
2258
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2259
|
+
uploadType?: string;
|
|
2260
|
+
},
|
|
2261
|
+
body: ApproveBuildRequest): Request<Operation>;
|
|
2262
|
+
/** Cancels a build in progress. */
|
|
2263
|
+
cancel(request: {
|
|
2264
|
+
/** V1 error format. */
|
|
2265
|
+
"$.xgafv"?: string;
|
|
2266
|
+
/** OAuth access token. */
|
|
2267
|
+
access_token?: string;
|
|
2268
|
+
/** Data format for response. */
|
|
2269
|
+
alt?: string;
|
|
2270
|
+
/** JSONP */
|
|
2271
|
+
callback?: string;
|
|
2272
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2273
|
+
fields?: string;
|
|
2274
|
+
/** 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. */
|
|
2275
|
+
key?: string;
|
|
2276
|
+
/** The name of the `Build` to cancel. Format: `projects/{project}/locations/{location}/builds/{build}` */
|
|
2277
|
+
name: string;
|
|
2278
|
+
/** OAuth 2.0 token for the current user. */
|
|
2279
|
+
oauth_token?: string;
|
|
2280
|
+
/** Returns response with indentations and line breaks. */
|
|
2281
|
+
prettyPrint?: boolean;
|
|
2282
|
+
/** 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. */
|
|
2283
|
+
quotaUser?: string;
|
|
2284
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2285
|
+
upload_protocol?: string;
|
|
2286
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2287
|
+
uploadType?: string;
|
|
2288
|
+
/** Request body */
|
|
2289
|
+
resource: CancelBuildRequest;
|
|
2290
|
+
}): Request<Build>;
|
|
2291
|
+
cancel(request: {
|
|
2292
|
+
/** V1 error format. */
|
|
2293
|
+
"$.xgafv"?: string;
|
|
2294
|
+
/** OAuth access token. */
|
|
2295
|
+
access_token?: string;
|
|
2296
|
+
/** Data format for response. */
|
|
2297
|
+
alt?: string;
|
|
2298
|
+
/** JSONP */
|
|
2299
|
+
callback?: string;
|
|
2300
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2301
|
+
fields?: string;
|
|
2302
|
+
/** 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. */
|
|
2303
|
+
key?: string;
|
|
2304
|
+
/** The name of the `Build` to cancel. Format: `projects/{project}/locations/{location}/builds/{build}` */
|
|
2305
|
+
name: string;
|
|
2306
|
+
/** OAuth 2.0 token for the current user. */
|
|
2307
|
+
oauth_token?: string;
|
|
2308
|
+
/** Returns response with indentations and line breaks. */
|
|
2309
|
+
prettyPrint?: boolean;
|
|
2310
|
+
/** 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. */
|
|
2311
|
+
quotaUser?: string;
|
|
2312
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2313
|
+
upload_protocol?: string;
|
|
2314
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2315
|
+
uploadType?: string;
|
|
2316
|
+
},
|
|
2317
|
+
body: CancelBuildRequest): Request<Build>;
|
|
2318
|
+
/**
|
|
2319
|
+
* Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build
|
|
2320
|
+
* status (such as `SUCCESS` or `FAILURE`).
|
|
2321
|
+
*/
|
|
2322
|
+
create(request: {
|
|
2323
|
+
/** V1 error format. */
|
|
2324
|
+
"$.xgafv"?: string;
|
|
2325
|
+
/** OAuth access token. */
|
|
2326
|
+
access_token?: string;
|
|
2327
|
+
/** Data format for response. */
|
|
2328
|
+
alt?: string;
|
|
2329
|
+
/** JSONP */
|
|
2330
|
+
callback?: string;
|
|
2331
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2332
|
+
fields?: string;
|
|
2333
|
+
/** 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. */
|
|
2334
|
+
key?: string;
|
|
2335
|
+
/** OAuth 2.0 token for the current user. */
|
|
2336
|
+
oauth_token?: string;
|
|
2337
|
+
/** The parent resource where this build will be created. Format: `projects/{project}/locations/{location}` */
|
|
2338
|
+
parent: string;
|
|
2339
|
+
/** Returns response with indentations and line breaks. */
|
|
2340
|
+
prettyPrint?: boolean;
|
|
2341
|
+
/** Required. ID of the project. */
|
|
2342
|
+
projectId?: string;
|
|
2343
|
+
/** 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. */
|
|
2344
|
+
quotaUser?: string;
|
|
2345
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2346
|
+
upload_protocol?: string;
|
|
2347
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2348
|
+
uploadType?: string;
|
|
2349
|
+
/** Request body */
|
|
2350
|
+
resource: Build;
|
|
2351
|
+
}): Request<Operation>;
|
|
2352
|
+
create(request: {
|
|
2353
|
+
/** V1 error format. */
|
|
2354
|
+
"$.xgafv"?: string;
|
|
2355
|
+
/** OAuth access token. */
|
|
2356
|
+
access_token?: string;
|
|
2357
|
+
/** Data format for response. */
|
|
2358
|
+
alt?: string;
|
|
2359
|
+
/** JSONP */
|
|
2360
|
+
callback?: string;
|
|
2361
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2362
|
+
fields?: string;
|
|
2363
|
+
/** 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. */
|
|
2364
|
+
key?: string;
|
|
2365
|
+
/** OAuth 2.0 token for the current user. */
|
|
2366
|
+
oauth_token?: string;
|
|
2367
|
+
/** The parent resource where this build will be created. Format: `projects/{project}/locations/{location}` */
|
|
2368
|
+
parent: string;
|
|
2369
|
+
/** Returns response with indentations and line breaks. */
|
|
2370
|
+
prettyPrint?: boolean;
|
|
2371
|
+
/** Required. ID of the project. */
|
|
2372
|
+
projectId?: string;
|
|
2373
|
+
/** 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. */
|
|
2374
|
+
quotaUser?: string;
|
|
2375
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2376
|
+
upload_protocol?: string;
|
|
2377
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2378
|
+
uploadType?: string;
|
|
2379
|
+
},
|
|
2380
|
+
body: Build): Request<Operation>;
|
|
2381
|
+
/** Returns information about a previously requested build. The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and timing information. */
|
|
2382
|
+
get(request?: {
|
|
2383
|
+
/** V1 error format. */
|
|
2384
|
+
"$.xgafv"?: string;
|
|
2385
|
+
/** OAuth access token. */
|
|
2386
|
+
access_token?: string;
|
|
2387
|
+
/** Data format for response. */
|
|
2388
|
+
alt?: string;
|
|
2389
|
+
/** JSONP */
|
|
2390
|
+
callback?: string;
|
|
2391
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2392
|
+
fields?: string;
|
|
2393
|
+
/** Required. ID of the build. */
|
|
2394
|
+
id?: string;
|
|
2395
|
+
/** 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. */
|
|
2396
|
+
key?: string;
|
|
2397
|
+
/** The name of the `Build` to retrieve. Format: `projects/{project}/locations/{location}/builds/{build}` */
|
|
2398
|
+
name: string;
|
|
2399
|
+
/** OAuth 2.0 token for the current user. */
|
|
2400
|
+
oauth_token?: string;
|
|
2401
|
+
/** Returns response with indentations and line breaks. */
|
|
2402
|
+
prettyPrint?: boolean;
|
|
2403
|
+
/** Required. ID of the project. */
|
|
2404
|
+
projectId?: string;
|
|
2405
|
+
/** 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. */
|
|
2406
|
+
quotaUser?: string;
|
|
2407
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2408
|
+
upload_protocol?: string;
|
|
2409
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2410
|
+
uploadType?: string;
|
|
2411
|
+
}): Request<Build>;
|
|
2412
|
+
/** Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully. */
|
|
2413
|
+
list(request?: {
|
|
2414
|
+
/** V1 error format. */
|
|
2415
|
+
"$.xgafv"?: string;
|
|
2416
|
+
/** OAuth access token. */
|
|
2417
|
+
access_token?: string;
|
|
2418
|
+
/** Data format for response. */
|
|
2419
|
+
alt?: string;
|
|
2420
|
+
/** JSONP */
|
|
2421
|
+
callback?: string;
|
|
2422
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2423
|
+
fields?: string;
|
|
2424
|
+
/** The raw filter text to constrain the results. */
|
|
2425
|
+
filter?: string;
|
|
2426
|
+
/** 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. */
|
|
2427
|
+
key?: string;
|
|
2428
|
+
/** OAuth 2.0 token for the current user. */
|
|
2429
|
+
oauth_token?: string;
|
|
2430
|
+
/** Number of results to return in the list. */
|
|
2431
|
+
pageSize?: number;
|
|
2432
|
+
/**
|
|
2433
|
+
* The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In
|
|
2434
|
+
* this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more.
|
|
2435
|
+
*/
|
|
2436
|
+
pageToken?: string;
|
|
2437
|
+
/** The parent of the collection of `Builds`. Format: `projects/{project}/locations/{location}` */
|
|
2438
|
+
parent: string;
|
|
2439
|
+
/** Returns response with indentations and line breaks. */
|
|
2440
|
+
prettyPrint?: boolean;
|
|
2441
|
+
/** Required. ID of the project. */
|
|
2442
|
+
projectId?: string;
|
|
2443
|
+
/** 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. */
|
|
2444
|
+
quotaUser?: string;
|
|
2445
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2446
|
+
upload_protocol?: string;
|
|
2447
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2448
|
+
uploadType?: string;
|
|
2449
|
+
}): Request<ListBuildsResponse>;
|
|
2450
|
+
/**
|
|
2451
|
+
* Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered
|
|
2452
|
+
* builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that
|
|
2453
|
+
* specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the
|
|
2454
|
+
* original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the
|
|
2455
|
+
* original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the
|
|
2456
|
+
* original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which
|
|
2457
|
+
* may or may not be available depending on the bucket's lifecycle management settings.
|
|
2458
|
+
*/
|
|
2459
|
+
retry(request: {
|
|
2460
|
+
/** V1 error format. */
|
|
2461
|
+
"$.xgafv"?: string;
|
|
2462
|
+
/** OAuth access token. */
|
|
2463
|
+
access_token?: string;
|
|
2464
|
+
/** Data format for response. */
|
|
2465
|
+
alt?: string;
|
|
2466
|
+
/** JSONP */
|
|
2467
|
+
callback?: string;
|
|
2468
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2469
|
+
fields?: string;
|
|
2470
|
+
/** 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. */
|
|
2471
|
+
key?: string;
|
|
2472
|
+
/** The name of the `Build` to retry. Format: `projects/{project}/locations/{location}/builds/{build}` */
|
|
2473
|
+
name: string;
|
|
2474
|
+
/** OAuth 2.0 token for the current user. */
|
|
2475
|
+
oauth_token?: string;
|
|
2476
|
+
/** Returns response with indentations and line breaks. */
|
|
2477
|
+
prettyPrint?: boolean;
|
|
2478
|
+
/** 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. */
|
|
2479
|
+
quotaUser?: string;
|
|
2480
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2481
|
+
upload_protocol?: string;
|
|
2482
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2483
|
+
uploadType?: string;
|
|
2484
|
+
/** Request body */
|
|
2485
|
+
resource: RetryBuildRequest;
|
|
2486
|
+
}): Request<Operation>;
|
|
2487
|
+
retry(request: {
|
|
2488
|
+
/** V1 error format. */
|
|
2489
|
+
"$.xgafv"?: string;
|
|
2490
|
+
/** OAuth access token. */
|
|
2491
|
+
access_token?: string;
|
|
2492
|
+
/** Data format for response. */
|
|
2493
|
+
alt?: string;
|
|
2494
|
+
/** JSONP */
|
|
2495
|
+
callback?: string;
|
|
2496
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2497
|
+
fields?: string;
|
|
2498
|
+
/** 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. */
|
|
2499
|
+
key?: string;
|
|
2500
|
+
/** The name of the `Build` to retry. Format: `projects/{project}/locations/{location}/builds/{build}` */
|
|
2501
|
+
name: string;
|
|
2502
|
+
/** OAuth 2.0 token for the current user. */
|
|
2503
|
+
oauth_token?: string;
|
|
2504
|
+
/** Returns response with indentations and line breaks. */
|
|
2505
|
+
prettyPrint?: boolean;
|
|
2506
|
+
/** 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. */
|
|
2507
|
+
quotaUser?: string;
|
|
2508
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2509
|
+
upload_protocol?: string;
|
|
2510
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2511
|
+
uploadType?: string;
|
|
2512
|
+
},
|
|
2513
|
+
body: RetryBuildRequest): Request<Operation>;
|
|
2514
|
+
}
|
|
2515
|
+
interface GithubEnterpriseConfigsResource {
|
|
2516
|
+
/** Create an association between a GCP project and a GitHub Enterprise server. */
|
|
2517
|
+
create(request: {
|
|
2518
|
+
/** V1 error format. */
|
|
2519
|
+
"$.xgafv"?: string;
|
|
2520
|
+
/** OAuth access token. */
|
|
2521
|
+
access_token?: string;
|
|
2522
|
+
/** Data format for response. */
|
|
2523
|
+
alt?: string;
|
|
2524
|
+
/** JSONP */
|
|
2525
|
+
callback?: string;
|
|
2526
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2527
|
+
fields?: string;
|
|
2528
|
+
/**
|
|
2529
|
+
* Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name. ghe_config_id must meet the
|
|
2530
|
+
* following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
|
|
2531
|
+
*/
|
|
2532
|
+
gheConfigId?: string;
|
|
2533
|
+
/** 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. */
|
|
2534
|
+
key?: string;
|
|
2535
|
+
/** OAuth 2.0 token for the current user. */
|
|
2536
|
+
oauth_token?: string;
|
|
2537
|
+
/** Name of the parent project. For example: projects/{$project_number} or projects/{$project_id} */
|
|
2538
|
+
parent: string;
|
|
2539
|
+
/** Returns response with indentations and line breaks. */
|
|
2540
|
+
prettyPrint?: boolean;
|
|
2541
|
+
/** ID of the project. */
|
|
2542
|
+
projectId?: string;
|
|
2543
|
+
/** 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. */
|
|
2544
|
+
quotaUser?: string;
|
|
2545
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2546
|
+
upload_protocol?: string;
|
|
2547
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2548
|
+
uploadType?: string;
|
|
2549
|
+
/** Request body */
|
|
2550
|
+
resource: GitHubEnterpriseConfig;
|
|
2551
|
+
}): Request<Operation>;
|
|
2552
|
+
create(request: {
|
|
2553
|
+
/** V1 error format. */
|
|
2554
|
+
"$.xgafv"?: string;
|
|
2555
|
+
/** OAuth access token. */
|
|
2556
|
+
access_token?: string;
|
|
2557
|
+
/** Data format for response. */
|
|
2558
|
+
alt?: string;
|
|
2559
|
+
/** JSONP */
|
|
2560
|
+
callback?: string;
|
|
2561
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2562
|
+
fields?: string;
|
|
2563
|
+
/**
|
|
2564
|
+
* Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name. ghe_config_id must meet the
|
|
2565
|
+
* following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
|
|
2566
|
+
*/
|
|
2567
|
+
gheConfigId?: string;
|
|
2568
|
+
/** 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. */
|
|
2569
|
+
key?: string;
|
|
2570
|
+
/** OAuth 2.0 token for the current user. */
|
|
2571
|
+
oauth_token?: string;
|
|
2572
|
+
/** Name of the parent project. For example: projects/{$project_number} or projects/{$project_id} */
|
|
2573
|
+
parent: string;
|
|
2574
|
+
/** Returns response with indentations and line breaks. */
|
|
2575
|
+
prettyPrint?: boolean;
|
|
2576
|
+
/** ID of the project. */
|
|
2577
|
+
projectId?: string;
|
|
2578
|
+
/** 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. */
|
|
2579
|
+
quotaUser?: string;
|
|
2580
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2581
|
+
upload_protocol?: string;
|
|
2582
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2583
|
+
uploadType?: string;
|
|
2584
|
+
},
|
|
2585
|
+
body: GitHubEnterpriseConfig): Request<Operation>;
|
|
2586
|
+
/** Delete an association between a GCP project and a GitHub Enterprise server. */
|
|
2587
|
+
delete(request?: {
|
|
2588
|
+
/** V1 error format. */
|
|
2589
|
+
"$.xgafv"?: string;
|
|
2590
|
+
/** OAuth access token. */
|
|
2591
|
+
access_token?: string;
|
|
2592
|
+
/** Data format for response. */
|
|
2593
|
+
alt?: string;
|
|
2594
|
+
/** JSONP */
|
|
2595
|
+
callback?: string;
|
|
2596
|
+
/** Unique identifier of the `GitHubEnterpriseConfig` */
|
|
2597
|
+
configId?: string;
|
|
2598
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2599
|
+
fields?: string;
|
|
2600
|
+
/** 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. */
|
|
2601
|
+
key?: string;
|
|
2602
|
+
/** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
|
|
2603
|
+
name: string;
|
|
2604
|
+
/** OAuth 2.0 token for the current user. */
|
|
2605
|
+
oauth_token?: string;
|
|
2606
|
+
/** Returns response with indentations and line breaks. */
|
|
2607
|
+
prettyPrint?: boolean;
|
|
2608
|
+
/** ID of the project */
|
|
2609
|
+
projectId?: string;
|
|
2610
|
+
/** 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. */
|
|
2611
|
+
quotaUser?: string;
|
|
2612
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2613
|
+
upload_protocol?: string;
|
|
2614
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2615
|
+
uploadType?: string;
|
|
2616
|
+
}): Request<Operation>;
|
|
2617
|
+
/** Retrieve a GitHubEnterpriseConfig. */
|
|
2618
|
+
get(request?: {
|
|
2619
|
+
/** V1 error format. */
|
|
2620
|
+
"$.xgafv"?: string;
|
|
2621
|
+
/** OAuth access token. */
|
|
2622
|
+
access_token?: string;
|
|
2623
|
+
/** Data format for response. */
|
|
2624
|
+
alt?: string;
|
|
2625
|
+
/** JSONP */
|
|
2626
|
+
callback?: string;
|
|
2627
|
+
/** Unique identifier of the `GitHubEnterpriseConfig` */
|
|
2628
|
+
configId?: string;
|
|
2629
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2630
|
+
fields?: string;
|
|
2631
|
+
/** 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. */
|
|
2632
|
+
key?: string;
|
|
2633
|
+
/** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
|
|
2634
|
+
name: string;
|
|
2635
|
+
/** OAuth 2.0 token for the current user. */
|
|
2636
|
+
oauth_token?: string;
|
|
2637
|
+
/** Returns response with indentations and line breaks. */
|
|
2638
|
+
prettyPrint?: boolean;
|
|
2639
|
+
/** ID of the project */
|
|
2640
|
+
projectId?: string;
|
|
2641
|
+
/** 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. */
|
|
2642
|
+
quotaUser?: string;
|
|
2643
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2644
|
+
upload_protocol?: string;
|
|
2645
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2646
|
+
uploadType?: string;
|
|
2647
|
+
}): Request<GitHubEnterpriseConfig>;
|
|
2648
|
+
/** List all GitHubEnterpriseConfigs for a given project. */
|
|
2649
|
+
list(request?: {
|
|
2650
|
+
/** V1 error format. */
|
|
2651
|
+
"$.xgafv"?: string;
|
|
2652
|
+
/** OAuth access token. */
|
|
2653
|
+
access_token?: string;
|
|
2654
|
+
/** Data format for response. */
|
|
2655
|
+
alt?: string;
|
|
2656
|
+
/** JSONP */
|
|
2657
|
+
callback?: string;
|
|
2658
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2659
|
+
fields?: string;
|
|
2660
|
+
/** 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. */
|
|
2661
|
+
key?: string;
|
|
2662
|
+
/** OAuth 2.0 token for the current user. */
|
|
2663
|
+
oauth_token?: string;
|
|
2664
|
+
/** Name of the parent project. For example: projects/{$project_number} or projects/{$project_id} */
|
|
2665
|
+
parent: string;
|
|
2666
|
+
/** Returns response with indentations and line breaks. */
|
|
2667
|
+
prettyPrint?: boolean;
|
|
2668
|
+
/** ID of the project */
|
|
2669
|
+
projectId?: string;
|
|
2670
|
+
/** 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. */
|
|
2671
|
+
quotaUser?: string;
|
|
2672
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2673
|
+
upload_protocol?: string;
|
|
2674
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2675
|
+
uploadType?: string;
|
|
2676
|
+
}): Request<ListGithubEnterpriseConfigsResponse>;
|
|
2677
|
+
/** Update an association between a GCP project and a GitHub Enterprise server. */
|
|
2678
|
+
patch(request: {
|
|
2679
|
+
/** V1 error format. */
|
|
2680
|
+
"$.xgafv"?: string;
|
|
2681
|
+
/** OAuth access token. */
|
|
2682
|
+
access_token?: string;
|
|
2683
|
+
/** Data format for response. */
|
|
2684
|
+
alt?: string;
|
|
2685
|
+
/** JSONP */
|
|
2686
|
+
callback?: string;
|
|
2687
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2688
|
+
fields?: string;
|
|
2689
|
+
/** 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. */
|
|
2690
|
+
key?: string;
|
|
2691
|
+
/** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
|
|
2692
|
+
name: string;
|
|
2693
|
+
/** OAuth 2.0 token for the current user. */
|
|
2694
|
+
oauth_token?: string;
|
|
2695
|
+
/** Returns response with indentations and line breaks. */
|
|
2696
|
+
prettyPrint?: boolean;
|
|
2697
|
+
/** 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. */
|
|
2698
|
+
quotaUser?: string;
|
|
2699
|
+
/**
|
|
2700
|
+
* Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be
|
|
2701
|
+
* performed.
|
|
2702
|
+
*/
|
|
2703
|
+
updateMask?: string;
|
|
2704
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2705
|
+
upload_protocol?: string;
|
|
2706
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2707
|
+
uploadType?: string;
|
|
2708
|
+
/** Request body */
|
|
2709
|
+
resource: GitHubEnterpriseConfig;
|
|
2710
|
+
}): Request<Operation>;
|
|
2711
|
+
patch(request: {
|
|
2712
|
+
/** V1 error format. */
|
|
2713
|
+
"$.xgafv"?: string;
|
|
2714
|
+
/** OAuth access token. */
|
|
2715
|
+
access_token?: string;
|
|
2716
|
+
/** Data format for response. */
|
|
2717
|
+
alt?: string;
|
|
2718
|
+
/** JSONP */
|
|
2719
|
+
callback?: string;
|
|
2720
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2721
|
+
fields?: string;
|
|
2722
|
+
/** 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. */
|
|
2723
|
+
key?: string;
|
|
2724
|
+
/** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
|
|
2725
|
+
name: string;
|
|
2726
|
+
/** OAuth 2.0 token for the current user. */
|
|
2727
|
+
oauth_token?: string;
|
|
2728
|
+
/** Returns response with indentations and line breaks. */
|
|
2729
|
+
prettyPrint?: boolean;
|
|
2730
|
+
/** 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. */
|
|
2731
|
+
quotaUser?: string;
|
|
2732
|
+
/**
|
|
2733
|
+
* Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be
|
|
2734
|
+
* performed.
|
|
2735
|
+
*/
|
|
2736
|
+
updateMask?: string;
|
|
2737
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2738
|
+
upload_protocol?: string;
|
|
2739
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2740
|
+
uploadType?: string;
|
|
2741
|
+
},
|
|
2742
|
+
body: GitHubEnterpriseConfig): Request<Operation>;
|
|
2743
|
+
}
|
|
2744
|
+
interface OperationsResource {
|
|
2745
|
+
/**
|
|
2746
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
|
|
2747
|
+
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
|
|
2748
|
+
* operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
|
|
2749
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
2750
|
+
*/
|
|
2751
|
+
cancel(request: {
|
|
2752
|
+
/** V1 error format. */
|
|
2753
|
+
"$.xgafv"?: string;
|
|
2754
|
+
/** OAuth access token. */
|
|
2755
|
+
access_token?: string;
|
|
2756
|
+
/** Data format for response. */
|
|
2757
|
+
alt?: string;
|
|
2758
|
+
/** JSONP */
|
|
2759
|
+
callback?: string;
|
|
2760
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2761
|
+
fields?: string;
|
|
2762
|
+
/** 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. */
|
|
2763
|
+
key?: string;
|
|
2764
|
+
/** The name of the operation resource to be cancelled. */
|
|
2765
|
+
name: string;
|
|
2766
|
+
/** OAuth 2.0 token for the current user. */
|
|
2767
|
+
oauth_token?: string;
|
|
2768
|
+
/** Returns response with indentations and line breaks. */
|
|
2769
|
+
prettyPrint?: boolean;
|
|
2770
|
+
/** 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. */
|
|
2771
|
+
quotaUser?: string;
|
|
2772
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2773
|
+
upload_protocol?: string;
|
|
2774
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2775
|
+
uploadType?: string;
|
|
2776
|
+
/** Request body */
|
|
2777
|
+
resource: CancelOperationRequest;
|
|
2778
|
+
}): Request<{}>;
|
|
2779
|
+
cancel(request: {
|
|
2780
|
+
/** V1 error format. */
|
|
2781
|
+
"$.xgafv"?: string;
|
|
2782
|
+
/** OAuth access token. */
|
|
2783
|
+
access_token?: string;
|
|
2784
|
+
/** Data format for response. */
|
|
2785
|
+
alt?: string;
|
|
2786
|
+
/** JSONP */
|
|
2787
|
+
callback?: string;
|
|
2788
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2789
|
+
fields?: string;
|
|
2790
|
+
/** 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. */
|
|
2791
|
+
key?: string;
|
|
2792
|
+
/** The name of the operation resource to be cancelled. */
|
|
2793
|
+
name: string;
|
|
2794
|
+
/** OAuth 2.0 token for the current user. */
|
|
2795
|
+
oauth_token?: string;
|
|
2796
|
+
/** Returns response with indentations and line breaks. */
|
|
2797
|
+
prettyPrint?: boolean;
|
|
2798
|
+
/** 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. */
|
|
2799
|
+
quotaUser?: string;
|
|
2800
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2801
|
+
upload_protocol?: string;
|
|
2802
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2803
|
+
uploadType?: string;
|
|
2804
|
+
},
|
|
2805
|
+
body: CancelOperationRequest): Request<{}>;
|
|
2806
|
+
/** 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. */
|
|
2807
|
+
get(request?: {
|
|
2808
|
+
/** V1 error format. */
|
|
2809
|
+
"$.xgafv"?: string;
|
|
2810
|
+
/** OAuth access token. */
|
|
2811
|
+
access_token?: string;
|
|
2812
|
+
/** Data format for response. */
|
|
2813
|
+
alt?: string;
|
|
2814
|
+
/** JSONP */
|
|
2815
|
+
callback?: string;
|
|
2816
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2817
|
+
fields?: string;
|
|
2818
|
+
/** 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. */
|
|
2819
|
+
key?: string;
|
|
2820
|
+
/** The name of the operation resource. */
|
|
2821
|
+
name: string;
|
|
2822
|
+
/** OAuth 2.0 token for the current user. */
|
|
2823
|
+
oauth_token?: string;
|
|
2824
|
+
/** Returns response with indentations and line breaks. */
|
|
2825
|
+
prettyPrint?: boolean;
|
|
2826
|
+
/** 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. */
|
|
2827
|
+
quotaUser?: string;
|
|
2828
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2829
|
+
upload_protocol?: string;
|
|
2830
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2831
|
+
uploadType?: string;
|
|
2832
|
+
}): Request<Operation>;
|
|
2833
|
+
}
|
|
2834
|
+
interface TriggersResource {
|
|
2835
|
+
/** Creates a new `BuildTrigger`. This API is experimental. */
|
|
2836
|
+
create(request: {
|
|
2837
|
+
/** V1 error format. */
|
|
2838
|
+
"$.xgafv"?: string;
|
|
2839
|
+
/** OAuth access token. */
|
|
2840
|
+
access_token?: string;
|
|
2841
|
+
/** Data format for response. */
|
|
2842
|
+
alt?: string;
|
|
2843
|
+
/** JSONP */
|
|
2844
|
+
callback?: string;
|
|
2845
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2846
|
+
fields?: string;
|
|
2847
|
+
/** 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. */
|
|
2848
|
+
key?: string;
|
|
2849
|
+
/** OAuth 2.0 token for the current user. */
|
|
2850
|
+
oauth_token?: string;
|
|
2851
|
+
/** The parent resource where this trigger will be created. Format: `projects/{project}/locations/{location}` */
|
|
2852
|
+
parent: string;
|
|
2853
|
+
/** Returns response with indentations and line breaks. */
|
|
2854
|
+
prettyPrint?: boolean;
|
|
2855
|
+
/** Required. ID of the project for which to configure automatic builds. */
|
|
2856
|
+
projectId?: string;
|
|
2857
|
+
/** 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. */
|
|
2858
|
+
quotaUser?: string;
|
|
2859
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2860
|
+
upload_protocol?: string;
|
|
2861
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2862
|
+
uploadType?: string;
|
|
2863
|
+
/** Request body */
|
|
2864
|
+
resource: BuildTrigger;
|
|
2865
|
+
}): Request<BuildTrigger>;
|
|
2866
|
+
create(request: {
|
|
2867
|
+
/** V1 error format. */
|
|
2868
|
+
"$.xgafv"?: string;
|
|
2869
|
+
/** OAuth access token. */
|
|
2870
|
+
access_token?: string;
|
|
2871
|
+
/** Data format for response. */
|
|
2872
|
+
alt?: string;
|
|
2873
|
+
/** JSONP */
|
|
2874
|
+
callback?: string;
|
|
2875
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2876
|
+
fields?: string;
|
|
2877
|
+
/** 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. */
|
|
2878
|
+
key?: string;
|
|
2879
|
+
/** OAuth 2.0 token for the current user. */
|
|
2880
|
+
oauth_token?: string;
|
|
2881
|
+
/** The parent resource where this trigger will be created. Format: `projects/{project}/locations/{location}` */
|
|
2882
|
+
parent: string;
|
|
2883
|
+
/** Returns response with indentations and line breaks. */
|
|
2884
|
+
prettyPrint?: boolean;
|
|
2885
|
+
/** Required. ID of the project for which to configure automatic builds. */
|
|
2886
|
+
projectId?: string;
|
|
2887
|
+
/** 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. */
|
|
2888
|
+
quotaUser?: string;
|
|
2889
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2890
|
+
upload_protocol?: string;
|
|
2891
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2892
|
+
uploadType?: string;
|
|
2893
|
+
},
|
|
2894
|
+
body: BuildTrigger): Request<BuildTrigger>;
|
|
2895
|
+
/** Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental. */
|
|
2896
|
+
delete(request?: {
|
|
2897
|
+
/** V1 error format. */
|
|
2898
|
+
"$.xgafv"?: string;
|
|
2899
|
+
/** OAuth access token. */
|
|
2900
|
+
access_token?: string;
|
|
2901
|
+
/** Data format for response. */
|
|
2902
|
+
alt?: string;
|
|
2903
|
+
/** JSONP */
|
|
2904
|
+
callback?: string;
|
|
2905
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2906
|
+
fields?: string;
|
|
2907
|
+
/** 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. */
|
|
2908
|
+
key?: string;
|
|
2909
|
+
/** The name of the `Trigger` to delete. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
2910
|
+
name: string;
|
|
2911
|
+
/** OAuth 2.0 token for the current user. */
|
|
2912
|
+
oauth_token?: string;
|
|
2913
|
+
/** Returns response with indentations and line breaks. */
|
|
2914
|
+
prettyPrint?: boolean;
|
|
2915
|
+
/** Required. ID of the project that owns the trigger. */
|
|
2916
|
+
projectId?: string;
|
|
2917
|
+
/** 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. */
|
|
2918
|
+
quotaUser?: string;
|
|
2919
|
+
/** Required. ID of the `BuildTrigger` to delete. */
|
|
2920
|
+
triggerId?: string;
|
|
2921
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2922
|
+
upload_protocol?: string;
|
|
2923
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2924
|
+
uploadType?: string;
|
|
2925
|
+
}): Request<{}>;
|
|
2926
|
+
/** Returns information about a `BuildTrigger`. This API is experimental. */
|
|
2927
|
+
get(request?: {
|
|
2928
|
+
/** V1 error format. */
|
|
2929
|
+
"$.xgafv"?: string;
|
|
2930
|
+
/** OAuth access token. */
|
|
2931
|
+
access_token?: string;
|
|
2932
|
+
/** Data format for response. */
|
|
2933
|
+
alt?: string;
|
|
2934
|
+
/** JSONP */
|
|
2935
|
+
callback?: string;
|
|
2936
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2937
|
+
fields?: string;
|
|
2938
|
+
/** 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. */
|
|
2939
|
+
key?: string;
|
|
2940
|
+
/** The name of the `Trigger` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
2941
|
+
name: string;
|
|
2942
|
+
/** OAuth 2.0 token for the current user. */
|
|
2943
|
+
oauth_token?: string;
|
|
2944
|
+
/** Returns response with indentations and line breaks. */
|
|
2945
|
+
prettyPrint?: boolean;
|
|
2946
|
+
/** Required. ID of the project that owns the trigger. */
|
|
2947
|
+
projectId?: string;
|
|
2948
|
+
/** 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. */
|
|
2949
|
+
quotaUser?: string;
|
|
2950
|
+
/** Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. */
|
|
2951
|
+
triggerId?: string;
|
|
2952
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2953
|
+
upload_protocol?: string;
|
|
2954
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2955
|
+
uploadType?: string;
|
|
2956
|
+
}): Request<BuildTrigger>;
|
|
2957
|
+
/** Lists existing `BuildTrigger`s. This API is experimental. */
|
|
2958
|
+
list(request?: {
|
|
2959
|
+
/** V1 error format. */
|
|
2960
|
+
"$.xgafv"?: string;
|
|
2961
|
+
/** OAuth access token. */
|
|
2962
|
+
access_token?: string;
|
|
2963
|
+
/** Data format for response. */
|
|
2964
|
+
alt?: string;
|
|
2965
|
+
/** JSONP */
|
|
2966
|
+
callback?: string;
|
|
2967
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2968
|
+
fields?: string;
|
|
2969
|
+
/** 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. */
|
|
2970
|
+
key?: string;
|
|
2971
|
+
/** OAuth 2.0 token for the current user. */
|
|
2972
|
+
oauth_token?: string;
|
|
2973
|
+
/** Number of results to return in the list. */
|
|
2974
|
+
pageSize?: number;
|
|
2975
|
+
/** Token to provide to skip to a particular spot in the list. */
|
|
2976
|
+
pageToken?: string;
|
|
2977
|
+
/** The parent of the collection of `Triggers`. Format: `projects/{project}/locations/{location}` */
|
|
2978
|
+
parent: string;
|
|
2979
|
+
/** Returns response with indentations and line breaks. */
|
|
2980
|
+
prettyPrint?: boolean;
|
|
2981
|
+
/** Required. ID of the project for which to list BuildTriggers. */
|
|
2982
|
+
projectId?: string;
|
|
2983
|
+
/** 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. */
|
|
2984
|
+
quotaUser?: string;
|
|
2985
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2986
|
+
upload_protocol?: string;
|
|
2987
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2988
|
+
uploadType?: string;
|
|
2989
|
+
}): Request<ListBuildTriggersResponse>;
|
|
2990
|
+
/** Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental. */
|
|
2991
|
+
patch(request: {
|
|
2992
|
+
/** V1 error format. */
|
|
2993
|
+
"$.xgafv"?: string;
|
|
2994
|
+
/** OAuth access token. */
|
|
2995
|
+
access_token?: string;
|
|
2996
|
+
/** Data format for response. */
|
|
2997
|
+
alt?: string;
|
|
2998
|
+
/** JSONP */
|
|
2999
|
+
callback?: string;
|
|
3000
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3001
|
+
fields?: string;
|
|
3002
|
+
/** 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. */
|
|
3003
|
+
key?: string;
|
|
3004
|
+
/** OAuth 2.0 token for the current user. */
|
|
3005
|
+
oauth_token?: string;
|
|
3006
|
+
/** Returns response with indentations and line breaks. */
|
|
3007
|
+
prettyPrint?: boolean;
|
|
3008
|
+
/** Required. ID of the project that owns the trigger. */
|
|
3009
|
+
projectId?: string;
|
|
3010
|
+
/** 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. */
|
|
3011
|
+
quotaUser?: string;
|
|
3012
|
+
/** The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service. */
|
|
3013
|
+
resourceName: string;
|
|
3014
|
+
/** Required. ID of the `BuildTrigger` to update. */
|
|
3015
|
+
triggerId?: string;
|
|
3016
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3017
|
+
upload_protocol?: string;
|
|
3018
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3019
|
+
uploadType?: string;
|
|
3020
|
+
/** Request body */
|
|
3021
|
+
resource: BuildTrigger;
|
|
3022
|
+
}): Request<BuildTrigger>;
|
|
3023
|
+
patch(request: {
|
|
3024
|
+
/** V1 error format. */
|
|
3025
|
+
"$.xgafv"?: string;
|
|
3026
|
+
/** OAuth access token. */
|
|
3027
|
+
access_token?: string;
|
|
3028
|
+
/** Data format for response. */
|
|
3029
|
+
alt?: string;
|
|
3030
|
+
/** JSONP */
|
|
3031
|
+
callback?: string;
|
|
3032
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3033
|
+
fields?: string;
|
|
3034
|
+
/** 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. */
|
|
3035
|
+
key?: string;
|
|
3036
|
+
/** OAuth 2.0 token for the current user. */
|
|
3037
|
+
oauth_token?: string;
|
|
3038
|
+
/** Returns response with indentations and line breaks. */
|
|
3039
|
+
prettyPrint?: boolean;
|
|
3040
|
+
/** Required. ID of the project that owns the trigger. */
|
|
3041
|
+
projectId?: string;
|
|
3042
|
+
/** 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. */
|
|
3043
|
+
quotaUser?: string;
|
|
3044
|
+
/** The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service. */
|
|
3045
|
+
resourceName: string;
|
|
3046
|
+
/** Required. ID of the `BuildTrigger` to update. */
|
|
3047
|
+
triggerId?: string;
|
|
3048
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3049
|
+
upload_protocol?: string;
|
|
3050
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3051
|
+
uploadType?: string;
|
|
3052
|
+
},
|
|
3053
|
+
body: BuildTrigger): Request<BuildTrigger>;
|
|
3054
|
+
/**
|
|
3055
|
+
* Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path. The POST request
|
|
3056
|
+
* that does not include the location endpoint in the path can only be used when running global triggers.
|
|
3057
|
+
*/
|
|
3058
|
+
run(request: {
|
|
3059
|
+
/** V1 error format. */
|
|
3060
|
+
"$.xgafv"?: string;
|
|
3061
|
+
/** OAuth access token. */
|
|
3062
|
+
access_token?: string;
|
|
3063
|
+
/** Data format for response. */
|
|
3064
|
+
alt?: string;
|
|
3065
|
+
/** JSONP */
|
|
3066
|
+
callback?: string;
|
|
3067
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3068
|
+
fields?: string;
|
|
3069
|
+
/** 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. */
|
|
3070
|
+
key?: string;
|
|
3071
|
+
/** The name of the `Trigger` to run. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
3072
|
+
name: string;
|
|
3073
|
+
/** OAuth 2.0 token for the current user. */
|
|
3074
|
+
oauth_token?: string;
|
|
3075
|
+
/** Returns response with indentations and line breaks. */
|
|
3076
|
+
prettyPrint?: boolean;
|
|
3077
|
+
/** 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. */
|
|
3078
|
+
quotaUser?: string;
|
|
3079
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3080
|
+
upload_protocol?: string;
|
|
3081
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3082
|
+
uploadType?: string;
|
|
3083
|
+
/** Request body */
|
|
3084
|
+
resource: RunBuildTriggerRequest;
|
|
3085
|
+
}): Request<Operation>;
|
|
3086
|
+
run(request: {
|
|
3087
|
+
/** V1 error format. */
|
|
3088
|
+
"$.xgafv"?: string;
|
|
3089
|
+
/** OAuth access token. */
|
|
3090
|
+
access_token?: string;
|
|
3091
|
+
/** Data format for response. */
|
|
3092
|
+
alt?: string;
|
|
3093
|
+
/** JSONP */
|
|
3094
|
+
callback?: string;
|
|
3095
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3096
|
+
fields?: string;
|
|
3097
|
+
/** 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. */
|
|
3098
|
+
key?: string;
|
|
3099
|
+
/** The name of the `Trigger` to run. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
3100
|
+
name: string;
|
|
3101
|
+
/** OAuth 2.0 token for the current user. */
|
|
3102
|
+
oauth_token?: string;
|
|
3103
|
+
/** Returns response with indentations and line breaks. */
|
|
3104
|
+
prettyPrint?: boolean;
|
|
3105
|
+
/** 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. */
|
|
3106
|
+
quotaUser?: string;
|
|
3107
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3108
|
+
upload_protocol?: string;
|
|
3109
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3110
|
+
uploadType?: string;
|
|
3111
|
+
},
|
|
3112
|
+
body: RunBuildTriggerRequest): Request<Operation>;
|
|
3113
|
+
/** ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger. */
|
|
3114
|
+
webhook(request: {
|
|
3115
|
+
/** V1 error format. */
|
|
3116
|
+
"$.xgafv"?: string;
|
|
3117
|
+
/** OAuth access token. */
|
|
3118
|
+
access_token?: string;
|
|
3119
|
+
/** Data format for response. */
|
|
3120
|
+
alt?: string;
|
|
3121
|
+
/** JSONP */
|
|
3122
|
+
callback?: string;
|
|
3123
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3124
|
+
fields?: string;
|
|
3125
|
+
/** 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. */
|
|
3126
|
+
key?: string;
|
|
3127
|
+
/** The name of the `ReceiveTriggerWebhook` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
3128
|
+
name: string;
|
|
3129
|
+
/** OAuth 2.0 token for the current user. */
|
|
3130
|
+
oauth_token?: string;
|
|
3131
|
+
/** Returns response with indentations and line breaks. */
|
|
3132
|
+
prettyPrint?: boolean;
|
|
3133
|
+
/** Project in which the specified trigger lives */
|
|
3134
|
+
projectId?: string;
|
|
3135
|
+
/** 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. */
|
|
3136
|
+
quotaUser?: string;
|
|
3137
|
+
/** Secret token used for authorization if an OAuth token isn't provided. */
|
|
3138
|
+
secret?: string;
|
|
3139
|
+
/** Name of the trigger to run the payload against */
|
|
3140
|
+
trigger?: string;
|
|
3141
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3142
|
+
upload_protocol?: string;
|
|
3143
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3144
|
+
uploadType?: string;
|
|
3145
|
+
/** Request body */
|
|
3146
|
+
resource: HttpBody;
|
|
3147
|
+
}): Request<{}>;
|
|
3148
|
+
webhook(request: {
|
|
3149
|
+
/** V1 error format. */
|
|
3150
|
+
"$.xgafv"?: string;
|
|
3151
|
+
/** OAuth access token. */
|
|
3152
|
+
access_token?: string;
|
|
3153
|
+
/** Data format for response. */
|
|
3154
|
+
alt?: string;
|
|
3155
|
+
/** JSONP */
|
|
3156
|
+
callback?: string;
|
|
3157
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3158
|
+
fields?: string;
|
|
3159
|
+
/** 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. */
|
|
3160
|
+
key?: string;
|
|
3161
|
+
/** The name of the `ReceiveTriggerWebhook` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
3162
|
+
name: string;
|
|
3163
|
+
/** OAuth 2.0 token for the current user. */
|
|
3164
|
+
oauth_token?: string;
|
|
3165
|
+
/** Returns response with indentations and line breaks. */
|
|
3166
|
+
prettyPrint?: boolean;
|
|
3167
|
+
/** Project in which the specified trigger lives */
|
|
3168
|
+
projectId?: string;
|
|
3169
|
+
/** 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. */
|
|
3170
|
+
quotaUser?: string;
|
|
3171
|
+
/** Secret token used for authorization if an OAuth token isn't provided. */
|
|
3172
|
+
secret?: string;
|
|
3173
|
+
/** Name of the trigger to run the payload against */
|
|
3174
|
+
trigger?: string;
|
|
3175
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3176
|
+
upload_protocol?: string;
|
|
3177
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3178
|
+
uploadType?: string;
|
|
3179
|
+
},
|
|
3180
|
+
body: HttpBody): Request<{}>;
|
|
3181
|
+
}
|
|
3182
|
+
interface WorkerPoolsResource {
|
|
3183
|
+
/** Creates a `WorkerPool`. */
|
|
3184
|
+
create(request: {
|
|
3185
|
+
/** V1 error format. */
|
|
3186
|
+
"$.xgafv"?: string;
|
|
3187
|
+
/** OAuth access token. */
|
|
3188
|
+
access_token?: string;
|
|
3189
|
+
/** Data format for response. */
|
|
3190
|
+
alt?: string;
|
|
3191
|
+
/** JSONP */
|
|
3192
|
+
callback?: string;
|
|
3193
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3194
|
+
fields?: string;
|
|
3195
|
+
/** 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. */
|
|
3196
|
+
key?: string;
|
|
3197
|
+
/** OAuth 2.0 token for the current user. */
|
|
3198
|
+
oauth_token?: string;
|
|
3199
|
+
/** Required. The parent resource where this worker pool will be created. Format: `projects/{project}/locations/{location}`. */
|
|
3200
|
+
parent: string;
|
|
3201
|
+
/** Returns response with indentations and line breaks. */
|
|
3202
|
+
prettyPrint?: boolean;
|
|
3203
|
+
/** 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. */
|
|
3204
|
+
quotaUser?: string;
|
|
3205
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3206
|
+
upload_protocol?: string;
|
|
3207
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3208
|
+
uploadType?: string;
|
|
3209
|
+
/** If set, validate the request and preview the response, but do not actually post it. */
|
|
3210
|
+
validateOnly?: boolean;
|
|
3211
|
+
/**
|
|
3212
|
+
* Required. Immutable. The ID to use for the `WorkerPool`, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters
|
|
3213
|
+
* are /a-z-/.
|
|
3214
|
+
*/
|
|
3215
|
+
workerPoolId?: string;
|
|
3216
|
+
/** Request body */
|
|
3217
|
+
resource: WorkerPool;
|
|
3218
|
+
}): Request<Operation>;
|
|
3219
|
+
create(request: {
|
|
3220
|
+
/** V1 error format. */
|
|
3221
|
+
"$.xgafv"?: string;
|
|
3222
|
+
/** OAuth access token. */
|
|
3223
|
+
access_token?: string;
|
|
3224
|
+
/** Data format for response. */
|
|
3225
|
+
alt?: string;
|
|
3226
|
+
/** JSONP */
|
|
3227
|
+
callback?: string;
|
|
3228
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3229
|
+
fields?: string;
|
|
3230
|
+
/** 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. */
|
|
3231
|
+
key?: string;
|
|
3232
|
+
/** OAuth 2.0 token for the current user. */
|
|
3233
|
+
oauth_token?: string;
|
|
3234
|
+
/** Required. The parent resource where this worker pool will be created. Format: `projects/{project}/locations/{location}`. */
|
|
3235
|
+
parent: string;
|
|
3236
|
+
/** Returns response with indentations and line breaks. */
|
|
3237
|
+
prettyPrint?: boolean;
|
|
3238
|
+
/** 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. */
|
|
3239
|
+
quotaUser?: string;
|
|
3240
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3241
|
+
upload_protocol?: string;
|
|
3242
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3243
|
+
uploadType?: string;
|
|
3244
|
+
/** If set, validate the request and preview the response, but do not actually post it. */
|
|
3245
|
+
validateOnly?: boolean;
|
|
3246
|
+
/**
|
|
3247
|
+
* Required. Immutable. The ID to use for the `WorkerPool`, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters
|
|
3248
|
+
* are /a-z-/.
|
|
3249
|
+
*/
|
|
3250
|
+
workerPoolId?: string;
|
|
3251
|
+
},
|
|
3252
|
+
body: WorkerPool): Request<Operation>;
|
|
3253
|
+
/** Deletes a `WorkerPool`. */
|
|
3254
|
+
delete(request?: {
|
|
3255
|
+
/** V1 error format. */
|
|
3256
|
+
"$.xgafv"?: string;
|
|
3257
|
+
/** OAuth access token. */
|
|
3258
|
+
access_token?: string;
|
|
3259
|
+
/** If set to true, and the `WorkerPool` is not found, the request will succeed but no action will be taken on the server. */
|
|
3260
|
+
allowMissing?: boolean;
|
|
3261
|
+
/** Data format for response. */
|
|
3262
|
+
alt?: string;
|
|
3263
|
+
/** JSONP */
|
|
3264
|
+
callback?: string;
|
|
3265
|
+
/** Optional. If provided, it must match the server's etag on the workerpool for the request to be processed. */
|
|
3266
|
+
etag?: string;
|
|
3267
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3268
|
+
fields?: string;
|
|
3269
|
+
/** 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. */
|
|
3270
|
+
key?: string;
|
|
3271
|
+
/** Required. The name of the `WorkerPool` to delete. Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`. */
|
|
3272
|
+
name: string;
|
|
3273
|
+
/** OAuth 2.0 token for the current user. */
|
|
3274
|
+
oauth_token?: string;
|
|
3275
|
+
/** Returns response with indentations and line breaks. */
|
|
3276
|
+
prettyPrint?: boolean;
|
|
3277
|
+
/** 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. */
|
|
3278
|
+
quotaUser?: string;
|
|
3279
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3280
|
+
upload_protocol?: string;
|
|
3281
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3282
|
+
uploadType?: string;
|
|
3283
|
+
/** If set, validate the request and preview the response, but do not actually post it. */
|
|
3284
|
+
validateOnly?: boolean;
|
|
3285
|
+
}): Request<Operation>;
|
|
3286
|
+
/** Returns details of a `WorkerPool`. */
|
|
3287
|
+
get(request?: {
|
|
3288
|
+
/** V1 error format. */
|
|
3289
|
+
"$.xgafv"?: string;
|
|
3290
|
+
/** OAuth access token. */
|
|
3291
|
+
access_token?: string;
|
|
3292
|
+
/** Data format for response. */
|
|
3293
|
+
alt?: string;
|
|
3294
|
+
/** JSONP */
|
|
3295
|
+
callback?: string;
|
|
3296
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3297
|
+
fields?: string;
|
|
3298
|
+
/** 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. */
|
|
3299
|
+
key?: string;
|
|
3300
|
+
/** Required. The name of the `WorkerPool` to retrieve. Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`. */
|
|
3301
|
+
name: string;
|
|
3302
|
+
/** OAuth 2.0 token for the current user. */
|
|
3303
|
+
oauth_token?: string;
|
|
3304
|
+
/** Returns response with indentations and line breaks. */
|
|
3305
|
+
prettyPrint?: boolean;
|
|
3306
|
+
/** 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. */
|
|
3307
|
+
quotaUser?: string;
|
|
3308
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3309
|
+
upload_protocol?: string;
|
|
3310
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3311
|
+
uploadType?: string;
|
|
3312
|
+
}): Request<WorkerPool>;
|
|
3313
|
+
/** Lists `WorkerPool`s. */
|
|
3314
|
+
list(request?: {
|
|
3315
|
+
/** V1 error format. */
|
|
3316
|
+
"$.xgafv"?: string;
|
|
3317
|
+
/** OAuth access token. */
|
|
3318
|
+
access_token?: string;
|
|
3319
|
+
/** Data format for response. */
|
|
3320
|
+
alt?: string;
|
|
3321
|
+
/** JSONP */
|
|
3322
|
+
callback?: string;
|
|
3323
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3324
|
+
fields?: string;
|
|
3325
|
+
/** 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. */
|
|
3326
|
+
key?: string;
|
|
3327
|
+
/** OAuth 2.0 token for the current user. */
|
|
3328
|
+
oauth_token?: string;
|
|
3329
|
+
/** The maximum number of `WorkerPool`s to return. The service may return fewer than this value. If omitted, the server will use a sensible default. */
|
|
3330
|
+
pageSize?: number;
|
|
3331
|
+
/** A page token, received from a previous `ListWorkerPools` call. Provide this to retrieve the subsequent page. */
|
|
3332
|
+
pageToken?: string;
|
|
3333
|
+
/** Required. The parent of the collection of `WorkerPools`. Format: `projects/{project}/locations/{location}`. */
|
|
3334
|
+
parent: string;
|
|
3335
|
+
/** Returns response with indentations and line breaks. */
|
|
3336
|
+
prettyPrint?: boolean;
|
|
3337
|
+
/** 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. */
|
|
3338
|
+
quotaUser?: string;
|
|
3339
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3340
|
+
upload_protocol?: string;
|
|
3341
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3342
|
+
uploadType?: string;
|
|
3343
|
+
}): Request<ListWorkerPoolsResponse>;
|
|
3344
|
+
/** Updates a `WorkerPool`. */
|
|
3345
|
+
patch(request: {
|
|
3346
|
+
/** V1 error format. */
|
|
3347
|
+
"$.xgafv"?: string;
|
|
3348
|
+
/** OAuth access token. */
|
|
3349
|
+
access_token?: string;
|
|
3350
|
+
/** Data format for response. */
|
|
3351
|
+
alt?: string;
|
|
3352
|
+
/** JSONP */
|
|
3353
|
+
callback?: string;
|
|
3354
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3355
|
+
fields?: string;
|
|
3356
|
+
/** 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. */
|
|
3357
|
+
key?: string;
|
|
3358
|
+
/**
|
|
3359
|
+
* Output only. The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by
|
|
3360
|
+
* `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.
|
|
3361
|
+
*/
|
|
3362
|
+
name: string;
|
|
3363
|
+
/** OAuth 2.0 token for the current user. */
|
|
3364
|
+
oauth_token?: string;
|
|
3365
|
+
/** Returns response with indentations and line breaks. */
|
|
3366
|
+
prettyPrint?: boolean;
|
|
3367
|
+
/** 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. */
|
|
3368
|
+
quotaUser?: string;
|
|
3369
|
+
/** A mask specifying which fields in `worker_pool` to update. */
|
|
3370
|
+
updateMask?: string;
|
|
3371
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3372
|
+
upload_protocol?: string;
|
|
3373
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3374
|
+
uploadType?: string;
|
|
3375
|
+
/** If set, validate the request and preview the response, but do not actually post it. */
|
|
3376
|
+
validateOnly?: boolean;
|
|
3377
|
+
/** Request body */
|
|
3378
|
+
resource: WorkerPool;
|
|
3379
|
+
}): Request<Operation>;
|
|
3380
|
+
patch(request: {
|
|
3381
|
+
/** V1 error format. */
|
|
3382
|
+
"$.xgafv"?: string;
|
|
3383
|
+
/** OAuth access token. */
|
|
3384
|
+
access_token?: string;
|
|
3385
|
+
/** Data format for response. */
|
|
3386
|
+
alt?: string;
|
|
3387
|
+
/** JSONP */
|
|
3388
|
+
callback?: string;
|
|
3389
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3390
|
+
fields?: string;
|
|
3391
|
+
/** 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. */
|
|
3392
|
+
key?: string;
|
|
3393
|
+
/**
|
|
3394
|
+
* Output only. The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by
|
|
3395
|
+
* `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.
|
|
3396
|
+
*/
|
|
3397
|
+
name: string;
|
|
3398
|
+
/** OAuth 2.0 token for the current user. */
|
|
3399
|
+
oauth_token?: string;
|
|
3400
|
+
/** Returns response with indentations and line breaks. */
|
|
3401
|
+
prettyPrint?: boolean;
|
|
3402
|
+
/** 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. */
|
|
3403
|
+
quotaUser?: string;
|
|
3404
|
+
/** A mask specifying which fields in `worker_pool` to update. */
|
|
3405
|
+
updateMask?: string;
|
|
3406
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3407
|
+
upload_protocol?: string;
|
|
3408
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3409
|
+
uploadType?: string;
|
|
3410
|
+
/** If set, validate the request and preview the response, but do not actually post it. */
|
|
3411
|
+
validateOnly?: boolean;
|
|
3412
|
+
},
|
|
3413
|
+
body: WorkerPool): Request<Operation>;
|
|
3414
|
+
}
|
|
3415
|
+
interface LocationsResource {
|
|
3416
|
+
bitbucketServerConfigs: BitbucketServerConfigsResource;
|
|
3417
|
+
builds: BuildsResource;
|
|
3418
|
+
githubEnterpriseConfigs: GithubEnterpriseConfigsResource;
|
|
3419
|
+
operations: OperationsResource;
|
|
3420
|
+
triggers: TriggersResource;
|
|
3421
|
+
workerPools: WorkerPoolsResource;
|
|
3422
|
+
}
|
|
3423
|
+
interface TriggersResource {
|
|
3424
|
+
/** Creates a new `BuildTrigger`. This API is experimental. */
|
|
3425
|
+
create(request: {
|
|
3426
|
+
/** V1 error format. */
|
|
3427
|
+
"$.xgafv"?: string;
|
|
3428
|
+
/** OAuth access token. */
|
|
3429
|
+
access_token?: string;
|
|
3430
|
+
/** Data format for response. */
|
|
3431
|
+
alt?: string;
|
|
3432
|
+
/** JSONP */
|
|
3433
|
+
callback?: string;
|
|
3434
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3435
|
+
fields?: string;
|
|
3436
|
+
/** 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. */
|
|
3437
|
+
key?: string;
|
|
3438
|
+
/** OAuth 2.0 token for the current user. */
|
|
3439
|
+
oauth_token?: string;
|
|
3440
|
+
/** The parent resource where this trigger will be created. Format: `projects/{project}/locations/{location}` */
|
|
3441
|
+
parent?: string;
|
|
3442
|
+
/** Returns response with indentations and line breaks. */
|
|
3443
|
+
prettyPrint?: boolean;
|
|
3444
|
+
/** Required. ID of the project for which to configure automatic builds. */
|
|
3445
|
+
projectId: string;
|
|
3446
|
+
/** 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. */
|
|
3447
|
+
quotaUser?: string;
|
|
3448
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3449
|
+
upload_protocol?: string;
|
|
3450
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3451
|
+
uploadType?: string;
|
|
3452
|
+
/** Request body */
|
|
3453
|
+
resource: BuildTrigger;
|
|
3454
|
+
}): Request<BuildTrigger>;
|
|
3455
|
+
create(request: {
|
|
3456
|
+
/** V1 error format. */
|
|
3457
|
+
"$.xgafv"?: string;
|
|
3458
|
+
/** OAuth access token. */
|
|
3459
|
+
access_token?: string;
|
|
3460
|
+
/** Data format for response. */
|
|
3461
|
+
alt?: string;
|
|
3462
|
+
/** JSONP */
|
|
3463
|
+
callback?: string;
|
|
3464
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3465
|
+
fields?: string;
|
|
3466
|
+
/** 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. */
|
|
3467
|
+
key?: string;
|
|
3468
|
+
/** OAuth 2.0 token for the current user. */
|
|
3469
|
+
oauth_token?: string;
|
|
3470
|
+
/** The parent resource where this trigger will be created. Format: `projects/{project}/locations/{location}` */
|
|
3471
|
+
parent?: string;
|
|
3472
|
+
/** Returns response with indentations and line breaks. */
|
|
3473
|
+
prettyPrint?: boolean;
|
|
3474
|
+
/** Required. ID of the project for which to configure automatic builds. */
|
|
3475
|
+
projectId: string;
|
|
3476
|
+
/** 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. */
|
|
3477
|
+
quotaUser?: string;
|
|
3478
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3479
|
+
upload_protocol?: string;
|
|
3480
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3481
|
+
uploadType?: string;
|
|
3482
|
+
},
|
|
3483
|
+
body: BuildTrigger): Request<BuildTrigger>;
|
|
3484
|
+
/** Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental. */
|
|
3485
|
+
delete(request?: {
|
|
3486
|
+
/** V1 error format. */
|
|
3487
|
+
"$.xgafv"?: string;
|
|
3488
|
+
/** OAuth access token. */
|
|
3489
|
+
access_token?: string;
|
|
3490
|
+
/** Data format for response. */
|
|
3491
|
+
alt?: string;
|
|
3492
|
+
/** JSONP */
|
|
3493
|
+
callback?: string;
|
|
3494
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3495
|
+
fields?: string;
|
|
3496
|
+
/** 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. */
|
|
3497
|
+
key?: string;
|
|
3498
|
+
/** The name of the `Trigger` to delete. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
3499
|
+
name?: string;
|
|
3500
|
+
/** OAuth 2.0 token for the current user. */
|
|
3501
|
+
oauth_token?: string;
|
|
3502
|
+
/** Returns response with indentations and line breaks. */
|
|
3503
|
+
prettyPrint?: boolean;
|
|
3504
|
+
/** Required. ID of the project that owns the trigger. */
|
|
3505
|
+
projectId: string;
|
|
3506
|
+
/** 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. */
|
|
3507
|
+
quotaUser?: string;
|
|
3508
|
+
/** Required. ID of the `BuildTrigger` to delete. */
|
|
3509
|
+
triggerId: string;
|
|
3510
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3511
|
+
upload_protocol?: string;
|
|
3512
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3513
|
+
uploadType?: string;
|
|
3514
|
+
}): Request<{}>;
|
|
3515
|
+
/** Returns information about a `BuildTrigger`. This API is experimental. */
|
|
3516
|
+
get(request?: {
|
|
3517
|
+
/** V1 error format. */
|
|
3518
|
+
"$.xgafv"?: string;
|
|
3519
|
+
/** OAuth access token. */
|
|
3520
|
+
access_token?: string;
|
|
3521
|
+
/** Data format for response. */
|
|
3522
|
+
alt?: string;
|
|
3523
|
+
/** JSONP */
|
|
3524
|
+
callback?: string;
|
|
3525
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3526
|
+
fields?: string;
|
|
3527
|
+
/** 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. */
|
|
3528
|
+
key?: string;
|
|
3529
|
+
/** The name of the `Trigger` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
3530
|
+
name?: string;
|
|
3531
|
+
/** OAuth 2.0 token for the current user. */
|
|
3532
|
+
oauth_token?: string;
|
|
3533
|
+
/** Returns response with indentations and line breaks. */
|
|
3534
|
+
prettyPrint?: boolean;
|
|
3535
|
+
/** Required. ID of the project that owns the trigger. */
|
|
3536
|
+
projectId: string;
|
|
3537
|
+
/** 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. */
|
|
3538
|
+
quotaUser?: string;
|
|
3539
|
+
/** Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. */
|
|
3540
|
+
triggerId: string;
|
|
3541
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3542
|
+
upload_protocol?: string;
|
|
3543
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3544
|
+
uploadType?: string;
|
|
3545
|
+
}): Request<BuildTrigger>;
|
|
3546
|
+
/** Lists existing `BuildTrigger`s. This API is experimental. */
|
|
3547
|
+
list(request?: {
|
|
3548
|
+
/** V1 error format. */
|
|
3549
|
+
"$.xgafv"?: string;
|
|
3550
|
+
/** OAuth access token. */
|
|
3551
|
+
access_token?: string;
|
|
3552
|
+
/** Data format for response. */
|
|
3553
|
+
alt?: string;
|
|
3554
|
+
/** JSONP */
|
|
3555
|
+
callback?: string;
|
|
3556
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3557
|
+
fields?: string;
|
|
3558
|
+
/** 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. */
|
|
3559
|
+
key?: string;
|
|
3560
|
+
/** OAuth 2.0 token for the current user. */
|
|
3561
|
+
oauth_token?: string;
|
|
3562
|
+
/** Number of results to return in the list. */
|
|
3563
|
+
pageSize?: number;
|
|
3564
|
+
/** Token to provide to skip to a particular spot in the list. */
|
|
3565
|
+
pageToken?: string;
|
|
3566
|
+
/** The parent of the collection of `Triggers`. Format: `projects/{project}/locations/{location}` */
|
|
3567
|
+
parent?: string;
|
|
3568
|
+
/** Returns response with indentations and line breaks. */
|
|
3569
|
+
prettyPrint?: boolean;
|
|
3570
|
+
/** Required. ID of the project for which to list BuildTriggers. */
|
|
3571
|
+
projectId: string;
|
|
3572
|
+
/** 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. */
|
|
3573
|
+
quotaUser?: string;
|
|
3574
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3575
|
+
upload_protocol?: string;
|
|
3576
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3577
|
+
uploadType?: string;
|
|
3578
|
+
}): Request<ListBuildTriggersResponse>;
|
|
3579
|
+
/** Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental. */
|
|
3580
|
+
patch(request: {
|
|
3581
|
+
/** V1 error format. */
|
|
3582
|
+
"$.xgafv"?: string;
|
|
3583
|
+
/** OAuth access token. */
|
|
3584
|
+
access_token?: string;
|
|
3585
|
+
/** Data format for response. */
|
|
3586
|
+
alt?: string;
|
|
3587
|
+
/** JSONP */
|
|
3588
|
+
callback?: string;
|
|
3589
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3590
|
+
fields?: string;
|
|
3591
|
+
/** 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. */
|
|
3592
|
+
key?: string;
|
|
3593
|
+
/** OAuth 2.0 token for the current user. */
|
|
3594
|
+
oauth_token?: string;
|
|
3595
|
+
/** Returns response with indentations and line breaks. */
|
|
3596
|
+
prettyPrint?: boolean;
|
|
3597
|
+
/** Required. ID of the project that owns the trigger. */
|
|
3598
|
+
projectId: string;
|
|
3599
|
+
/** 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. */
|
|
3600
|
+
quotaUser?: string;
|
|
3601
|
+
/** Required. ID of the `BuildTrigger` to update. */
|
|
3602
|
+
triggerId: string;
|
|
3603
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3604
|
+
upload_protocol?: string;
|
|
3605
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3606
|
+
uploadType?: string;
|
|
3607
|
+
/** Request body */
|
|
3608
|
+
resource: BuildTrigger;
|
|
3609
|
+
}): Request<BuildTrigger>;
|
|
3610
|
+
patch(request: {
|
|
3611
|
+
/** V1 error format. */
|
|
3612
|
+
"$.xgafv"?: string;
|
|
3613
|
+
/** OAuth access token. */
|
|
3614
|
+
access_token?: string;
|
|
3615
|
+
/** Data format for response. */
|
|
3616
|
+
alt?: string;
|
|
3617
|
+
/** JSONP */
|
|
3618
|
+
callback?: string;
|
|
3619
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3620
|
+
fields?: string;
|
|
3621
|
+
/** 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. */
|
|
3622
|
+
key?: string;
|
|
3623
|
+
/** OAuth 2.0 token for the current user. */
|
|
3624
|
+
oauth_token?: string;
|
|
3625
|
+
/** Returns response with indentations and line breaks. */
|
|
3626
|
+
prettyPrint?: boolean;
|
|
3627
|
+
/** Required. ID of the project that owns the trigger. */
|
|
3628
|
+
projectId: string;
|
|
3629
|
+
/** 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. */
|
|
3630
|
+
quotaUser?: string;
|
|
3631
|
+
/** Required. ID of the `BuildTrigger` to update. */
|
|
3632
|
+
triggerId: string;
|
|
3633
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3634
|
+
upload_protocol?: string;
|
|
3635
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3636
|
+
uploadType?: string;
|
|
3637
|
+
},
|
|
3638
|
+
body: BuildTrigger): Request<BuildTrigger>;
|
|
3639
|
+
/**
|
|
3640
|
+
* Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path. The POST request
|
|
3641
|
+
* that does not include the location endpoint in the path can only be used when running global triggers.
|
|
3642
|
+
*/
|
|
3643
|
+
run(request: {
|
|
3644
|
+
/** V1 error format. */
|
|
3645
|
+
"$.xgafv"?: string;
|
|
3646
|
+
/** OAuth access token. */
|
|
3647
|
+
access_token?: string;
|
|
3648
|
+
/** Data format for response. */
|
|
3649
|
+
alt?: string;
|
|
3650
|
+
/** JSONP */
|
|
3651
|
+
callback?: string;
|
|
3652
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3653
|
+
fields?: string;
|
|
3654
|
+
/** 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. */
|
|
3655
|
+
key?: string;
|
|
3656
|
+
/** The name of the `Trigger` to run. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
3657
|
+
name?: string;
|
|
3658
|
+
/** OAuth 2.0 token for the current user. */
|
|
3659
|
+
oauth_token?: string;
|
|
3660
|
+
/** Returns response with indentations and line breaks. */
|
|
3661
|
+
prettyPrint?: boolean;
|
|
3662
|
+
/** Required. ID of the project. */
|
|
3663
|
+
projectId: string;
|
|
3664
|
+
/** 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. */
|
|
3665
|
+
quotaUser?: string;
|
|
3666
|
+
/** Required. ID of the trigger. */
|
|
3667
|
+
triggerId: string;
|
|
3668
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3669
|
+
upload_protocol?: string;
|
|
3670
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3671
|
+
uploadType?: string;
|
|
3672
|
+
/** Request body */
|
|
3673
|
+
resource: RepoSource;
|
|
3674
|
+
}): Request<Operation>;
|
|
3675
|
+
run(request: {
|
|
3676
|
+
/** V1 error format. */
|
|
3677
|
+
"$.xgafv"?: string;
|
|
3678
|
+
/** OAuth access token. */
|
|
3679
|
+
access_token?: string;
|
|
3680
|
+
/** Data format for response. */
|
|
3681
|
+
alt?: string;
|
|
3682
|
+
/** JSONP */
|
|
3683
|
+
callback?: string;
|
|
3684
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3685
|
+
fields?: string;
|
|
3686
|
+
/** 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. */
|
|
3687
|
+
key?: string;
|
|
3688
|
+
/** The name of the `Trigger` to run. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
3689
|
+
name?: string;
|
|
3690
|
+
/** OAuth 2.0 token for the current user. */
|
|
3691
|
+
oauth_token?: string;
|
|
3692
|
+
/** Returns response with indentations and line breaks. */
|
|
3693
|
+
prettyPrint?: boolean;
|
|
3694
|
+
/** Required. ID of the project. */
|
|
3695
|
+
projectId: string;
|
|
3696
|
+
/** 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. */
|
|
3697
|
+
quotaUser?: string;
|
|
3698
|
+
/** Required. ID of the trigger. */
|
|
3699
|
+
triggerId: string;
|
|
3700
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3701
|
+
upload_protocol?: string;
|
|
3702
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3703
|
+
uploadType?: string;
|
|
3704
|
+
},
|
|
3705
|
+
body: RepoSource): Request<Operation>;
|
|
3706
|
+
/** ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger. */
|
|
3707
|
+
webhook(request: {
|
|
3708
|
+
/** V1 error format. */
|
|
3709
|
+
"$.xgafv"?: string;
|
|
3710
|
+
/** OAuth access token. */
|
|
3711
|
+
access_token?: string;
|
|
3712
|
+
/** Data format for response. */
|
|
3713
|
+
alt?: string;
|
|
3714
|
+
/** JSONP */
|
|
3715
|
+
callback?: string;
|
|
3716
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3717
|
+
fields?: string;
|
|
3718
|
+
/** 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. */
|
|
3719
|
+
key?: string;
|
|
3720
|
+
/** The name of the `ReceiveTriggerWebhook` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
3721
|
+
name?: string;
|
|
3722
|
+
/** OAuth 2.0 token for the current user. */
|
|
3723
|
+
oauth_token?: string;
|
|
3724
|
+
/** Returns response with indentations and line breaks. */
|
|
3725
|
+
prettyPrint?: boolean;
|
|
3726
|
+
/** Project in which the specified trigger lives */
|
|
3727
|
+
projectId: string;
|
|
3728
|
+
/** 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. */
|
|
3729
|
+
quotaUser?: string;
|
|
3730
|
+
/** Secret token used for authorization if an OAuth token isn't provided. */
|
|
3731
|
+
secret?: string;
|
|
3732
|
+
/** Name of the trigger to run the payload against */
|
|
3733
|
+
trigger: string;
|
|
3734
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3735
|
+
upload_protocol?: string;
|
|
3736
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3737
|
+
uploadType?: string;
|
|
3738
|
+
/** Request body */
|
|
3739
|
+
resource: HttpBody;
|
|
3740
|
+
}): Request<{}>;
|
|
3741
|
+
webhook(request: {
|
|
3742
|
+
/** V1 error format. */
|
|
3743
|
+
"$.xgafv"?: string;
|
|
3744
|
+
/** OAuth access token. */
|
|
3745
|
+
access_token?: string;
|
|
3746
|
+
/** Data format for response. */
|
|
3747
|
+
alt?: string;
|
|
3748
|
+
/** JSONP */
|
|
3749
|
+
callback?: string;
|
|
3750
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3751
|
+
fields?: string;
|
|
3752
|
+
/** 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. */
|
|
3753
|
+
key?: string;
|
|
3754
|
+
/** The name of the `ReceiveTriggerWebhook` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}` */
|
|
3755
|
+
name?: string;
|
|
3756
|
+
/** OAuth 2.0 token for the current user. */
|
|
3757
|
+
oauth_token?: string;
|
|
3758
|
+
/** Returns response with indentations and line breaks. */
|
|
3759
|
+
prettyPrint?: boolean;
|
|
3760
|
+
/** Project in which the specified trigger lives */
|
|
3761
|
+
projectId: string;
|
|
3762
|
+
/** 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. */
|
|
3763
|
+
quotaUser?: string;
|
|
3764
|
+
/** Secret token used for authorization if an OAuth token isn't provided. */
|
|
3765
|
+
secret?: string;
|
|
3766
|
+
/** Name of the trigger to run the payload against */
|
|
3767
|
+
trigger: string;
|
|
3768
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3769
|
+
upload_protocol?: string;
|
|
3770
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3771
|
+
uploadType?: string;
|
|
3772
|
+
},
|
|
3773
|
+
body: HttpBody): Request<{}>;
|
|
3774
|
+
}
|
|
3775
|
+
interface ProjectsResource {
|
|
3776
|
+
builds: BuildsResource;
|
|
3777
|
+
githubEnterpriseConfigs: GithubEnterpriseConfigsResource;
|
|
3778
|
+
locations: LocationsResource;
|
|
3779
|
+
triggers: TriggersResource;
|
|
3780
|
+
}
|
|
3781
|
+
interface V1Resource {
|
|
3782
|
+
/** ReceiveWebhook is called when the API receives a GitHub webhook. */
|
|
3783
|
+
webhook(request: {
|
|
3784
|
+
/** V1 error format. */
|
|
3785
|
+
"$.xgafv"?: string;
|
|
3786
|
+
/** OAuth access token. */
|
|
3787
|
+
access_token?: string;
|
|
3788
|
+
/** Data format for response. */
|
|
3789
|
+
alt?: string;
|
|
3790
|
+
/** JSONP */
|
|
3791
|
+
callback?: string;
|
|
3792
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3793
|
+
fields?: string;
|
|
3794
|
+
/** 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. */
|
|
3795
|
+
key?: string;
|
|
3796
|
+
/** OAuth 2.0 token for the current user. */
|
|
3797
|
+
oauth_token?: string;
|
|
3798
|
+
/** Returns response with indentations and line breaks. */
|
|
3799
|
+
prettyPrint?: boolean;
|
|
3800
|
+
/** 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. */
|
|
3801
|
+
quotaUser?: string;
|
|
3802
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3803
|
+
upload_protocol?: string;
|
|
3804
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3805
|
+
uploadType?: string;
|
|
3806
|
+
/** For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation. */
|
|
3807
|
+
webhookKey?: string;
|
|
3808
|
+
/** Request body */
|
|
3809
|
+
resource: HttpBody;
|
|
3810
|
+
}): Request<{}>;
|
|
3811
|
+
webhook(request: {
|
|
3812
|
+
/** V1 error format. */
|
|
3813
|
+
"$.xgafv"?: string;
|
|
3814
|
+
/** OAuth access token. */
|
|
3815
|
+
access_token?: string;
|
|
3816
|
+
/** Data format for response. */
|
|
3817
|
+
alt?: string;
|
|
3818
|
+
/** JSONP */
|
|
3819
|
+
callback?: string;
|
|
3820
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3821
|
+
fields?: string;
|
|
3822
|
+
/** 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. */
|
|
3823
|
+
key?: string;
|
|
3824
|
+
/** OAuth 2.0 token for the current user. */
|
|
3825
|
+
oauth_token?: string;
|
|
3826
|
+
/** Returns response with indentations and line breaks. */
|
|
3827
|
+
prettyPrint?: boolean;
|
|
3828
|
+
/** 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. */
|
|
3829
|
+
quotaUser?: string;
|
|
3830
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3831
|
+
upload_protocol?: string;
|
|
3832
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3833
|
+
uploadType?: string;
|
|
3834
|
+
/** For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation. */
|
|
3835
|
+
webhookKey?: string;
|
|
3836
|
+
},
|
|
3837
|
+
body: HttpBody): Request<{}>;
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
const locations: LocationsResource;
|
|
3841
|
+
|
|
3842
|
+
const operations: OperationsResource;
|
|
3843
|
+
|
|
3844
|
+
const projects: ProjectsResource;
|
|
3845
|
+
|
|
3846
|
+
const v1: V1Resource;
|
|
3847
|
+
}
|
|
3848
|
+
}
|