google-apis-composer_v1beta1 0.5.0 → 0.6.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: 4187b883eebb4859f8a7fee4e9c63bfb6b16ddb048bd3dbb193f0df6fdbcbfa3
4
- data.tar.gz: 75b49e4012733342bd4cd972438a04b15e076d85fad948d72c544d349568c9d0
3
+ metadata.gz: 9f79ac205cfe06674237aa027e064fca303a9b19ebd00fa221622ab5116c3021
4
+ data.tar.gz: 2ccc422282105b5254bf3bce85925137fd587f9a1e220fe1329a21a8c6cd988d
5
5
  SHA512:
6
- metadata.gz: b4a41db42a9cf5560341ea7f30be914df76f05d7c79adae9c023c846a49e7ef8a2ae43019e20f014886f272db6a6cd665b5c035a5aa6006cfb5c9e32539a72f0
7
- data.tar.gz: da799daf86be42a5cc4625d5cbe7bb9d56d79c2014b7540d96dd4d79833867f581d2016584d29cc8df5281d20753678c9765a388da88c1d5f57cb704f25f21ad
6
+ metadata.gz: 3ee8dc45e92315f1057edf187dd3b5087b646b894a921b8c4055a4d55d0e9572dccc2187758492aacbf0ba9e73f50327b2da89d2f88741787fe486ae13996d0d
7
+ data.tar.gz: 32f02ba8a8c1c9a81b179161039f4aa21c62de779840c778f77f153b13bb3b2c8c38634ebb9554ce54ac84c350ca3b66de6dcac0d2439e3b3be4aa68fca7154b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-composer_v1beta1
2
2
 
3
+ ### v0.6.0 (2021-06-11)
4
+
5
+ * Regenerated from discovery document revision 20210601
6
+ * Regenerated using generator version 0.3.0
7
+
3
8
  ### v0.5.0 (2021-05-19)
4
9
 
5
10
  * Unspecified changes
@@ -51,6 +51,70 @@ module Google
51
51
  end
52
52
  end
53
53
 
54
+ # Request to check whether image upgrade will succeed.
55
+ class CheckUpgradeRequest
56
+ include Google::Apis::Core::Hashable
57
+
58
+ # The version of the software running in the environment. This encapsulates both
59
+ # the version of Cloud Composer functionality and the version of Apache Airflow.
60
+ # It must match the regular expression `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-
61
+ # airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`. When used as input, the server also
62
+ # checks if the provided version is supported and denies the request for an
63
+ # unsupported version. The Cloud Composer portion of the version is a [semantic
64
+ # version](https://semver.org) or `latest`. When the patch version is omitted,
65
+ # the current Cloud Composer patch version is selected. When `latest` is
66
+ # provided instead of an explicit version number, the server replaces `latest`
67
+ # with the current Cloud Composer version and stores that version number in the
68
+ # same field. The portion of the image version that follows `airflow-` is an
69
+ # official Apache Airflow repository [release name](https://github.com/apache/
70
+ # incubator-airflow/releases). See also [Version List] (/composer/docs/concepts/
71
+ # versioning/composer-versions).
72
+ # Corresponds to the JSON property `imageVersion`
73
+ # @return [String]
74
+ attr_accessor :image_version
75
+
76
+ def initialize(**args)
77
+ update!(**args)
78
+ end
79
+
80
+ # Update properties of this object
81
+ def update!(**args)
82
+ @image_version = args[:image_version] if args.key?(:image_version)
83
+ end
84
+ end
85
+
86
+ # Message containing information about the result of an upgrade check operation.
87
+ class CheckUpgradeResponse
88
+ include Google::Apis::Core::Hashable
89
+
90
+ # Output only. Url for a docker build log of an upgraded image.
91
+ # Corresponds to the JSON property `buildLogUri`
92
+ # @return [String]
93
+ attr_accessor :build_log_uri
94
+
95
+ # Output only. Whether build has succeeded or failed on modules conflicts.
96
+ # Corresponds to the JSON property `containsPypiModulesConflict`
97
+ # @return [String]
98
+ attr_accessor :contains_pypi_modules_conflict
99
+
100
+ # Output only. Extract from a docker image build log containing information
101
+ # about pypi modules conflicts.
102
+ # Corresponds to the JSON property `pypiConflictBuildLogExtract`
103
+ # @return [String]
104
+ attr_accessor :pypi_conflict_build_log_extract
105
+
106
+ def initialize(**args)
107
+ update!(**args)
108
+ end
109
+
110
+ # Update properties of this object
111
+ def update!(**args)
112
+ @build_log_uri = args[:build_log_uri] if args.key?(:build_log_uri)
113
+ @contains_pypi_modules_conflict = args[:contains_pypi_modules_conflict] if args.key?(:contains_pypi_modules_conflict)
114
+ @pypi_conflict_build_log_extract = args[:pypi_conflict_build_log_extract] if args.key?(:pypi_conflict_build_log_extract)
115
+ end
116
+ end
117
+
54
118
  # The configuration of Cloud SQL instance that is used by the Apache Airflow
