google-apis-composer_v1 0.21.0 → 0.24.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5499c17b4503f4141cf3f7e4a69a47495e2332c60c57a9e67783ba839d9b7d1
4
- data.tar.gz: 58baffdd24423be1fd6be388d7f0192ef40b6a9c6b2fde37f580a2557eca753c
3
+ metadata.gz: d5802f5cd28423485800e86784b6c6d22d97e36aad117efe86d9ed741423c122
4
+ data.tar.gz: 76684d2bfa41e3ca93b2f7ff3594f86bf1050d1c40e16a6fa08edf03b3606af1
5
5
  SHA512:
6
- metadata.gz: f2588b38dee2a309a7ef2ad52d46d22be58ca5c5db1d0d3002716ca7718bbc5ed2ea3d58add7bffd2940342690bda2c1f607793c49ce5b2d6606c7a34539f831
7
- data.tar.gz: 737d7251c6793c708afb27c7216db76d68867d408052737892295991461090d426c95acc4609358f9fc2ca8fbdfcce9a1e1b7d559993f4e48e62409f68be240f
6
+ metadata.gz: c5db03a73556f9c8977f4c4b0294ae6ea8842da6e72292206aafc87783d2a40b69bdee573c2c22efa9932f43ff32ab825e46379b92ea52d7912570742daffdec
7
+ data.tar.gz: 2c6b7563ecbdeab2a165d831ff76c90a7e99155fb59927f1c64ba047202a0f790dd94ef0ff190468093b6ba62832adb9a1d61ae1d04ade016b90e163416f2057
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-composer_v1
2
2
 
3
+ ### v0.24.0 (2022-05-25)
4
+
5
+ * Regenerated from discovery document revision 20220518
6
+
7
+ ### v0.23.0 (2022-05-17)
8
+
9
+ * Regenerated from discovery document revision 20220512
10
+
11
+ ### v0.22.0 (2022-04-01)
12
+
13
+ * Regenerated from discovery document revision 20220326
14
+
3
15
  ### v0.21.0 (2022-03-12)
4
16
 
5
17
  * Regenerated from discovery document revision 20220307
@@ -96,6 +96,31 @@ module Google
96
96
  end
97
97
  end
98
98
 
99
+ # CIDR block with an optional name.
100
+ class CidrBlock
101
+ include Google::Apis::Core::Hashable
102
+
103
+ # CIDR block that must be specified in CIDR notation.
104
+ # Corresponds to the JSON property `cidrBlock`
105
+ # @return [String]
106
+ attr_accessor :cidr_block
107
+
108
+ # User-defined name that identifies the CIDR block.
109
+ # Corresponds to the JSON property `displayName`
110
+ # @return [String]
111
+ attr_accessor :display_name
112
+
113
+ def initialize(**args)
114
+ update!(**args)
115
+ end
116
+
117
+ # Update properties of this object
118
+ def update!(**args)
119
+ @cidr_block = args[:cidr_block] if args.key?(:cidr_block)
120
+ @display_name = args[:display_name] if args.key?(:display_name)
121
+ end
122
+ end
123
+
99
124
  # The configuration of Cloud SQL instance that is used by the Apache Airflow
100
125
  # software.
101
126
  class DatabaseConfig
@@ -163,8 +188,7 @@ module Google
163
188
  # A generic empty message that you can re-use to avoid defining duplicated empty
164
189
  # messages in your APIs. A typical example is to use it as the request or the
165
190
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
166
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
167
- # `Empty` is empty JSON object ````.
191
+ # protobuf.Empty) returns (google.protobuf.Empty); `
168
192
  class Empty
169
193
  include Google::Apis::Core::Hashable
170
194
 
@@ -316,6 +340,14 @@ module Google
316
340
  # @return [Google::Apis::ComposerV1::MaintenanceWindow]
317
341
  attr_accessor :maintenance_window
318
342
 
343
+ # Configuration options for the master authorized networks feature. Enabled
344
+ # master authorized networks will disallow all external traffic to access
345
+ # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
346
+ # Google Compute Engine Public IPs and Google Prod IPs.
347
+ # Corresponds to the JSON property `masterAuthorizedNetworksConfig`
348
+ # @return [Google::Apis::ComposerV1::MasterAuthorizedNetworksConfig]
349
+ attr_accessor :master_authorized_networks_config
350
+
319
351
  # The configuration information for the Kubernetes Engine nodes running the
