google-apis-composer_v1 0.15.0 → 0.16.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: a49ee5316bf6b54c41d67c25cad8b647cf8be1a0e1fb8499dc91be785f0e4626
4
- data.tar.gz: 449f632ab7df36d834c48fa5552a6e4407ea7cb1c5a54bc680a52f7881f71aa8
3
+ metadata.gz: d0505eec0cfd5f2050bf4aa265e0d91ca35ce9877d6194fe26c2a2b24a688e61
4
+ data.tar.gz: 9c5a06a7a16e645c02e3e8eb31bf28577723be2ac3a36b682ee1c86a7ac228c7
5
5
  SHA512:
6
- metadata.gz: 4e77cc8530a695e9ae24150b1bcc9914a630dd6b485acb1d49c96c1c5cafd2c3a7e4a372147737ebdb63ba08ebe5fa5864677fcc46c5664ce1ac46b46e325cc0
7
- data.tar.gz: 75612d47691c50e5ea562965491c599d7a14347ae701ea9a767c9a53407f43e4529e643565ed9e0d53509be3501fdfd13ca6dc01c9f11ec19789d31279cfef16
6
+ metadata.gz: eb8536e294de02b8abee07bbe3f3139746e6149833c5624dfaa7fc7c868abee46a78bb174c97bc8a0e600ab43dff2ef730998ce76dfdd9f2c3e660d3c5473d91
7
+ data.tar.gz: 7915703a7ddd45f2086c0e4e872ce249f17ffc02cf018ccb0b8ed13387a5d4f935c266daa3059052755b20443da4076af1c4b3fa2e7281f5d5d59bb6b07efd7a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-composer_v1
2
2
 
3
+ ### v0.16.0 (2021-11-10)
4
+
5
+ * Regenerated from discovery document revision 20211102
6
+
3
7
  ### v0.15.0 (2021-10-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20211013
@@ -296,6 +296,13 @@ module Google
296
296
  # @return [Google::Apis::ComposerV1::EncryptionConfig]
297
297
  attr_accessor :encryption_config
298
298
 
299
+ # Optional. The size of the Cloud Composer environment. This field is supported
300
+ # for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and
301
+ # newer.
302
+ # Corresponds to the JSON property `environmentSize`
303
+ # @return [String]
304
+ attr_accessor :environment_size
305
+
299
306
  # Output only. The Kubernetes Engine cluster used to run this environment.
300
307
  # Corresponds to the JSON property `gkeCluster`
301
308
  # @return [String]
@@ -338,6 +345,13 @@ module Google
338
345
  # @return [Google::Apis::ComposerV1::WebServerNetworkAccessControl]
339
346
  attr_accessor :web_server_network_access_control
340
347
 
348
+ # The Kubernetes workloads configuration for GKE cluster associated with the
349
+ # Cloud Composer environment. Supported for Cloud Composer environments in
350
+ # versions composer-2.*.*-airflow-*.*.* and newer.
351
+ # Corresponds to the JSON property `workloadsConfig`
352
+ # @return [Google::Apis::ComposerV1::WorkloadsConfig]
353
+ attr_accessor :workloads_config
354
+
341
355
  def initialize(**args)
342
356
  update!(**args)
343
357
  end
@@ -348,6 +362,7 @@ module Google
348
362
  @dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix)
349
363
  @database_config = args[:database_config] if args.key?(:database_config)
350
364
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
365
+ @environment_size = args[:environment_size] if args.key?(:environment_size)
351
366
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
352
367
  @node_config = args[:node_config] if args.key?(:node_config)
353
368
  @node_count = args[:node_count] if args.key?(:node_count)
@@ -355,6 +370,7 @@ module Google
355
370
  @software_config = args[:software_config] if args.key?(:software_config)
356
371
  @web_server_config = args[:web_server_config] if args.key?(:web_server_config)
357
372
  @web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control)
373
+ @workloads_config = args[:workloads_config] if args.key?(:workloads_config)
358
374
  end
359
375
  end
360
376
 
@@ -837,6 +853,22 @@ module Google
837
853
  class PrivateEnvironmentConfig
838
854
  include Google::Apis::Core::Hashable
839
855
 
