@maxim_mazurok/gapi.client.developerconnect-v1 0.0.20240515

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.
Files changed (3) hide show
  1. package/index.d.ts +1260 -0
  2. package/package.json +20 -0
  3. package/readme.md +73 -0
package/index.d.ts ADDED
@@ -0,0 +1,1260 @@
1
+ /* Type definitions for non-npm package Developer Connect API v1 0.0 */
2
+ // Project: http://cloud.google.com/developer-connect/docs/overview
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
+
8
+ // IMPORTANT
9
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
+ // Generated from: https://developerconnect.googleapis.com/$discovery/rest?version=v1
12
+ // Revision: 20240515
13
+
14
+ /// <reference types="gapi.client" />
15
+
16
+ declare namespace gapi.client {
17
+ /** Load Developer Connect API v1 */
18
+ function load(
19
+ urlOrObject: 'https://developerconnect.googleapis.com/$discovery/rest?version=v1'
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'developerconnect', version: 'v1'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(
25
+ name: 'developerconnect',
26
+ version: 'v1',
27
+ callback: () => any
28
+ ): void;
29
+
30
+ namespace developerconnect {
31
+ interface CancelOperationRequest {}
32
+ interface Connection {
33
+ /** Optional. Allows clients to store small amounts of arbitrary data. */
34
+ annotations?: {[P in string]: string};
35
+ /** Output only. [Output only] Create timestamp */
36
+ createTime?: string;
37
+ /** Output only. [Output only] Delete timestamp */
38
+ deleteTime?: string;
39
+ /** Optional. If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled. */
40
+ disabled?: boolean;
41
+ /** Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */
42
+ etag?: string;
43
+ /** Configuration for connections to github.com. */
44
+ githubConfig?: GitHubConfig;
45
+ /** Output only. Installation state of the Connection. */
46
+ installationState?: InstallationState;
47
+ /** Optional. Labels as key value pairs */
48
+ labels?: {[P in string]: string};
49
+ /** Identifier. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`. */
50
+ name?: string;
51
+ /** Output only. Set to true when the connection is being set up or updated in the background. */
52
+ reconciling?: boolean;
53
+ /** Output only. A system-assigned unique identifier for a the GitRepositoryLink. */
54
+ uid?: string;
55
+ /** Output only. [Output only] Update timestamp */
56
+ updateTime?: string;
57
+ }
58
+ interface Empty {}
59
+ interface FetchGitHubInstallationsResponse {
60
+ /** List of installations available to the OAuth user (for github.com) or all the installations (for GitHub enterprise). */
61
+ installations?: Installation[];
62
+ }
63
+ interface FetchGitRefsResponse {
64
+ /** A token identifying a page of results the server should return. */
65
+ nextPageToken?: string;
66
+ /** Name of the refs fetched. */
67
+ refNames?: string[];
68
+ }
69
+ interface FetchLinkableGitRepositoriesResponse {
70
+ /** The git repositories that can be linked to the connection. */
71
+ linkableGitRepositories?: LinkableGitRepository[];
72
+ /** A token identifying a page of results the server should return. */
73
+ nextPageToken?: string;
74
+ }
75
+ interface FetchReadTokenRequest {}
76
+ interface FetchReadTokenResponse {
77
+ /** Expiration timestamp. Can be empty if unknown or non-expiring. */
78
+ expirationTime?: string;
79
+ /** The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token" */
80
+ gitUsername?: string;
81
+ /** The token content. */
82
+ token?: string;
83
+ }
84
+ interface FetchReadWriteTokenRequest {}
85
+ interface FetchReadWriteTokenResponse {
86
+ /** Expiration timestamp. Can be empty if unknown or non-expiring. */
87
+ expirationTime?: string;
88
+ /** The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token" */
89
+ gitUsername?: string;
90
+ /** The token content. */
91
+ token?: string;
92
+ }
93
+ interface GitHubConfig {
94
+ /** Optional. GitHub App installation id. */
95
+ appInstallationId?: string;
96
+ /** Optional. OAuth credential of the account that authorized the GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the GitHub App of this config. */
97
+ authorizerCredential?: OAuthCredential;
98
+ /** Required. Immutable. The GitHub Application that was installed to the GitHub user or organization. */
99
+ githubApp?: string;
100
+ /** Output only. The URI to navigate to in order to manage the installation associated with this GitHubConfig. */
101
+ installationUri?: string;
102
+ }
103
+ interface GitRepositoryLink {
104
+ /** Optional. Allows clients to store small amounts of arbitrary data. */
105
+ annotations?: {[P in string]: string};
106
+ /** Required. Git Clone URI. */
107
+ cloneUri?: string;
108
+ /** Output only. [Output only] Create timestamp */
109
+ createTime?: string;
110
+ /** Output only. [Output only] Delete timestamp */
111
+ deleteTime?: string;
112
+ /** Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */
113
+ etag?: string;
114
+ /** Optional. Labels as key value pairs */
115
+ labels?: {[P in string]: string};
116
+ /** Identifier. Resource name of the repository, in the format `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
117
+ name?: string;
118
+ /** Output only. Set to true when the connection is being set up or updated in the background. */
119
+ reconciling?: boolean;
120
+ /** Output only. A system-assigned unique identifier for a the GitRepositoryLink. */
121
+ uid?: string;
122
+ /** Output only. [Output only] Update timestamp */
123
+ updateTime?: string;
124
+ }
125
+ interface HttpBody {
126
+ /** The HTTP Content-Type header value specifying the content type of the body. */
127
+ contentType?: string;
128
+ /** The HTTP request/response body as raw binary. */
129
+ data?: string;
130
+ /** Application specific response metadata. Must be set in the first response for streaming APIs. */
131
+ extensions?: Array<{[P in string]: any}>;
132
+ }
133
+ interface Installation {
134
+ /** ID of the installation in GitHub. */
135
+ id?: string;
136
+ /** Name of the GitHub user or organization that owns this installation. */
137
+ name?: string;
138
+ /** Either "user" or "organization". */
139
+ type?: string;
140
+ }
141
+ interface InstallationState {
142
+ /** Output only. Link to follow for next action. Empty string if the installation is already complete. */
143
+ actionUri?: string;
144
+ /** Output only. Message of what the user should do next to continue the installation. Empty string if the installation is already complete. */
145
+ message?: string;
146
+ /** Output only. Current step of the installation process. */
147
+ stage?: string;
148
+ }
149
+ interface LinkableGitRepository {
150
+ /** The clone uri of the repository. */
151
+ cloneUri?: string;
152
+ }
153
+ interface ListConnectionsResponse {
154
+ /** The list of Connection */
155
+ connections?: Connection[];
156
+ /** A token identifying a page of results the server should return. */
157
+ nextPageToken?: string;
158
+ /** Locations that could not be reached. */
159
+ unreachable?: string[];
160
+ }
161
+ interface ListGitRepositoryLinksResponse {
162
+ /** The list of GitRepositoryLinks */
163
+ gitRepositoryLinks?: GitRepositoryLink[];
164
+ /** A token identifying a page of results the server should return. */
165
+ nextPageToken?: string;
166
+ /** Locations that could not be reached. */
167
+ unreachable?: string[];
168
+ }
169
+ interface ListLocationsResponse {
170
+ /** A list of locations that matches the specified filter in the request. */
171
+ locations?: Location[];
172
+ /** The standard List next-page token. */
173
+ nextPageToken?: string;
174
+ }
175
+ interface ListOperationsResponse {
176
+ /** The standard List next-page token. */
177
+ nextPageToken?: string;
178
+ /** A list of operations that matches the specified filter in the request. */
179
+ operations?: Operation[];
180
+ }
181
+ interface Location {
182
+ /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
183
+ displayName?: string;
184
+ /** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
185
+ labels?: {[P in string]: string};
186
+ /** The canonical id for this location. For example: `"us-east1"`. */
187
+ locationId?: string;
188
+ /** Service-specific metadata. For example the available capacity at the given location. */
189
+ metadata?: {[P in string]: any};
190
+ /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
191
+ name?: string;
192
+ }
193
+ interface OAuthCredential {
194
+ /** Required. A SecretManager resource containing the OAuth token that authorizes the connection. Format: `projects/*‍/secrets/*‍/versions/*`. */
195
+ oauthTokenSecretVersion?: string;
196
+ /** Output only. The username associated with this token. */
197
+ username?: string;
198
+ }
199
+ interface Operation {
200
+ /** 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. */
201
+ done?: boolean;
202
+ /** The error result of the operation in case of failure or cancellation. */
203
+ error?: Status;
204
+ /** 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 metadata. Any method that returns a long-running operation should document the metadata type, if any. */
205
+ metadata?: {[P in string]: any};
206
+ /** 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 with `operations/{unique_id}`. */
207
+ name?: string;
208
+ /** The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the 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 original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */
209
+ response?: {[P in string]: any};
210
+ }
211
+ interface OperationMetadata {
212
+ /** Output only. API version used to start the operation. */
213
+ apiVersion?: string;
214
+ /** Output only. The time the operation was created. */
215
+ createTime?: string;
216
+ /** Output only. The time the operation finished running. */
217
+ endTime?: string;
218
+ /** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
219
+ requestedCancellation?: boolean;
220
+ /** Output only. Human-readable status of the operation, if any. */
221
+ statusMessage?: string;
222
+ /** Output only. Server-defined resource path for the target of the operation. */
223
+ target?: string;
224
+ /** Output only. Name of the verb executed by the operation. */
225
+ verb?: string;
226
+ }
227
+ interface ProcessGitHubEnterpriseWebhookRequest {
228
+ /** Required. HTTP request body. */
229
+ body?: HttpBody;
230
+ /** Required. Arbitrary additional key to find the matching repository for a webhook event if needed. */
231
+ webhookKey?: string;
232
+ }
233
+ interface ProcessGitLabEnterpriseWebhookRequest {
234
+ /** Required. HTTP request body. */
235
+ body?: HttpBody;
236
+ /** Required. Arbitrary additional key to find the matching repository for a webhook event if needed. */
237
+ webhookKey?: string;
238
+ }
239
+ interface ProcessGitLabWebhookRequest {
240
+ /** Required. HTTP request body. */
241
+ body?: HttpBody;
242
+ /** Required. Arbitrary additional key to find the matching repository for a webhook event if needed. */
243
+ webhookKey?: string;
244
+ }
245
+ interface Status {
246
+ /** The status code, which should be an enum value of google.rpc.Code. */
247
+ code?: number;
248
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
249
+ details?: Array<{[P in string]: any}>;
250
+ /** 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 client. */
251
+ message?: string;
252
+ }
253
+ interface GitRepositoryLinksResource {
254
+ /** Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. All other Connections will have events forwarded to Cloud Build. */
255
+ create(request: {
256
+ /** V1 error format. */
257
+ '$.xgafv'?: string;
258
+ /** OAuth access token. */
259
+ access_token?: string;
260
+ /** Data format for response. */
261
+ alt?: string;
262
+ /** JSONP */
263
+ callback?: string;
264
+ /** Selector specifying which fields to include in a partial response. */
265
+ fields?: string;
266
+ /** Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@. */
267
+ gitRepositoryLinkId?: string;
268
+ /** 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. */
269
+ key?: string;
270
+ /** OAuth 2.0 token for the current user. */
271
+ oauth_token?: string;
272
+ /** Required. Value for parent. */
273
+ parent: string;
274
+ /** Returns response with indentations and line breaks. */
275
+ prettyPrint?: boolean;
276
+ /** 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. */
277
+ quotaUser?: string;
278
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
279
+ requestId?: string;
280
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
281
+ upload_protocol?: string;
282
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
283
+ uploadType?: string;
284
+ /** Optional. If set, validate the request, but do not actually post it. */
285
+ validateOnly?: boolean;
286
+ /** Request body */
287
+ resource: GitRepositoryLink;
288
+ }): Request<Operation>;
289
+ create(
290
+ request: {
291
+ /** V1 error format. */
292
+ '$.xgafv'?: string;
293
+ /** OAuth access token. */
294
+ access_token?: string;
295
+ /** Data format for response. */
296
+ alt?: string;
297
+ /** JSONP */
298
+ callback?: string;
299
+ /** Selector specifying which fields to include in a partial response. */
300
+ fields?: string;
301
+ /** Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@. */
302
+ gitRepositoryLinkId?: string;
303
+ /** 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. */
304
+ key?: string;
305
+ /** OAuth 2.0 token for the current user. */
306
+ oauth_token?: string;
307
+ /** Required. Value for parent. */
308
+ parent: string;
309
+ /** Returns response with indentations and line breaks. */
310
+ prettyPrint?: boolean;
311
+ /** 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. */
312
+ quotaUser?: string;
313
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
314
+ requestId?: string;
315
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
316
+ upload_protocol?: string;
317
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
318
+ uploadType?: string;
319
+ /** Optional. If set, validate the request, but do not actually post it. */
320
+ validateOnly?: boolean;
321
+ },
322
+ body: GitRepositoryLink
323
+ ): Request<Operation>;
324
+ /** Deletes a single GitRepositoryLink. */
325
+ delete(request?: {
326
+ /** V1 error format. */
327
+ '$.xgafv'?: string;
328
+ /** OAuth access token. */
329
+ access_token?: string;
330
+ /** Data format for response. */
331
+ alt?: string;
332
+ /** JSONP */
333
+ callback?: string;
334
+ /** Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */
335
+ etag?: string;
336
+ /** Selector specifying which fields to include in a partial response. */
337
+ fields?: string;
338
+ /** 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. */
339
+ key?: string;
340
+ /** Required. Name of the resource */
341
+ name: string;
342
+ /** OAuth 2.0 token for the current user. */
343
+ oauth_token?: string;
344
+ /** Returns response with indentations and line breaks. */
345
+ prettyPrint?: boolean;
346
+ /** 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. */
347
+ quotaUser?: string;
348
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
349
+ requestId?: string;
350
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
351
+ upload_protocol?: string;
352
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
353
+ uploadType?: string;
354
+ /** Optional. If set, validate the request, but do not actually post it. */
355
+ validateOnly?: boolean;
356
+ }): Request<Operation>;
357
+ /** Fetch the list of branches or tags for a given repository. */
358
+ fetchGitRefs(request?: {
359
+ /** V1 error format. */
360
+ '$.xgafv'?: string;
361
+ /** OAuth access token. */
362
+ access_token?: string;
363
+ /** Data format for response. */
364
+ alt?: string;
365
+ /** JSONP */
366
+ callback?: string;
367
+ /** Selector specifying which fields to include in a partial response. */
368
+ fields?: string;
369
+ /** Required. The resource name of GitRepositoryLink in the format `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
370
+ gitRepositoryLink: string;
371
+ /** 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. */
372
+ key?: string;
373
+ /** OAuth 2.0 token for the current user. */
374
+ oauth_token?: string;
375
+ /** Optional. Number of results to return in the list. Default to 20. */
376
+ pageSize?: number;
377
+ /** Optional. Page start. */
378
+ pageToken?: string;
379
+ /** Returns response with indentations and line breaks. */
380
+ prettyPrint?: boolean;
381
+ /** 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. */
382
+ quotaUser?: string;
383
+ /** Required. Type of refs to fetch. */
384
+ refType?: string;
385
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
386
+ upload_protocol?: string;
387
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
388
+ uploadType?: string;
389
+ }): Request<FetchGitRefsResponse>;
390
+ /** Fetches read token of a given gitRepositoryLink. */
391
+ fetchReadToken(request: {
392
+ /** V1 error format. */
393
+ '$.xgafv'?: string;
394
+ /** OAuth access token. */
395
+ access_token?: string;
396
+ /** Data format for response. */
397
+ alt?: string;
398
+ /** JSONP */
399
+ callback?: string;
400
+ /** Selector specifying which fields to include in a partial response. */
401
+ fields?: string;
402
+ /** Required. The resource name of the gitRepositoryLink in the format `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
403
+ gitRepositoryLink: string;
404
+ /** 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. */
405
+ key?: string;
406
+ /** OAuth 2.0 token for the current user. */
407
+ oauth_token?: string;
408
+ /** Returns response with indentations and line breaks. */
409
+ prettyPrint?: boolean;
410
+ /** 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. */
411
+ quotaUser?: string;
412
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
413
+ upload_protocol?: string;
414
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
415
+ uploadType?: string;
416
+ /** Request body */
417
+ resource: FetchReadTokenRequest;
418
+ }): Request<FetchReadTokenResponse>;
419
+ fetchReadToken(
420
+ request: {
421
+ /** V1 error format. */
422
+ '$.xgafv'?: string;
423
+ /** OAuth access token. */
424
+ access_token?: string;
425
+ /** Data format for response. */
426
+ alt?: string;
427
+ /** JSONP */
428
+ callback?: string;
429
+ /** Selector specifying which fields to include in a partial response. */
430
+ fields?: string;
431
+ /** Required. The resource name of the gitRepositoryLink in the format `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
432
+ gitRepositoryLink: string;
433
+ /** 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. */
434
+ key?: string;
435
+ /** OAuth 2.0 token for the current user. */
436
+ oauth_token?: string;
437
+ /** Returns response with indentations and line breaks. */
438
+ prettyPrint?: boolean;
439
+ /** 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. */
440
+ quotaUser?: string;
441
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
442
+ upload_protocol?: string;
443
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
444
+ uploadType?: string;
445
+ },
446
+ body: FetchReadTokenRequest
447
+ ): Request<FetchReadTokenResponse>;
448
+ /** Fetches read/write token of a given gitRepositoryLink. */
449
+ fetchReadWriteToken(request: {
450
+ /** V1 error format. */
451
+ '$.xgafv'?: string;
452
+ /** OAuth access token. */
453
+ access_token?: string;
454
+ /** Data format for response. */
455
+ alt?: string;
456
+ /** JSONP */
457
+ callback?: string;
458
+ /** Selector specifying which fields to include in a partial response. */
459
+ fields?: string;
460
+ /** Required. The resource name of the gitRepositoryLink in the format `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
461
+ gitRepositoryLink: string;
462
+ /** 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. */
463
+ key?: string;
464
+ /** OAuth 2.0 token for the current user. */
465
+ oauth_token?: string;
466
+ /** Returns response with indentations and line breaks. */
467
+ prettyPrint?: boolean;
468
+ /** 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. */
469
+ quotaUser?: string;
470
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
471
+ upload_protocol?: string;
472
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
473
+ uploadType?: string;
474
+ /** Request body */
475
+ resource: FetchReadWriteTokenRequest;
476
+ }): Request<FetchReadWriteTokenResponse>;
477
+ fetchReadWriteToken(
478
+ request: {
479
+ /** V1 error format. */
480
+ '$.xgafv'?: string;
481
+ /** OAuth access token. */
482
+ access_token?: string;
483
+ /** Data format for response. */
484
+ alt?: string;
485
+ /** JSONP */
486
+ callback?: string;
487
+ /** Selector specifying which fields to include in a partial response. */
488
+ fields?: string;
489
+ /** Required. The resource name of the gitRepositoryLink in the format `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
490
+ gitRepositoryLink: string;
491
+ /** 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. */
492
+ key?: string;
493
+ /** OAuth 2.0 token for the current user. */
494
+ oauth_token?: string;
495
+ /** Returns response with indentations and line breaks. */
496
+ prettyPrint?: boolean;
497
+ /** 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. */
498
+ quotaUser?: string;
499
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
500
+ upload_protocol?: string;
501
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
502
+ uploadType?: string;
503
+ },
504
+ body: FetchReadWriteTokenRequest
505
+ ): Request<FetchReadWriteTokenResponse>;
506
+ /** Gets details of a single GitRepositoryLink. */
507
+ get(request?: {
508
+ /** V1 error format. */
509
+ '$.xgafv'?: string;
510
+ /** OAuth access token. */
511
+ access_token?: string;
512
+ /** Data format for response. */
513
+ alt?: string;
514
+ /** JSONP */
515
+ callback?: string;
516
+ /** Selector specifying which fields to include in a partial response. */
517
+ fields?: string;
518
+ /** 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. */
519
+ key?: string;
520
+ /** Required. Name of the resource */
521
+ name: string;
522
+ /** OAuth 2.0 token for the current user. */
523
+ oauth_token?: string;
524
+ /** Returns response with indentations and line breaks. */
525
+ prettyPrint?: boolean;
526
+ /** 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. */
527
+ quotaUser?: string;
528
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
529
+ upload_protocol?: string;
530
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
531
+ uploadType?: string;
532
+ }): Request<GitRepositoryLink>;
533
+ /** Lists GitRepositoryLinks in a given project, location, and connection. */
534
+ list(request?: {
535
+ /** V1 error format. */
536
+ '$.xgafv'?: string;
537
+ /** OAuth access token. */
538
+ access_token?: string;
539
+ /** Data format for response. */
540
+ alt?: string;
541
+ /** JSONP */
542
+ callback?: string;
543
+ /** Selector specifying which fields to include in a partial response. */
544
+ fields?: string;
545
+ /** Optional. Filtering results */
546
+ filter?: string;
547
+ /** 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. */
548
+ key?: string;
549
+ /** OAuth 2.0 token for the current user. */
550
+ oauth_token?: string;
551
+ /** Optional. Hint for how to order the results */
552
+ orderBy?: string;
553
+ /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
554
+ pageSize?: number;
555
+ /** Optional. A token identifying a page of results the server should return. */
556
+ pageToken?: string;
557
+ /** Required. Parent value for ListGitRepositoryLinksRequest */
558
+ parent: string;
559
+ /** Returns response with indentations and line breaks. */
560
+ prettyPrint?: boolean;
561
+ /** 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. */
562
+ quotaUser?: string;
563
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
564
+ upload_protocol?: string;
565
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
566
+ uploadType?: string;
567
+ }): Request<ListGitRepositoryLinksResponse>;
568
+ }
569
+ interface ConnectionsResource {
570
+ /** Creates a new Connection in a given project and location. */
571
+ create(request: {
572
+ /** V1 error format. */
573
+ '$.xgafv'?: string;
574
+ /** OAuth access token. */
575
+ access_token?: string;
576
+ /** Data format for response. */
577
+ alt?: string;
578
+ /** JSONP */
579
+ callback?: string;
580
+ /** Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC */
581
+ connectionId?: string;
582
+ /** Selector specifying which fields to include in a partial response. */
583
+ fields?: string;
584
+ /** 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. */
585
+ key?: string;
586
+ /** OAuth 2.0 token for the current user. */
587
+ oauth_token?: string;
588
+ /** Required. Value for parent. */
589
+ parent: string;
590
+ /** Returns response with indentations and line breaks. */
591
+ prettyPrint?: boolean;
592
+ /** 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. */
593
+ quotaUser?: string;
594
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
595
+ requestId?: string;
596
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
597
+ upload_protocol?: string;
598
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
599
+ uploadType?: string;
600
+ /** Optional. If set, validate the request, but do not actually post it. */
601
+ validateOnly?: boolean;
602
+ /** Request body */
603
+ resource: Connection;
604
+ }): Request<Operation>;
605
+ create(
606
+ request: {
607
+ /** V1 error format. */
608
+ '$.xgafv'?: string;
609
+ /** OAuth access token. */
610
+ access_token?: string;
611
+ /** Data format for response. */
612
+ alt?: string;
613
+ /** JSONP */
614
+ callback?: string;
615
+ /** Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC */
616
+ connectionId?: string;
617
+ /** Selector specifying which fields to include in a partial response. */
618
+ fields?: string;
619
+ /** 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. */
620
+ key?: string;
621
+ /** OAuth 2.0 token for the current user. */
622
+ oauth_token?: string;
623
+ /** Required. Value for parent. */
624
+ parent: string;
625
+ /** Returns response with indentations and line breaks. */
626
+ prettyPrint?: boolean;
627
+ /** 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. */
628
+ quotaUser?: string;
629
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
630
+ requestId?: string;
631
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
632
+ upload_protocol?: string;
633
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
634
+ uploadType?: string;
635
+ /** Optional. If set, validate the request, but do not actually post it. */
636
+ validateOnly?: boolean;
637
+ },
638
+ body: Connection
639
+ ): Request<Operation>;
640
+ /** Deletes a single Connection. */
641
+ delete(request?: {
642
+ /** V1 error format. */
643
+ '$.xgafv'?: string;
644
+ /** OAuth access token. */
645
+ access_token?: string;
646
+ /** Data format for response. */
647
+ alt?: string;
648
+ /** JSONP */
649
+ callback?: string;
650
+ /** Optional. The current etag of the Connection. If an etag is provided and does not match the current etag of the Connection, deletion will be blocked and an ABORTED error will be returned. */
651
+ etag?: string;
652
+ /** Selector specifying which fields to include in a partial response. */
653
+ fields?: string;
654
+ /** 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. */
655
+ key?: string;
656
+ /** Required. Name of the resource */
657
+ name: string;
658
+ /** OAuth 2.0 token for the current user. */
659
+ oauth_token?: string;
660
+ /** Returns response with indentations and line breaks. */
661
+ prettyPrint?: boolean;
662
+ /** 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. */
663
+ quotaUser?: string;
664
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
665
+ requestId?: string;
666
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
667
+ upload_protocol?: string;
668
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
669
+ uploadType?: string;
670
+ /** Optional. If set, validate the request, but do not actually post it. */
671
+ validateOnly?: boolean;
672
+ }): Request<Operation>;
673
+ /** FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned. */
674
+ fetchGitHubInstallations(request?: {
675
+ /** V1 error format. */
676
+ '$.xgafv'?: string;
677
+ /** OAuth access token. */
678
+ access_token?: string;
679
+ /** Data format for response. */
680
+ alt?: string;
681
+ /** JSONP */
682
+ callback?: string;
683
+ /** Required. The resource name of the connection in the format `projects/*‍/locations/*‍/connections/*`. */
684
+ connection: string;
685
+ /** Selector specifying which fields to include in a partial response. */
686
+ fields?: string;
687
+ /** 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. */
688
+ key?: string;
689
+ /** OAuth 2.0 token for the current user. */
690
+ oauth_token?: string;
691
+ /** Returns response with indentations and line breaks. */
692
+ prettyPrint?: boolean;
693
+ /** 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. */
694
+ quotaUser?: string;
695
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
696
+ upload_protocol?: string;
697
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
698
+ uploadType?: string;
699
+ }): Request<FetchGitHubInstallationsResponse>;
700
+ /** FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection. */
701
+ fetchLinkableGitRepositories(request?: {
702
+ /** V1 error format. */
703
+ '$.xgafv'?: string;
704
+ /** OAuth access token. */
705
+ access_token?: string;
706
+ /** Data format for response. */
707
+ alt?: string;
708
+ /** JSONP */
709
+ callback?: string;
710
+ /** Required. The name of the Connection. Format: `projects/*‍/locations/*‍/connections/*`. */
711
+ connection: string;
712
+ /** Selector specifying which fields to include in a partial response. */
713
+ fields?: string;
714
+ /** 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. */
715
+ key?: string;
716
+ /** OAuth 2.0 token for the current user. */
717
+ oauth_token?: string;
718
+ /** Optional. Number of results to return in the list. Defaults to 20. */
719
+ pageSize?: number;
720
+ /** Optional. Page start. */
721
+ pageToken?: string;
722
+ /** Returns response with indentations and line breaks. */
723
+ prettyPrint?: boolean;
724
+ /** 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. */
725
+ quotaUser?: string;
726
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
727
+ upload_protocol?: string;
728
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
729
+ uploadType?: string;
730
+ }): Request<FetchLinkableGitRepositoriesResponse>;
731
+ /** Gets details of a single Connection. */
732
+ get(request?: {
733
+ /** V1 error format. */
734
+ '$.xgafv'?: string;
735
+ /** OAuth access token. */
736
+ access_token?: string;
737
+ /** Data format for response. */
738
+ alt?: string;
739
+ /** JSONP */
740
+ callback?: string;
741
+ /** Selector specifying which fields to include in a partial response. */
742
+ fields?: string;
743
+ /** 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. */
744
+ key?: string;
745
+ /** Required. Name of the resource */
746
+ name: string;
747
+ /** OAuth 2.0 token for the current user. */
748
+ oauth_token?: string;
749
+ /** Returns response with indentations and line breaks. */
750
+ prettyPrint?: boolean;
751
+ /** 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. */
752
+ quotaUser?: string;
753
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
754
+ upload_protocol?: string;
755
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
756
+ uploadType?: string;
757
+ }): Request<Connection>;
758
+ /** Lists Connections in a given project and location. */
759
+ list(request?: {
760
+ /** V1 error format. */
761
+ '$.xgafv'?: string;
762
+ /** OAuth access token. */
763
+ access_token?: string;
764
+ /** Data format for response. */
765
+ alt?: string;
766
+ /** JSONP */
767
+ callback?: string;
768
+ /** Selector specifying which fields to include in a partial response. */
769
+ fields?: string;
770
+ /** Optional. Filtering results */
771
+ filter?: string;
772
+ /** 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. */
773
+ key?: string;
774
+ /** OAuth 2.0 token for the current user. */
775
+ oauth_token?: string;
776
+ /** Optional. Hint for how to order the results */
777
+ orderBy?: string;
778
+ /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
779
+ pageSize?: number;
780
+ /** Optional. A token identifying a page of results the server should return. */
781
+ pageToken?: string;
782
+ /** Required. Parent value for ListConnectionsRequest */
783
+ parent: string;
784
+ /** Returns response with indentations and line breaks. */
785
+ prettyPrint?: boolean;
786
+ /** 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. */
787
+ quotaUser?: string;
788
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
789
+ upload_protocol?: string;
790
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
791
+ uploadType?: string;
792
+ }): Request<ListConnectionsResponse>;
793
+ /** Updates the parameters of a single Connection. */
794
+ patch(request: {
795
+ /** V1 error format. */
796
+ '$.xgafv'?: string;
797
+ /** OAuth access token. */
798
+ access_token?: string;
799
+ /** Optional. If set to true, and the connection is not found a new connection will be created. In this situation `update_mask` is ignored. The creation will succeed only if the input connection has all the necessary information (e.g a github_config with both user_oauth_token and installation_id properties). */
800
+ allowMissing?: boolean;
801
+ /** Data format for response. */
802
+ alt?: string;
803
+ /** JSONP */
804
+ callback?: string;
805
+ /** Selector specifying which fields to include in a partial response. */
806
+ fields?: string;
807
+ /** 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. */
808
+ key?: string;
809
+ /** Identifier. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`. */
810
+ name: string;
811
+ /** OAuth 2.0 token for the current user. */
812
+ oauth_token?: string;
813
+ /** Returns response with indentations and line breaks. */
814
+ prettyPrint?: boolean;
815
+ /** 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. */
816
+ quotaUser?: string;
817
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
818
+ requestId?: string;
819
+ /** Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */
820
+ updateMask?: string;
821
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
822
+ upload_protocol?: string;
823
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
824
+ uploadType?: string;
825
+ /** Optional. If set, validate the request, but do not actually post it. */
826
+ validateOnly?: boolean;
827
+ /** Request body */
828
+ resource: Connection;
829
+ }): Request<Operation>;
830
+ patch(
831
+ request: {
832
+ /** V1 error format. */
833
+ '$.xgafv'?: string;
834
+ /** OAuth access token. */
835
+ access_token?: string;
836
+ /** Optional. If set to true, and the connection is not found a new connection will be created. In this situation `update_mask` is ignored. The creation will succeed only if the input connection has all the necessary information (e.g a github_config with both user_oauth_token and installation_id properties). */
837
+ allowMissing?: boolean;
838
+ /** Data format for response. */
839
+ alt?: string;
840
+ /** JSONP */
841
+ callback?: string;
842
+ /** Selector specifying which fields to include in a partial response. */
843
+ fields?: string;
844
+ /** 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. */
845
+ key?: string;
846
+ /** Identifier. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`. */
847
+ name: string;
848
+ /** OAuth 2.0 token for the current user. */
849
+ oauth_token?: string;
850
+ /** Returns response with indentations and line breaks. */
851
+ prettyPrint?: boolean;
852
+ /** 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. */
853
+ quotaUser?: string;
854
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
855
+ requestId?: string;
856
+ /** Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */
857
+ updateMask?: string;
858
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
859
+ upload_protocol?: string;
860
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
861
+ uploadType?: string;
862
+ /** Optional. If set, validate the request, but do not actually post it. */
863
+ validateOnly?: boolean;
864
+ },
865
+ body: Connection
866
+ ): Request<Operation>;
867
+ /** ProcessGitHubEnterpriseWebhook is called by the external GitHub Enterprise instances for notifying events. */
868
+ processGitHubEnterpriseWebhook(request: {
869
+ /** V1 error format. */
870
+ '$.xgafv'?: string;
871
+ /** OAuth access token. */
872
+ access_token?: string;
873
+ /** Data format for response. */
874
+ alt?: string;
875
+ /** JSONP */
876
+ callback?: string;
877
+ /** Selector specifying which fields to include in a partial response. */
878
+ fields?: string;
879
+ /** 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. */
880
+ key?: string;
881
+ /** OAuth 2.0 token for the current user. */
882
+ oauth_token?: string;
883
+ /** Required. Project and location where the webhook will be received. Format: `projects/*‍/locations/*`. */
884
+ parent: string;
885
+ /** Returns response with indentations and line breaks. */
886
+ prettyPrint?: boolean;
887
+ /** 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. */
888
+ quotaUser?: string;
889
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
890
+ upload_protocol?: string;
891
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
892
+ uploadType?: string;
893
+ /** Request body */
894
+ resource: ProcessGitHubEnterpriseWebhookRequest;
895
+ }): Request<{}>;
896
+ processGitHubEnterpriseWebhook(
897
+ request: {
898
+ /** V1 error format. */
899
+ '$.xgafv'?: string;
900
+ /** OAuth access token. */
901
+ access_token?: string;
902
+ /** Data format for response. */
903
+ alt?: string;
904
+ /** JSONP */
905
+ callback?: string;
906
+ /** Selector specifying which fields to include in a partial response. */
907
+ fields?: string;
908
+ /** 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. */
909
+ key?: string;
910
+ /** OAuth 2.0 token for the current user. */
911
+ oauth_token?: string;
912
+ /** Required. Project and location where the webhook will be received. Format: `projects/*‍/locations/*`. */
913
+ parent: string;
914
+ /** Returns response with indentations and line breaks. */
915
+ prettyPrint?: boolean;
916
+ /** 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. */
917
+ quotaUser?: string;
918
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
919
+ upload_protocol?: string;
920
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
921
+ uploadType?: string;
922
+ },
923
+ body: ProcessGitHubEnterpriseWebhookRequest
924
+ ): Request<{}>;
925
+ /** ProcessGitLabEnterpriseWebhook is called by the external GitLab Enterprise instances for notifying events. */
926
+ processGitLabEnterpriseWebhook(request: {
927
+ /** V1 error format. */
928
+ '$.xgafv'?: string;
929
+ /** OAuth access token. */
930
+ access_token?: string;
931
+ /** Data format for response. */
932
+ alt?: string;
933
+ /** JSONP */
934
+ callback?: string;
935
+ /** Selector specifying which fields to include in a partial response. */
936
+ fields?: string;
937
+ /** 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. */
938
+ key?: string;
939
+ /** OAuth 2.0 token for the current user. */
940
+ oauth_token?: string;
941
+ /** Required. Project and location where the webhook will be received. Format: `projects/*‍/locations/*`. */
942
+ parent: string;
943
+ /** Returns response with indentations and line breaks. */
944
+ prettyPrint?: boolean;
945
+ /** 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. */
946
+ quotaUser?: string;
947
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
948
+ upload_protocol?: string;
949
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
950
+ uploadType?: string;
951
+ /** Request body */
952
+ resource: ProcessGitLabEnterpriseWebhookRequest;
953
+ }): Request<{}>;
954
+ processGitLabEnterpriseWebhook(
955
+ request: {
956
+ /** V1 error format. */
957
+ '$.xgafv'?: string;
958
+ /** OAuth access token. */
959
+ access_token?: string;
960
+ /** Data format for response. */
961
+ alt?: string;
962
+ /** JSONP */
963
+ callback?: string;
964
+ /** Selector specifying which fields to include in a partial response. */
965
+ fields?: string;
966
+ /** 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. */
967
+ key?: string;
968
+ /** OAuth 2.0 token for the current user. */
969
+ oauth_token?: string;
970
+ /** Required. Project and location where the webhook will be received. Format: `projects/*‍/locations/*`. */
971
+ parent: string;
972
+ /** Returns response with indentations and line breaks. */
973
+ prettyPrint?: boolean;
974
+ /** 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. */
975
+ quotaUser?: string;
976
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
977
+ upload_protocol?: string;
978
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
979
+ uploadType?: string;
980
+ },
981
+ body: ProcessGitLabEnterpriseWebhookRequest
982
+ ): Request<{}>;
983
+ /** ProcessGitLabWebhook is called by the GitLab.com for notifying events. */
984
+ processGitLabWebhook(request: {
985
+ /** V1 error format. */
986
+ '$.xgafv'?: string;
987
+ /** OAuth access token. */
988
+ access_token?: string;
989
+ /** Data format for response. */
990
+ alt?: string;
991
+ /** JSONP */
992
+ callback?: string;
993
+ /** Selector specifying which fields to include in a partial response. */
994
+ fields?: string;
995
+ /** 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. */
996
+ key?: string;
997
+ /** OAuth 2.0 token for the current user. */
998
+ oauth_token?: string;
999
+ /** Required. Project and location where the webhook will be received. Format: `projects/*‍/locations/*`. */
1000
+ parent: string;
1001
+ /** Returns response with indentations and line breaks. */
1002
+ prettyPrint?: boolean;
1003
+ /** 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. */
1004
+ quotaUser?: string;
1005
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1006
+ upload_protocol?: string;
1007
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1008
+ uploadType?: string;
1009
+ /** Request body */
1010
+ resource: ProcessGitLabWebhookRequest;
1011
+ }): Request<{}>;
1012
+ processGitLabWebhook(
1013
+ request: {
1014
+ /** V1 error format. */
1015
+ '$.xgafv'?: string;
1016
+ /** OAuth access token. */
1017
+ access_token?: string;
1018
+ /** Data format for response. */
1019
+ alt?: string;
1020
+ /** JSONP */
1021
+ callback?: string;
1022
+ /** Selector specifying which fields to include in a partial response. */
1023
+ fields?: string;
1024
+ /** 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. */
1025
+ key?: string;
1026
+ /** OAuth 2.0 token for the current user. */
1027
+ oauth_token?: string;
1028
+ /** Required. Project and location where the webhook will be received. Format: `projects/*‍/locations/*`. */
1029
+ parent: string;
1030
+ /** Returns response with indentations and line breaks. */
1031
+ prettyPrint?: boolean;
1032
+ /** 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. */
1033
+ quotaUser?: string;
1034
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1035
+ upload_protocol?: string;
1036
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1037
+ uploadType?: string;
1038
+ },
1039
+ body: ProcessGitLabWebhookRequest
1040
+ ): Request<{}>;
1041
+ gitRepositoryLinks: GitRepositoryLinksResource;
1042
+ }
1043
+ interface OperationsResource {
1044
+ /** 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 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 operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
1045
+ cancel(request: {
1046
+ /** V1 error format. */
1047
+ '$.xgafv'?: string;
1048
+ /** OAuth access token. */
1049
+ access_token?: string;
1050
+ /** Data format for response. */
1051
+ alt?: string;
1052
+ /** JSONP */
1053
+ callback?: string;
1054
+ /** Selector specifying which fields to include in a partial response. */
1055
+ fields?: string;
1056
+ /** 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. */
1057
+ key?: string;
1058
+ /** The name of the operation resource to be cancelled. */
1059
+ name: string;
1060
+ /** OAuth 2.0 token for the current user. */
1061
+ oauth_token?: string;
1062
+ /** Returns response with indentations and line breaks. */
1063
+ prettyPrint?: boolean;
1064
+ /** 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. */
1065
+ quotaUser?: string;
1066
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1067
+ upload_protocol?: string;
1068
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1069
+ uploadType?: string;
1070
+ /** Request body */
1071
+ resource: CancelOperationRequest;
1072
+ }): Request<{}>;
1073
+ cancel(
1074
+ request: {
1075
+ /** V1 error format. */
1076
+ '$.xgafv'?: string;
1077
+ /** OAuth access token. */
1078
+ access_token?: string;
1079
+ /** Data format for response. */
1080
+ alt?: string;
1081
+ /** JSONP */
1082
+ callback?: string;
1083
+ /** Selector specifying which fields to include in a partial response. */
1084
+ fields?: string;
1085
+ /** 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. */
1086
+ key?: string;
1087
+ /** The name of the operation resource to be cancelled. */
1088
+ name: string;
1089
+ /** OAuth 2.0 token for the current user. */
1090
+ oauth_token?: string;
1091
+ /** Returns response with indentations and line breaks. */
1092
+ prettyPrint?: boolean;
1093
+ /** 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. */
1094
+ quotaUser?: string;
1095
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1096
+ upload_protocol?: string;
1097
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1098
+ uploadType?: string;
1099
+ },
1100
+ body: CancelOperationRequest
1101
+ ): Request<{}>;
1102
+ /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
1103
+ delete(request?: {
1104
+ /** V1 error format. */
1105
+ '$.xgafv'?: string;
1106
+ /** OAuth access token. */
1107
+ access_token?: string;
1108
+ /** Data format for response. */
1109
+ alt?: string;
1110
+ /** JSONP */
1111
+ callback?: string;
1112
+ /** Selector specifying which fields to include in a partial response. */
1113
+ fields?: string;
1114
+ /** 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. */
1115
+ key?: string;
1116
+ /** The name of the operation resource to be deleted. */
1117
+ name: string;
1118
+ /** OAuth 2.0 token for the current user. */
1119
+ oauth_token?: string;
1120
+ /** Returns response with indentations and line breaks. */
1121
+ prettyPrint?: boolean;
1122
+ /** 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. */
1123
+ quotaUser?: string;
1124
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1125
+ upload_protocol?: string;
1126
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1127
+ uploadType?: string;
1128
+ }): Request<{}>;
1129
+ /** 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. */
1130
+ get(request?: {
1131
+ /** V1 error format. */
1132
+ '$.xgafv'?: string;
1133
+ /** OAuth access token. */
1134
+ access_token?: string;
1135
+ /** Data format for response. */
1136
+ alt?: string;
1137
+ /** JSONP */
1138
+ callback?: string;
1139
+ /** Selector specifying which fields to include in a partial response. */
1140
+ fields?: string;
1141
+ /** 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. */
1142
+ key?: string;
1143
+ /** The name of the operation resource. */
1144
+ name: string;
1145
+ /** OAuth 2.0 token for the current user. */
1146
+ oauth_token?: string;
1147
+ /** Returns response with indentations and line breaks. */
1148
+ prettyPrint?: boolean;
1149
+ /** 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. */
1150
+ quotaUser?: string;
1151
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1152
+ upload_protocol?: string;
1153
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1154
+ uploadType?: string;
1155
+ }): Request<Operation>;
1156
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1157
+ list(request?: {
1158
+ /** V1 error format. */
1159
+ '$.xgafv'?: string;
1160
+ /** OAuth access token. */
1161
+ access_token?: string;
1162
+ /** Data format for response. */
1163
+ alt?: string;
1164
+ /** JSONP */
1165
+ callback?: string;
1166
+ /** Selector specifying which fields to include in a partial response. */
1167
+ fields?: string;
1168
+ /** The standard list filter. */
1169
+ filter?: string;
1170
+ /** 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. */
1171
+ key?: string;
1172
+ /** The name of the operation's parent resource. */
1173
+ name: string;
1174
+ /** OAuth 2.0 token for the current user. */
1175
+ oauth_token?: string;
1176
+ /** The standard list page size. */
1177
+ pageSize?: number;
1178
+ /** The standard list page token. */
1179
+ pageToken?: string;
1180
+ /** Returns response with indentations and line breaks. */
1181
+ prettyPrint?: boolean;
1182
+ /** 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. */
1183
+ quotaUser?: string;
1184
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1185
+ upload_protocol?: string;
1186
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1187
+ uploadType?: string;
1188
+ }): Request<ListOperationsResponse>;
1189
+ }
1190
+ interface LocationsResource {
1191
+ /** Gets information about a location. */
1192
+ get(request?: {
1193
+ /** V1 error format. */
1194
+ '$.xgafv'?: string;
1195
+ /** OAuth access token. */
1196
+ access_token?: string;
1197
+ /** Data format for response. */
1198
+ alt?: string;
1199
+ /** JSONP */
1200
+ callback?: string;
1201
+ /** Selector specifying which fields to include in a partial response. */
1202
+ fields?: string;
1203
+ /** 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. */
1204
+ key?: string;
1205
+ /** Resource name for the location. */
1206
+ name: string;
1207
+ /** OAuth 2.0 token for the current user. */
1208
+ oauth_token?: string;
1209
+ /** Returns response with indentations and line breaks. */
1210
+ prettyPrint?: boolean;
1211
+ /** 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. */
1212
+ quotaUser?: string;
1213
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1214
+ upload_protocol?: string;
1215
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1216
+ uploadType?: string;
1217
+ }): Request<Location>;
1218
+ /** Lists information about the supported locations for this service. */
1219
+ list(request?: {
1220
+ /** V1 error format. */
1221
+ '$.xgafv'?: string;
1222
+ /** OAuth access token. */
1223
+ access_token?: string;
1224
+ /** Data format for response. */
1225
+ alt?: string;
1226
+ /** JSONP */
1227
+ callback?: string;
1228
+ /** Selector specifying which fields to include in a partial response. */
1229
+ fields?: string;
1230
+ /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */
1231
+ filter?: string;
1232
+ /** 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. */
1233
+ key?: string;
1234
+ /** The resource that owns the locations collection, if applicable. */
1235
+ name: string;
1236
+ /** OAuth 2.0 token for the current user. */
1237
+ oauth_token?: string;
1238
+ /** The maximum number of results to return. If not set, the service selects a default. */
1239
+ pageSize?: number;
1240
+ /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
1241
+ pageToken?: string;
1242
+ /** Returns response with indentations and line breaks. */
1243
+ prettyPrint?: boolean;
1244
+ /** 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. */
1245
+ quotaUser?: string;
1246
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1247
+ upload_protocol?: string;
1248
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1249
+ uploadType?: string;
1250
+ }): Request<ListLocationsResponse>;
1251
+ connections: ConnectionsResource;
1252
+ operations: OperationsResource;
1253
+ }
1254
+ interface ProjectsResource {
1255
+ locations: LocationsResource;
1256
+ }
1257
+
1258
+ const projects: ProjectsResource;
1259
+ }
1260
+ }