320
352
  # Apache Airflow software.
321
353
  # Corresponds to the JSON property `nodeConfig`
@@ -372,6 +404,7 @@ module Google
372
404
  @environment_size = args[:environment_size] if args.key?(:environment_size)
373
405
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
374
406
  @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
407
+ @master_authorized_networks_config = args[:master_authorized_networks_config] if args.key?(:master_authorized_networks_config)
375
408
  @node_config = args[:node_config] if args.key?(:node_config)
376
409
  @node_count = args[:node_count] if args.key?(:node_count)
377
410
  @private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config)
@@ -626,18 +659,56 @@ module Google
626
659
  end
627
660
  end
628
661
 
662
+ # Configuration options for the master authorized networks feature. Enabled
663
+ # master authorized networks will disallow all external traffic to access
664
+ # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
665
+ # Google Compute Engine Public IPs and Google Prod IPs.
666
+ class MasterAuthorizedNetworksConfig
667
+ include Google::Apis::Core::Hashable
668
+
669
+ # Up to 50 external networks that could access Kubernetes master through HTTPS.
670
+ # Corresponds to the JSON property `cidrBlocks`
671
+ # @return [Array<Google::Apis::ComposerV1::CidrBlock>]
672
+ attr_accessor :cidr_blocks
673
+
674
+ # Whether or not master authorized networks feature is enabled.
675
+ # Corresponds to the JSON property `enabled`
676
+ # @return [Boolean]
677
+ attr_accessor :enabled
678
+ alias_method :enabled?, :enabled
679
+
680
+ def initialize(**args)
681
+ update!(**args)
682
+ end
683
+
684
+ # Update properties of this object
685
+ def update!(**args)
686
+ @cidr_blocks = args[:cidr_blocks] if args.key?(:cidr_blocks)
687
+ @enabled = args[:enabled] if args.key?(:enabled)
688
+ end
689
+ end
690
+
629
691
  # The configuration information for the Kubernetes Engine nodes running the
630
692
  # Apache Airflow software.
631
693
  class NodeConfig
632
694
  include Google::Apis::Core::Hashable
633
695
 
634
- # Optional. The disk size in GB used for node VMs. Minimum size is 20GB. If
696
+ # Optional. The disk size in GB used for node VMs. Minimum size is 30GB. If
635
697
  # unspecified, defaults to 100GB. Cannot be updated. This field is supported for
636
698
  # Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
637
699
  # Corresponds to the JSON property `diskSizeGb`
638
700
  # @return [Fixnum]
639
701
  attr_accessor :disk_size_gb
640
702
 
703
+ # Optional. Deploys 'ip-masq-agent' daemon set in the GKE cluster and defines
704
+ # nonMasqueradeCIDRs equals to pod IP range so IP masquerading is used for all
705
+ # destination addresses, except between pods traffic. See: https://cloud.google.
706
+ # com/kubernetes-engine/docs/how-to/ip-masquerade-agent
707
+ # Corresponds to the JSON property `enableIpMasqAgent`
708
+ # @return [Boolean]
709
+ attr_accessor :enable_ip_masq_agent
710
+ alias_method :enable_ip_masq_agent?, :enable_ip_masq_agent
711
+
641
712
  # Configuration for controlling how IPs are allocated in the GKE cluster running
642
713
  # the Apache Airflow software.
643
714
  # Corresponds to the JSON property `ipAllocationPolicy`
@@ -733,6 +804,7 @@ module Google
733
804
  # Update properties of this object
734
805
  def update!(**args)
735
806
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
807
+ @enable_ip_masq_agent = args[:enable_ip_masq_agent] if args.key?(:enable_ip_masq_agent)
736
808
  @ip_allocation_policy = args[:ip_allocation_policy] if args.key?(:ip_allocation_policy)
737
809
  @location = args[:location] if args.key?(:location)
738
810
  @machine_type = args[:machine_type] if args.key?(:machine_type)