856
+ # Optional. The CIDR block from which IP range for Cloud Composer Network in
857
+ # tenant project will be reserved. Needs to be disjoint from
858
+ # private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block.
859
+ # This field is supported for Cloud Composer environments in versions composer-2.
860
+ # *.*-airflow-*.*.* and newer.
861
+ # Corresponds to the JSON property `cloudComposerNetworkIpv4CidrBlock`
862
+ # @return [String]
863
+ attr_accessor :cloud_composer_network_ipv4_cidr_block
864
+
865
+ # Output only. The IP range reserved for the tenant project's Cloud Composer
866
+ # network. This field is supported for Cloud Composer environments in versions
867
+ # composer-2.*.*-airflow-*.*.* and newer.
868
+ # Corresponds to the JSON property `cloudComposerNetworkIpv4ReservedRange`
869
+ # @return [String]
870
+ attr_accessor :cloud_composer_network_ipv4_reserved_range
871
+
840
872
  # Optional. The CIDR block from which IP range in tenant project will be
841
873
  # reserved for Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`.
842
874
  # Corresponds to the JSON property `cloudSqlIpv4CidrBlock`
@@ -878,6 +910,8 @@ module Google
878
910
 
879
911
  # Update properties of this object
880
912
  def update!(**args)
913
+ @cloud_composer_network_ipv4_cidr_block = args[:cloud_composer_network_ipv4_cidr_block] if args.key?(:cloud_composer_network_ipv4_cidr_block)
914
+ @cloud_composer_network_ipv4_reserved_range = args[:cloud_composer_network_ipv4_reserved_range] if args.key?(:cloud_composer_network_ipv4_reserved_range)
881
915
  @cloud_sql_ipv4_cidr_block = args[:cloud_sql_ipv4_cidr_block] if args.key?(:cloud_sql_ipv4_cidr_block)
882
916
  @enable_private_environment = args[:enable_private_environment] if args.key?(:enable_private_environment)
883
917
  @private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config)
@@ -886,6 +920,44 @@ module Google
886
920
  end
887
921
  end
888
922
 
923
+ # Configuration for resources used by Airflow schedulers.
924
+ class SchedulerResource
925
+ include Google::Apis::Core::Hashable
926
+
927
+ # Optional. The number of schedulers.
928
+ # Corresponds to the JSON property `count`
929
+ # @return [Fixnum]
930
+ attr_accessor :count
931
+
932
+ # Optional. CPU request and limit for a single Airflow scheduler replica.
933
+ # Corresponds to the JSON property `cpu`
934
+ # @return [Float]
935
+ attr_accessor :cpu
936
+
937
+ # Optional. Memory (GB) request and limit for a single Airflow scheduler replica.
938
+ # Corresponds to the JSON property `memoryGb`
939
+ # @return [Float]
940
+ attr_accessor :memory_gb
941
+
942
+ # Optional. Storage (GB) request and limit for a single Airflow scheduler
943
+ # replica.
944
+ # Corresponds to the JSON property `storageGb`
945
+ # @return [Float]
946
+ attr_accessor :storage_gb
947
+
948
+ def initialize(**args)
949
+ update!(**args)
950
+ end
951
+
952
+ # Update properties of this object
953
+ def update!(**args)
954
+ @count = args[:count] if args.key?(:count)
955
+ @cpu = args[:cpu] if args.key?(:cpu)
956
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
957
+ @storage_gb = args[:storage_gb] if args.key?(:storage_gb)
958
+ end
959
+ end
960
+
889
961
  # Specifies the selection and configuration of software inside the environment.
890
962
  class SoftwareConfig
891
963
  include Google::Apis::Core::Hashable
@@ -1058,6 +1130,113 @@ module Google
1058
1130
  @allowed_ip_ranges = args[:allowed_ip_ranges] if args.key?(:allowed_ip_ranges)
1059
1131
  end
1060
1132
  end