55
119
  # software.
56
120
  class DatabaseConfig
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComposerV1beta1
18
18
  # Version of the google-apis-composer_v1beta1 gem
19
- GEM_VERSION = "0.5.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210421"
25
+ REVISION = "20210601"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,18 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class CheckUpgradeRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CheckUpgradeResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
31
43
  class DatabaseConfig
32
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
45
 
@@ -168,6 +180,22 @@ module Google
168
180
  end
169
181
  end
170
182
 
183
+ class CheckUpgradeRequest
184
+ # @private
185
+ class Representation < Google::Apis::Core::JsonRepresentation
186
+ property :image_version, as: 'imageVersion'
187
+ end
188
+ end
189
+
190
+ class CheckUpgradeResponse
191
+ # @private
192
+ class Representation < Google::Apis::Core::JsonRepresentation
193
+ property :build_log_uri, as: 'buildLogUri'
194
+ property :contains_pypi_modules_conflict, as: 'containsPypiModulesConflict'
195
+ property :pypi_conflict_build_log_extract, as: 'pypiConflictBuildLogExtract'
196
+ end
197
+ end
198
+
171
199
  class DatabaseConfig
172
200
  # @private
173
201
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -49,6 +49,41 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
+ # Check if an upgrade operation on the environment will succeed. In case of
53
+ # problems detailed info can be found in the returned Operation.
54
+ # @param [String] environment
55
+ # The resource name of the environment to check upgrade for, in the form: "
56
+ # projects/`projectId`/locations/`locationId`/environments/`environmentId`"
57
+ # @param [Google::Apis::ComposerV1beta1::CheckUpgradeRequest] check_upgrade_request_object
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::ComposerV1beta1::Operation] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::ComposerV1beta1::Operation]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def check_environment_upgrade(environment, check_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:post, 'v1beta1/{+environment}:checkUpgrade', options)
77
+ command.request_representation = Google::Apis::ComposerV1beta1::CheckUpgradeRequest::Representation
78
+ command.request_object = check_upgrade_request_object
79
+ command.response_representation = Google::Apis::ComposerV1beta1::Operation::Representation
80
+ command.response_class = Google::Apis::ComposerV1beta1::Operation
81
+ command.params['environment'] = environment unless environment.nil?
82
+ command.query['fields'] = fields unless fields.nil?
83
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
84
+ execute_or_queue_command(command, &block)
85
+ end
86
+
52
87
  # Create a new environment.
53
88
  # @param [String] parent
54
89
  # 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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.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: 2021-05-24 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-composer_v1beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1beta1/v0.5.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1beta1/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-composer_v1beta1
57
57
  post_install_message:
58
58
  rdoc_options: []