google-apis-composer_v1beta1 0.4.0 → 0.9.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: 4301bbff7c23703b3cfa46e0ad215f87f4daf827016b4e22d177073d459a93e7
4
- data.tar.gz: 25a7b0b8d45490eb90ee97ea0f085d57c2d554d8bb35ee344842d21ee5abd98a
3
+ metadata.gz: 49439d0c64e9d0d4268d831532eb21f0e8af367225e9c492843d5b891e8cb1d7
4
+ data.tar.gz: 87338360be668967a9d3cebffa9db264be26ff631386485637222a0ed0771541
5
5
  SHA512:
6
- metadata.gz: 3f18ccb5ca433e39676582b866ff620d4c4f10338faa52693e07601513d674e7644bc0d78ede7916fadc881db2f6012a689d206bc5fd8348d7ab3619556823f5
7
- data.tar.gz: fe46e1827f71cfeeec76cd5e6811af777f4e18cc5b4a61057a18667b45c4fe6d2aeadd35e28d07dc2dd95e4dff509d56e93e20c8c1a17e26d78958eb4abad1cf
6
+ metadata.gz: e4d008dd3ecf4103ac5524e121014383144e9861482d02ebe9e088a84383d7dbdd55560a2ec0c6b737c4843a9e40204351c7e9ca6022847ee568d875799fa54c
7
+ data.tar.gz: 68261955a763ae89543e610b036230c4860a33618156bb765c0e43fcaf21970bb017824037a5a69ad5ee291a696cd8de12b0caa618158579d984d1c132b6b955
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-composer_v1beta1
2
2
 
3
+ ### v0.9.0 (2021-07-06)
4
+
5
+ * Regenerated from discovery document revision 20210625
6
+
7
+ ### v0.8.0 (2021-06-29)
8
+
9
+ * Regenerated using generator version 0.4.0
10
+
11
+ ### v0.7.0 (2021-06-24)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.6.0 (2021-06-11)
16
+
17
+ * Regenerated from discovery document revision 20210601
18
+ * Regenerated using generator version 0.3.0
19
+
20
+ ### v0.5.0 (2021-05-19)
21
+
22
+ * Unspecified changes
23
+
3
24
  ### v0.4.0 (2021-04-28)
4
25
 
5
26
  * Regenerated from discovery document revision 20210421
@@ -51,6 +51,83 @@ 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
+ # Composer image for which the build was happening.
101
+ # Corresponds to the JSON property `imageVersion`
102
+ # @return [String]
103
+ attr_accessor :image_version
104
+
105
+ # Output only. Extract from a docker image build log containing information
106
+ # about pypi modules conflicts.
107
+ # Corresponds to the JSON property `pypiConflictBuildLogExtract`
108
+ # @return [String]
109
+ attr_accessor :pypi_conflict_build_log_extract
110
+
111
+ # Pypi dependencies specified in the environment configuration, at the time when
112
+ # the build was triggered.
113
+ # Corresponds to the JSON property `pypiDependencies`
114
+ # @return [Hash<String,String>]
115
+ attr_accessor :pypi_dependencies
116
+
117
+ def initialize(**args)
118
+ update!(**args)
119
+ end
120
+
121
+ # Update properties of this object
122
+ def update!(**args)
123
+ @build_log_uri = args[:build_log_uri] if args.key?(:build_log_uri)
124
+ @contains_pypi_modules_conflict = args[:contains_pypi_modules_conflict] if args.key?(:contains_pypi_modules_conflict)
125
+ @image_version = args[:image_version] if args.key?(:image_version)
126
+ @pypi_conflict_build_log_extract = args[:pypi_conflict_build_log_extract] if args.key?(:pypi_conflict_build_log_extract)
127
+ @pypi_dependencies = args[:pypi_dependencies] if args.key?(:pypi_dependencies)
128
+ end
129
+ end
130
+
54
131
  # The configuration of Cloud SQL instance that is used by the Apache Airflow
55
132
  # software.
56
133
  class DatabaseConfig
@@ -245,6 +322,13 @@ module Google
245
322
  # @return [Google::Apis::ComposerV1beta1::EncryptionConfig]
246
323
  attr_accessor :encryption_config
247
324
 
325
+ # Optional. The size of the Cloud Composer environment. This field is supported
326
+ # for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and
327
+ # newer.
328
+ # Corresponds to the JSON property `environmentSize`
329
+ # @return [String]
330
+ attr_accessor :environment_size
331
+
248
332
  # Output only. The Kubernetes Engine cluster used to run this environment.
249
333
  # Corresponds to the JSON property `gkeCluster`
