diff --git a/api_names_out.yaml b/api_names_out.yaml index 43064e89b..b2639fbea 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -29218,6 +29218,7 @@ "/composer:v1beta1/EnvironmentConfig/databaseConfig": database_config "/composer:v1beta1/EnvironmentConfig/encryptionConfig": encryption_config "/composer:v1beta1/EnvironmentConfig/gkeCluster": gke_cluster +"/composer:v1beta1/EnvironmentConfig/maintenanceWindow": maintenance_window "/composer:v1beta1/EnvironmentConfig/nodeConfig": node_config "/composer:v1beta1/EnvironmentConfig/nodeCount": node_count "/composer:v1beta1/EnvironmentConfig/privateEnvironmentConfig": private_environment_config @@ -29250,11 +29251,16 @@ "/composer:v1beta1/ListOperationsResponse/nextPageToken": next_page_token "/composer:v1beta1/ListOperationsResponse/operations": operations "/composer:v1beta1/ListOperationsResponse/operations/operation": operation +"/composer:v1beta1/MaintenanceWindow": maintenance_window +"/composer:v1beta1/MaintenanceWindow/endTime": end_time +"/composer:v1beta1/MaintenanceWindow/recurrence": recurrence +"/composer:v1beta1/MaintenanceWindow/startTime": start_time "/composer:v1beta1/NodeConfig": node_config "/composer:v1beta1/NodeConfig/diskSizeGb": disk_size_gb "/composer:v1beta1/NodeConfig/ipAllocationPolicy": ip_allocation_policy "/composer:v1beta1/NodeConfig/location": location "/composer:v1beta1/NodeConfig/machineType": machine_type +"/composer:v1beta1/NodeConfig/maxPodsPerNode": max_pods_per_node "/composer:v1beta1/NodeConfig/network": network "/composer:v1beta1/NodeConfig/oauthScopes": oauth_scopes "/composer:v1beta1/NodeConfig/oauthScopes/oauth_scope": oauth_scope diff --git a/generated/google/apis/composer_v1beta1.rb b/generated/google/apis/composer_v1beta1.rb index c7ff19c6a..07ff6cb4a 100644 --- a/generated/google/apis/composer_v1beta1.rb +++ b/generated/google/apis/composer_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/composer/ module ComposerV1beta1 VERSION = 'V1beta1' - REVISION = '20201202' + REVISION = '20201208' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/composer_v1beta1/classes.rb b/generated/google/apis/composer_v1beta1/classes.rb index 1b1140226..f700a05ad 100644 --- a/generated/google/apis/composer_v1beta1/classes.rb +++ b/generated/google/apis/composer_v1beta1/classes.rb @@ -250,6 +250,15 @@ module Google # @return [String] attr_accessor :gke_cluster + # The configuration settings for Cloud Composer maintenance window. The + # following example: ` "startTime":"2019-08-01T01:00:00Z" "endTime":"2019-08- + # 01T07:00:00Z" "recurrence":"FREQ=WEEKLY;BYDAY=TU,WE" ` would define a + # maintenance window between 01 and 07 hours UTC during each Tuesday and + # Wednesday. + # Corresponds to the JSON property `maintenanceWindow` + # @return [Google::Apis::ComposerV1beta1::MaintenanceWindow] + attr_accessor :maintenance_window + # The configuration information for the Kubernetes Engine nodes running the # Apache Airflow software. # Corresponds to the JSON property `nodeConfig` @@ -294,6 +303,7 @@ module Google @database_config = args[:database_config] if args.key?(:database_config) @encryption_config = args[:encryption_config] if args.key?(:encryption_config) @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster) + @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) @node_config = args[:node_config] if args.key?(:node_config) @node_count = args[:node_count] if args.key?(:node_count) @private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config) @@ -505,6 +515,46 @@ module Google end end + # The configuration settings for Cloud Composer maintenance window. The + # following example: ` "startTime":"2019-08-01T01:00:00Z" "endTime":"2019-08- + # 01T07:00:00Z" "recurrence":"FREQ=WEEKLY;BYDAY=TU,WE" ` would define a + # maintenance window between 01 and 07 hours UTC during each Tuesday and + # Wednesday. + class MaintenanceWindow + include Google::Apis::Core::Hashable + + # Required. Maintenance window end time. It is used only to calculate the + # duration of the maintenance window. The value for end_time must be in the + # future, relative to `start_time`. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Required. Maintenance window recurrence. Format is a subset of [RFC-5545]( + # https://tools.ietf.org/html/rfc5545) `RRULE`. The only allowed values for ` + # FREQ` field are `FREQ=DAILY` and `FREQ=WEEKLY;BYDAY=...` Example values: `FREQ= + # WEEKLY;BYDAY=TU,WE`, `FREQ=DAILY`. + # Corresponds to the JSON property `recurrence` + # @return [String] + attr_accessor :recurrence + + # Required. Start time of the first recurrence of the maintenance window. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @recurrence = args[:recurrence] if args.key?(:recurrence) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + # The configuration information for the Kubernetes Engine nodes running the # Apache Airflow software. class NodeConfig @@ -553,6 +603,19 @@ module Google # @return [String] attr_accessor :machine_type + # Optional. The maximum number of pods per node in the Cloud Composer GKE + # cluster. The value must be between 8 and 110 and it can be set only if the + # environment is VPC-native. The default value is 32. Values of this field will + # be propagated both to the `default-pool` node pool of the newly created GKE + # cluster, and to the default "Maximum Pods per Node" value which is used for + # newly created node pools if their value is not explicitly set during node pool + # creation. For more information, see [Optimizing IP address allocation] (https:/ + # /cloud.google.com/kubernetes-engine/docs/how-to/flexible-pod-cidr). Cannot be + # updated. + # Corresponds to the JSON property `maxPodsPerNode` + # @return [Fixnum] + attr_accessor :max_pods_per_node + # Optional. The Compute Engine network to be used for machine communications, # specified as a [relative resource name](/apis/design/resource_names# # relative_resource_name). For example: "projects/`projectId`/global/networks/` @@ -606,6 +669,7 @@ module Google @ip_allocation_policy = args[:ip_allocation_policy] if args.key?(:ip_allocation_policy) @location = args[:location] if args.key?(:location) @machine_type = args[:machine_type] if args.key?(:machine_type) + @max_pods_per_node = args[:max_pods_per_node] if args.key?(:max_pods_per_node) @network = args[:network] if args.key?(:network) @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes) @service_account = args[:service_account] if args.key?(:service_account) diff --git a/generated/google/apis/composer_v1beta1/representations.rb b/generated/google/apis/composer_v1beta1/representations.rb index 29775aba6..60848b246 100644 --- a/generated/google/apis/composer_v1beta1/representations.rb +++ b/generated/google/apis/composer_v1beta1/representations.rb @@ -94,6 +94,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MaintenanceWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NodeConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -215,6 +221,8 @@ module Google property :encryption_config, as: 'encryptionConfig', class: Google::Apis::ComposerV1beta1::EncryptionConfig, decorator: Google::Apis::ComposerV1beta1::EncryptionConfig::Representation property :gke_cluster, as: 'gkeCluster' + property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::ComposerV1beta1::MaintenanceWindow, decorator: Google::Apis::ComposerV1beta1::MaintenanceWindow::Representation + property :node_config, as: 'nodeConfig', class: Google::Apis::ComposerV1beta1::NodeConfig, decorator: Google::Apis::ComposerV1beta1::NodeConfig::Representation property :node_count, as: 'nodeCount' @@ -280,6 +288,15 @@ module Google end end + class MaintenanceWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :recurrence, as: 'recurrence' + property :start_time, as: 'startTime' + end + end + class NodeConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -288,6 +305,7 @@ module Google property :location, as: 'location' property :machine_type, as: 'machineType' + property :max_pods_per_node, as: 'maxPodsPerNode' property :network, as: 'network' collection :oauth_scopes, as: 'oauthScopes' property :service_account, as: 'serviceAccount' diff --git a/generated/google/apis/composer_v1beta1/synth.metadata b/generated/google/apis/composer_v1beta1/synth.metadata index 6411dc013..a90cc27ea 100644 --- a/generated/google/apis/composer_v1beta1/synth.metadata +++ b/generated/google/apis/composer_v1beta1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "949844223ecbdb701c9f0062f48bfefe5391ea7c" + "sha": "1f8fbe17449db9c3ff998cd46f2466c99ad8ed1d" } } ]