google-apis-composer_v1 0.47.0 → 0.48.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e1827f8e28badda2489e04d9df619c7515434c904c62fc97d3451f80e6ae22e
4
- data.tar.gz: 9bf56520fd4a06f45b304b2d17056b3676389235abddfac34e48eca05da45d81
3
+ metadata.gz: 271799553beea25fdd8f1171858edef309ded9b6262547292888f0d89da9afb3
4
+ data.tar.gz: e83c46745085ccd588df4be799ecf6e22b3b80bf0f6bd40b55690273573e76e3
5
5
  SHA512:
6
- metadata.gz: '0972f98a70cc7f988d3aa76fe6384b33204013f76a1db287b2632f327dad8aa3fd5f3afea32a6cea1168294fa3cd06a0ed3b4c6d7881b80efcf77201fcc904ee'
7
- data.tar.gz: 6715df32af9d2e1fefdd17e5db4e0f0f6780a35c2eed220778f414fb5ca29e860e552ed2a83bc20c0fc36c375ca0b6762ee8ac77cdbfc034b970cbc38d8e641d
6
+ metadata.gz: 4e127c588c97a8ed867292723e51a1111538107a78c15a8ecf700769f975b22cf4869ff2866dae6531b2aa7beda2d535023f4d61134c4689764a54086cfbaa28
7
+ data.tar.gz: 0547f52a511debe8d0d6ec072bcb98f7c1347d9c5be483f90e4781b63157320c346c80f8b076c449cc0056dd48ddb5f4135cf806217ce332ef5c65ad27127c2c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-composer_v1
2
2
 
3
+ ### v0.48.0 (2024-05-26)
4
+
5
+ * Regenerated from discovery document revision 20240520
6
+
3
7
  ### v0.47.0 (2024-05-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20240317
@@ -76,6 +76,42 @@ module Google
76
76
  end
77
77
  end
78
78
 
79
+ # Request to check whether image upgrade will succeed.
80
+ class CheckUpgradeRequest
81
+ include Google::Apis::Core::Hashable
82
+
83
+ # Optional. The version of the software running in the environment. This
84
+ # encapsulates both the version of Cloud Composer functionality and the version
85
+ # of Apache Airflow. It must match the regular expression `composer-([0-9]+(\.[0-
86
+ # 9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)
87
+ # `. When used as input, the server also checks if the provided version is
88
+ # supported and denies the request for an unsupported version. The Cloud
89
+ # Composer portion of the image version is a full [semantic version](https://
90
+ # semver.org), or an alias in the form of major version number or `latest`. When
91
+ # an alias is provided, the server replaces it with the current Cloud Composer
92
+ # version that satisfies the alias. The Apache Airflow portion of the image
93
+ # version is a full semantic version that points to one of the supported Apache
94
+ # Airflow versions, or an alias in the form of only major or major.minor
95
+ # versions specified. When an alias is provided, the server replaces it with the
96
+ # latest Apache Airflow version that satisfies the alias and is supported in the
97
+ # given Cloud Composer version. In all cases, the resolved image version is
98
+ # stored in the same field. See also [version list](/composer/docs/concepts/
99
+ # versioning/composer-versions) and [versioning overview](/composer/docs/
100
+ # concepts/versioning/composer-versioning-overview).
101
+ # Corresponds to the JSON property `imageVersion`
102
+ # @return [String]
103
+ attr_accessor :image_version
104
+
105
+ def initialize(**args)
106
+ update!(**args)
107
+ end
108
+
109
+ # Update properties of this object
110
+ def update!(**args)
111
+ @image_version = args[:image_version] if args.key?(:image_version)
112
+ end
113
+ end
114
+
79
115
  # Message containing information about the result of an upgrade check operation.
80
116
  class CheckUpgradeResponse
81
117
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComposerV1
18
18
  # Version of the google-apis-composer_v1 gem
19
- GEM_VERSION = "0.47.0"
19
+ GEM_VERSION = "0.48.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240317"
25
+ REVISION = "20240520"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class CheckUpgradeRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class CheckUpgradeResponse
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -404,6 +410,13 @@ module Google
404
410
  end
405
411
  end
406
412
 
413
+ class CheckUpgradeRequest
414
+ # @private
415
+ class Representation < Google::Apis::Core::JsonRepresentation
416
+ property :image_version, as: 'imageVersion'
417
+ end
418
+ end
419
+
407
420
  class CheckUpgradeResponse
408
421
  # @private
409
422
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,6 +51,42 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Check if an upgrade operation on the environment will succeed. In case of
55
+ # problems detailed info can be found in the returned Operation.
56
+ # @param [String] environment
57
+ # Required. The resource name of the environment to check upgrade for, in the
58
+ # form: "projects/`projectId`/locations/`locationId`/environments/`environmentId`
59
+ # "
60
+ # @param [Google::Apis::ComposerV1::CheckUpgradeRequest] check_upgrade_request_object
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # @param [Google::Apis::RequestOptions] options
67
+ # Request-specific options
68
+ #
69
+ # @yield [result, err] Result & error if block supplied
70
+ # @yieldparam result [Google::Apis::ComposerV1::Operation] parsed result object
71
+ # @yieldparam err [StandardError] error object if request failed
72
+ #
73
+ # @return [Google::Apis::ComposerV1::Operation]
74
+ #
75
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
78
+ def check_environment_upgrade(environment, check_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
79
+ command = make_simple_command(:post, 'v1/{+environment}:checkUpgrade', options)
80
+ command.request_representation = Google::Apis::ComposerV1::CheckUpgradeRequest::Representation
81
+ command.request_object = check_upgrade_request_object
82
+ command.response_representation = Google::Apis::ComposerV1::Operation::Representation
83
+ command.response_class = Google::Apis::ComposerV1::Operation
84
+ command.params['environment'] = environment unless environment.nil?
85
+ command.query['fields'] = fields unless fields.nil?
86
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
+ execute_or_queue_command(command, &block)
88
+ end
89
+
54
90
  # Create a new environment.
55
91
  # @param [String] parent
56
92
  # The parent must be of the form "projects/`projectId`/locations/`locationId`".
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-composer_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.48.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-19 00:00:00.000000000 Z
11
+ date: 2024-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-composer_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.48.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-composer_v1
63
63
  post_install_message:
64
64
  rdoc_options: []