diff --git a/api_names_out.yaml b/api_names_out.yaml index 6a0ae2f32..65570022b 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -29067,7 +29067,13 @@ "/composer:v1beta1/AllowedIpRange/value": value "/composer:v1beta1/DatabaseConfig": database_config "/composer:v1beta1/DatabaseConfig/machineType": machine_type +"/composer:v1beta1/Date": date +"/composer:v1beta1/Date/day": day +"/composer:v1beta1/Date/month": month +"/composer:v1beta1/Date/year": year "/composer:v1beta1/Empty": empty +"/composer:v1beta1/EncryptionConfig": encryption_config +"/composer:v1beta1/EncryptionConfig/kmsKeyName": kms_key_name "/composer:v1beta1/Environment": environment "/composer:v1beta1/Environment/config": config "/composer:v1beta1/Environment/createTime": create_time @@ -29081,6 +29087,7 @@ "/composer:v1beta1/EnvironmentConfig/airflowUri": airflow_uri "/composer:v1beta1/EnvironmentConfig/dagGcsPrefix": dag_gcs_prefix "/composer:v1beta1/EnvironmentConfig/databaseConfig": database_config +"/composer:v1beta1/EnvironmentConfig/encryptionConfig": encryption_config "/composer:v1beta1/EnvironmentConfig/gkeCluster": gke_cluster "/composer:v1beta1/EnvironmentConfig/nodeConfig": node_config "/composer:v1beta1/EnvironmentConfig/nodeCount": node_count @@ -29095,10 +29102,13 @@ "/composer:v1beta1/IPAllocationPolicy/servicesSecondaryRangeName": services_secondary_range_name "/composer:v1beta1/IPAllocationPolicy/useIpAliases": use_ip_aliases "/composer:v1beta1/ImageVersion": image_version +"/composer:v1beta1/ImageVersion/creationDisabled": creation_disabled "/composer:v1beta1/ImageVersion/imageVersionId": image_version_id "/composer:v1beta1/ImageVersion/isDefault": is_default +"/composer:v1beta1/ImageVersion/releaseDate": release_date "/composer:v1beta1/ImageVersion/supportedPythonVersions": supported_python_versions "/composer:v1beta1/ImageVersion/supportedPythonVersions/supported_python_version": supported_python_version +"/composer:v1beta1/ImageVersion/upgradeDisabled": upgrade_disabled "/composer:v1beta1/ListEnvironmentsResponse": list_environments_response "/composer:v1beta1/ListEnvironmentsResponse/environments": environments "/composer:v1beta1/ListEnvironmentsResponse/environments/environment": environment @@ -29148,6 +29158,7 @@ "/composer:v1beta1/PrivateEnvironmentConfig/privateClusterConfig": private_cluster_config "/composer:v1beta1/PrivateEnvironmentConfig/webServerIpv4CidrBlock": web_server_ipv4_cidr_block "/composer:v1beta1/PrivateEnvironmentConfig/webServerIpv4ReservedRange": web_server_ipv4_reserved_range +"/composer:v1beta1/RestartWebServerRequest": restart_web_server_request "/composer:v1beta1/SoftwareConfig": software_config "/composer:v1beta1/SoftwareConfig/airflowConfigOverrides": airflow_config_overrides "/composer:v1beta1/SoftwareConfig/airflowConfigOverrides/airflow_config_override": airflow_config_override @@ -29181,7 +29192,10 @@ "/composer:v1beta1/composer.projects.locations.environments.patch": patch_project_location_environment "/composer:v1beta1/composer.projects.locations.environments.patch/name": name "/composer:v1beta1/composer.projects.locations.environments.patch/updateMask": update_mask +"/composer:v1beta1/composer.projects.locations.environments.restartWebServer": restart_environment_web_server +"/composer:v1beta1/composer.projects.locations.environments.restartWebServer/name": name "/composer:v1beta1/composer.projects.locations.imageVersions.list": list_project_location_image_versions +"/composer:v1beta1/composer.projects.locations.imageVersions.list/includePastReleases": include_past_releases "/composer:v1beta1/composer.projects.locations.imageVersions.list/pageSize": page_size "/composer:v1beta1/composer.projects.locations.imageVersions.list/pageToken": page_token "/composer:v1beta1/composer.projects.locations.imageVersions.list/parent": parent diff --git a/generated/google/apis/composer_v1beta1.rb b/generated/google/apis/composer_v1beta1.rb index 7c433e2be..c7ff19c6a 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 = '20201002' + REVISION = '20201202' # 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 e88f45653..1b1140226 100644 --- a/generated/google/apis/composer_v1beta1/classes.rb +++ b/generated/google/apis/composer_v1beta1/classes.rb @@ -73,6 +73,47 @@ module Google end end + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. + class Date + include Google::Apis::Core::Hashable + + # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to + # specify a year by itself or a year and month where the day isn't significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month + # and day. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a + # year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @year = args[:year] if args.key?(:year) + end + end + # A generic empty message that you can re-use to avoid defining duplicated empty # messages in your APIs. A typical example is to use it as the request or the # response type of an API method. For instance: service Foo ` rpc Bar(google. @@ -90,6 +131,27 @@ module Google end end + # The encryption options for the Composer environment and its dependencies. + class EncryptionConfig + include Google::Apis::Core::Hashable + + # Optional. Customer-managed Encryption Key available through Google's Key + # Management Service. Cannot be updated. If not specified, Google-managed key + # will be used. + # Corresponds to the JSON property `kmsKeyName` + # @return [String] + attr_accessor :kms_key_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) + end + end + # An environment for running orchestration tasks. class Environment include Google::Apis::Core::Hashable @@ -178,6 +240,11 @@ module Google # @return [Google::Apis::ComposerV1beta1::DatabaseConfig] attr_accessor :database_config + # The encryption options for the Composer environment and its dependencies. + # Corresponds to the JSON property `encryptionConfig` + # @return [Google::Apis::ComposerV1beta1::EncryptionConfig] + attr_accessor :encryption_config + # Output only. The Kubernetes Engine cluster used to run this environment. # Corresponds to the JSON property `gkeCluster` # @return [String] @@ -225,6 +292,7 @@ module Google @airflow_uri = args[:airflow_uri] if args.key?(:airflow_uri) @dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix) @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) @node_config = args[:node_config] if args.key?(:node_config) @node_count = args[:node_count] if args.key?(:node_count) @@ -304,6 +372,12 @@ module Google class ImageVersion include Google::Apis::Core::Hashable + # Whether it is impossible to create an environment with the image version. + # Corresponds to the JSON property `creationDisabled` + # @return [Boolean] + attr_accessor :creation_disabled + alias_method :creation_disabled?, :creation_disabled + # The string identifier of the ImageVersion, in the form: "composer-x.y.z- # airflow-a.b(.c)" # Corresponds to the JSON property `imageVersionId` @@ -317,20 +391,42 @@ module Google attr_accessor :is_default alias_method :is_default?, :is_default + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. + # Corresponds to the JSON property `releaseDate` + # @return [Google::Apis::ComposerV1beta1::Date] + attr_accessor :release_date + # supported python versions # Corresponds to the JSON property `supportedPythonVersions` # @return [Array] attr_accessor :supported_python_versions + # Whether it is impossible to upgrade an environment running with the image + # version. + # Corresponds to the JSON property `upgradeDisabled` + # @return [Boolean] + attr_accessor :upgrade_disabled + alias_method :upgrade_disabled?, :upgrade_disabled + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @creation_disabled = args[:creation_disabled] if args.key?(:creation_disabled) @image_version_id = args[:image_version_id] if args.key?(:image_version_id) @is_default = args[:is_default] if args.key?(:is_default) + @release_date = args[:release_date] if args.key?(:release_date) @supported_python_versions = args[:supported_python_versions] if args.key?(:supported_python_versions) + @upgrade_disabled = args[:upgrade_disabled] if args.key?(:upgrade_disabled) end end @@ -721,6 +817,19 @@ module Google end end + # Restart Airflow web server. + class RestartWebServerRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Specifies the selection and configuration of software inside the environment. class SoftwareConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/composer_v1beta1/representations.rb b/generated/google/apis/composer_v1beta1/representations.rb index 633d0fdf4..29775aba6 100644 --- a/generated/google/apis/composer_v1beta1/representations.rb +++ b/generated/google/apis/composer_v1beta1/representations.rb @@ -34,12 +34,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class EncryptionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Environment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +124,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RestartWebServerRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SoftwareConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -151,12 +169,28 @@ module Google end end + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :month, as: 'month' + property :year, as: 'year' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation end end + class EncryptionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kms_key_name, as: 'kmsKeyName' + end + end + class Environment # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -178,6 +212,8 @@ module Google property :dag_gcs_prefix, as: 'dagGcsPrefix' property :database_config, as: 'databaseConfig', class: Google::Apis::ComposerV1beta1::DatabaseConfig, decorator: Google::Apis::ComposerV1beta1::DatabaseConfig::Representation + property :encryption_config, as: 'encryptionConfig', class: Google::Apis::ComposerV1beta1::EncryptionConfig, decorator: Google::Apis::ComposerV1beta1::EncryptionConfig::Representation + property :gke_cluster, as: 'gkeCluster' property :node_config, as: 'nodeConfig', class: Google::Apis::ComposerV1beta1::NodeConfig, decorator: Google::Apis::ComposerV1beta1::NodeConfig::Representation @@ -207,9 +243,13 @@ module Google class ImageVersion # @private class Representation < Google::Apis::Core::JsonRepresentation + property :creation_disabled, as: 'creationDisabled' property :image_version_id, as: 'imageVersionId' property :is_default, as: 'isDefault' + property :release_date, as: 'releaseDate', class: Google::Apis::ComposerV1beta1::Date, decorator: Google::Apis::ComposerV1beta1::Date::Representation + collection :supported_python_versions, as: 'supportedPythonVersions' + property :upgrade_disabled, as: 'upgradeDisabled' end end @@ -301,6 +341,12 @@ module Google end end + class RestartWebServerRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class SoftwareConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/composer_v1beta1/service.rb b/generated/google/apis/composer_v1beta1/service.rb index a73c40081..683260654 100644 --- a/generated/google/apis/composer_v1beta1/service.rb +++ b/generated/google/apis/composer_v1beta1/service.rb @@ -285,10 +285,47 @@ module Google execute_or_queue_command(command, &block) end + # Restart Airflow web server. + # @param [String] name + # The resource name of the environment to restart the web server for, in the + # form: "projects/`projectId`/locations/`locationId`/environments/`environmentId` + # " + # @param [Google::Apis::ComposerV1beta1::RestartWebServerRequest] restart_web_server_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComposerV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def restart_environment_web_server(name, restart_web_server_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:restartWebServer', options) + command.request_representation = Google::Apis::ComposerV1beta1::RestartWebServerRequest::Representation + command.request_object = restart_web_server_request_object + command.response_representation = Google::Apis::ComposerV1beta1::Operation::Representation + command.response_class = Google::Apis::ComposerV1beta1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # List ImageVersions for provided location. # @param [String] parent # List ImageVersions in the given project and location, in the form: "projects/` # projectId`/locations/`locationId`" + # @param [Boolean] include_past_releases + # Whether or not image versions from old releases should be included. # @param [Fixnum] page_size # The maximum number of image_versions to return. # @param [String] page_token @@ -310,11 +347,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_image_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_image_versions(parent, include_past_releases: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/imageVersions', options) command.response_representation = Google::Apis::ComposerV1beta1::ListImageVersionsResponse::Representation command.response_class = Google::Apis::ComposerV1beta1::ListImageVersionsResponse command.params['parent'] = parent unless parent.nil? + command.query['includePastReleases'] = include_past_releases unless include_past_releases.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? diff --git a/generated/google/apis/composer_v1beta1/synth.metadata b/generated/google/apis/composer_v1beta1/synth.metadata index 429012f74..6411dc013 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": "c98c719bbab68d0890524d53f8b629d7858af9c2" + "sha": "949844223ecbdb701c9f0062f48bfefe5391ea7c" } } ]