@maxim_mazurok/gapi.client.developerconnect-v1 0.0.20250522 → 0.0.20250605

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 (2) hide show
  1. package/index.d.ts +309 -1
  2. 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: 20250522
12
+ // Revision: 20250605
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -46,6 +46,22 @@ declare namespace gapi.client {
46
46
  /** Output only. The timestamp when the accountConnector was updated. */
47
47
  updateTime?: string;
48
48
  }
49
+ interface AppHubWorkload {
50
+ /** Output only. The criticality of the App Hub Workload. */
51
+ criticality?: string;
52
+ /** Output only. The environment of the App Hub Workload. */
53
+ environment?: string;
54
+ /** Required. Output only. Immutable. The name of the App Hub Workload. Format: `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. */
55
+ workload?: string;
56
+ }
57
+ interface ArtifactConfig {
58
+ /** Optional. Set if the artifact metadata is stored in Artifact analysis. */
59
+ googleArtifactAnalysis?: GoogleArtifactAnalysis;
60
+ /** Optional. Set if the artifact is stored in Artifact regsitry. */
61
+ googleArtifactRegistry?: GoogleArtifactRegistry;
62
+ /** 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. */
63
+ uri?: string;
64
+ }
49
65
  interface BitbucketCloudConfig {
50
66
  /** 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. */
51
67
  authorizerCredential?: UserCredential;
@@ -255,6 +271,22 @@ declare namespace gapi.client {
255
271
  /** Output only. External ID of the webhook created for the repository. */
256
272
  webhookId?: string;
257
273
  }
274
+ interface GKEWorkload {
275
+ /** Required. Immutable. The name of the GKE cluster. Format: `projects/{project}/locations/{location}/clusters/{cluster}`. */
276
+ cluster?: string;
277
+ /** Output only. The name of the GKE deployment. Format: `projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}`. */
278
+ deployment?: string;
279
+ }
280
+ interface GoogleArtifactAnalysis {
281
+ /** Required. The project id of the project where the provenance is stored. */
282
+ projectId?: string;
283
+ }
284
+ interface GoogleArtifactRegistry {
285
+ /** Required. Immutable. The name of the artifact registry package. */
286
+ artifactRegistryPackage?: string;
287
+ /** Required. The host project of Artifact Registry. */
288
+ projectId?: string;
289
+ }
258
290
  interface HttpBody {
259
291
  /** The HTTP Content-Type header value specifying the content type of the body. */
260
292
  contentType?: string;
@@ -263,6 +295,30 @@ declare namespace gapi.client {
263
295
  /** Application specific response metadata. Must be set in the first response for streaming APIs. */
264
296
  extensions?: Array<{[P in string]: any}>;
265
297
  }
298
+ interface InsightsConfig {
299
+ /** Optional. User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations. */
300
+ annotations?: {[P in string]: string};
301
+ /** Optional. The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application} */
302
+ appHubApplication?: string;
303
+ /** Optional. The artifact configurations of the artifacts that are deployed. */
304
+ artifactConfigs?: ArtifactConfig[];
305
+ /** Output only. [Output only] Create timestamp */
306
+ createTime?: string;
307
+ /** Output only. Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: `field_name: error_message`, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. */
308
+ errors?: Status[];
309
+ /** Optional. Set of labels associated with an InsightsConfig. */
310
+ labels?: {[P in string]: string};
311
+ /** Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig} */
312
+ name?: string;
313
+ /** 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. */
314
+ reconciling?: boolean;
315
+ /** Output only. The runtime configurations where the application is deployed. */
316
+ runtimeConfigs?: RuntimeConfig[];
317
+ /** Optional. Output only. The state of the InsightsConfig. */
318
+ state?: string;
319
+ /** Output only. [Output only] Update timestamp */
320
+ updateTime?: string;
321
+ }
266
322
  interface Installation {
267
323
  /** ID of the installation in GitHub. */
268
324
  id?: string;
@@ -307,6 +363,14 @@ declare namespace gapi.client {
307
363
  /** Locations that could not be reached. */
308
364
  unreachable?: string[];
309
365
  }
366
+ interface ListInsightsConfigsResponse {
367
+ /** The list of InsightsConfigs. */
368
+ insightsConfigs?: InsightsConfig[];
369
+ /** A token identifying a page of results the server should return. */
370
+ nextPageToken?: string;
371
+ /** Locations that could not be reached. */
372
+ unreachable?: string[];
373
+ }
310
374
  interface ListLocationsResponse {
311
375
  /** A list of locations that matches the specified filter in the request. */
312
376
  locations?: Location[];
@@ -399,6 +463,16 @@ declare namespace gapi.client {
399
463
  /** Immutable. Developer Connect provided OAuth. */
400
464
  systemProviderId?: string;
401
465
  }
466
+ interface RuntimeConfig {
467
+ /** Output only. App Hub Workload. */
468
+ appHubWorkload?: AppHubWorkload;
469
+ /** Output only. Google Kubernetes Engine runtime. */
470
+ gkeWorkload?: GKEWorkload;
471
+ /** Output only. The state of the Runtime. */
472
+ state?: string;
473
+ /** Required. Immutable. The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name. */
474
+ uri?: string;
475
+ }
402
476
  interface ServiceDirectoryConfig {
403
477
  /** Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. */
404
478
  service?: string;
@@ -1759,6 +1833,239 @@ declare namespace gapi.client {
1759
1833
  ): Request<{}>;
1760
1834
  gitRepositoryLinks: GitRepositoryLinksResource;
1761
1835
  }
1836
+ interface InsightsConfigsResource {
1837
+ /** Creates a new InsightsConfig in a given project and location. */
1838
+ create(request: {
1839
+ /** V1 error format. */
1840
+ '$.xgafv'?: string;
1841
+ /** OAuth access token. */
1842
+ access_token?: string;
1843
+ /** Data format for response. */
1844
+ alt?: string;
1845
+ /** JSONP */
1846
+ callback?: string;
1847
+ /** Selector specifying which fields to include in a partial response. */
1848
+ fields?: string;
1849
+ /** Required. ID of the requesting InsightsConfig. */
1850
+ insightsConfigId?: string;
1851
+ /** 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. */
1852
+ key?: string;
1853
+ /** OAuth 2.0 token for the current user. */
1854
+ oauth_token?: string;
1855
+ /** Required. Value for parent. */
1856
+ parent: string;
1857
+ /** Returns response with indentations and line breaks. */
1858
+ prettyPrint?: boolean;
1859
+ /** 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. */
1860
+ quotaUser?: string;
1861
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1862
+ upload_protocol?: string;
1863
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1864
+ uploadType?: string;
1865
+ /** Optional. If set, validate the request, but do not actually post it. */
1866
+ validateOnly?: boolean;
1867
+ /** Request body */
1868
+ resource: InsightsConfig;
1869
+ }): Request<Operation>;
1870
+ create(
1871
+ request: {
1872
+ /** V1 error format. */
1873
+ '$.xgafv'?: string;
1874
+ /** OAuth access token. */
1875
+ access_token?: string;
1876
+ /** Data format for response. */
1877
+ alt?: string;
1878
+ /** JSONP */
1879
+ callback?: string;
1880
+ /** Selector specifying which fields to include in a partial response. */
1881
+ fields?: string;
1882
+ /** Required. ID of the requesting InsightsConfig. */
1883
+ insightsConfigId?: string;
1884
+ /** 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. */
1885
+ key?: string;
1886
+ /** OAuth 2.0 token for the current user. */
1887
+ oauth_token?: string;
1888
+ /** Required. Value for parent. */
1889
+ parent: string;
1890
+ /** Returns response with indentations and line breaks. */
1891
+ prettyPrint?: boolean;
1892
+ /** 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. */
1893
+ quotaUser?: string;
1894
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1895
+ upload_protocol?: string;
1896
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1897
+ uploadType?: string;
1898
+ /** Optional. If set, validate the request, but do not actually post it. */
1899
+ validateOnly?: boolean;
1900
+ },
1901
+ body: InsightsConfig,
1902
+ ): Request<Operation>;
1903
+ /** Delete a single Insight. */
1904
+ delete(request?: {
1905
+ /** V1 error format. */
1906
+ '$.xgafv'?: string;
1907
+ /** OAuth access token. */
1908
+ access_token?: string;
1909
+ /** Data format for response. */
1910
+ alt?: string;
1911
+ /** JSONP */
1912
+ callback?: string;
1913
+ /** 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. */
1914
+ etag?: string;
1915
+ /** Selector specifying which fields to include in a partial response. */
1916
+ fields?: string;
1917
+ /** 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. */
1918
+ key?: string;
1919
+ /** Required. Value for parent. */
1920
+ name: string;
1921
+ /** OAuth 2.0 token for the current user. */
1922
+ oauth_token?: string;
1923
+ /** Returns response with indentations and line breaks. */
1924
+ prettyPrint?: boolean;
1925
+ /** 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. */
1926
+ quotaUser?: string;
1927
+ /** 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). */
1928
+ requestId?: string;
1929
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1930
+ upload_protocol?: string;
1931
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1932
+ uploadType?: string;
1933
+ /** Optional. If set, validate the request, but do not actually post it. */
1934
+ validateOnly?: boolean;
1935
+ }): Request<Operation>;
1936
+ /** Gets details of a single Insight. */
1937
+ get(request?: {
1938
+ /** V1 error format. */
1939
+ '$.xgafv'?: string;
1940
+ /** OAuth access token. */
1941
+ access_token?: string;
1942
+ /** Data format for response. */
1943
+ alt?: string;
1944
+ /** JSONP */
1945
+ callback?: string;
1946
+ /** Selector specifying which fields to include in a partial response. */
1947
+ fields?: string;
1948
+ /** 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. */
1949
+ key?: string;
1950
+ /** Required. Name of the resource. */
1951
+ name: string;
1952
+ /** OAuth 2.0 token for the current user. */
1953
+ oauth_token?: string;
1954
+ /** Returns response with indentations and line breaks. */
1955
+ prettyPrint?: boolean;
1956
+ /** 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. */
1957
+ quotaUser?: string;
1958
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1959
+ upload_protocol?: string;
1960
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1961
+ uploadType?: string;
1962
+ }): Request<InsightsConfig>;
1963
+ /** Lists InsightsConfigs in a given project and location. */
1964
+ list(request?: {
1965
+ /** V1 error format. */
1966
+ '$.xgafv'?: string;
1967
+ /** OAuth access token. */
1968
+ access_token?: string;
1969
+ /** Data format for response. */
1970
+ alt?: string;
1971
+ /** JSONP */
1972
+ callback?: string;
1973
+ /** Selector specifying which fields to include in a partial response. */
1974
+ fields?: string;
1975
+ /** Optional. Filtering results. See https://google.aip.dev/160 for more details. Filter string, adhering to the rules in https://google.aip.dev/160. List only InsightsConfigs matching the filter. If filter is empty, all InsightsConfigs are listed. */
1976
+ filter?: string;
1977
+ /** 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. */
1978
+ key?: string;
1979
+ /** OAuth 2.0 token for the current user. */
1980
+ oauth_token?: string;
1981
+ /** Optional. Hint for how to order the results. */
1982
+ orderBy?: string;
1983
+ /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
1984
+ pageSize?: number;
1985
+ /** Optional. A token identifying a page of results the server should return. */
1986
+ pageToken?: string;
1987
+ /** Required. Parent value for ListInsightsConfigsRequest. */
1988
+ parent: string;
1989
+ /** Returns response with indentations and line breaks. */
1990
+ prettyPrint?: boolean;
1991
+ /** 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. */
1992
+ quotaUser?: string;
1993
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1994
+ upload_protocol?: string;
1995
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1996
+ uploadType?: string;
1997
+ }): Request<ListInsightsConfigsResponse>;
1998
+ /** Updates the parameters of a single InsightsConfig. */
1999
+ patch(request: {
2000
+ /** V1 error format. */
2001
+ '$.xgafv'?: string;
2002
+ /** OAuth access token. */
2003
+ access_token?: string;
2004
+ /** Optional. If set to true, and the insightsConfig is not found a new insightsConfig will be created. In this situation `update_mask` is ignored. The creation will succeed only if the input insightsConfig has all the necessary information (e.g a github_config with both user_oauth_token and installation_id properties). */
2005
+ allowMissing?: boolean;
2006
+ /** Data format for response. */
2007
+ alt?: string;
2008
+ /** JSONP */
2009
+ callback?: string;
2010
+ /** Selector specifying which fields to include in a partial response. */
2011
+ fields?: string;
2012
+ /** 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. */
2013
+ key?: string;
2014
+ /** Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig} */
2015
+ name: string;
2016
+ /** OAuth 2.0 token for the current user. */
2017
+ oauth_token?: string;
2018
+ /** Returns response with indentations and line breaks. */
2019
+ prettyPrint?: boolean;
2020
+ /** 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. */
2021
+ quotaUser?: string;
2022
+ /** 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). */
2023
+ requestId?: string;
2024
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2025
+ upload_protocol?: string;
2026
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2027
+ uploadType?: string;
2028
+ /** Optional. If set, validate the request, but do not actually post it. */
2029
+ validateOnly?: boolean;
2030
+ /** Request body */
2031
+ resource: InsightsConfig;
2032
+ }): Request<Operation>;
2033
+ patch(
2034
+ request: {
2035
+ /** V1 error format. */
2036
+ '$.xgafv'?: string;
2037
+ /** OAuth access token. */
2038
+ access_token?: string;
2039
+ /** Optional. If set to true, and the insightsConfig is not found a new insightsConfig will be created. In this situation `update_mask` is ignored. The creation will succeed only if the input insightsConfig has all the necessary information (e.g a github_config with both user_oauth_token and installation_id properties). */
2040
+ allowMissing?: boolean;
2041
+ /** Data format for response. */
2042
+ alt?: string;
2043
+ /** JSONP */
2044
+ callback?: string;
2045
+ /** Selector specifying which fields to include in a partial response. */
2046
+ fields?: string;
2047
+ /** 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. */
2048
+ key?: string;
2049
+ /** Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig} */
2050
+ name: string;
2051
+ /** OAuth 2.0 token for the current user. */
2052
+ oauth_token?: string;
2053
+ /** Returns response with indentations and line breaks. */
2054
+ prettyPrint?: boolean;
2055
+ /** 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. */
2056
+ quotaUser?: string;
2057
+ /** 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). */
2058
+ requestId?: string;
2059
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2060
+ upload_protocol?: string;
2061
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2062
+ uploadType?: string;
2063
+ /** Optional. If set, validate the request, but do not actually post it. */
2064
+ validateOnly?: boolean;
2065
+ },
2066
+ body: InsightsConfig,
2067
+ ): Request<Operation>;
2068
+ }
1762
2069
  interface OperationsResource {
1763
2070
  /** 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`. */
1764
2071
  cancel(request: {
@@ -1971,6 +2278,7 @@ declare namespace gapi.client {
1971
2278
  }): Request<ListLocationsResponse>;
1972
2279
  accountConnectors: AccountConnectorsResource;
1973
2280
  connections: ConnectionsResource;
2281
+ insightsConfigs: InsightsConfigsResource;
1974
2282
  operations: OperationsResource;
1975
2283
  }
1976
2284
  interface ProjectsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.developerconnect-v1",
3
- "version": "0.0.20250522",
3
+ "version": "0.0.20250605",
4
4
  "description": "TypeScript typings for Developer Connect API v1",
5
5
  "repository": {
6
6
  "type": "git",