250
334
  # @return [String]
@@ -292,6 +376,13 @@ module Google
292
376
  # @return [Google::Apis::ComposerV1beta1::WebServerNetworkAccessControl]
293
377
  attr_accessor :web_server_network_access_control
294
378
 
379
+ # The Kubernetes workloads configuration for GKE cluster associated with the
380
+ # Cloud Composer environment. Supported for Cloud Composer environments in
381
+ # versions composer-2.*.*-airflow-*.*.* and newer.
382
+ # Corresponds to the JSON property `workloadsConfig`
383
+ # @return [Google::Apis::ComposerV1beta1::WorkloadsConfig]
384
+ attr_accessor :workloads_config
385
+
295
386
  def initialize(**args)
296
387
  update!(**args)
297
388
  end
@@ -302,6 +393,7 @@ module Google
302
393
  @dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix)
303
394
  @database_config = args[:database_config] if args.key?(:database_config)
304
395
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
396
+ @environment_size = args[:environment_size] if args.key?(:environment_size)
305
397
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
306
398
  @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
307
399
  @node_config = args[:node_config] if args.key?(:node_config)
@@ -310,6 +402,7 @@ module Google
310
402
  @software_config = args[:software_config] if args.key?(:software_config)
311
403
  @web_server_config = args[:web_server_config] if args.key?(:web_server_config)
312
404
  @web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control)
405
+ @workloads_config = args[:workloads_config] if args.key?(:workloads_config)
313
406
  end
314
407
  end
315
408
 
@@ -636,7 +729,7 @@ module Google
636
729
 
637
730
  # Optional. The Google Cloud Platform Service Account to be used by the
638
731
  # workloads. If a service account is not specified, the "default" Compute Engine
639
- # service account is used. Cannot be updated .
732
+ # service account is used. Cannot be updated.
640
733
  # Corresponds to the JSON property `serviceAccount`
641
734
  # @return [String]
642
735
  attr_accessor :service_account
@@ -835,6 +928,22 @@ module Google
835
928
  class PrivateEnvironmentConfig
836
929
  include Google::Apis::Core::Hashable
837
930
 
931
+ # Optional. The CIDR block from which IP range for Cloud Composer Network in
932
+ # tenant project will be reserved. Needs to be disjoint from
933
+ # private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block.
934
+ # This field is supported for Cloud Composer environments in versions composer-2.
935
+ # *.*-airflow-*.*.* and newer.
936
+ # Corresponds to the JSON property `cloudComposerNetworkIpv4CidrBlock`
937
+ # @return [String]
938
+ attr_accessor :cloud_composer_network_ipv4_cidr_block
939
+
940
+ # Output only. The IP range reserved for the tenant project's Cloud Composer
941
+ # network. This field is supported for Cloud Composer environments in versions
942
+ # composer-2.*.*-airflow-*.*.* and newer.
943
+ # Corresponds to the JSON property `cloudComposerNetworkIpv4ReservedRange`
944
+ # @return [String]
945
+ attr_accessor :cloud_composer_network_ipv4_reserved_range
946
+
838
947
  # Optional. The CIDR block from which IP range in tenant project will be
839
948
  # reserved for Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
840
949
  # Corresponds to the JSON property `cloudSqlIpv4CidrBlock`
@@ -873,6 +982,8 @@ module Google
873
982
 
874
983
  # Update properties of this object
875
984
  def update!(**args)
985
+ @cloud_composer_network_ipv4_cidr_block = args[:cloud_composer_network_ipv4_cidr_block] if args.key?(:cloud_composer_network_ipv4_cidr_block)
986
+ @cloud_composer_network_ipv4_reserved_range = args[:cloud_composer_network_ipv4_reserved_range] if args.key?(:cloud_composer_network_ipv4_reserved_range)
876
987
  @cloud_sql_ipv4_cidr_block = args[:cloud_sql_ipv4_cidr_block] if args.key?(:cloud_sql_ipv4_cidr_block)
877
988
  @enable_private_environment = args[:enable_private_environment] if args.key?(:enable_private_environment)
878
989
  @private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config)
@@ -894,6 +1005,44 @@ module Google
894
1005
  end
895
1006
  end
896
1007
 
