@maxim_mazurok/gapi.client.developerconnect-v1 0.0.20240906 → 0.0.20240919
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 +73 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://developerconnect.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240919
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -34,6 +34,8 @@ declare namespace gapi.client {
|
|
|
34
34
|
annotations?: {[P in string]: string};
|
|
35
35
|
/** Output only. [Output only] Create timestamp */
|
|
36
36
|
createTime?: string;
|
|
37
|
+
/** Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature. */
|
|
38
|
+
cryptoKeyConfig?: CryptoKeyConfig;
|
|
37
39
|
/** Output only. [Output only] Delete timestamp */
|
|
38
40
|
deleteTime?: string;
|
|
39
41
|
/** 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. */
|
|
@@ -42,6 +44,12 @@ declare namespace gapi.client {
|
|
|
42
44
|
etag?: string;
|
|
43
45
|
/** Configuration for connections to github.com. */
|
|
44
46
|
githubConfig?: GitHubConfig;
|
|
47
|
+
/** Configuration for connections to an instance of GitHub Enterprise. */
|
|
48
|
+
githubEnterpriseConfig?: GitHubEnterpriseConfig;
|
|
49
|
+
/** Configuration for connections to gitlab.com. */
|
|
50
|
+
gitlabConfig?: GitLabConfig;
|
|
51
|
+
/** Configuration for connections to an instance of GitLab Enterprise. */
|
|
52
|
+
gitlabEnterpriseConfig?: GitLabEnterpriseConfig;
|
|
45
53
|
/** Output only. Installation state of the Connection. */
|
|
46
54
|
installationState?: InstallationState;
|
|
47
55
|
/** Optional. Labels as key value pairs */
|
|
@@ -55,6 +63,10 @@ declare namespace gapi.client {
|
|
|
55
63
|
/** Output only. [Output only] Update timestamp */
|
|
56
64
|
updateTime?: string;
|
|
57
65
|
}
|
|
66
|
+
interface CryptoKeyConfig {
|
|
67
|
+
/** Required. The name of the key which is used to encrypt/decrypt customer data. For key in Cloud KMS, the key should be in the format of `projects/*/locations/*/keyRings/*/cryptoKeys/*`. */
|
|
68
|
+
keyReference?: string;
|
|
69
|
+
}
|
|
58
70
|
interface Empty {}
|
|
59
71
|
interface FetchGitHubInstallationsResponse {
|
|
60
72
|
/** List of installations available to the OAuth user (for github.com) or all the installations (for GitHub enterprise). */
|
|
@@ -100,6 +112,52 @@ declare namespace gapi.client {
|
|
|
100
112
|
/** Output only. The URI to navigate to in order to manage the installation associated with this GitHubConfig. */
|
|
101
113
|
installationUri?: string;
|
|
102
114
|
}
|
|
115
|
+
interface GitHubEnterpriseConfig {
|
|
116
|
+
/** Optional. ID of the GitHub App created from the manifest. */
|
|
117
|
+
appId?: string;
|
|
118
|
+
/** Optional. ID of the installation of the GitHub App. */
|
|
119
|
+
appInstallationId?: string;
|
|
120
|
+
/** Output only. The URL-friendly name of the GitHub App. */
|
|
121
|
+
appSlug?: string;
|
|
122
|
+
/** Required. The URI of the GitHub Enterprise host this connection is for. */
|
|
123
|
+
hostUri?: string;
|
|
124
|
+
/** Output only. The URI to navigate to in order to manage the installation associated with this GitHubEnterpriseConfig. */
|
|
125
|
+
installationUri?: string;
|
|
126
|
+
/** Optional. SecretManager resource containing the private key of the GitHub App, formatted as `projects/*/secrets/*/versions/*`. */
|
|
127
|
+
privateKeySecretVersion?: string;
|
|
128
|
+
/** Output only. GitHub Enterprise version installed at the host_uri. */
|
|
129
|
+
serverVersion?: string;
|
|
130
|
+
/** Optional. Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet. */
|
|
131
|
+
serviceDirectoryConfig?: ServiceDirectoryConfig;
|
|
132
|
+
/** Optional. SSL certificate to use for requests to GitHub Enterprise. */
|
|
133
|
+
sslCaCertificate?: string;
|
|
134
|
+
/** Optional. SecretManager resource containing the webhook secret of the GitHub App, formatted as `projects/*/secrets/*/versions/*`. */
|
|
135
|
+
webhookSecretSecretVersion?: string;
|
|
136
|
+
}
|
|
137
|
+
interface GitLabConfig {
|
|
138
|
+
/** Required. A GitLab personal access token with the minimum `api` scope access and a minimum role of `maintainer`. The GitLab Projects visible to this Personal Access Token will control which Projects Developer Connect has access to. */
|
|
139
|
+
authorizerCredential?: UserCredential;
|
|
140
|
+
/** Required. A GitLab personal access token with the minimum `read_api` scope access and a minimum role of `reporter`. The GitLab Projects visible to this Personal Access Token will control which Projects Developer Connect has access to. */
|
|
141
|
+
readAuthorizerCredential?: UserCredential;
|
|
142
|
+
/** Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This is used to validate webhooks. */
|
|
143
|
+
webhookSecretSecretVersion?: string;
|
|
144
|
+
}
|
|
145
|
+
interface GitLabEnterpriseConfig {
|
|
146
|
+
/** Required. A GitLab personal access token with the minimum `api` scope access and a minimum role of `maintainer`. The GitLab Projects visible to this Personal Access Token will control which Projects Developer Connect has access to. */
|
|
147
|
+
authorizerCredential?: UserCredential;
|
|
148
|
+
/** Required. The URI of the GitLab Enterprise host this connection is for. */
|
|
149
|
+
hostUri?: string;
|
|
150
|
+
/** Required. A GitLab personal access token with the minimum `read_api` scope access and a minimum role of `reporter`. The GitLab Projects visible to this Personal Access Token will control which Projects Developer Connect has access to. */
|
|
151
|
+
readAuthorizerCredential?: UserCredential;
|
|
152
|
+
/** Output only. Version of the GitLab Enterprise server running on the `host_uri`. */
|
|
153
|
+
serverVersion?: string;
|
|
154
|
+
/** Optional. Configuration for using Service Directory to privately connect to a GitLab Enterprise instance. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet. */
|
|
155
|
+
serviceDirectoryConfig?: ServiceDirectoryConfig;
|
|
156
|
+
/** Optional. SSL Certificate Authority certificate to use for requests to GitLab Enterprise instance. */
|
|
157
|
+
sslCaCertificate?: string;
|
|
158
|
+
/** Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This is used to validate webhooks. */
|
|
159
|
+
webhookSecretSecretVersion?: string;
|
|
160
|
+
}
|
|
103
161
|
interface GitRepositoryLink {
|
|
104
162
|
/** Optional. Allows clients to store small amounts of arbitrary data. */
|
|
105
163
|
annotations?: {[P in string]: string};
|
|
@@ -121,6 +179,8 @@ declare namespace gapi.client {
|
|
|
121
179
|
uid?: string;
|
|
122
180
|
/** Output only. [Output only] Update timestamp */
|
|
123
181
|
updateTime?: string;
|
|
182
|
+
/** Output only. External ID of the webhook created for the repository. */
|
|
183
|
+
webhookId?: string;
|
|
124
184
|
}
|
|
125
185
|
interface Installation {
|
|
126
186
|
/** ID of the installation in GitHub. */
|
|
@@ -216,6 +276,10 @@ declare namespace gapi.client {
|
|
|
216
276
|
/** Output only. Name of the verb executed by the operation. */
|
|
217
277
|
verb?: string;
|
|
218
278
|
}
|
|
279
|
+
interface ServiceDirectoryConfig {
|
|
280
|
+
/** Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. */
|
|
281
|
+
service?: string;
|
|
282
|
+
}
|
|
219
283
|
interface Status {
|
|
220
284
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
221
285
|
code?: number;
|
|
@@ -224,6 +288,12 @@ declare namespace gapi.client {
|
|
|
224
288
|
/** 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. */
|
|
225
289
|
message?: string;
|
|
226
290
|
}
|
|
291
|
+
interface UserCredential {
|
|
292
|
+
/** Output only. The username associated with this token. */
|
|
293
|
+
username?: string;
|
|
294
|
+
/** Required. A SecretManager resource containing the user token that authorizes the Developer Connect connection. Format: `projects/*/secrets/*/versions/*`. */
|
|
295
|
+
userTokenSecretVersion?: string;
|
|
296
|
+
}
|
|
227
297
|
interface GitRepositoryLinksResource {
|
|
228
298
|
/** 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. */
|
|
229
299
|
create(request: {
|
|
@@ -790,7 +860,7 @@ declare namespace gapi.client {
|
|
|
790
860
|
quotaUser?: string;
|
|
791
861
|
/** 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). */
|
|
792
862
|
requestId?: string;
|
|
793
|
-
/** 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. */
|
|
863
|
+
/** Optional. 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. */
|
|
794
864
|
updateMask?: string;
|
|
795
865
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
796
866
|
upload_protocol?: string;
|
|
@@ -827,7 +897,7 @@ declare namespace gapi.client {
|
|
|
827
897
|
quotaUser?: string;
|
|
828
898
|
/** 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). */
|
|
829
899
|
requestId?: string;
|
|
830
|
-
/** 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. */
|
|
900
|
+
/** Optional. 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. */
|
|
831
901
|
updateMask?: string;
|
|
832
902
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
833
903
|
upload_protocol?: string;
|