google-apis-composer_v1 0.13.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/composer_v1/classes.rb +233 -25
- data/lib/google/apis/composer_v1/gem_version.rb +2 -2
- data/lib/google/apis/composer_v1/representations.rb +71 -0
- data/lib/google/apis/composer_v1/service.rb +36 -22
- 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: 8c68e50201104aac9a1671fea03a08212446821b656729783e37e55f89879536
|
4
|
+
data.tar.gz: 9bc7c10deba2ca7b712995ce3d95db40894a448d7ac1b7617f63e0ab5540fbd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8f7b40e622ba4aee8722a1989d8c4fe5f596c63150151fee855c7efc050dad42cf121f696e3e6dd7f70d59f7b7273f228d653fcb674318730e4f986c0ed0f0c
|
7
|
+
data.tar.gz: 76bbd7398350f419e895adc0b3bae747d1a9560f6da551ee9c245e3b29ecb3496c3a15226cfb9f947087faaea0382be5fa09fa227eb08828a0989b43d857c6ef
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-composer_v1
|
2
2
|
|
3
|
+
### v0.17.0 (2021-11-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211113
|
6
|
+
|
7
|
+
### v0.16.0 (2021-11-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211102
|
10
|
+
|
11
|
+
### v0.15.0 (2021-10-24)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211013
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.14.0 (2021-09-28)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210922
|
19
|
+
|
3
20
|
### v0.13.0 (2021-09-24)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210913
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Composer service in particular.)
|
67
67
|
|
@@ -97,7 +97,8 @@ module Google
|
|
97
97
|
end
|
98
98
|
|
99
99
|
# The configuration of Cloud SQL instance that is used by the Apache Airflow
|
100
|
-
# software.
|
100
|
+
# software. Supported for Cloud Composer environments in versions composer-1.*.*-
|
101
|
+
# airflow-*.*.*.
|
101
102
|
class DatabaseConfig
|
102
103
|
include Google::Apis::Core::Hashable
|
103
104
|
|
@@ -177,6 +178,8 @@ module Google
|
|
177
178
|
end
|
178
179
|
|
179
180
|
# The encryption options for the Cloud Composer environment and its dependencies.
|
181
|
+
# Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.
|
182
|
+
# *.*.
|
180
183
|
class EncryptionConfig
|
181
184
|
include Google::Apis::Core::Hashable
|
182
185
|
|
@@ -280,16 +283,26 @@ module Google
|
|
280
283
|
attr_accessor :dag_gcs_prefix
|
281
284
|
|
282
285
|
# The configuration of Cloud SQL instance that is used by the Apache Airflow
|
283
|
-
# software.
|
286
|
+
# software. Supported for Cloud Composer environments in versions composer-1.*.*-
|
287
|
+
# airflow-*.*.*.
|
284
288
|
# Corresponds to the JSON property `databaseConfig`
|
285
289
|
# @return [Google::Apis::ComposerV1::DatabaseConfig]
|
286
290
|
attr_accessor :database_config
|
287
291
|
|
288
292
|
# The encryption options for the Cloud Composer environment and its dependencies.
|
293
|
+
# Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.
|
294
|
+
# *.*.
|
289
295
|
# Corresponds to the JSON property `encryptionConfig`
|
290
296
|
# @return [Google::Apis::ComposerV1::EncryptionConfig]
|
291
297
|
attr_accessor :encryption_config
|
292
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
|
+
|
293
306
|
# Output only. The Kubernetes Engine cluster used to run this environment.
|
294
307
|
# Corresponds to the JSON property `gkeCluster`
|
295
308
|
# @return [String]
|
@@ -302,7 +315,8 @@ module Google
|
|
302
315
|
attr_accessor :node_config
|
303
316
|
|
304
317
|
# The number of nodes in the Kubernetes Engine cluster that will be used to run
|
305
|
-
# this environment.
|
318
|
+
# this environment. This field is supported for Cloud Composer environments in
|
319
|
+
# versions composer-1.*.*-airflow-*.*.*.
|
306
320
|
# Corresponds to the JSON property `nodeCount`
|
307
321
|
# @return [Fixnum]
|
308
322
|
attr_accessor :node_count
|
@@ -319,6 +333,8 @@ module Google
|
|
319
333
|
attr_accessor :software_config
|
320
334
|
|
321
335
|
# The configuration settings for the Airflow web server App Engine instance.
|
336
|
+
# Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.
|
337
|
+
# *.*
|
322
338
|
# Corresponds to the JSON property `webServerConfig`
|
323
339
|
# @return [Google::Apis::ComposerV1::WebServerConfig]
|
324
340
|
attr_accessor :web_server_config
|
@@ -328,6 +344,13 @@ module Google
|
|
328
344
|
# @return [Google::Apis::ComposerV1::WebServerNetworkAccessControl]
|
329
345
|
attr_accessor :web_server_network_access_control
|
330
346
|
|
347
|
+
# The Kubernetes workloads configuration for GKE cluster associated with the
|
348
|
+
# Cloud Composer environment. Supported for Cloud Composer environments in
|
349
|
+
# versions composer-2.*.*-airflow-*.*.* and newer.
|
350
|
+
# Corresponds to the JSON property `workloadsConfig`
|
351
|
+
# @return [Google::Apis::ComposerV1::WorkloadsConfig]
|
352
|
+
attr_accessor :workloads_config
|
353
|
+
|
331
354
|
def initialize(**args)
|
332
355
|
update!(**args)
|
333
356
|
end
|
@@ -338,6 +361,7 @@ module Google
|
|
338
361
|
@dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix)
|
339
362
|
@database_config = args[:database_config] if args.key?(:database_config)
|
340
363
|
@encryption_config = args[:encryption_config] if args.key?(:encryption_config)
|
364
|
+
@environment_size = args[:environment_size] if args.key?(:environment_size)
|
341
365
|
@gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
|
342
366
|
@node_config = args[:node_config] if args.key?(:node_config)
|
343
367
|
@node_count = args[:node_count] if args.key?(:node_count)
|
@@ -345,6 +369,7 @@ module Google
|
|
345
369
|
@software_config = args[:software_config] if args.key?(:software_config)
|
346
370
|
@web_server_config = args[:web_server_config] if args.key?(:web_server_config)
|
347
371
|
@web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control)
|
372
|
+
@workloads_config = args[:workloads_config] if args.key?(:workloads_config)
|
348
373
|
end
|
349
374
|
end
|
350
375
|
|
@@ -354,42 +379,48 @@ module Google
|
|
354
379
|
include Google::Apis::Core::Hashable
|
355
380
|
|
356
381
|
# Optional. The IP address range used to allocate IP addresses to pods in the
|
357
|
-
# GKE cluster.
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
#
|
382
|
+
# GKE cluster. For Cloud Composer environments in versions composer-1.*.*-
|
383
|
+
# airflow-*.*.*, this field is applicable only when `use_ip_aliases` is true.
|
384
|
+
# Set to blank to have GKE choose a range with the default size. Set to /netmask
|
385
|
+
# (e.g. `/14`) to have GKE choose a range with a specific netmask. Set to a [
|
386
|
+
# CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (
|
387
|
+
# e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `
|
388
|
+
# 172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
|
363
389
|
# Corresponds to the JSON property `clusterIpv4CidrBlock`
|
364
390
|
# @return [String]
|
365
391
|
attr_accessor :cluster_ipv4_cidr_block
|
366
392
|
|
367
393
|
# Optional. The name of the GKE cluster's secondary range used to allocate IP
|
368
|
-
# addresses to pods.
|
394
|
+
# addresses to pods. For Cloud Composer environments in versions composer-1.*.*-
|
395
|
+
# airflow-*.*.*, this field is applicable only when `use_ip_aliases` is true.
|
369
396
|
# Corresponds to the JSON property `clusterSecondaryRangeName`
|
370
397
|
# @return [String]
|
371
398
|
attr_accessor :cluster_secondary_range_name
|
372
399
|
|
373
400
|
# Optional. The IP address range of the services IP addresses in this GKE
|
374
|
-
# cluster.
|
375
|
-
#
|
376
|
-
#
|
377
|
-
#
|
378
|
-
#
|
379
|
-
# 0.0/
|
401
|
+
# cluster. For Cloud Composer environments in versions composer-1.*.*-airflow-*.*
|
402
|
+
# .*, this field is applicable only when `use_ip_aliases` is true. Set to blank
|
403
|
+
# to have GKE choose a range with the default size. Set to /netmask (e.g. `/14`)
|
404
|
+
# to have GKE choose a range with a specific netmask. Set to a [CIDR](https://en.
|
405
|
+
# wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/
|
406
|
+
# 14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `
|
407
|
+
# 192.168.0.0/16`) to pick a specific range to use.
|
380
408
|
# Corresponds to the JSON property `servicesIpv4CidrBlock`
|
381
409
|
# @return [String]
|
382
410
|
attr_accessor :services_ipv4_cidr_block
|
383
411
|
|
384
412
|
# Optional. The name of the services' secondary range used to allocate IP
|
385
|
-
# addresses to the GKE cluster.
|
413
|
+
# addresses to the GKE cluster. For Cloud Composer environments in versions
|
414
|
+
# composer-1.*.*-airflow-*.*.*, this field is applicable only when `
|
386
415
|
# use_ip_aliases` is true.
|
387
416
|
# Corresponds to the JSON property `servicesSecondaryRangeName`
|
388
417
|
# @return [String]
|
389
418
|
attr_accessor :services_secondary_range_name
|
390
419
|
|
391
420
|
# Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`, a
|
392
|
-
# VPC-native cluster is created.
|
421
|
+
# VPC-native cluster is created. This field is only supported for Cloud Composer
|
422
|
+
# environments in versions composer-1.*.*-airflow-*.*.*. Environments in newer
|
423
|
+
# versions always use VPC-native GKE clusters.
|
393
424
|
# Corresponds to the JSON property `useIpAliases`
|
394
425
|
# @return [Boolean]
|
395
426
|
attr_accessor :use_ip_aliases
|
@@ -552,7 +583,8 @@ module Google
|
|
552
583
|
include Google::Apis::Core::Hashable
|
553
584
|
|
554
585
|
# Optional. The disk size in GB used for node VMs. Minimum size is 20GB. If
|
555
|
-
# unspecified, defaults to 100GB. Cannot be updated.
|
586
|
+
# unspecified, defaults to 100GB. Cannot be updated. This field is supported for
|
587
|
+
# Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
|
556
588
|
# Corresponds to the JSON property `diskSizeGb`
|
557
589
|
# @return [Fixnum]
|
558
590
|
attr_accessor :disk_size_gb
|
@@ -573,7 +605,9 @@ module Google
|
|
573
605
|
# zone in the Compute Engine region corresponding to the Cloud Composer location,
|
574
606
|
# and propagate that choice to both fields. If only one field (`location` or `
|
575
607
|
# nodeConfig.machineType`) is specified, the location information from the
|
576
|
-
# specified field will be propagated to the unspecified field.
|
608
|
+
# specified field will be propagated to the unspecified field. This field is
|
609
|
+
# supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.
|
610
|
+
# *.*.
|
577
611
|
# Corresponds to the JSON property `location`
|
578
612
|
# @return [String]
|
579
613
|
attr_accessor :location
|
@@ -591,6 +625,8 @@ module Google
|
|
591
625
|
# field will be propagated to the unspecified field. The `machineTypeId` must
|
592
626
|
# not be a [shared-core machine type](/compute/docs/machine-types#sharedcore).
|
593
627
|
# If this field is unspecified, the `machineTypeId` defaults to "n1-standard-1".
|
628
|
+
# This field is supported for Cloud Composer environments in versions composer-1.
|
629
|
+
# *.*-airflow-*.*.*.
|
594
630
|
# Corresponds to the JSON property `machineType`
|
595
631
|
# @return [String]
|
596
632
|
attr_accessor :machine_type
|
@@ -609,7 +645,8 @@ module Google
|
|
609
645
|
|
610
646
|
# Optional. The set of Google API scopes to be made available on all node VMs.
|
611
647
|
# If `oauth_scopes` is empty, defaults to ["https://www.googleapis.com/auth/
|
612
|
-
# cloud-platform"]. Cannot be updated.
|
648
|
+
# cloud-platform"]. Cannot be updated. This field is supported for Cloud
|
649
|
+
# Composer environments in versions composer-1.*.*-airflow-*.*.*.
|
613
650
|
# Corresponds to the JSON property `oauthScopes`
|
614
651
|
# @return [Array<String>]
|
615
652
|
attr_accessor :oauth_scopes
|
@@ -634,7 +671,8 @@ module Google
|
|
634
671
|
# Optional. The list of instance tags applied to all node VMs. Tags are used to
|
635
672
|
# identify valid sources or targets for network firewalls. Each tag within the
|
636
673
|
# list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Cannot
|
637
|
-
# be updated.
|
674
|
+
# be updated. This field is supported for Cloud Composer environments in
|
675
|
+
# versions composer-1.*.*-airflow-*.*.*.
|
638
676
|
# Corresponds to the JSON property `tags`
|
639
677
|
# @return [Array<String>]
|
640
678
|
attr_accessor :tags
|
@@ -814,6 +852,22 @@ module Google
|
|
814
852
|
class PrivateEnvironmentConfig
|
815
853
|
include Google::Apis::Core::Hashable
|
816
854
|
|
855
|
+
# Optional. The CIDR block from which IP range for Cloud Composer Network in
|
856
|
+
# tenant project will be reserved. Needs to be disjoint from
|
857
|
+
# private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block.
|
858
|
+
# This field is supported for Cloud Composer environments in versions composer-2.
|
859
|
+
# *.*-airflow-*.*.* and newer.
|
860
|
+
# Corresponds to the JSON property `cloudComposerNetworkIpv4CidrBlock`
|
861
|
+
# @return [String]
|
862
|
+
attr_accessor :cloud_composer_network_ipv4_cidr_block
|
863
|
+
|
864
|
+
# Output only. The IP range reserved for the tenant project's Cloud Composer
|
865
|
+
# network. This field is supported for Cloud Composer environments in versions
|
866
|
+
# composer-2.*.*-airflow-*.*.* and newer.
|
867
|
+
# Corresponds to the JSON property `cloudComposerNetworkIpv4ReservedRange`
|
868
|
+
# @return [String]
|
869
|
+
attr_accessor :cloud_composer_network_ipv4_reserved_range
|
870
|
+
|
817
871
|
# Optional. The CIDR block from which IP range in tenant project will be
|
818
872
|
# reserved for Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`.
|
819
873
|
# Corresponds to the JSON property `cloudSqlIpv4CidrBlock`
|
@@ -822,7 +876,7 @@ module Google
|
|
822
876
|
|
823
877
|
# Optional. If `true`, a Private IP Cloud Composer environment is created. If
|
824
878
|
# this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be set to
|
825
|
-
# true
|
879
|
+
# true for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
|
826
880
|
# Corresponds to the JSON property `enablePrivateEnvironment`
|
827
881
|
# @return [Boolean]
|
828
882
|
attr_accessor :enable_private_environment
|
@@ -836,12 +890,15 @@ module Google
|
|
836
890
|
|
837
891
|
# Optional. The CIDR block from which IP range for web server will be reserved.
|
838
892
|
# Needs to be disjoint from `private_cluster_config.master_ipv4_cidr_block` and `
|
839
|
-
# cloud_sql_ipv4_cidr_block`.
|
893
|
+
# cloud_sql_ipv4_cidr_block`. This field is supported for Cloud Composer
|
894
|
+
# environments in versions composer-1.*.*-airflow-*.*.*.
|
840
895
|
# Corresponds to the JSON property `webServerIpv4CidrBlock`
|
841
896
|
# @return [String]
|
842
897
|
attr_accessor :web_server_ipv4_cidr_block
|
843
898
|
|
844
899
|
# Output only. The IP range reserved for the tenant project's App Engine VMs.
|
900
|
+
# This field is supported for Cloud Composer environments in versions composer-1.
|
901
|
+
# *.*-airflow-*.*.*.
|
845
902
|
# Corresponds to the JSON property `webServerIpv4ReservedRange`
|
846
903
|
# @return [String]
|
847
904
|
attr_accessor :web_server_ipv4_reserved_range
|
@@ -852,6 +909,8 @@ module Google
|
|
852
909
|
|
853
910
|
# Update properties of this object
|
854
911
|
def update!(**args)
|
912
|
+
@cloud_composer_network_ipv4_cidr_block = args[:cloud_composer_network_ipv4_cidr_block] if args.key?(:cloud_composer_network_ipv4_cidr_block)
|
913
|
+
@cloud_composer_network_ipv4_reserved_range = args[:cloud_composer_network_ipv4_reserved_range] if args.key?(:cloud_composer_network_ipv4_reserved_range)
|
855
914
|
@cloud_sql_ipv4_cidr_block = args[:cloud_sql_ipv4_cidr_block] if args.key?(:cloud_sql_ipv4_cidr_block)
|
856
915
|
@enable_private_environment = args[:enable_private_environment] if args.key?(:enable_private_environment)
|
857
916
|
@private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config)
|
@@ -860,6 +919,44 @@ module Google
|
|
860
919
|
end
|
861
920
|
end
|
862
921
|
|
922
|
+
# Configuration for resources used by Airflow schedulers.
|
923
|
+
class SchedulerResource
|
924
|
+
include Google::Apis::Core::Hashable
|
925
|
+
|
926
|
+
# Optional. The number of schedulers.
|
927
|
+
# Corresponds to the JSON property `count`
|
928
|
+
# @return [Fixnum]
|
929
|
+
attr_accessor :count
|
930
|
+
|
931
|
+
# Optional. CPU request and limit for a single Airflow scheduler replica.
|
932
|
+
# Corresponds to the JSON property `cpu`
|
933
|
+
# @return [Float]
|
934
|
+
attr_accessor :cpu
|
935
|
+
|
936
|
+
# Optional. Memory (GB) request and limit for a single Airflow scheduler replica.
|
937
|
+
# Corresponds to the JSON property `memoryGb`
|
938
|
+
# @return [Float]
|
939
|
+
attr_accessor :memory_gb
|
940
|
+
|
941
|
+
# Optional. Storage (GB) request and limit for a single Airflow scheduler
|
942
|
+
# replica.
|
943
|
+
# Corresponds to the JSON property `storageGb`
|
944
|
+
# @return [Float]
|
945
|
+
attr_accessor :storage_gb
|
946
|
+
|
947
|
+
def initialize(**args)
|
948
|
+
update!(**args)
|
949
|
+
end
|
950
|
+
|
951
|
+
# Update properties of this object
|
952
|
+
def update!(**args)
|
953
|
+
@count = args[:count] if args.key?(:count)
|
954
|
+
@cpu = args[:cpu] if args.key?(:cpu)
|
955
|
+
@memory_gb = args[:memory_gb] if args.key?(:memory_gb)
|
956
|
+
@storage_gb = args[:storage_gb] if args.key?(:storage_gb)
|
957
|
+
end
|
958
|
+
end
|
959
|
+
|
863
960
|
# Specifies the selection and configuration of software inside the environment.
|
864
961
|
class SoftwareConfig
|
865
962
|
include Google::Apis::Core::Hashable
|
@@ -921,7 +1018,9 @@ module Google
|
|
921
1018
|
|
922
1019
|
# Optional. The major version of Python used to run the Apache Airflow scheduler,
|
923
1020
|
# worker, and webserver processes. Can be set to '2' or '3'. If not specified,
|
924
|
-
# the default is '3'. Cannot be updated.
|
1021
|
+
# the default is '3'. Cannot be updated. This field is only supported for Cloud
|
1022
|
+
# Composer environments in versions composer-1.*.*-airflow-*.*.*. Environments
|
1023
|
+
# in newer versions always use Python major version 3.
|
925
1024
|
# Corresponds to the JSON property `pythonVersion`
|
926
1025
|
# @return [String]
|
927
1026
|
attr_accessor :python_version
|
@@ -987,6 +1086,8 @@ module Google
|
|
987
1086
|
end
|
988
1087
|
|
989
1088
|
# The configuration settings for the Airflow web server App Engine instance.
|
1089
|
+
# Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.
|
1090
|
+
# *.*
|
990
1091
|
class WebServerConfig
|
991
1092
|
include Google::Apis::Core::Hashable
|
992
1093
|
|
@@ -1027,6 +1128,113 @@ module Google
|
|
1027
1128
|
@allowed_ip_ranges = args[:allowed_ip_ranges] if args.key?(:allowed_ip_ranges)
|
1028
1129
|
end
|
1029
1130
|
end
|
1131
|
+
|
1132
|
+
# Configuration for resources used by Airflow web server.
|
1133
|
+
class WebServerResource
|
1134
|
+
include Google::Apis::Core::Hashable
|
1135
|
+
|
1136
|
+
# Optional. CPU request and limit for Airflow web server.
|
1137
|
+
# Corresponds to the JSON property `cpu`
|
1138
|
+
# @return [Float]
|
1139
|
+
attr_accessor :cpu
|
1140
|
+
|
1141
|
+
# Optional. Memory (GB) request and limit for Airflow web server.
|
1142
|
+
# Corresponds to the JSON property `memoryGb`
|
1143
|
+
# @return [Float]
|
1144
|
+
attr_accessor :memory_gb
|
1145
|
+
|
1146
|
+
# Optional. Storage (GB) request and limit for Airflow web server.
|
1147
|
+
# Corresponds to the JSON property `storageGb`
|
1148
|
+
# @return [Float]
|
1149
|
+
attr_accessor :storage_gb
|
1150
|
+
|
1151
|
+
def initialize(**args)
|
1152
|
+
update!(**args)
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
# Update properties of this object
|
1156
|
+
def update!(**args)
|
1157
|
+
@cpu = args[:cpu] if args.key?(:cpu)
|
1158
|
+
@memory_gb = args[:memory_gb] if args.key?(:memory_gb)
|
1159
|
+
@storage_gb = args[:storage_gb] if args.key?(:storage_gb)
|
1160
|
+
end
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
# Configuration for resources used by Airflow workers.
|
1164
|
+
class WorkerResource
|
1165
|
+
include Google::Apis::Core::Hashable
|
1166
|
+
|
1167
|
+
# Optional. CPU request and limit for a single Airflow worker replica.
|
1168
|
+
# Corresponds to the JSON property `cpu`
|
1169
|
+
# @return [Float]
|
1170
|
+
attr_accessor :cpu
|
1171
|
+
|
1172
|
+
# Optional. Maximum number of workers for autoscaling.
|
1173
|
+
# Corresponds to the JSON property `maxCount`
|
1174
|
+
# @return [Fixnum]
|
1175
|
+
attr_accessor :max_count
|
1176
|
+
|
1177
|
+
# Optional. Memory (GB) request and limit for a single Airflow worker replica.
|
1178
|
+
# Corresponds to the JSON property `memoryGb`
|
1179
|
+
# @return [Float]
|
1180
|
+
attr_accessor :memory_gb
|
1181
|
+
|
1182
|
+
# Optional. Minimum number of workers for autoscaling.
|
1183
|
+
# Corresponds to the JSON property `minCount`
|
1184
|
+
# @return [Fixnum]
|
1185
|
+
attr_accessor :min_count
|
1186
|
+
|
1187
|
+
# Optional. Storage (GB) request and limit for a single Airflow worker replica.
|
1188
|
+
# Corresponds to the JSON property `storageGb`
|
1189
|
+
# @return [Float]
|
1190
|
+
attr_accessor :storage_gb
|
1191
|
+
|
1192
|
+
def initialize(**args)
|
1193
|
+
update!(**args)
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
# Update properties of this object
|
1197
|
+
def update!(**args)
|
1198
|
+
@cpu = args[:cpu] if args.key?(:cpu)
|
1199
|
+
@max_count = args[:max_count] if args.key?(:max_count)
|
1200
|
+
@memory_gb = args[:memory_gb] if args.key?(:memory_gb)
|
1201
|
+
@min_count = args[:min_count] if args.key?(:min_count)
|
1202
|
+
@storage_gb = args[:storage_gb] if args.key?(:storage_gb)
|
1203
|
+
end
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
# The Kubernetes workloads configuration for GKE cluster associated with the
|
1207
|
+
# Cloud Composer environment. Supported for Cloud Composer environments in
|
1208
|
+
# versions composer-2.*.*-airflow-*.*.* and newer.
|
1209
|
+
class WorkloadsConfig
|
1210
|
+
include Google::Apis::Core::Hashable
|
1211
|
+
|
1212
|
+
# Configuration for resources used by Airflow schedulers.
|
1213
|
+
# Corresponds to the JSON property `scheduler`
|
1214
|
+
# @return [Google::Apis::ComposerV1::SchedulerResource]
|
1215
|
+
attr_accessor :scheduler
|
1216
|
+
|
1217
|
+
# Configuration for resources used by Airflow web server.
|
1218
|
+
# Corresponds to the JSON property `webServer`
|
1219
|
+
# @return [Google::Apis::ComposerV1::WebServerResource]
|
1220
|
+
attr_accessor :web_server
|
1221
|
+
|
1222
|
+
# Configuration for resources used by Airflow workers.
|
1223
|
+
# Corresponds to the JSON property `worker`
|
1224
|
+
# @return [Google::Apis::ComposerV1::WorkerResource]
|
1225
|
+
attr_accessor :worker
|
1226
|
+
|
1227
|
+
def initialize(**args)
|
1228
|
+
update!(**args)
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
# Update properties of this object
|
1232
|
+
def update!(**args)
|
1233
|
+
@scheduler = args[:scheduler] if args.key?(:scheduler)
|
1234
|
+
@web_server = args[:web_server] if args.key?(:web_server)
|
1235
|
+
@worker = args[:worker] if args.key?(:worker)
|
1236
|
+
end
|
1237
|
+
end
|
1030
1238
|
end
|
1031
1239
|
end
|
1032
1240
|
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.
|
19
|
+
GEM_VERSION = "0.17.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 = "
|
25
|
+
REVISION = "20211113"
|
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
|
@@ -229,28 +229,42 @@ module Google
|
|
229
229
|
# error to provide both a mask of this form and the `labels` mask. * `config.
|
230
230
|
# nodeCount` * Horizontally scale the number of nodes in the environment. An
|
231
231
|
# integer greater than or equal to 3 must be provided in the `config.nodeCount`
|
232
|
-
# field.
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
# softwareConfig.
|
253
|
-
#
|
232
|
+
# field. Supported for Cloud Composer environments in versions composer-1.*.*-
|
233
|
+
# airflow-*.*.*. * `config.webServerNetworkAccessControl` * Replace the
|
234
|
+
# environment's current `WebServerNetworkAccessControl`. * `config.
|
235
|
+
# databaseConfig.machineType` * Cloud SQL machine type used by Airflow database.
|
236
|
+
# It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or
|
237
|
+
# db-n1-standard-16. Supported for Cloud Composer environments in versions
|
238
|
+
# composer-1.*.*-airflow-*.*.*. * `config.webServerConfig.machineType` * Machine
|
239
|
+
# type on which Airflow web server is running. It has to be one of: composer-n1-
|
240
|
+
# webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. Supported for
|
241
|
+
# Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*. * `
|
242
|
+
# config.softwareConfig.airflowConfigOverrides` * Replace all Apache Airflow
|
243
|
+
# config overrides. If a replacement config overrides map is not included in `
|
244
|
+
# environment`, all config overrides are cleared. It is an error to provide both
|
245
|
+
# this mask and a mask specifying one or more individual config overrides. * `
|
246
|
+
# config.softwareConfig.airflowConfigOverrides.`section-name * Override the
|
247
|
+
# Apache Airflow config property *name* in the section named *section*,
|
248
|
+
# preserving other properties. To delete the property override, include it in `
|
249
|
+
# updateMask` and omit its mapping in `environment.config.softwareConfig.
|
250
|
+
# airflowConfigOverrides`. It is an error to provide both a mask of this form
|
251
|
+
# and the `config.softwareConfig.airflowConfigOverrides` mask. * `config.
|
252
|
+
# softwareConfig.envVariables` * Replace all environment variables. If a
|
253
|
+
# replacement environment variable map is not included in `environment`, all
|
254
|
+
# custom environment variables are cleared. It is an error to provide both this
|
255
|
+
# mask and a mask specifying one or more individual environment variables. * `
|
256
|
+
# config.softwareConfig.schedulerCount` * Horizontally scale the number of
|
257
|
+
# schedulers in Airflow. A positive integer not greater than the number of nodes
|
258
|
+
# must be provided in the `config.softwareConfig.schedulerCount` field.
|
259
|
+
# Supported for Cloud Composer environments in versions composer-1.*.*-airflow-2.
|
260
|
+
# *.*. * `config.databaseConfig.machineType` * Cloud SQL machine type used by
|
261
|
+
# Airflow database. It has to be one of: db-n1-standard-2, db-n1-standard-4, db-
|
262
|
+
# n1-standard-8 or db-n1-standard-16. Supported for Cloud Composer environments
|
263
|
+
# in versions composer-1.*.*-airflow-*.*.*. * `config.webServerConfig.
|
264
|
+
# machineType` * Machine type on which Airflow web server is running. It has to
|
265
|
+
# be one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-
|
266
|
+
# webserver-8. Supported for Cloud Composer environments in versions composer-1.*
|
267
|
+
# .*-airflow-*.*.*.
|
254
268
|
# @param [String] fields
|
255
269
|
# Selector specifying which fields to include in a partial response.
|
256
270
|
# @param [String] quota_user
|
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.
|
4
|
+
version: 0.17.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-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.17.0
|
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: []
|
65
65
|
require_paths:
|