1008
+ # Configuration for resources used by Airflow schedulers.
1009
+ class SchedulerResource
1010
+ include Google::Apis::Core::Hashable
1011
+
1012
+ # Optional. The number of schedulers.
1013
+ # Corresponds to the JSON property `count`
1014
+ # @return [Fixnum]
1015
+ attr_accessor :count
1016
+
1017
+ # Optional. CPU request and limit for a single Airflow scheduler replica.
1018
+ # Corresponds to the JSON property `cpu`
1019
+ # @return [Float]
1020
+ attr_accessor :cpu
1021
+
1022
+ # Optional. Memory (GB) request and limit for a single Airflow scheduler replica.
1023
+ # Corresponds to the JSON property `memoryGb`
1024
+ # @return [Float]
1025
+ attr_accessor :memory_gb
1026
+
1027
+ # Optional. Storage (GB) request and limit for a single Airflow scheduler
1028
+ # replica.
1029
+ # Corresponds to the JSON property `storageGb`
1030
+ # @return [Float]
1031
+ attr_accessor :storage_gb
1032
+
1033
+ def initialize(**args)
1034
+ update!(**args)
1035
+ end
1036
+
1037
+ # Update properties of this object
1038
+ def update!(**args)
1039
+ @count = args[:count] if args.key?(:count)
1040
+ @cpu = args[:cpu] if args.key?(:cpu)
1041
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
1042
+ @storage_gb = args[:storage_gb] if args.key?(:storage_gb)
1043
+ end
1044
+ end
1045
+
897
1046
  # Specifies the selection and configuration of software inside the environment.
898
1047
  class SoftwareConfig
899
1048
  include Google::Apis::Core::Hashable
@@ -1054,6 +1203,113 @@ module Google
1054
1203
  @allowed_ip_ranges = args[:allowed_ip_ranges] if args.key?(:allowed_ip_ranges)
1055
1204
  end
1056
1205
  end
1206
+
1207
+ # Configuration for resources used by Airflow web server.
1208
+ class WebServerResource
1209
+ include Google::Apis::Core::Hashable
1210
+
1211
+ # Optional. CPU request and limit for Airflow web server.
1212
+ # Corresponds to the JSON property `cpu`
1213
+ # @return [Float]
1214
+ attr_accessor :cpu
1215
+
1216
+ # Optional. Memory (GB) request and limit for Airflow web server.
1217
+ # Corresponds to the JSON property `memoryGb`
1218
+ # @return [Float]
1219
+ attr_accessor :memory_gb
1220
+
1221
+ # Optional. Storage (GB) request and limit for Airflow web server.
1222
+ # Corresponds to the JSON property `storageGb`
1223
+ # @return [Float]
1224
+ attr_accessor :storage_gb
1225
+
1226
+ def initialize(**args)
1227
+ update!(**args)
1228
+ end
1229
+
1230
+ # Update properties of this object
1231
+ def update!(**args)
1232
+ @cpu = args[:cpu] if args.key?(:cpu)
1233
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
1234
+ @storage_gb = args[:storage_gb] if args.key?(:storage_gb)
1235
+ end
1236
+ end
1237
+
1238
+ # Configuration for resources used by Airflow workers.
1239
+ class WorkerResource
1240
+ include Google::Apis::Core::Hashable
1241
+
1242
+ # Optional. CPU request and limit for a single Airflow worker replica.
1243
+ # Corresponds to the JSON property `cpu`
1244
+ # @return [Float]
1245
+ attr_accessor :cpu
1246
+
1247
+ # Optional. Maximum number of workers for autoscaling.
1248
+ # Corresponds to the JSON property `maxCount`
1249
+ # @return [Fixnum]
1250
+ attr_accessor :max_count
1251
+
1252
+ # Optional. Memory (GB) request and limit for a single Airflow worker replica.
1253
+ # Corresponds to the JSON property `memoryGb`
1254
+ # @return [Float]
1255
+ attr_accessor :memory_gb
1256
+
1257
+ # Optional. Minimum number of workers for autoscaling.
1258
+ # Corresponds to the JSON property `minCount`
1259
+ # @return [Fixnum]
1260
+ attr_accessor :min_count
1261
+
1262
+ # Optional. Storage (GB) request and limit for a single Airflow worker replica.
1263
+ # Corresponds to the JSON property `storageGb`
1264
+ # @return [Float]
1265
+ attr_accessor :storage_gb
1266
+
1267
+ def initialize(**args)
1268
+ update!(**args)
1269
+ end
1270
+
1271
+ # Update properties of this object
1272
+ def update!(**args)
1273
+ @cpu = args[:cpu] if args.key?(:cpu)
1274
+ @max_count = args[:max_count] if args.key?(:max_count)
1275
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
1276
+ @min_count = args[:min_count] if args.key?(:min_count)
1277
+ @storage_gb = args[:storage_gb] if args.key?(:storage_gb)
1278
+ end
1279
+ end
1280
+
1281
+ # The Kubernetes workloads configuration for GKE cluster associated with the
1282
+ # Cloud Composer environment. Supported for Cloud Composer environments in
1283
+ # versions composer-2.*.*-airflow-*.*.* and newer.
1284
+ class WorkloadsConfig
1285
+ include Google::Apis::Core::Hashable
1286
+
1287
+ # Configuration for resources used by Airflow schedulers.
1288
+ # Corresponds to the JSON property `scheduler`
1289
+ # @return [Google::Apis::ComposerV1beta1::SchedulerResource]
1290
+ attr_accessor :scheduler
1291
+
1292
+ # Configuration for resources used by Airflow web server.
1293
+ # Corresponds to the JSON property `webServer`
1294
+ # @return [Google::Apis::ComposerV1beta1::WebServerResource]
1295
+ attr_accessor :web_server
1296
+
1297
+ # Configuration for resources used by Airflow workers.
1298
+ # Corresponds to the JSON property `worker`
1299
+ # @return [Google::Apis::ComposerV1beta1::WorkerResource]
1300
+ attr_accessor :worker
1301
+
1302
+ def initialize(**args)
1303
+ update!(**args)
1304
+ end
1305
+
1306
+ # Update properties of this object
1307
+ def update!(**args)
1308
+ @scheduler = args[:scheduler] if args.key?(:scheduler)
1309
+ @web_server = args[:web_server] if args.key?(:web_server)
1310
+ @worker = args[:worker] if args.key?(:worker)
1311
+ end
1312
+ end
1057
1313
  end
