google-apis-composer_v1beta1 0.1.0 → 0.6.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/composer_v1beta1.rb +1 -1
- data/lib/google/apis/composer_v1beta1/classes.rb +71 -7
- data/lib/google/apis/composer_v1beta1/gem_version.rb +3 -3
- data/lib/google/apis/composer_v1beta1/representations.rb +28 -0
- data/lib/google/apis/composer_v1beta1/service.rb +35 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f79ac205cfe06674237aa027e064fca303a9b19ebd00fa221622ab5116c3021
|
4
|
+
data.tar.gz: 2ccc422282105b5254bf3bce85925137fd587f9a1e220fe1329a21a8c6cd988d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ee8dc45e92315f1057edf187dd3b5087b646b894a921b8c4055a4d55d0e9572dccc2187758492aacbf0ba9e73f50327b2da89d2f88741787fe486ae13996d0d
|
7
|
+
data.tar.gz: 32f02ba8a8c1c9a81b179161039f4aa21c62de779840c778f77f153b13bb3b2c8c38634ebb9554ce54ac84c350ca3b66de6dcac0d2439e3b3be4aa68fca7154b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
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
|
+
|
8
|
+
### v0.5.0 (2021-05-19)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.4.0 (2021-04-28)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210421
|
15
|
+
|
16
|
+
### v0.3.0 (2021-03-27)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210319
|
19
|
+
* Regenerated using generator version 0.2.0
|
20
|
+
|
21
|
+
### v0.2.0 (2021-03-04)
|
22
|
+
|
23
|
+
* Regenerated using generator version 0.1.2
|
24
|
+
|
3
25
|
### v0.1.0 (2021-01-07)
|
4
26
|
|
5
27
|
* Regenerated using generator version 0.1.1
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1beta1'
|
31
31
|
|
32
|
-
#
|
32
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
@@ -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
|
@@ -131,7 +195,7 @@ module Google
|
|
131
195
|
end
|
132
196
|
end
|
133
197
|
|
134
|
-
# The encryption options for the Composer environment and its dependencies.
|
198
|
+
# The encryption options for the Cloud Composer environment and its dependencies.
|
135
199
|
class EncryptionConfig
|
136
200
|
include Google::Apis::Core::Hashable
|
137
201
|
|
@@ -240,7 +304,7 @@ module Google
|
|
240
304
|
# @return [Google::Apis::ComposerV1beta1::DatabaseConfig]
|
241
305
|
attr_accessor :database_config
|
242
306
|
|
243
|
-
# The encryption options for the Composer environment and its dependencies.
|
307
|
+
# The encryption options for the Cloud Composer environment and its dependencies.
|
244
308
|
# Corresponds to the JSON property `encryptionConfig`
|
245
309
|
# @return [Google::Apis::ComposerV1beta1::EncryptionConfig]
|
246
310
|
attr_accessor :encryption_config
|
@@ -634,9 +698,9 @@ module Google
|
|
634
698
|
# @return [Array<String>]
|
635
699
|
attr_accessor :oauth_scopes
|
636
700
|
|
637
|
-
# Optional. The Google Cloud Platform Service Account to be used by the
|
638
|
-
# If a service account is not specified, the "default" Compute Engine
|
639
|
-
# account is used. Cannot be updated.
|
701
|
+
# Optional. The Google Cloud Platform Service Account to be used by the
|
702
|
+
# workloads. If a service account is not specified, the "default" Compute Engine
|
703
|
+
# service account is used. Cannot be updated .
|
640
704
|
# Corresponds to the JSON property `serviceAccount`
|
641
705
|
# @return [String]
|
642
706
|
attr_accessor :service_account
|
@@ -843,7 +907,7 @@ module Google
|
|
843
907
|
|
844
908
|
# Optional. If `true`, a Private IP Cloud Composer environment is created. If
|
845
909
|
# this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be set to
|
846
|
-
# true.
|
910
|
+
# true .
|
847
911
|
# Corresponds to the JSON property `enablePrivateEnvironment`
|
848
912
|
# @return [Boolean]
|
849
913
|
attr_accessor :enable_private_environment
|
@@ -955,7 +1019,7 @@ module Google
|
|
955
1019
|
|
956
1020
|
# Optional. The major version of Python used to run the Apache Airflow scheduler,
|
957
1021
|
# worker, and webserver processes. Can be set to '2' or '3'. If not specified,
|
958
|
-
# the default is '
|
1022
|
+
# the default is '3'. Cannot be updated.
|
959
1023
|
# Corresponds to the JSON property `pythonVersion`
|
960
1024
|
# @return [String]
|
961
1025
|
attr_accessor :python_version
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
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.
|
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-
|
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.
|
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: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Cloud Composer API V1beta1
|