diff --git a/api_names_out.yaml b/api_names_out.yaml index 05dfebc75..ab61691ab 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -19752,10 +19752,19 @@ "/composer:v1/EnvironmentConfig/nodeConfig": node_config "/composer:v1/EnvironmentConfig/nodeCount": node_count "/composer:v1/EnvironmentConfig/softwareConfig": software_config +"/composer:v1/ImageVersion": image_version +"/composer:v1/ImageVersion/imageVersionId": image_version_id +"/composer:v1/ImageVersion/isDefault": is_default +"/composer:v1/ImageVersion/supportedPythonVersions": supported_python_versions +"/composer:v1/ImageVersion/supportedPythonVersions/supported_python_version": supported_python_version "/composer:v1/ListEnvironmentsResponse": list_environments_response "/composer:v1/ListEnvironmentsResponse/environments": environments "/composer:v1/ListEnvironmentsResponse/environments/environment": environment "/composer:v1/ListEnvironmentsResponse/nextPageToken": next_page_token +"/composer:v1/ListImageVersionsResponse": list_image_versions_response +"/composer:v1/ListImageVersionsResponse/imageVersions": image_versions +"/composer:v1/ListImageVersionsResponse/imageVersions/image_version": image_version +"/composer:v1/ListImageVersionsResponse/nextPageToken": next_page_token "/composer:v1/ListOperationsResponse": list_operations_response "/composer:v1/ListOperationsResponse/nextPageToken": next_page_token "/composer:v1/ListOperationsResponse/operations": operations @@ -19814,6 +19823,10 @@ "/composer:v1/composer.projects.locations.environments.patch": patch_project_location_environment "/composer:v1/composer.projects.locations.environments.patch/name": name "/composer:v1/composer.projects.locations.environments.patch/updateMask": update_mask +"/composer:v1/composer.projects.locations.imageVersions.list": list_project_location_image_versions +"/composer:v1/composer.projects.locations.imageVersions.list/pageSize": page_size +"/composer:v1/composer.projects.locations.imageVersions.list/pageToken": page_token +"/composer:v1/composer.projects.locations.imageVersions.list/parent": parent "/composer:v1/composer.projects.locations.operations.delete": delete_project_location_operation "/composer:v1/composer.projects.locations.operations.delete/name": name "/composer:v1/composer.projects.locations.operations.get": get_project_location_operation @@ -19843,10 +19856,19 @@ "/composer:v1beta1/EnvironmentConfig/nodeConfig": node_config "/composer:v1beta1/EnvironmentConfig/nodeCount": node_count "/composer:v1beta1/EnvironmentConfig/softwareConfig": software_config +"/composer:v1beta1/ImageVersion": image_version +"/composer:v1beta1/ImageVersion/imageVersionId": image_version_id +"/composer:v1beta1/ImageVersion/isDefault": is_default +"/composer:v1beta1/ImageVersion/supportedPythonVersions": supported_python_versions +"/composer:v1beta1/ImageVersion/supportedPythonVersions/supported_python_version": supported_python_version "/composer:v1beta1/ListEnvironmentsResponse": list_environments_response "/composer:v1beta1/ListEnvironmentsResponse/environments": environments "/composer:v1beta1/ListEnvironmentsResponse/environments/environment": environment "/composer:v1beta1/ListEnvironmentsResponse/nextPageToken": next_page_token +"/composer:v1beta1/ListImageVersionsResponse": list_image_versions_response +"/composer:v1beta1/ListImageVersionsResponse/imageVersions": image_versions +"/composer:v1beta1/ListImageVersionsResponse/imageVersions/image_version": image_version +"/composer:v1beta1/ListImageVersionsResponse/nextPageToken": next_page_token "/composer:v1beta1/ListOperationsResponse": list_operations_response "/composer:v1beta1/ListOperationsResponse/nextPageToken": next_page_token "/composer:v1beta1/ListOperationsResponse/operations": operations @@ -19905,6 +19927,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.imageVersions.list": list_project_location_image_versions +"/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 "/composer:v1beta1/composer.projects.locations.operations.delete": delete_project_location_operation "/composer:v1beta1/composer.projects.locations.operations.delete/name": name "/composer:v1beta1/composer.projects.locations.operations.get": get_project_location_operation diff --git a/generated/google/apis/composer_v1.rb b/generated/google/apis/composer_v1.rb index 3edd11a2e..4b4acb102 100644 --- a/generated/google/apis/composer_v1.rb +++ b/generated/google/apis/composer_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/composer/ module ComposerV1 VERSION = 'V1' - REVISION = '20181120' + REVISION = '20190110' # 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_v1/classes.rb b/generated/google/apis/composer_v1/classes.rb index 14b65a695..3c6b12c35 100644 --- a/generated/google/apis/composer_v1/classes.rb +++ b/generated/google/apis/composer_v1/classes.rb @@ -166,6 +166,40 @@ module Google end end + # ImageVersion information + class ImageVersion + include Google::Apis::Core::Hashable + + # The string identifier of the ImageVersion, in the form: + # "composer-x.y.z-airflow-a.b(.c)" + # Corresponds to the JSON property `imageVersionId` + # @return [String] + attr_accessor :image_version_id + + # Whether this is the default ImageVersion used by Composer during + # environment creation if no input ImageVersion is specified. + # Corresponds to the JSON property `isDefault` + # @return [Boolean] + attr_accessor :is_default + alias_method :is_default?, :is_default + + # supported python versions + # Corresponds to the JSON property `supportedPythonVersions` + # @return [Array] + attr_accessor :supported_python_versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_version_id = args[:image_version_id] if args.key?(:image_version_id) + @is_default = args[:is_default] if args.key?(:is_default) + @supported_python_versions = args[:supported_python_versions] if args.key?(:supported_python_versions) + end + end + # The environments in a project and location. class ListEnvironmentsResponse include Google::Apis::Core::Hashable @@ -191,6 +225,31 @@ module Google end end + # The ImageVersions in a project and location. + class ListImageVersionsResponse + include Google::Apis::Core::Hashable + + # The list of supported ImageVersions in a location. + # Corresponds to the JSON property `imageVersions` + # @return [Array] + attr_accessor :image_versions + + # The page token used to query for the next page if one exists. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_versions = args[:image_versions] if args.key?(:image_versions) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for Operations.ListOperations. class ListOperationsResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/composer_v1/representations.rb b/generated/google/apis/composer_v1/representations.rb index b6b71bdfe..5e6062516 100644 --- a/generated/google/apis/composer_v1/representations.rb +++ b/generated/google/apis/composer_v1/representations.rb @@ -40,12 +40,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ImageVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListEnvironmentsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListImageVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -116,6 +128,15 @@ module Google end end + class ImageVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_version_id, as: 'imageVersionId' + property :is_default, as: 'isDefault' + collection :supported_python_versions, as: 'supportedPythonVersions' + end + end + class ListEnvironmentsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -125,6 +146,15 @@ module Google end end + class ListImageVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :image_versions, as: 'imageVersions', class: Google::Apis::ComposerV1::ImageVersion, decorator: Google::Apis::ComposerV1::ImageVersion::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/composer_v1/service.rb b/generated/google/apis/composer_v1/service.rb index 11cd2de54..e47cd0c3b 100644 --- a/generated/google/apis/composer_v1/service.rb +++ b/generated/google/apis/composer_v1/service.rb @@ -338,6 +338,43 @@ module Google 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 [Fixnum] page_size + # The maximum number of image_versions to return. + # @param [String] page_token + # The next_page_token value returned from a previous List request, if any. + # @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::ComposerV1::ListImageVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1::ListImageVersionsResponse] + # + # @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) + command = make_simple_command(:get, 'v1/{+parent}/imageVersions', options) + command.response_representation = Google::Apis::ComposerV1::ListImageVersionsResponse::Representation + command.response_class = Google::Apis::ComposerV1::ListImageVersionsResponse + command.params['parent'] = parent unless parent.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? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes a long-running operation. This method indicates that the client is # no longer interested in the operation result. It does not cancel the # operation. If the server doesn't support this method, it returns diff --git a/generated/google/apis/composer_v1beta1.rb b/generated/google/apis/composer_v1beta1.rb index 5f7c92ff8..0d90e6cc7 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 = '20181217' + REVISION = '20190110' # 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 e53c4f1ea..9eb835d30 100644 --- a/generated/google/apis/composer_v1beta1/classes.rb +++ b/generated/google/apis/composer_v1beta1/classes.rb @@ -166,6 +166,40 @@ module Google end end + # Image Version information + class ImageVersion + include Google::Apis::Core::Hashable + + # The string identifier of the ImageVersion, in the form: + # "composer-x.y.z-airflow-a.b(.c)" + # Corresponds to the JSON property `imageVersionId` + # @return [String] + attr_accessor :image_version_id + + # Whether this is the default ImageVersion used by Composer during + # environment creation if no input ImageVersion is specified. + # Corresponds to the JSON property `isDefault` + # @return [Boolean] + attr_accessor :is_default + alias_method :is_default?, :is_default + + # supported python versions + # Corresponds to the JSON property `supportedPythonVersions` + # @return [Array] + attr_accessor :supported_python_versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_version_id = args[:image_version_id] if args.key?(:image_version_id) + @is_default = args[:is_default] if args.key?(:is_default) + @supported_python_versions = args[:supported_python_versions] if args.key?(:supported_python_versions) + end + end + # The environments in a project and location. class ListEnvironmentsResponse include Google::Apis::Core::Hashable @@ -191,6 +225,31 @@ module Google end end + # The ImageVersions in a project and location. + class ListImageVersionsResponse + include Google::Apis::Core::Hashable + + # The list of supported ImageVersions in a location. + # Corresponds to the JSON property `imageVersions` + # @return [Array] + attr_accessor :image_versions + + # The page token used to query for the next page if one exists. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_versions = args[:image_versions] if args.key?(:image_versions) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for Operations.ListOperations. class ListOperationsResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/composer_v1beta1/representations.rb b/generated/google/apis/composer_v1beta1/representations.rb index 03dd1ac94..450600a09 100644 --- a/generated/google/apis/composer_v1beta1/representations.rb +++ b/generated/google/apis/composer_v1beta1/representations.rb @@ -40,12 +40,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ImageVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListEnvironmentsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListImageVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -116,6 +128,15 @@ module Google end end + class ImageVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_version_id, as: 'imageVersionId' + property :is_default, as: 'isDefault' + collection :supported_python_versions, as: 'supportedPythonVersions' + end + end + class ListEnvironmentsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -125,6 +146,15 @@ module Google end end + class ListImageVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :image_versions, as: 'imageVersions', class: Google::Apis::ComposerV1beta1::ImageVersion, decorator: Google::Apis::ComposerV1beta1::ImageVersion::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListOperationsResponse # @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 5272629db..c75c7454b 100644 --- a/generated/google/apis/composer_v1beta1/service.rb +++ b/generated/google/apis/composer_v1beta1/service.rb @@ -348,6 +348,43 @@ module Google 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 [Fixnum] page_size + # The maximum number of image_versions to return. + # @param [String] page_token + # The next_page_token value returned from a previous List request, if any. + # @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::ListImageVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComposerV1beta1::ListImageVersionsResponse] + # + # @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) + 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['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes a long-running operation. This method indicates that the client is # no longer interested in the operation result. It does not cancel the # operation. If the server doesn't support this method, it returns