1058
1314
  end
1059
1315
  end
@@ -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.4.0"
19
+ GEM_VERSION = "0.9.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.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210421"
25
+ REVISION = "20210625"
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
 
@@ -136,6 +148,12 @@ module Google
136
148
  include Google::Apis::Core::JsonObjectSupport
137
149
  end
138
150
 
151
+ class SchedulerResource
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
139
157
  class SoftwareConfig
140
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
159
 
@@ -160,6 +178,24 @@ module Google
160
178
  include Google::Apis::Core::JsonObjectSupport
161
179
  end
162
180
 
181
+ class WebServerResource
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class WorkerResource
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class WorkloadsConfig
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
163
199
  class AllowedIpRange
164
200
  # @private
165
201
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -168,6 +204,24 @@ module Google
168
204
  end
169
205
  end
170
206
 
207
+ class CheckUpgradeRequest
208
+ # @private
209
+ class Representation < Google::Apis::Core::JsonRepresentation
210
+ property :image_version, as: 'imageVersion'
211
+ end
212
+ end
213
+
214
+ class CheckUpgradeResponse
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :build_log_uri, as: 'buildLogUri'
218
+ property :contains_pypi_modules_conflict, as: 'containsPypiModulesConflict'
219
+ property :image_version, as: 'imageVersion'
220
+ property :pypi_conflict_build_log_extract, as: 'pypiConflictBuildLogExtract'
221
+ hash :pypi_dependencies, as: 'pypiDependencies'
222
+ end
223
+ end
224
+
171
225
  class DatabaseConfig
172
226
  # @private
173
227
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -220,6 +274,7 @@ module Google
220
274
 
221
275
  property :encryption_config, as: 'encryptionConfig', class: Google::Apis::ComposerV1beta1::EncryptionConfig, decorator: Google::Apis::ComposerV1beta1::EncryptionConfig::Representation
222
276
 
277
+ property :environment_size, as: 'environmentSize'
223
278
  property :gke_cluster, as: 'gkeCluster'
224
279
  property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::ComposerV1beta1::MaintenanceWindow, decorator: Google::Apis::ComposerV1beta1::MaintenanceWindow::Representation
225
280
 
@@ -234,6 +289,8 @@ module Google
234
289
 
235
290
  property :web_server_network_access_control, as: 'webServerNetworkAccessControl', class: Google::Apis::ComposerV1beta1::WebServerNetworkAccessControl, decorator: Google::Apis::ComposerV1beta1::WebServerNetworkAccessControl::Representation
236
291
 
292
+ property :workloads_config, as: 'workloadsConfig', class: Google::Apis::ComposerV1beta1::WorkloadsConfig, decorator: Google::Apis::ComposerV1beta1::WorkloadsConfig::Representation
293
+
237
294
  end
238
295
  end
239
296
 
@@ -350,6 +407,8 @@ module Google
350
407
  class PrivateEnvironmentConfig
351
408
  # @private
352
409
  class Representation < Google::Apis::Core::JsonRepresentation