@@ -939,6 +1011,14 @@ module Google
939
1011
  attr_accessor :enable_private_environment
940
1012
  alias_method :enable_private_environment?, :enable_private_environment
941
1013
 
1014
+ # Optional. When enabled, IPs from public (non-RFC1918) ranges can be used for `
1015
+ # IPAllocationPolicy.cluster_ipv4_cidr_block` and `IPAllocationPolicy.
1016
+ # service_ipv4_cidr_block`.
1017
+ # Corresponds to the JSON property `enablePrivatelyUsedPublicIps`
1018
+ # @return [Boolean]
1019
+ attr_accessor :enable_privately_used_public_ips
1020
+ alias_method :enable_privately_used_public_ips?, :enable_privately_used_public_ips
1021
+
942
1022
  # Configuration options for the private GKE cluster in a Cloud Composer
943
1023
  # environment.
944
1024
  # Corresponds to the JSON property `privateClusterConfig`
@@ -971,6 +1051,7 @@ module Google
971
1051
  @cloud_composer_network_ipv4_reserved_range = args[:cloud_composer_network_ipv4_reserved_range] if args.key?(:cloud_composer_network_ipv4_reserved_range)
972
1052
  @cloud_sql_ipv4_cidr_block = args[:cloud_sql_ipv4_cidr_block] if args.key?(:cloud_sql_ipv4_cidr_block)
973
1053
  @enable_private_environment = args[:enable_private_environment] if args.key?(:enable_private_environment)
1054
+ @enable_privately_used_public_ips = args[:enable_privately_used_public_ips] if args.key?(:enable_privately_used_public_ips)
974
1055
  @private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config)
975
1056
  @web_server_ipv4_cidr_block = args[:web_server_ipv4_cidr_block] if args.key?(:web_server_ipv4_cidr_block)
976
1057
  @web_server_ipv4_reserved_range = args[:web_server_ipv4_reserved_range] if args.key?(:web_server_ipv4_reserved_range)
@@ -1050,21 +1131,21 @@ module Google
1050
1131
  # The version of the software running in the environment. This encapsulates both
1051
1132
  # the version of Cloud Composer functionality and the version of Apache Airflow.
1052
1133
  # It must match the regular expression `composer-([0-9]+(\.[0-9]+\.[0-9]+(-
1053
- # preview\.[0-9]+)?)?|latest)-airflow-([0-9]+\.[0-9]+(\.[0-9]+)?)`. When used as
1054
- # input, the server also checks if the provided version is supported and denies
1055
- # the request for an unsupported version. The Cloud Composer portion of the
1056
- # image version is a full [semantic version](https://semver.org), or an alias in
1057
- # the form of major version number or `latest`. When an alias is provided, the
1058
- # server replaces it with the current Cloud Composer version that satisfies the
1059
- # alias. The Apache Airflow portion of the image version is a full semantic
1060
- # version that points to one of the supported Apache Airflow versions, or an
1061
- # alias in the form of only major and minor versions specified. When an alias is
1062
- # provided, the server replaces it with the latest Apache Airflow version that
1063
- # satisfies the alias and is supported in the given Cloud Composer version. In
1064
- # all cases, the resolved image version is stored in the same field. See also [
1065
- # version list](/composer/docs/concepts/versioning/composer-versions) and [
1066
- # versioning overview](/composer/docs/concepts/versioning/composer-versioning-
1067
- # overview).
1134
+ # preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`. When used
1135
+ # as input, the server also checks if the provided version is supported and
1136
+ # denies the request for an unsupported version. The Cloud Composer portion of
1137
+ # the image version is a full [semantic version](https://semver.org), or an
1138
+ # alias in the form of major version number or `latest`. When an alias is
1139
+ # provided, the server replaces it with the current Cloud Composer version that
1140
+ # satisfies the alias. The Apache Airflow portion of the image version is a full
1141
+ # semantic version that points to one of the supported Apache Airflow versions,
1142
+ # or an alias in the form of only major or major.minor versions specified. When
1143
+ # an alias is provided, the server replaces it with the latest Apache Airflow
1144
+ # version that satisfies the alias and is supported in the given Cloud Composer
1145
+ # version. In all cases, the resolved image version is stored in the same field.
1146
+ # See also [version list](/composer/docs/concepts/versioning/composer-versions)
1147
+ # and [versioning overview](/composer/docs/concepts/versioning/composer-
1148
+ # versioning-overview).
1068
1149
  # Corresponds to the JSON property `imageVersion`
