@@ -250,6 +250,15 @@ class EnvironmentConfig
250250 # @return [String]
251251 attr_accessor :gke_cluster
252252
253+ # The configuration settings for Cloud Composer maintenance window. The
254+ # following example: ` "startTime":"2019-08-01T01:00:00Z" "endTime":"2019-08-
255+ # 01T07:00:00Z" "recurrence":"FREQ=WEEKLY;BYDAY=TU,WE" ` would define a
256+ # maintenance window between 01 and 07 hours UTC during each Tuesday and
257+ # Wednesday.
258+ # Corresponds to the JSON property `maintenanceWindow`
259+ # @return [Google::Apis::ComposerV1beta1::MaintenanceWindow]
260+ attr_accessor :maintenance_window
261+
253262 # The configuration information for the Kubernetes Engine nodes running the
254263 # Apache Airflow software.
255264 # Corresponds to the JSON property `nodeConfig`
@@ -294,6 +303,7 @@ def update!(**args)
294303 @database_config = args [ :database_config ] if args . key? ( :database_config )
295304 @encryption_config = args [ :encryption_config ] if args . key? ( :encryption_config )
296305 @gke_cluster = args [ :gke_cluster ] if args . key? ( :gke_cluster )
306+ @maintenance_window = args [ :maintenance_window ] if args . key? ( :maintenance_window )
297307 @node_config = args [ :node_config ] if args . key? ( :node_config )
298308 @node_count = args [ :node_count ] if args . key? ( :node_count )
299309 @private_environment_config = args [ :private_environment_config ] if args . key? ( :private_environment_config )
@@ -505,6 +515,46 @@ def update!(**args)
505515 end
506516 end
507517
518+ # The configuration settings for Cloud Composer maintenance window. The
519+ # following example: ` "startTime":"2019-08-01T01:00:00Z" "endTime":"2019-08-
520+ # 01T07:00:00Z" "recurrence":"FREQ=WEEKLY;BYDAY=TU,WE" ` would define a
521+ # maintenance window between 01 and 07 hours UTC during each Tuesday and
522+ # Wednesday.
523+ class MaintenanceWindow
524+ include Google ::Apis ::Core ::Hashable
525+
526+ # Required. Maintenance window end time. It is used only to calculate the
527+ # duration of the maintenance window. The value for end_time must be in the
528+ # future, relative to `start_time`.
529+ # Corresponds to the JSON property `endTime`
530+ # @return [String]
531+ attr_accessor :end_time
532+
533+ # Required. Maintenance window recurrence. Format is a subset of [RFC-5545](
534+ # https://tools.ietf.org/html/rfc5545) `RRULE`. The only allowed values for `
535+ # FREQ` field are `FREQ=DAILY` and `FREQ=WEEKLY;BYDAY=...` Example values: `FREQ=
536+ # WEEKLY;BYDAY=TU,WE`, `FREQ=DAILY`.
537+ # Corresponds to the JSON property `recurrence`
538+ # @return [String]
539+ attr_accessor :recurrence
540+
541+ # Required. Start time of the first recurrence of the maintenance window.
542+ # Corresponds to the JSON property `startTime`
543+ # @return [String]
544+ attr_accessor :start_time
545+
546+ def initialize ( **args )
547+ update! ( **args )
548+ end
549+
550+ # Update properties of this object
551+ def update! ( **args )
552+ @end_time = args [ :end_time ] if args . key? ( :end_time )
553+ @recurrence = args [ :recurrence ] if args . key? ( :recurrence )
554+ @start_time = args [ :start_time ] if args . key? ( :start_time )
555+ end
556+ end
557+
508558 # The configuration information for the Kubernetes Engine nodes running the
509559 # Apache Airflow software.
510560 class NodeConfig
@@ -553,6 +603,19 @@ class NodeConfig
553603 # @return [String]
554604 attr_accessor :machine_type
555605
606+ # Optional. The maximum number of pods per node in the Cloud Composer GKE
607+ # cluster. The value must be between 8 and 110 and it can be set only if the
608+ # environment is VPC-native. The default value is 32. Values of this field will
609+ # be propagated both to the `default-pool` node pool of the newly created GKE
610+ # cluster, and to the default "Maximum Pods per Node" value which is used for
611+ # newly created node pools if their value is not explicitly set during node pool
612+ # creation. For more information, see [Optimizing IP address allocation] (https:/
613+ # /cloud.google.com/kubernetes-engine/docs/how-to/flexible-pod-cidr). Cannot be
614+ # updated.
615+ # Corresponds to the JSON property `maxPodsPerNode`
616+ # @return [Fixnum]
617+ attr_accessor :max_pods_per_node
618+
556619 # Optional. The Compute Engine network to be used for machine communications,
557620 # specified as a [relative resource name](/apis/design/resource_names#
558621 # relative_resource_name). For example: "projects/`projectId`/global/networks/`
@@ -606,6 +669,7 @@ def update!(**args)
606669 @ip_allocation_policy = args [ :ip_allocation_policy ] if args . key? ( :ip_allocation_policy )
607670 @location = args [ :location ] if args . key? ( :location )
608671 @machine_type = args [ :machine_type ] if args . key? ( :machine_type )
672+ @max_pods_per_node = args [ :max_pods_per_node ] if args . key? ( :max_pods_per_node )
609673 @network = args [ :network ] if args . key? ( :network )
610674 @oauth_scopes = args [ :oauth_scopes ] if args . key? ( :oauth_scopes )
611675 @service_account = args [ :service_account ] if args . key? ( :service_account )
0 commit comments