410
+ property :cloud_composer_network_ipv4_cidr_block, as: 'cloudComposerNetworkIpv4CidrBlock'
411
+ property :cloud_composer_network_ipv4_reserved_range, as: 'cloudComposerNetworkIpv4ReservedRange'
353
412
  property :cloud_sql_ipv4_cidr_block, as: 'cloudSqlIpv4CidrBlock'
354
413
  property :enable_private_environment, as: 'enablePrivateEnvironment'
355
414
  property :private_cluster_config, as: 'privateClusterConfig', class: Google::Apis::ComposerV1beta1::PrivateClusterConfig, decorator: Google::Apis::ComposerV1beta1::PrivateClusterConfig::Representation
@@ -365,6 +424,16 @@ module Google
365
424
  end
366
425
  end
367
426
 
427
+ class SchedulerResource
428
+ # @private
429
+ class Representation < Google::Apis::Core::JsonRepresentation
430
+ property :count, as: 'count'
431
+ property :cpu, as: 'cpu'
432
+ property :memory_gb, as: 'memoryGb'
433
+ property :storage_gb, as: 'storageGb'
434
+ end
435
+ end
436
+
368
437
  class SoftwareConfig
369
438
  # @private
370
439
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -399,6 +468,38 @@ module Google
399
468
 
400
469
  end
401
470
  end
471
+
472
+ class WebServerResource
473
+ # @private
474
+ class Representation < Google::Apis::Core::JsonRepresentation
475
+ property :cpu, as: 'cpu'
476
+ property :memory_gb, as: 'memoryGb'
477
+ property :storage_gb, as: 'storageGb'
478
+ end
479
+ end
480
+
481
+ class WorkerResource
482
+ # @private
483
+ class Representation < Google::Apis::Core::JsonRepresentation
484
+ property :cpu, as: 'cpu'
485
+ property :max_count, as: 'maxCount'
486
+ property :memory_gb, as: 'memoryGb'
487
+ property :min_count, as: 'minCount'
488
+ property :storage_gb, as: 'storageGb'
489
+ end
490
+ end
491
+
492
+ class WorkloadsConfig
493
+ # @private
494
+ class Representation < Google::Apis::Core::JsonRepresentation
495
+ property :scheduler, as: 'scheduler', class: Google::Apis::ComposerV1beta1::SchedulerResource, decorator: Google::Apis::ComposerV1beta1::SchedulerResource::Representation
496
+
497
+ property :web_server, as: 'webServer', class: Google::Apis::ComposerV1beta1::WebServerResource, decorator: Google::Apis::ComposerV1beta1::WebServerResource::Representation
498
+
499
+ property :worker, as: 'worker', class: Google::Apis::ComposerV1beta1::WorkerResource, decorator: Google::Apis::ComposerV1beta1::WorkerResource::Representation
500
+
501
+ end
502
+ end
402
503
  end
403
504
  end
404
505
  end
@@ -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`".
@@ -250,13 +285,16 @@ module Google
250
285
  # Additionally, the new image version cannot effect a version downgrade and must
251
286
  # match the current image version's Composer major version and Airflow major and
252
287
  # minor versions. Consult the Cloud Composer Version List for valid values. *
253
- # config.databaseConfig.machineType * Cloud SQL machine type used by Airflow
254
- # database. It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-
255
- # standard-8 or db-n1-standard-16. * config.webServerConfig.machineType *
256
- # Machine type on which Airflow web server is running. It has to be one of:
257
- # composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. *
258
- # config.maintenanceWindow * Maintenance window during which Cloud Composer
259
- # components may be under maintenance.
288
+ # config.softwareConfig.schedulerCount * Horizontally scale the number of
289
+ # schedulers in Airflow. A positive integer not greater than the number of nodes
290
+ # must be provided in the `config.softwareConfig.schedulerCount` field. * config.
291
+ # databaseConfig.machineType * Cloud SQL machine type used by Airflow database.
292
+ # It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or
293
+ # db-n1-standard-16. * config.webServerConfig.machineType * Machine type on
294
+ # which Airflow web server is running. It has to be one of: composer-n1-
295
+ # webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. * config.
296
+ # maintenanceWindow * Maintenance window during which Cloud Composer components
297
+ # may be under maintenance.
260
298
  # @param [String] fields
261
299
  # Selector specifying which fields to include in a partial response.
262
300
  # @param [String] quota_user
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-composer_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.9.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-18 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Cloud Composer API V1beta1. Simple
28
34
  REST clients are Ruby client libraries that provide access to Google services via
29
35
  their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.4.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1beta1/v0.9.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-composer_v1beta1
57
63
  post_install_message:
58
64
  rdoc_options: []