1133
+
1134
+ # Configuration for resources used by Airflow web server.
1135
+ class WebServerResource
1136
+ include Google::Apis::Core::Hashable
1137
+
1138
+ # Optional. CPU request and limit for Airflow web server.
1139
+ # Corresponds to the JSON property `cpu`
1140
+ # @return [Float]
1141
+ attr_accessor :cpu
1142
+
1143
+ # Optional. Memory (GB) request and limit for Airflow web server.
1144
+ # Corresponds to the JSON property `memoryGb`
1145
+ # @return [Float]
1146
+ attr_accessor :memory_gb
1147
+
1148
+ # Optional. Storage (GB) request and limit for Airflow web server.
1149
+ # Corresponds to the JSON property `storageGb`
1150
+ # @return [Float]
1151
+ attr_accessor :storage_gb
1152
+
1153
+ def initialize(**args)
1154
+ update!(**args)
1155
+ end
1156
+
1157
+ # Update properties of this object
1158
+ def update!(**args)
1159
+ @cpu = args[:cpu] if args.key?(:cpu)
1160
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
1161
+ @storage_gb = args[:storage_gb] if args.key?(:storage_gb)
1162
+ end
1163
+ end
1164
+
1165
+ # Configuration for resources used by Airflow workers.
1166
+ class WorkerResource
1167
+ include Google::Apis::Core::Hashable
1168
+
1169
+ # Optional. CPU request and limit for a single Airflow worker replica.
1170
+ # Corresponds to the JSON property `cpu`
1171
+ # @return [Float]
1172
+ attr_accessor :cpu
1173
+
1174
+ # Optional. Maximum number of workers for autoscaling.
1175
+ # Corresponds to the JSON property `maxCount`
1176
+ # @return [Fixnum]
1177
+ attr_accessor :max_count
1178
+
1179
+ # Optional. Memory (GB) request and limit for a single Airflow worker replica.
1180
+ # Corresponds to the JSON property `memoryGb`
1181
+ # @return [Float]
1182
+ attr_accessor :memory_gb
1183
+
1184
+ # Optional. Minimum number of workers for autoscaling.
1185
+ # Corresponds to the JSON property `minCount`
1186
+ # @return [Fixnum]
1187
+ attr_accessor :min_count
1188
+
1189
+ # Optional. Storage (GB) request and limit for a single Airflow worker replica.
1190
+ # Corresponds to the JSON property `storageGb`
1191
+ # @return [Float]
1192
+ attr_accessor :storage_gb
1193
+
1194
+ def initialize(**args)
1195
+ update!(**args)
1196
+ end
1197
+
1198
+ # Update properties of this object
1199
+ def update!(**args)
1200
+ @cpu = args[:cpu] if args.key?(:cpu)
1201
+ @max_count = args[:max_count] if args.key?(:max_count)
1202
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
1203
+ @min_count = args[:min_count] if args.key?(:min_count)
1204
+ @storage_gb = args[:storage_gb] if args.key?(:storage_gb)
1205
+ end
1206
+ end
1207
+
1208
+ # The Kubernetes workloads configuration for GKE cluster associated with the
1209
+ # Cloud Composer environment. Supported for Cloud Composer environments in
1210
+ # versions composer-2.*.*-airflow-*.*.* and newer.
1211
+ class WorkloadsConfig
1212
+ include Google::Apis::Core::Hashable
1213
+
1214
+ # Configuration for resources used by Airflow schedulers.
1215
+ # Corresponds to the JSON property `scheduler`
1216
+ # @return [Google::Apis::ComposerV1::SchedulerResource]
1217
+ attr_accessor :scheduler
1218
+
1219
+ # Configuration for resources used by Airflow web server.
1220
+ # Corresponds to the JSON property `webServer`
1221
+ # @return [Google::Apis::ComposerV1::WebServerResource]
1222
+ attr_accessor :web_server
1223
+
1224
+ # Configuration for resources used by Airflow workers.
1225
+ # Corresponds to the JSON property `worker`
1226
+ # @return [Google::Apis::ComposerV1::WorkerResource]
1227
+ attr_accessor :worker
1228
+
1229
+ def initialize(**args)
1230
+ update!(**args)
1231
+ end
1232
+
1233
+ # Update properties of this object
1234
+ def update!(**args)
1235
+ @scheduler = args[:scheduler] if args.key?(:scheduler)
1236
+ @web_server = args[:web_server] if args.key?(:web_server)
1237
+ @worker = args[:worker] if args.key?(:worker)
1238
+ end
1239
+ end
1061
1240
  end
1062
1241
  end
1063
1242
  end
@@ -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.15.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211013"
25
+ REVISION = "20211102"
26
26
  end
27
27
  end
28
28
  end
@@ -130,6 +130,12 @@ module Google
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
+ class SchedulerResource
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
133
139
  class SoftwareConfig
134
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
141
 
@@ -154,6 +160,24 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
163
+ class WebServerResource
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class WorkerResource
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class WorkloadsConfig
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
157
181
  class AllowedIpRange