1069
1150
  # @return [String]
1070
1151
  attr_accessor :image_version
@@ -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.21.0"
19
+ GEM_VERSION = "0.24.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220307"
25
+ REVISION = "20220518"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class CidrBlock
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class DatabaseConfig
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -106,6 +112,12 @@ module Google
106
112
  include Google::Apis::Core::JsonObjectSupport
107
113
  end
108
114
 
115
+ class MasterAuthorizedNetworksConfig
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
109
121
  class NodeConfig
110
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
123
 
@@ -203,6 +215,14 @@ module Google
203
215
  end
204
216
  end
205
217
 
218
+ class CidrBlock
219
+ # @private
220
+ class Representation < Google::Apis::Core::JsonRepresentation
221
+ property :cidr_block, as: 'cidrBlock'
222
+ property :display_name, as: 'displayName'
223
+ end
224
+ end
225
+
206
226
  class DatabaseConfig
207
227
  # @private
208
228
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -259,6 +279,8 @@ module Google
259
279
  property :gke_cluster, as: 'gkeCluster'
260
280
  property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::ComposerV1::MaintenanceWindow, decorator: Google::Apis::ComposerV1::MaintenanceWindow::Representation
261
281
 
282
+ property :master_authorized_networks_config, as: 'masterAuthorizedNetworksConfig', class: Google::Apis::ComposerV1::MasterAuthorizedNetworksConfig, decorator: Google::Apis::ComposerV1::MasterAuthorizedNetworksConfig::Representation
283
+
262
284
  property :node_config, as: 'nodeConfig', class: Google::Apis::ComposerV1::NodeConfig, decorator: Google::Apis::ComposerV1::NodeConfig::Representation
263
285
 
264
286
  property :node_count, as: 'nodeCount'
@@ -335,10 +357,20 @@ module Google
335
357
  end
336
358
  end
337
359
 
360
+ class MasterAuthorizedNetworksConfig
361
+ # @private
362
+ class Representation < Google::Apis::Core::JsonRepresentation
363
+ collection :cidr_blocks, as: 'cidrBlocks', class: Google::Apis::ComposerV1::CidrBlock, decorator: Google::Apis::ComposerV1::CidrBlock::Representation
364
+
365
+ property :enabled, as: 'enabled'
366
+ end
367
+ end
368
+
338
369
  class NodeConfig
339
370
  # @private
340
371
  class Representation < Google::Apis::Core::JsonRepresentation
341
372
  property :disk_size_gb, as: 'diskSizeGb'
373
+ property :enable_ip_masq_agent, as: 'enableIpMasqAgent'
342
374
  property :ip_allocation_policy, as: 'ipAllocationPolicy', class: Google::Apis::ComposerV1::IpAllocationPolicy, decorator: Google::Apis::ComposerV1::IpAllocationPolicy::Representation
343
375
 
344
376
  property :location, as: 'location'
@@ -392,6 +424,7 @@ module Google
392
424
  property :cloud_composer_network_ipv4_reserved_range, as: 'cloudComposerNetworkIpv4ReservedRange'
393
425
  property :cloud_sql_ipv4_cidr_block, as: 'cloudSqlIpv4CidrBlock'
394
426
  property :enable_private_environment, as: 'enablePrivateEnvironment'
427
+ property :enable_privately_used_public_ips, as: 'enablePrivatelyUsedPublicIps'
395
428
  property :private_cluster_config, as: 'privateClusterConfig', class: Google::Apis::ComposerV1::PrivateClusterConfig, decorator: Google::Apis::ComposerV1::PrivateClusterConfig::Representation
396
429
 
397
430
  property :web_server_ipv4_cidr_block, as: 'webServerIpv4CidrBlock'
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.21.0
4
+ version: 0.24.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: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2022-05-30 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.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.24.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Composer API V1