class Google::Apis::ArtifactregistryV1beta2::ArtifactRegistryService
Artifact Registry API
Store and manage build artifacts in a scalable and integrated service built on
Google infrastructure.
@example
require 'google/apis/artifactregistry_v1beta2' Artifactregistry = Google::Apis::ArtifactregistryV1beta2 # Alias the module service = Artifactregistry::ArtifactRegistryService.new
Attributes
@return [String]
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
@return [String]
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.
Public Class Methods
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 46 def initialize super('https://artifactregistry.googleapis.com/', '', client_name: 'google-apis-artifactregistry_v1beta2', client_version: Google::Apis::ArtifactregistryV1beta2::GEM_VERSION) @batch_path = 'batch' end
Public Instance Methods
Creates a repository. The returned Operation
will finish once the repository has been created. Its response will be the created Repository
. @param [String] parent
The name of the parent resource where the repository will be created.
@param [Google::Apis::ArtifactregistryV1beta2::Repository] repository_object @param [String] repository_id
The repository id to use for this repository.
@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::ArtifactregistryV1beta2::Operation] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 181 def create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta2/{+parent}/repositories', options) command.request_representation = Google::Apis::ArtifactregistryV1beta2::Repository::Representation command.request_object = repository_object command.response_representation = Google::Apis::ArtifactregistryV1beta2::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Operation command.params['parent'] = parent unless parent.nil? command.query['repositoryId'] = repository_id unless repository_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Creates a tag. @param [String] parent
The name of the parent resource where the tag will be created.
@param [Google::Apis::ArtifactregistryV1beta2::Tag] tag_object @param [String] tag_id
The tag id to use for this repository.
@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::ArtifactregistryV1beta2::Tag] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Tag]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 715 def create_project_location_repository_package_tag(parent, tag_object = nil, tag_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta2/{+parent}/tags', options) command.request_representation = Google::Apis::ArtifactregistryV1beta2::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::ArtifactregistryV1beta2::Tag::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Tag command.params['parent'] = parent unless parent.nil? command.query['tagId'] = tag_id unless tag_id.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 repository and all of its contents. The returned Operation
will finish once the repository has been deleted. It will not have any Operation
metadata and will return a google.protobuf.Empty response. @param [String] name
The name of the repository to delete.
@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::ArtifactregistryV1beta2::Operation] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 216 def delete_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::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
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted. @param [String] name
The name of the package to delete.
@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::ArtifactregistryV1beta2::Operation] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 616 def delete_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::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
Deletes a tag. @param [String] name
The name of the tag to delete.
@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::ArtifactregistryV1beta2::Empty] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Empty]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 748 def delete_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Empty::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Empty 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
Deletes a version and all of its content. The returned operation will complete once the version has been deleted. @param [String] name
The name of the version to delete.
@param [Boolean] force
By default, a version that is tagged may not be deleted. If force=true, the version and any tags pointing to the version are deleted.
@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::ArtifactregistryV1beta2::Operation] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 896 def delete_project_location_repository_package_version(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Operation command.params['name'] = name unless name.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Gets information about a location. @param [String] name
Resource name for the location.
@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::ArtifactregistryV1beta2::Location] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Location]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 73 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Location::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Location 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
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. @param [String] name
The name of the operation resource.
@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::ArtifactregistryV1beta2::Operation] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 147 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::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
Gets a repository. @param [String] name
The name of the repository to retrieve.
@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::ArtifactregistryV1beta2::Repository] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Repository]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 246 def get_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Repository::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Repository 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
Gets a file. @param [String] name
The name of the file to retrieve.
@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::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 541 def get_project_location_repository_file(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File 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
Gets the IAM policy for a given resource. @param [String] resource
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
@param [Fixnum] options_requested_policy_version
Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ resource-policies).
@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::ArtifactregistryV1beta2::Policy] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Policy]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 285 def get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Policy::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Gets a package. @param [String] name
The name of the package to retrieve.
@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::ArtifactregistryV1beta2::Package] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Package]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 646 def get_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Package::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Package 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
Gets a tag. @param [String] name
The name of the tag to retrieve.
@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::ArtifactregistryV1beta2::Tag] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Tag]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 778 def get_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Tag::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Tag 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
Gets a version @param [String] name
The name of the version to retrieve.
@param [String] view
The view that should be returned in the response.
@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::ArtifactregistryV1beta2::Version] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Version]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 929 def get_project_location_repository_package_version(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::Version::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Version command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Imports Apt artifacts. The returned Operation
will complete once the resources are imported. Package
, Version
, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored. @param [String] parent
The name of the parent resource where the artifacts will be imported.
@param [Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsRequest] import_apt_artifacts_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::ArtifactregistryV1beta2::Operation] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 463 def import_apt_artifacts(parent, import_apt_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta2/{+parent}/aptArtifacts:import', options) command.request_representation = Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsRequest::Representation command.request_object = import_apt_artifacts_request_object command.response_representation = Google::Apis::ArtifactregistryV1beta2::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Imports Yum (RPM) artifacts. The returned Operation
will complete once the resources are imported. Package
, Version
, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored. @param [String] parent
The name of the parent resource where the artifacts will be imported.
@param [Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsRequest] import_yum_artifacts_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::ArtifactregistryV1beta2::Operation] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 1006 def import_yum_artifacts(parent, import_yum_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta2/{+parent}/yumArtifacts:import', options) command.request_representation = Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsRequest::Representation command.request_object = import_yum_artifacts_request_object command.response_representation = Google::Apis::ArtifactregistryV1beta2::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Lists repositories. @param [String] parent
The name of the parent resource whose repositories will be listed.
@param [Fixnum] page_size
The maximum number of repositories to return. Maximum page size is 1,000.
@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::ArtifactregistryV1beta2::ListRepositoriesResponse] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::ListRepositoriesResponse]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 320 def list_project_location_repositories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+parent}/repositories', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::ListRepositoriesResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::ListRepositoriesResponse 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
Lists files. @param [String] parent
The name of the parent resource whose files will be listed.
@param [String] filter
An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `name` * `owner` An example of using a filter: * `name="projects/p1/locations/us-central1/ repositories/repo1/files/a/b/*"` --> Files with an ID starting with "a/b/". * ` owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/ versions/1.0"` --> Files owned by the version `1.0` in package `pkg1`.
@param [Fixnum] page_size
The maximum number of files 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::ArtifactregistryV1beta2::ListFilesResponse] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::ListFilesResponse]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 582 def list_project_location_repository_files(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+parent}/files', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::ListFilesResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::ListFilesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.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
Lists versions. @param [String] parent
The name of the parent resource whose versions will be listed.
@param [String] order_by
Optional. Sorting field and order
@param [Fixnum] page_size
The maximum number of versions to return. Maximum page size is 1,000.
@param [String] page_token
The next_page_token value returned from a previous list request, if any.
@param [String] view
The view that should be returned in the response.
@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::ArtifactregistryV1beta2::ListVersionsResponse] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::ListVersionsResponse]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 968 def list_project_location_repository_package_versions(parent, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+parent}/versions', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::ListVersionsResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::ListVersionsResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Lists packages. @param [String] parent
The name of the parent resource whose packages will be listed.
@param [Fixnum] page_size
The maximum number of packages to return. Maximum page size is 1,000.
@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::ArtifactregistryV1beta2::ListPackagesResponse] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::ListPackagesResponse]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 680 def list_project_location_repository_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+parent}/packages', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::ListPackagesResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::ListPackagesResponse 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
Lists information about the supported locations for this service. @param [String] name
The resource that owns the locations collection, if applicable.
@param [String] filter
A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in [ AIP-160](https://google.aip.dev/160).
@param [Fixnum] page_size
The maximum number of results to return. If not set, the service selects a default.
@param [String] page_token
A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
@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::ArtifactregistryV1beta2::ListLocationsResponse] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::ListLocationsResponse]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 113 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+name}/locations', options) command.response_representation = Google::Apis::ArtifactregistryV1beta2::ListLocationsResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.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
Updates a repository. @param [String] name
The name of the repository, for example: "projects/p1/locations/us-central1/ repositories/repo1".
@param [Google::Apis::ArtifactregistryV1beta2::Repository] repository_object @param [String] update_mask
The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# fieldmask
@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::ArtifactregistryV1beta2::Repository] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Repository]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 358 def patch_project_location_repository(name, repository_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta2/{+name}', options) command.request_representation = Google::Apis::ArtifactregistryV1beta2::Repository::Representation command.request_object = repository_object command.response_representation = Google::Apis::ArtifactregistryV1beta2::Repository::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Repository command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Updates a tag. @param [String] name
The name of the tag, for example: "projects/p1/locations/us-central1/ repositories/repo1/packages/pkg1/tags/tag1". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a- zA-Z0-9\-._~:@], anything else must be URL encoded.
@param [Google::Apis::ArtifactregistryV1beta2::Tag] tag_object @param [String] update_mask
The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# fieldmask
@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::ArtifactregistryV1beta2::Tag] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Tag]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 859 def patch_project_location_repository_package_tag(name, tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta2/{+name}', options) command.request_representation = Google::Apis::ArtifactregistryV1beta2::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::ArtifactregistryV1beta2::Tag::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Tag command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Updates the IAM policy for a given resource. @param [String] resource
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
@param [Google::Apis::ArtifactregistryV1beta2::SetIamPolicyRequest] set_iam_policy_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::ArtifactregistryV1beta2::Policy] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::Policy]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 393 def set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options) command.request_representation = Google::Apis::ArtifactregistryV1beta2::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::ArtifactregistryV1beta2::Policy::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Tests if the caller has a list of permissions on a resource. @param [String] resource
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
@param [Google::Apis::ArtifactregistryV1beta2::TestIamPermissionsRequest] test_iam_permissions_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::ArtifactregistryV1beta2::TestIamPermissionsResponse] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::TestIamPermissionsResponse]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 427 def test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::ArtifactregistryV1beta2::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::ArtifactregistryV1beta2::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Directly uploads an Apt artifact. The returned Operation
will complete once the resources are uploaded. Package
, Version
, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored. @param [String] parent
The name of the parent resource where the artifacts will be uploaded.
@param [Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactRequest] upload_apt_artifact_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 [IO, String] upload_source
IO stream or filename containing content to upload
@param [String] content_type
Content type of the uploaded content.
@param [Google::Apis::RequestOptions] options
Request-specific options
@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 503 def upload_aptartifact_apt_artifact(parent, upload_apt_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'v1beta2/{+parent}/aptArtifacts:create', options) else command = make_upload_command(:post, 'v1beta2/{+parent}/aptArtifacts:create', options) command.upload_source = upload_source command.upload_content_type = content_type end command.request_representation = Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactRequest::Representation command.request_object = upload_apt_artifact_request_object command.response_representation = Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Directly uploads a Yum artifact. The returned Operation
will complete once the resources are uploaded. Package
, Version
, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored. @param [String] parent
The name of the parent resource where the artifacts will be uploaded.
@param [Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactRequest] upload_yum_artifact_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 [IO, String] upload_source
IO stream or filename containing content to upload
@param [String] content_type
Content type of the uploaded content.
@param [Google::Apis::RequestOptions] options
Request-specific options
@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse] parsed result object @yieldparam err [StandardError] error object if request failed
@return [Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse]
@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
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 1046 def upload_yumartifact_yum_artifact(parent, upload_yum_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'v1beta2/{+parent}/yumArtifacts:create', options) else command = make_upload_command(:post, 'v1beta2/{+parent}/yumArtifacts:create', options) command.upload_source = upload_source command.upload_content_type = content_type end command.request_representation = Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactRequest::Representation command.request_object = upload_yum_artifact_request_object command.response_representation = Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end
Protected Instance Methods
# File lib/google/apis/artifactregistry_v1beta2/service.rb, line 1066 def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? end