@maxim_mazurok/gapi.client.developerconnect-v1 0.1.20251201 → 0.1.20251211
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 +198 -1
- 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: 20251211
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -70,6 +70,22 @@ declare namespace gapi.client {
|
|
|
70
70
|
/** Required. Immutable. The URI of the artifact that is deployed. e.g. `us-docker.pkg.dev/my-project/my-repo/image`. The URI does not include the tag / digest because it captures a lineage of artifacts. */
|
|
71
71
|
uri?: string;
|
|
72
72
|
}
|
|
73
|
+
interface ArtifactDeployment {
|
|
74
|
+
/** Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0 */
|
|
75
|
+
artifactAlias?: string;
|
|
76
|
+
/** Output only. The artifact that is deployed. */
|
|
77
|
+
artifactReference?: string;
|
|
78
|
+
/** Output only. The summary of container status of the artifact deployment. Format as `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3" */
|
|
79
|
+
containerStatusSummary?: string;
|
|
80
|
+
/** Output only. The time at which the deployment was deployed. */
|
|
81
|
+
deployTime?: string;
|
|
82
|
+
/** Output only. Unique identifier of `ArtifactDeployment`. */
|
|
83
|
+
id?: string;
|
|
84
|
+
/** Output only. The source commits at which this artifact was built. Extracted from provenance. */
|
|
85
|
+
sourceCommitUris?: string[];
|
|
86
|
+
/** Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set. */
|
|
87
|
+
undeployTime?: string;
|
|
88
|
+
}
|
|
73
89
|
interface BitbucketCloudConfig {
|
|
74
90
|
/** Required. An access token with the minimum `repository`, `pullrequest` and `webhook` scope access. It can either be a workspace, project or repository access token. This is needed to create webhooks. It's recommended to use a system account to generate these credentials. */
|
|
75
91
|
authorizerCredential?: UserCredential;
|
|
@@ -141,6 +157,26 @@ declare namespace gapi.client {
|
|
|
141
157
|
/** 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/*`. */
|
|
142
158
|
keyReference?: string;
|
|
143
159
|
}
|
|
160
|
+
interface DeploymentEvent {
|
|
161
|
+
/** Output only. The artifact deployments of the DeploymentEvent. Each artifact deployment contains the artifact uri and the runtime configuration uri. For GKE, this would be all the containers images that are deployed in the pod. */
|
|
162
|
+
artifactDeployments?: ArtifactDeployment[];
|
|
163
|
+
/** Output only. The create time of the DeploymentEvent. */
|
|
164
|
+
createTime?: string;
|
|
165
|
+
/** Output only. The time at which the DeploymentEvent was deployed. This would be the min of all ArtifactDeployment deploy_times. */
|
|
166
|
+
deployTime?: string;
|
|
167
|
+
/** Identifier. The name of the DeploymentEvent. This name is provided by DCI. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid} */
|
|
168
|
+
name?: string;
|
|
169
|
+
/** Output only. The runtime configurations where the DeploymentEvent happened. */
|
|
170
|
+
runtimeConfig?: RuntimeConfig;
|
|
171
|
+
/** Output only. The runtime assigned URI of the DeploymentEvent. For GKE, this is the fully qualified replica set uri. e.g. container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/apps/replicasets/{replica-set-id} For Cloud Run, this is the revision name. */
|
|
172
|
+
runtimeDeploymentUri?: string;
|
|
173
|
+
/** Output only. The state of the DeploymentEvent. */
|
|
174
|
+
state?: string;
|
|
175
|
+
/** Output only. The time at which the DeploymentEvent was undeployed, all artifacts are considered undeployed once this time is set. This would be the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment is still active (i.e. does not have an undeploy_time), this field will be empty. */
|
|
176
|
+
undeployTime?: string;
|
|
177
|
+
/** Output only. The update time of the DeploymentEvent. */
|
|
178
|
+
updateTime?: string;
|
|
179
|
+
}
|
|
144
180
|
interface Empty {}
|
|
145
181
|
interface ExchangeError {
|
|
146
182
|
/** https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error */
|
|
@@ -193,6 +229,10 @@ declare namespace gapi.client {
|
|
|
193
229
|
/** The token content. */
|
|
194
230
|
token?: string;
|
|
195
231
|
}
|
|
232
|
+
interface FinishOAuthResponse {
|
|
233
|
+
/** The error resulted from exchanging OAuth tokens from the service provider. */
|
|
234
|
+
exchangeError?: ExchangeError;
|
|
235
|
+
}
|
|
196
236
|
interface GitHubConfig {
|
|
197
237
|
/** Optional. GitHub App installation id. */
|
|
198
238
|
appInstallationId?: string;
|
|
@@ -252,6 +292,8 @@ declare namespace gapi.client {
|
|
|
252
292
|
interface GitProxyConfig {
|
|
253
293
|
/** Optional. Setting this to true allows the git proxy to be used for performing git operations on the repositories linked in the connection. */
|
|
254
294
|
enabled?: boolean;
|
|
295
|
+
/** Output only. The base URI for the HTTP proxy endpoint. Has the format `https://{generatedID}-c-h-{shortRegion}.developerconnect.dev` Populated only when enabled is set to true. This endpoint is used by other Google services that integrate with Developer Connect. */
|
|
296
|
+
httpProxyBaseUri?: string;
|
|
255
297
|
}
|
|
256
298
|
interface GitRepositoryLink {
|
|
257
299
|
/** Optional. Allows clients to store small amounts of arbitrary data. */
|
|
@@ -322,6 +364,8 @@ declare namespace gapi.client {
|
|
|
322
364
|
labels?: {[P in string]: string};
|
|
323
365
|
/** Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig} */
|
|
324
366
|
name?: string;
|
|
367
|
+
/** Optional. The GCP projects to track with the InsightsConfig. */
|
|
368
|
+
projects?: Projects;
|
|
325
369
|
/** Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance. */
|
|
326
370
|
reconciling?: boolean;
|
|
327
371
|
/** Output only. The runtime configurations where the application is deployed. */
|
|
@@ -367,6 +411,12 @@ declare namespace gapi.client {
|
|
|
367
411
|
/** Locations that could not be reached. */
|
|
368
412
|
unreachable?: string[];
|
|
369
413
|
}
|
|
414
|
+
interface ListDeploymentEventsResponse {
|
|
415
|
+
/** The list of DeploymentEvents. */
|
|
416
|
+
deploymentEvents?: DeploymentEvent[];
|
|
417
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
418
|
+
nextPageToken?: string;
|
|
419
|
+
}
|
|
370
420
|
interface ListGitRepositoryLinksResponse {
|
|
371
421
|
/** The list of GitRepositoryLinks */
|
|
372
422
|
gitRepositoryLinks?: GitRepositoryLink[];
|
|
@@ -471,6 +521,10 @@ declare namespace gapi.client {
|
|
|
471
521
|
/** Required. HTTP request body. */
|
|
472
522
|
body?: HttpBody;
|
|
473
523
|
}
|
|
524
|
+
interface Projects {
|
|
525
|
+
/** Optional. The GCP Project IDs. Format: projects/{project} */
|
|
526
|
+
projectIds?: string[];
|
|
527
|
+
}
|
|
474
528
|
interface ProviderOAuthConfig {
|
|
475
529
|
/** Required. User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again. */
|
|
476
530
|
scopes?: string[];
|
|
@@ -495,6 +549,22 @@ declare namespace gapi.client {
|
|
|
495
549
|
/** Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. */
|
|
496
550
|
service?: string;
|
|
497
551
|
}
|
|
552
|
+
interface StartOAuthResponse {
|
|
553
|
+
/** The authorization server URL to the OAuth flow of the service provider. */
|
|
554
|
+
authUri?: string;
|
|
555
|
+
/** The client ID to the OAuth App of the service provider. */
|
|
556
|
+
clientId?: string;
|
|
557
|
+
/** https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 Follow http://shortn/_WFYl6U0NyC to include it in the AutoCodeURL. */
|
|
558
|
+
codeChallenge?: string;
|
|
559
|
+
/** https://datatracker.ietf.org/doc/html/rfc7636#section-4.2 */
|
|
560
|
+
codeChallengeMethod?: string;
|
|
561
|
+
/** The list of scopes requested by the application. */
|
|
562
|
+
scopes?: string[];
|
|
563
|
+
/** The ID of the system provider. */
|
|
564
|
+
systemProviderId?: string;
|
|
565
|
+
/** The ticket to be used for post processing the callback from the service provider. */
|
|
566
|
+
ticket?: string;
|
|
567
|
+
}
|
|
498
568
|
interface Status {
|
|
499
569
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
500
570
|
code?: number;
|
|
@@ -665,6 +735,43 @@ declare namespace gapi.client {
|
|
|
665
735
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
666
736
|
uploadType?: string;
|
|
667
737
|
}): Request<User>;
|
|
738
|
+
/** Finishes OAuth flow for an account connector. */
|
|
739
|
+
finishOAuthFlow(request?: {
|
|
740
|
+
/** V1 error format. */
|
|
741
|
+
'$.xgafv'?: string;
|
|
742
|
+
/** OAuth access token. */
|
|
743
|
+
access_token?: string;
|
|
744
|
+
/** Required. The resource name of the AccountConnector in the format `projects/*/locations/*/accountConnectors/*`. */
|
|
745
|
+
accountConnector: string;
|
|
746
|
+
/** Data format for response. */
|
|
747
|
+
alt?: string;
|
|
748
|
+
/** JSONP */
|
|
749
|
+
callback?: string;
|
|
750
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
751
|
+
fields?: string;
|
|
752
|
+
/** Required. The scopes returned by Google OAuth flow. */
|
|
753
|
+
'googleOauthParams.scopes'?: string | string[];
|
|
754
|
+
/** Required. The ticket to be used for post processing the callback from Google OAuth flow. */
|
|
755
|
+
'googleOauthParams.ticket'?: string;
|
|
756
|
+
/** Optional. The version info returned by Google OAuth flow. */
|
|
757
|
+
'googleOauthParams.versionInfo'?: string;
|
|
758
|
+
/** 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. */
|
|
759
|
+
key?: string;
|
|
760
|
+
/** OAuth 2.0 token for the current user. */
|
|
761
|
+
oauth_token?: string;
|
|
762
|
+
/** Required. The code to be used for getting the token from SCM provider. */
|
|
763
|
+
'oauthParams.code'?: string;
|
|
764
|
+
/** Required. The ticket to be used for post processing the callback from SCM provider. */
|
|
765
|
+
'oauthParams.ticket'?: string;
|
|
766
|
+
/** Returns response with indentations and line breaks. */
|
|
767
|
+
prettyPrint?: boolean;
|
|
768
|
+
/** 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. */
|
|
769
|
+
quotaUser?: string;
|
|
770
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
771
|
+
upload_protocol?: string;
|
|
772
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
773
|
+
uploadType?: string;
|
|
774
|
+
}): Request<FinishOAuthResponse>;
|
|
668
775
|
/** Lists Users in a given project, location, and account_connector. */
|
|
669
776
|
list(request?: {
|
|
670
777
|
/** V1 error format. */
|
|
@@ -700,6 +807,33 @@ declare namespace gapi.client {
|
|
|
700
807
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
701
808
|
uploadType?: string;
|
|
702
809
|
}): Request<ListUsersResponse>;
|
|
810
|
+
/** Starts OAuth flow for an account connector. */
|
|
811
|
+
startOAuthFlow(request?: {
|
|
812
|
+
/** V1 error format. */
|
|
813
|
+
'$.xgafv'?: string;
|
|
814
|
+
/** OAuth access token. */
|
|
815
|
+
access_token?: string;
|
|
816
|
+
/** Required. The resource name of the AccountConnector in the format `projects/*/locations/*/accountConnectors/*`. */
|
|
817
|
+
accountConnector: string;
|
|
818
|
+
/** Data format for response. */
|
|
819
|
+
alt?: string;
|
|
820
|
+
/** JSONP */
|
|
821
|
+
callback?: string;
|
|
822
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
823
|
+
fields?: string;
|
|
824
|
+
/** 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. */
|
|
825
|
+
key?: string;
|
|
826
|
+
/** OAuth 2.0 token for the current user. */
|
|
827
|
+
oauth_token?: string;
|
|
828
|
+
/** Returns response with indentations and line breaks. */
|
|
829
|
+
prettyPrint?: boolean;
|
|
830
|
+
/** 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. */
|
|
831
|
+
quotaUser?: string;
|
|
832
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
833
|
+
upload_protocol?: string;
|
|
834
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
835
|
+
uploadType?: string;
|
|
836
|
+
}): Request<StartOAuthResponse>;
|
|
703
837
|
}
|
|
704
838
|
interface AccountConnectorsResource {
|
|
705
839
|
/** Creates a new AccountConnector in a given project and location. */
|
|
@@ -1851,6 +1985,68 @@ declare namespace gapi.client {
|
|
|
1851
1985
|
): Request<{}>;
|
|
1852
1986
|
gitRepositoryLinks: GitRepositoryLinksResource;
|
|
1853
1987
|
}
|
|
1988
|
+
interface DeploymentEventsResource {
|
|
1989
|
+
/** Gets a single Deployment Event. */
|
|
1990
|
+
get(request?: {
|
|
1991
|
+
/** V1 error format. */
|
|
1992
|
+
'$.xgafv'?: string;
|
|
1993
|
+
/** OAuth access token. */
|
|
1994
|
+
access_token?: string;
|
|
1995
|
+
/** Data format for response. */
|
|
1996
|
+
alt?: string;
|
|
1997
|
+
/** JSONP */
|
|
1998
|
+
callback?: string;
|
|
1999
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2000
|
+
fields?: string;
|
|
2001
|
+
/** 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. */
|
|
2002
|
+
key?: string;
|
|
2003
|
+
/** Required. The name of the deployment event to retrieve. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid} */
|
|
2004
|
+
name: string;
|
|
2005
|
+
/** OAuth 2.0 token for the current user. */
|
|
2006
|
+
oauth_token?: string;
|
|
2007
|
+
/** Returns response with indentations and line breaks. */
|
|
2008
|
+
prettyPrint?: boolean;
|
|
2009
|
+
/** 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. */
|
|
2010
|
+
quotaUser?: string;
|
|
2011
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2012
|
+
upload_protocol?: string;
|
|
2013
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2014
|
+
uploadType?: string;
|
|
2015
|
+
}): Request<DeploymentEvent>;
|
|
2016
|
+
/** Lists Deployment Events in a given insights config. */
|
|
2017
|
+
list(request?: {
|
|
2018
|
+
/** V1 error format. */
|
|
2019
|
+
'$.xgafv'?: string;
|
|
2020
|
+
/** OAuth access token. */
|
|
2021
|
+
access_token?: string;
|
|
2022
|
+
/** Data format for response. */
|
|
2023
|
+
alt?: string;
|
|
2024
|
+
/** JSONP */
|
|
2025
|
+
callback?: string;
|
|
2026
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2027
|
+
fields?: string;
|
|
2028
|
+
/** Optional. Filter expression that matches a subset of the DeploymentEvents. https://google.aip.dev/160. */
|
|
2029
|
+
filter?: string;
|
|
2030
|
+
/** 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. */
|
|
2031
|
+
key?: string;
|
|
2032
|
+
/** OAuth 2.0 token for the current user. */
|
|
2033
|
+
oauth_token?: string;
|
|
2034
|
+
/** Optional. The maximum number of deployment events to return. The service may return fewer than this value. If unspecified, at most 50 deployment events will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. */
|
|
2035
|
+
pageSize?: number;
|
|
2036
|
+
/** Optional. A page token, received from a previous `ListDeploymentEvents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDeploymentEvents` must match the call that provided the page token. */
|
|
2037
|
+
pageToken?: string;
|
|
2038
|
+
/** Required. The parent insights config that owns this collection of deployment events. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config} */
|
|
2039
|
+
parent: string;
|
|
2040
|
+
/** Returns response with indentations and line breaks. */
|
|
2041
|
+
prettyPrint?: boolean;
|
|
2042
|
+
/** 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. */
|
|
2043
|
+
quotaUser?: string;
|
|
2044
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2045
|
+
upload_protocol?: string;
|
|
2046
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2047
|
+
uploadType?: string;
|
|
2048
|
+
}): Request<ListDeploymentEventsResponse>;
|
|
2049
|
+
}
|
|
1854
2050
|
interface InsightsConfigsResource {
|
|
1855
2051
|
/** Creates a new InsightsConfig in a given project and location. */
|
|
1856
2052
|
create(request: {
|
|
@@ -2083,6 +2279,7 @@ declare namespace gapi.client {
|
|
|
2083
2279
|
},
|
|
2084
2280
|
body: InsightsConfig,
|
|
2085
2281
|
): Request<Operation>;
|
|
2282
|
+
deploymentEvents: DeploymentEventsResource;
|
|
2086
2283
|
}
|
|
2087
2284
|
interface OperationsResource {
|
|
2088
2285
|
/** 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`. */
|