158
182
  # @private
159
183
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -225,6 +249,7 @@ module Google
225
249
 
226
250
  property :encryption_config, as: 'encryptionConfig', class: Google::Apis::ComposerV1::EncryptionConfig, decorator: Google::Apis::ComposerV1::EncryptionConfig::Representation
227
251
 
252
+ property :environment_size, as: 'environmentSize'
228
253
  property :gke_cluster, as: 'gkeCluster'
229
254
  property :node_config, as: 'nodeConfig', class: Google::Apis::ComposerV1::NodeConfig, decorator: Google::Apis::ComposerV1::NodeConfig::Representation
230
255
 
@@ -237,6 +262,8 @@ module Google
237
262
 
238
263
  property :web_server_network_access_control, as: 'webServerNetworkAccessControl', class: Google::Apis::ComposerV1::WebServerNetworkAccessControl, decorator: Google::Apis::ComposerV1::WebServerNetworkAccessControl::Representation
239
264
 
265
+ property :workloads_config, as: 'workloadsConfig', class: Google::Apis::ComposerV1::WorkloadsConfig, decorator: Google::Apis::ComposerV1::WorkloadsConfig::Representation
266
+
240
267
  end
241
268
  end
242
269
 
@@ -343,6 +370,8 @@ module Google
343
370
  class PrivateEnvironmentConfig
344
371
  # @private
345
372
  class Representation < Google::Apis::Core::JsonRepresentation
373
+ property :cloud_composer_network_ipv4_cidr_block, as: 'cloudComposerNetworkIpv4CidrBlock'
374
+ property :cloud_composer_network_ipv4_reserved_range, as: 'cloudComposerNetworkIpv4ReservedRange'
346
375
  property :cloud_sql_ipv4_cidr_block, as: 'cloudSqlIpv4CidrBlock'
347
376
  property :enable_private_environment, as: 'enablePrivateEnvironment'
348
377
  property :private_cluster_config, as: 'privateClusterConfig', class: Google::Apis::ComposerV1::PrivateClusterConfig, decorator: Google::Apis::ComposerV1::PrivateClusterConfig::Representation
@@ -352,6 +381,16 @@ module Google
352
381
  end
353
382
  end
354
383
 
384
+ class SchedulerResource
385
+ # @private
386
+ class Representation < Google::Apis::Core::JsonRepresentation
387
+ property :count, as: 'count'
388
+ property :cpu, as: 'cpu'
389
+ property :memory_gb, as: 'memoryGb'
390
+ property :storage_gb, as: 'storageGb'
391
+ end
392
+ end
393
+
355
394
  class SoftwareConfig
356
395
  # @private
357
396
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -387,6 +426,38 @@ module Google
387
426
 
388
427
  end
389
428
  end
429
+
430
+ class WebServerResource
431
+ # @private
432
+ class Representation < Google::Apis::Core::JsonRepresentation
433
+ property :cpu, as: 'cpu'
434
+ property :memory_gb, as: 'memoryGb'
435
+ property :storage_gb, as: 'storageGb'
436
+ end
437
+ end
438
+
439
+ class WorkerResource
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ property :cpu, as: 'cpu'
443
+ property :max_count, as: 'maxCount'
444
+ property :memory_gb, as: 'memoryGb'
445
+ property :min_count, as: 'minCount'
446
+ property :storage_gb, as: 'storageGb'
447
+ end
448
+ end
449
+
450
+ class WorkloadsConfig
451
+ # @private
452
+ class Representation < Google::Apis::Core::JsonRepresentation
453
+ property :scheduler, as: 'scheduler', class: Google::Apis::ComposerV1::SchedulerResource, decorator: Google::Apis::ComposerV1::SchedulerResource::Representation
454
+
455
+ property :web_server, as: 'webServer', class: Google::Apis::ComposerV1::WebServerResource, decorator: Google::Apis::ComposerV1::WebServerResource::Representation
456
+
457
+ property :worker, as: 'worker', class: Google::Apis::ComposerV1::WorkerResource, decorator: Google::Apis::ComposerV1::WorkerResource::Representation
458
+
459
+ end
460
+ end
390
461
  end
391
462
  end
392
463
  end
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.15.0
4
+ version: 0.16.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-10-27 00:00:00.000000000 Z
11
+ date: 2021-11-15 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.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.16.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: []