@maxim_mazurok/gapi.client.composer-v1 0.0.20240426 → 0.0.20240520

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 +63 -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://composer.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20240426
12
+ // Revision: 20240520
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -36,6 +36,10 @@ declare namespace gapi.client {
36
36
  /** IP address or range, defined using CIDR notation, of requests that this rule applies to. Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32` or `2001:0db8:0000:0042:0000:8a2e:0370:7334`. IP range prefixes should be properly truncated. For example, `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6, `2001:db8::1/32` should be truncated to `2001:db8::/32`. */
37
37
  value?: string;
38
38
  }
39
+ interface CheckUpgradeRequest {
40
+ /** Optional. The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`. When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version. The Cloud Composer portion of the image version is a full [semantic version](https://semver.org), or an alias in the form of major version number or `latest`. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias. The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version. In all cases, the resolved image version is stored in the same field. See also [version list](/composer/docs/concepts/versioning/composer-versions) and [versioning overview](/composer/docs/concepts/versioning/composer-versioning-overview). */
41
+ imageVersion?: string;
42
+ }
39
43
  interface CheckUpgradeResponse {
40
44
  /** Output only. Url for a docker build log of an upgraded image. */
41
45
  buildLogUri?: string;
@@ -988,6 +992,64 @@ declare namespace gapi.client {
988
992
  }): Request<ListWorkloadsResponse>;
989
993
  }
990
994
  interface EnvironmentsResource {
995
+ /** Check if an upgrade operation on the environment will succeed. In case of problems detailed info can be found in the returned Operation. */
996
+ checkUpgrade(request: {
997
+ /** V1 error format. */
998
+ '$.xgafv'?: string;
999
+ /** OAuth access token. */
1000
+ access_token?: string;
1001
+ /** Data format for response. */
1002
+ alt?: string;
1003
+ /** JSONP */
1004
+ callback?: string;
1005
+ /** Required. The resource name of the environment to check upgrade for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
1006
+ environment: string;
1007
+ /** Selector specifying which fields to include in a partial response. */
1008
+ fields?: string;
1009
+ /** 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. */
1010
+ key?: string;
1011
+ /** OAuth 2.0 token for the current user. */
1012
+ oauth_token?: string;
1013
+ /** Returns response with indentations and line breaks. */
1014
+ prettyPrint?: boolean;
1015
+ /** 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. */
1016
+ quotaUser?: string;
1017
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1018
+ upload_protocol?: string;
1019
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1020
+ uploadType?: string;
1021
+ /** Request body */
1022
+ resource: CheckUpgradeRequest;
1023
+ }): Request<Operation>;
1024
+ checkUpgrade(
1025
+ request: {
1026
+ /** V1 error format. */
1027
+ '$.xgafv'?: string;
1028
+ /** OAuth access token. */
1029
+ access_token?: string;
1030
+ /** Data format for response. */
1031
+ alt?: string;
1032
+ /** JSONP */
1033
+ callback?: string;
1034
+ /** Required. The resource name of the environment to check upgrade for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
1035
+ environment: string;
1036
+ /** Selector specifying which fields to include in a partial response. */
1037
+ fields?: string;
1038
+ /** 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. */
1039
+ key?: string;
1040
+ /** OAuth 2.0 token for the current user. */
1041
+ oauth_token?: string;
1042
+ /** Returns response with indentations and line breaks. */
1043
+ prettyPrint?: boolean;
1044
+ /** 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. */
1045
+ quotaUser?: string;
1046
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1047
+ upload_protocol?: string;
1048
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1049
+ uploadType?: string;
1050
+ },
1051
+ body: CheckUpgradeRequest
1052
+ ): Request<Operation>;
991
1053
  /** Create a new environment. */
992
1054
  create(request: {
993
1055
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.composer-v1",
3
- "version": "0.0.20240426",
3
+ "version": "0.0.20240520",
4
4
  "description": "TypeScript typings for Cloud Composer API v1",
5
5
  "repository": {
6
6
  "type": "git",