# Artifact Registry V1 API - Class Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client (v1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Artifact Registry V1 API class Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.

Client for the ArtifactRegistry service.

The Artifact Registry API service.

Artifact Registry is an artifact management system for storing artifacts
from different package management systems.

The resources managed by this API are:

- Repositories, which group packages and their data.
- Packages, which group versions and their tags.
- Versions, which are specific forms of a package.
- Tags, which represent alternative names for versions.
- Files, which contain content and are optionally associated with a Package or Version.

## Inherits

- Object

## Includes

- [Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Paths](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Paths)

## Methods

### .configure

    def self.configure() { |config| ... } -> Client::Configuration

Configure the ArtifactRegistry Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Client-Configuration "Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Client-Configuration))
**Example**

```ruby
# Modify the configuration for all ArtifactRegistry clients
::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.configure do |config|
  config.timeout = 10.0
end
```

### #batch_delete_versions

    def batch_delete_versions(request, options = nil) -> ::Gapic::Operation
    def batch_delete_versions(parent: nil, names: nil, validate_only: nil) -> ::Gapic::Operation

Deletes multiple versions across a repository. The returned operation will
complete once the versions have been deleted.
**Overloads**

    def batch_delete_versions(request, options = nil) -> ::Gapic::Operation

Pass arguments to `batch_delete_versions` via a request object, either of type [BatchDeleteVersionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-BatchDeleteVersionsRequest "Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-BatchDeleteVersionsRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def batch_delete_versions(parent: nil, names: nil, validate_only: nil) -> ::Gapic::Operation

Pass arguments to `batch_delete_versions` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- The name of the repository holding all requested versions.
- **names** (::Array\<::String\>) --- Required. The names of the versions to delete. The maximum number of versions deleted per batch is determined by the service and is dependent on the available resources in the region.
- **validate_only** (::Boolean) --- If true, the request is performed without deleting data, following AIP-163.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest.new

# Call the batch_delete_versions method.
result = client.batch_delete_versions request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #configure

    def configure() { |config| ... } -> Client::Configuration

Configure the ArtifactRegistry Client instance.


The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on [Client.configure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Client#Google__Cloud__ArtifactRegistry__V1__ArtifactRegistry__Client_configure_class_ "Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.configure (method)").

<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Client-Configuration "Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Client-Configuration))

### #create_attachment

    def create_attachment(request, options = nil) -> ::Gapic::Operation
    def create_attachment(parent: nil, attachment_id: nil, attachment: nil) -> ::Gapic::Operation

Creates an attachment. The returned Operation will finish once the
attachment has been created. Its response will be the created attachment.
**Overloads**

    def create_attachment(request, options = nil) -> ::Gapic::Operation

Pass arguments to `create_attachment` via a request object, either of type [CreateAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-CreateAttachmentRequest "Google::Cloud::ArtifactRegistry::V1::CreateAttachmentRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::CreateAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-CreateAttachmentRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_attachment(parent: nil, attachment_id: nil, attachment: nil) -> ::Gapic::Operation

Pass arguments to `create_attachment` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent resource where the attachment will be created.
- **attachment_id** (::String) --- Required. The attachment id to use for this attachment.
- **attachment** ([::Google::Cloud::ArtifactRegistry::V1::Attachment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Attachment), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Required. The attachment to be created.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::CreateAttachmentRequest.new

# Call the create_attachment method.
result = client.create_attachment request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #create_repository

    def create_repository(request, options = nil) -> ::Gapic::Operation
    def create_repository(parent: nil, repository_id: nil, repository: nil) -> ::Gapic::Operation

Creates a repository. The returned Operation will finish once the
repository has been created. Its response will be the created Repository.
**Overloads**

    def create_repository(request, options = nil) -> ::Gapic::Operation

Pass arguments to `create_repository` via a request object, either of type [CreateRepositoryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-CreateRepositoryRequest "Google::Cloud::ArtifactRegistry::V1::CreateRepositoryRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::CreateRepositoryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-CreateRepositoryRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_repository(parent: nil, repository_id: nil, repository: nil) -> ::Gapic::Operation

Pass arguments to `create_repository` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent resource where the repository will be created.
- **repository_id** (::String) --- Required. The repository id to use for this repository.
- **repository** ([::Google::Cloud::ArtifactRegistry::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Required. The repository to be created.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::CreateRepositoryRequest.new

# Call the create_repository method.
result = client.create_repository request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #create_rule

    def create_rule(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule
    def create_rule(parent: nil, rule_id: nil, rule: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule

Creates a rule.
**Overloads**

    def create_rule(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule

Pass arguments to `create_rule` via a request object, either of type [CreateRuleRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-CreateRuleRequest "Google::Cloud::ArtifactRegistry::V1::CreateRuleRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::CreateRuleRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-CreateRuleRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_rule(parent: nil, rule_id: nil, rule: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule

Pass arguments to `create_rule` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent resource where the rule will be created.
- **rule_id** (::String) --- The rule id to use for this repository.
- **rule** ([::Google::Cloud::ArtifactRegistry::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Rule), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The rule to be created.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Rule))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Rule))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::CreateRuleRequest.new

# Call the create_rule method.
result = client.create_rule request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Rule.
p result
```

### #create_tag

    def create_tag(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag
    def create_tag(parent: nil, tag_id: nil, tag: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Creates a tag.
**Overloads**

    def create_tag(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Pass arguments to `create_tag` via a request object, either of type [CreateTagRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-CreateTagRequest "Google::Cloud::ArtifactRegistry::V1::CreateTagRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::CreateTagRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-CreateTagRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_tag(parent: nil, tag_id: nil, tag: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Pass arguments to `create_tag` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- The name of the parent resource where the tag will be created.
- **tag_id** (::String) --- The tag id to use for this repository.
- **tag** ([::Google::Cloud::ArtifactRegistry::V1::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Tag), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The tag to be created.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Tag))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Tag))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::CreateTagRequest.new

# Call the create_tag method.
result = client.create_tag request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
p result
```

### #delete_attachment

    def delete_attachment(request, options = nil) -> ::Gapic::Operation
    def delete_attachment(name: nil) -> ::Gapic::Operation

Deletes an attachment. The returned Operation will
finish once the attachments has been deleted. It will not have any
Operation metadata and will return a `google.protobuf.Empty` response.
**Overloads**

    def delete_attachment(request, options = nil) -> ::Gapic::Operation

Pass arguments to `delete_attachment` via a request object, either of type [DeleteAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteAttachmentRequest "Google::Cloud::ArtifactRegistry::V1::DeleteAttachmentRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::DeleteAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteAttachmentRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_attachment(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_attachment` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the attachment to delete.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::DeleteAttachmentRequest.new

# Call the delete_attachment method.
result = client.delete_attachment request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #delete_file

    def delete_file(request, options = nil) -> ::Gapic::Operation
    def delete_file(name: nil) -> ::Gapic::Operation

Deletes a file and all of its content. It is only allowed on generic
repositories. The returned operation will complete once the file has been
deleted.
**Overloads**

    def delete_file(request, options = nil) -> ::Gapic::Operation

Pass arguments to `delete_file` via a request object, either of type [DeleteFileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteFileRequest "Google::Cloud::ArtifactRegistry::V1::DeleteFileRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::DeleteFileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteFileRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_file(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_file` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the file to delete.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::DeleteFileRequest.new

# Call the delete_file method.
result = client.delete_file request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #delete_package

    def delete_package(request, options = nil) -> ::Gapic::Operation
    def delete_package(name: nil) -> ::Gapic::Operation

Deletes a package and all of its versions and tags. The returned operation
will complete once the package has been deleted.
**Overloads**

    def delete_package(request, options = nil) -> ::Gapic::Operation

Pass arguments to `delete_package` via a request object, either of type [DeletePackageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeletePackageRequest "Google::Cloud::ArtifactRegistry::V1::DeletePackageRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::DeletePackageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeletePackageRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_package(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_package` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the package to delete.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::DeletePackageRequest.new

# Call the delete_package method.
result = client.delete_package request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #delete_repository

    def delete_repository(request, options = nil) -> ::Gapic::Operation
    def delete_repository(name: nil) -> ::Gapic::Operation

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.
**Overloads**

    def delete_repository(request, options = nil) -> ::Gapic::Operation

Pass arguments to `delete_repository` via a request object, either of type [DeleteRepositoryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteRepositoryRequest "Google::Cloud::ArtifactRegistry::V1::DeleteRepositoryRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::DeleteRepositoryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteRepositoryRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_repository(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_repository` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the repository to delete.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::DeleteRepositoryRequest.new

# Call the delete_repository method.
result = client.delete_repository request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #delete_rule

    def delete_rule(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_rule(name: nil) -> ::Google::Protobuf::Empty

Deletes a rule.
**Overloads**

    def delete_rule(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_rule` via a request object, either of type [DeleteRuleRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteRuleRequest "Google::Cloud::ArtifactRegistry::V1::DeleteRuleRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::DeleteRuleRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteRuleRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_rule(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_rule` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the rule to delete.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::DeleteRuleRequest.new

# Call the delete_rule method.
result = client.delete_rule request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #delete_tag

    def delete_tag(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_tag(name: nil) -> ::Google::Protobuf::Empty

Deletes a tag.
**Overloads**

    def delete_tag(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_tag` via a request object, either of type [DeleteTagRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteTagRequest "Google::Cloud::ArtifactRegistry::V1::DeleteTagRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::DeleteTagRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteTagRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_tag(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_tag` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- The name of the tag to delete.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-Empty))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::DeleteTagRequest.new

# Call the delete_tag method.
result = client.delete_tag request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #delete_version

    def delete_version(request, options = nil) -> ::Gapic::Operation
    def delete_version(name: nil, force: nil) -> ::Gapic::Operation

Deletes a version and all of its content. The returned operation will
complete once the version has been deleted.
**Overloads**

    def delete_version(request, options = nil) -> ::Gapic::Operation

Pass arguments to `delete_version` via a request object, either of type [DeleteVersionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteVersionRequest "Google::Cloud::ArtifactRegistry::V1::DeleteVersionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::DeleteVersionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DeleteVersionRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_version(name: nil, force: nil) -> ::Gapic::Operation

Pass arguments to `delete_version` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- The name of the version to delete.
- **force** (::Boolean) --- 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.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::DeleteVersionRequest.new

# Call the delete_version method.
result = client.delete_version request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #export_artifact

    def export_artifact(request, options = nil) -> ::Gapic::Operation
    def export_artifact(source_version: nil, source_tag: nil, gcs_path: nil, repository: nil) -> ::Gapic::Operation

Exports an artifact to a Cloud Storage bucket.
**Overloads**

    def export_artifact(request, options = nil) -> ::Gapic::Operation

Pass arguments to `export_artifact` via a request object, either of type [ExportArtifactRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ExportArtifactRequest "Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ExportArtifactRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def export_artifact(source_version: nil, source_tag: nil, gcs_path: nil, repository: nil) -> ::Gapic::Operation

Pass arguments to `export_artifact` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **source_version** (::String) --- The artifact version to export. Format: projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}


  Note: The following parameters are mutually exclusive: `source_version`, `source_tag`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- **source_tag** (::String) --- The artifact tag to export. Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}


  Note: The following parameters are mutually exclusive: `source_tag`, `source_version`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- **gcs_path** (::String) --- The Cloud Storage path to export the artifact to. Should start with the bucket name, and optionally have a directory path. Examples: `dst_bucket`, `dst_bucket/sub_dir`. Existing objects with the same path will be overwritten.
- **repository** (::String) --- Required. The repository of the artifact to export. Format: projects/{project}/locations/{location}/repositories/{repository}
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest.new

# Call the export_artifact method.
result = client.export_artifact request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #get_attachment

    def get_attachment(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Attachment
    def get_attachment(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Attachment

Gets an attachment.
**Overloads**

    def get_attachment(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Attachment

Pass arguments to `get_attachment` via a request object, either of type [GetAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetAttachmentRequest "Google::Cloud::ArtifactRegistry::V1::GetAttachmentRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetAttachmentRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_attachment(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Attachment

Pass arguments to `get_attachment` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the attachment to retrieve.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Attachment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Attachment))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Attachment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Attachment))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetAttachmentRequest.new

# Call the get_attachment method.
result = client.get_attachment request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Attachment.
p result
```

### #get_docker_image

    def get_docker_image(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::DockerImage
    def get_docker_image(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::DockerImage

Gets a docker image.
**Overloads**

    def get_docker_image(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::DockerImage

Pass arguments to `get_docker_image` via a request object, either of type [GetDockerImageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetDockerImageRequest "Google::Cloud::ArtifactRegistry::V1::GetDockerImageRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetDockerImageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetDockerImageRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_docker_image(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::DockerImage

Pass arguments to `get_docker_image` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the docker images.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::DockerImage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DockerImage))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::DockerImage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DockerImage))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetDockerImageRequest.new

# Call the get_docker_image method.
result = client.get_docker_image request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::DockerImage.
p result
```

### #get_file

    def get_file(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::File
    def get_file(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::File

Gets a file.
**Overloads**

    def get_file(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::File

Pass arguments to `get_file` via a request object, either of type [GetFileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetFileRequest "Google::Cloud::ArtifactRegistry::V1::GetFileRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetFileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetFileRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_file(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::File

Pass arguments to `get_file` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the file to retrieve.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-File))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-File))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetFileRequest.new

# Call the get_file method.
result = client.get_file request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::File.
p result
```

### #get_iam_policy

    def get_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policy
    def get_iam_policy(resource: nil, options: nil) -> ::Google::Iam::V1::Policy

Gets the IAM policy for a given resource.
**Overloads**

    def get_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policy

Pass arguments to `get_iam_policy` via a request object, either of type [Iam::V1::GetIamPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-GetIamPolicyRequest "Google::Iam::V1::GetIamPolicyRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Iam::V1::GetIamPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-GetIamPolicyRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_iam_policy(resource: nil, options: nil) -> ::Google::Iam::V1::Policy

Pass arguments to `get_iam_policy` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **resource** (::String) --- REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
- **options** ([::Google::Iam::V1::GetPolicyOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-GetPolicyOptions), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Iam::V1::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-Policy))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Iam::V1::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-Policy))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Iam::V1::GetIamPolicyRequest.new

# Call the get_iam_policy method.
result = client.get_iam_policy request

# The returned object is of type Google::Iam::V1::Policy.
p result
```

### #get_maven_artifact

    def get_maven_artifact(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::MavenArtifact
    def get_maven_artifact(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::MavenArtifact

Gets a maven artifact.
**Overloads**

    def get_maven_artifact(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::MavenArtifact

Pass arguments to `get_maven_artifact` via a request object, either of type [GetMavenArtifactRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetMavenArtifactRequest "Google::Cloud::ArtifactRegistry::V1::GetMavenArtifactRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetMavenArtifactRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetMavenArtifactRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_maven_artifact(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::MavenArtifact

Pass arguments to `get_maven_artifact` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the maven artifact.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::MavenArtifact](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-MavenArtifact))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::MavenArtifact](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-MavenArtifact))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetMavenArtifactRequest.new

# Call the get_maven_artifact method.
result = client.get_maven_artifact request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::MavenArtifact.
p result
```

### #get_npm_package

    def get_npm_package(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::NpmPackage
    def get_npm_package(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::NpmPackage

Gets a npm package.
**Overloads**

    def get_npm_package(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::NpmPackage

Pass arguments to `get_npm_package` via a request object, either of type [GetNpmPackageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetNpmPackageRequest "Google::Cloud::ArtifactRegistry::V1::GetNpmPackageRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetNpmPackageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetNpmPackageRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_npm_package(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::NpmPackage

Pass arguments to `get_npm_package` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the npm package.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::NpmPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-NpmPackage))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::NpmPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-NpmPackage))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetNpmPackageRequest.new

# Call the get_npm_package method.
result = client.get_npm_package request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::NpmPackage.
p result
```

### #get_package

    def get_package(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Package
    def get_package(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Package

Gets a package.
**Overloads**

    def get_package(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Package

Pass arguments to `get_package` via a request object, either of type [GetPackageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetPackageRequest "Google::Cloud::ArtifactRegistry::V1::GetPackageRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetPackageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetPackageRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_package(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Package

Pass arguments to `get_package` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the package to retrieve.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Package](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Package))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Package](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Package))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetPackageRequest.new

# Call the get_package method.
result = client.get_package request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Package.
p result
```

### #get_project_settings

    def get_project_settings(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings
    def get_project_settings(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings

Retrieves the Settings for the Project.
**Overloads**

    def get_project_settings(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings

Pass arguments to `get_project_settings` via a request object, either of type [GetProjectSettingsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetProjectSettingsRequest "Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetProjectSettingsRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_project_settings(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings

Pass arguments to `get_project_settings` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the projectSettings resource.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::ProjectSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ProjectSettings))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::ProjectSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ProjectSettings))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest.new

# Call the get_project_settings method.
result = client.get_project_settings request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::ProjectSettings.
p result
```

### #get_python_package

    def get_python_package(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::PythonPackage
    def get_python_package(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::PythonPackage

Gets a python package.
**Overloads**

    def get_python_package(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::PythonPackage

Pass arguments to `get_python_package` via a request object, either of type [GetPythonPackageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetPythonPackageRequest "Google::Cloud::ArtifactRegistry::V1::GetPythonPackageRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetPythonPackageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetPythonPackageRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_python_package(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::PythonPackage

Pass arguments to `get_python_package` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the python package.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::PythonPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-PythonPackage))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::PythonPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-PythonPackage))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetPythonPackageRequest.new

# Call the get_python_package method.
result = client.get_python_package request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::PythonPackage.
p result
```

### #get_repository

    def get_repository(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Repository
    def get_repository(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Repository

Gets a repository.
**Overloads**

    def get_repository(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Repository

Pass arguments to `get_repository` via a request object, either of type [GetRepositoryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetRepositoryRequest "Google::Cloud::ArtifactRegistry::V1::GetRepositoryRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetRepositoryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetRepositoryRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_repository(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Repository

Pass arguments to `get_repository` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the repository to retrieve.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetRepositoryRequest.new

# Call the get_repository method.
result = client.get_repository request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Repository.
p result
```

### #get_rule

    def get_rule(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule
    def get_rule(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule

Gets a rule.
**Overloads**

    def get_rule(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule

Pass arguments to `get_rule` via a request object, either of type [GetRuleRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetRuleRequest "Google::Cloud::ArtifactRegistry::V1::GetRuleRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetRuleRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetRuleRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_rule(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule

Pass arguments to `get_rule` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the rule to retrieve.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Rule))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Rule))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetRuleRequest.new

# Call the get_rule method.
result = client.get_rule request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Rule.
p result
```

### #get_tag

    def get_tag(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag
    def get_tag(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Gets a tag.
**Overloads**

    def get_tag(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Pass arguments to `get_tag` via a request object, either of type [GetTagRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetTagRequest "Google::Cloud::ArtifactRegistry::V1::GetTagRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetTagRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetTagRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_tag(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Pass arguments to `get_tag` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- The name of the tag to retrieve.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Tag))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Tag))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetTagRequest.new

# Call the get_tag method.
result = client.get_tag request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
p result
```

### #get_version

    def get_version(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Version
    def get_version(name: nil, view: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Version

Gets a version
**Overloads**

    def get_version(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Version

Pass arguments to `get_version` via a request object, either of type [GetVersionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetVersionRequest "Google::Cloud::ArtifactRegistry::V1::GetVersionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetVersionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetVersionRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_version(name: nil, view: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Version

Pass arguments to `get_version` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- The name of the version to retrieve.
- **view** ([::Google::Cloud::ArtifactRegistry::V1::VersionView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-VersionView)) --- The view that should be returned in the response.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Version))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Version))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetVersionRequest.new

# Call the get_version method.
result = client.get_version request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Version.
p result
```

### #get_vpcsc_config

    def get_vpcsc_config(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig
    def get_vpcsc_config(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig

Retrieves the VPCSC Config for the Project.
**Overloads**

    def get_vpcsc_config(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig

Pass arguments to `get_vpcsc_config` via a request object, either of type [GetVPCSCConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetVPCSCConfigRequest "Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-GetVPCSCConfigRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_vpcsc_config(name: nil) -> ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig

Pass arguments to `get_vpcsc_config` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. The name of the VPCSCConfig resource.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-VPCSCConfig))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-VPCSCConfig))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest.new

# Call the get_vpcsc_config method.
result = client.get_vpcsc_config request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.
p result
```

### #import_apt_artifacts

    def import_apt_artifacts(request, options = nil) -> ::Gapic::Operation
    def import_apt_artifacts(gcs_source: nil, parent: nil) -> ::Gapic::Operation

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.
**Overloads**

    def import_apt_artifacts(request, options = nil) -> ::Gapic::Operation

Pass arguments to `import_apt_artifacts` via a request object, either of type [ImportAptArtifactsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ImportAptArtifactsRequest "Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ImportAptArtifactsRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def import_apt_artifacts(gcs_source: nil, parent: nil) -> ::Gapic::Operation

Pass arguments to `import_apt_artifacts` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **gcs_source** ([::Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsGcsSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ImportAptArtifactsGcsSource), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Google Cloud Storage location where input content is located.
- **parent** (::String) --- The name of the parent resource where the artifacts will be imported.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsRequest.new

# Call the import_apt_artifacts method.
result = client.import_apt_artifacts request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #import_yum_artifacts

    def import_yum_artifacts(request, options = nil) -> ::Gapic::Operation
    def import_yum_artifacts(gcs_source: nil, parent: nil) -> ::Gapic::Operation

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.
**Overloads**

    def import_yum_artifacts(request, options = nil) -> ::Gapic::Operation

Pass arguments to `import_yum_artifacts` via a request object, either of type [ImportYumArtifactsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ImportYumArtifactsRequest "Google::Cloud::ArtifactRegistry::V1::ImportYumArtifactsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ImportYumArtifactsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ImportYumArtifactsRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def import_yum_artifacts(gcs_source: nil, parent: nil) -> ::Gapic::Operation

Pass arguments to `import_yum_artifacts` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **gcs_source** ([::Google::Cloud::ArtifactRegistry::V1::ImportYumArtifactsGcsSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ImportYumArtifactsGcsSource), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Google Cloud Storage location where input content is located.
- **parent** (::String) --- The name of the parent resource where the artifacts will be imported.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ImportYumArtifactsRequest.new

# Call the import_yum_artifacts method.
result = client.import_yum_artifacts request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #initialize

    def initialize() { |config| ... } -> Client

Create a new ArtifactRegistry client object.
**Yields**

- (config) --- Configure the ArtifactRegistry client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Client-Configuration))
**Returns**

- ([Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Client)) --- a new instance of Client
**Example**

```ruby
# Create a client using the default configuration
client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new do |config|
  config.timeout = 10.0
end
```

### #list_attachments

    def list_attachments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Attachment>
    def list_attachments(parent: nil, filter: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Attachment>

Lists attachments.
**Overloads**

    def list_attachments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Attachment>

Pass arguments to `list_attachments` via a request object, either of type [ListAttachmentsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListAttachmentsRequest "Google::Cloud::ArtifactRegistry::V1::ListAttachmentsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListAttachmentsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListAttachmentsRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_attachments(parent: nil, filter: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Attachment>

Pass arguments to `list_attachments` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent resource whose attachments will be listed.
- **filter** (::String) ---

  Optional. An expression for filtering the results of the request. Filter
  rules are case insensitive. The fields eligible for filtering are:
  - `target`
  - `type`
  - `attachment_namespace`
- **page_size** (::Integer) --- The maximum number of attachments to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Attachment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Attachment)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Attachment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Attachment)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListAttachmentsRequest.new

# Call the list_attachments method.
result = client.list_attachments request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Attachment.
  p item
end
```

### #list_docker_images

    def list_docker_images(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::DockerImage>
    def list_docker_images(parent: nil, page_size: nil, page_token: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::DockerImage>

Lists docker images.
**Overloads**

    def list_docker_images(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::DockerImage>

Pass arguments to `list_docker_images` via a request object, either of type [ListDockerImagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListDockerImagesRequest "Google::Cloud::ArtifactRegistry::V1::ListDockerImagesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListDockerImagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListDockerImagesRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_docker_images(parent: nil, page_size: nil, page_token: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::DockerImage>

Pass arguments to `list_docker_images` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent resource whose docker images will be listed.
- **page_size** (::Integer) --- The maximum number of artifacts to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
- **order_by** (::String) --- The field to order the results by.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::DockerImage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DockerImage)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::DockerImage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-DockerImage)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListDockerImagesRequest.new

# Call the list_docker_images method.
result = client.list_docker_images request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::DockerImage.
  p item
end
```

### #list_files

    def list_files(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::File>
    def list_files(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::File>

Lists files.
**Overloads**

    def list_files(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::File>

Pass arguments to `list_files` via a request object, either of type [ListFilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListFilesRequest "Google::Cloud::ArtifactRegistry::V1::ListFilesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListFilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListFilesRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_files(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::File>

Pass arguments to `list_files` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1
- **filter** (::String) ---

  An expression for filtering the results of the request. Filter rules are
  case insensitive. The fields eligible for filtering are:
  - `name`
  - `owner`
  - `annotations`

  Examples of using a filter:

  To filter the results of your request to files with the name `my_file.txt`
  in project `my-project` in the `us-central` region, in repository
  `my-repo`, append the following filter expression to your request:
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"`

  You can also use wildcards to match any number of characters before or
  after the value:
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"`
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"`
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"`

  To filter the results of your request to files owned by the version `1.0`
  in package `pkg1`, append the following filter expression to your request:
  - `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"`

  To filter the results of your request to files with the annotation
  key-value pair \[`external_link`: `external_link_value`\], append the
  following filter expression to your request:
  - `"annotations.external_link:external_link_value"`

  To filter just for a specific annotation key `external_link`, append the
  following filter expression to your request:
  - `"annotations.external_link"`

  If the annotation key or value contains special characters, you can escape
  them by surrounding the value with backticks. For example, to filter the
  results of your request to files with the annotation key-value pair
  \[`external.link`:`https://example.com/my-file`\], append the following
  filter expression to your request:
  - ``"annotations.`external.link`:`https://example.com/my-file`"``

  You can also filter with annotations with a wildcard to
  match any number of characters before or after the value:
  - ``"annotations.*_link:`*example.com*`"``
- **page_size** (::Integer) --- The maximum number of files to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
- **order_by** (::String) --- The field to order the results by.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-File)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-File)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListFilesRequest.new

# Call the list_files method.
result = client.list_files request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::File.
  p item
end
```

### #list_maven_artifacts

    def list_maven_artifacts(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::MavenArtifact>
    def list_maven_artifacts(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::MavenArtifact>

Lists maven artifacts.
**Overloads**

    def list_maven_artifacts(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::MavenArtifact>

Pass arguments to `list_maven_artifacts` via a request object, either of type [ListMavenArtifactsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListMavenArtifactsRequest "Google::Cloud::ArtifactRegistry::V1::ListMavenArtifactsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListMavenArtifactsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListMavenArtifactsRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_maven_artifacts(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::MavenArtifact>

Pass arguments to `list_maven_artifacts` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent resource whose maven artifacts will be listed.
- **page_size** (::Integer) --- The maximum number of artifacts to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::MavenArtifact](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-MavenArtifact)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::MavenArtifact](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-MavenArtifact)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListMavenArtifactsRequest.new

# Call the list_maven_artifacts method.
result = client.list_maven_artifacts request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::MavenArtifact.
  p item
end
```

### #list_npm_packages

    def list_npm_packages(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::NpmPackage>
    def list_npm_packages(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::NpmPackage>

Lists npm packages.
**Overloads**

    def list_npm_packages(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::NpmPackage>

Pass arguments to `list_npm_packages` via a request object, either of type [ListNpmPackagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListNpmPackagesRequest "Google::Cloud::ArtifactRegistry::V1::ListNpmPackagesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListNpmPackagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListNpmPackagesRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_npm_packages(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::NpmPackage>

Pass arguments to `list_npm_packages` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent resource whose npm packages will be listed.
- **page_size** (::Integer) --- The maximum number of artifacts to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::NpmPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-NpmPackage)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::NpmPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-NpmPackage)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListNpmPackagesRequest.new

# Call the list_npm_packages method.
result = client.list_npm_packages request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::NpmPackage.
  p item
end
```

### #list_packages

    def list_packages(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Package>
    def list_packages(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Package>

Lists packages.
**Overloads**

    def list_packages(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Package>

Pass arguments to `list_packages` via a request object, either of type [ListPackagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListPackagesRequest "Google::Cloud::ArtifactRegistry::V1::ListPackagesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListPackagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListPackagesRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_packages(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Package>

Pass arguments to `list_packages` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent resource whose packages will be listed.
- **page_size** (::Integer) --- The maximum number of packages to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
- **filter** (::String) ---

  Optional. An expression for filtering the results of the request. Filter
  rules are case insensitive. The fields eligible for filtering are:
  - `name`
  - `annotations`

  Examples of using a filter:

  To filter the results of your request to packages with the name
  `my-package` in project `my-project` in the `us-central` region, in
  repository `my-repo`, append the following filter expression to your
  request:
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`

  You can also use wildcards to match any number of characters before or
  after the value:
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`

  To filter the results of your request to packages with the annotation
  key-value pair \[`external_link`: `external_link_value`\], append the
  following filter expression to your request":
  - `"annotations.external_link:external_link_value"`

  To filter the results just for a specific annotation key `external_link`,
  append the following filter expression to your request:
  - `"annotations.external_link"`

  If the annotation key or value contains special characters, you can escape
  them by surrounding the value with backticks. For example, to filter the
  results of your request to packages with the annotation key-value pair
  \[`external.link`:`https://example.com/my-package`\], append the following
  filter expression to your request:
  - ``"annotations.`external.link`:`https://example.com/my-package`"``

  You can also filter with annotations with a wildcard to
  match any number of characters before or after the value:
  - ``"annotations.*_link:`*example.com*`"``
- **order_by** (::String) --- Optional. The field to order the results by.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Package](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Package)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Package](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Package)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListPackagesRequest.new

# Call the list_packages method.
result = client.list_packages request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Package.
  p item
end
```

### #list_python_packages

    def list_python_packages(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::PythonPackage>
    def list_python_packages(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::PythonPackage>

Lists python packages.
**Overloads**

    def list_python_packages(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::PythonPackage>

Pass arguments to `list_python_packages` via a request object, either of type [ListPythonPackagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListPythonPackagesRequest "Google::Cloud::ArtifactRegistry::V1::ListPythonPackagesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListPythonPackagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListPythonPackagesRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_python_packages(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::PythonPackage>

Pass arguments to `list_python_packages` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent resource whose python packages will be listed.
- **page_size** (::Integer) --- The maximum number of artifacts to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::PythonPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-PythonPackage)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::PythonPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-PythonPackage)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListPythonPackagesRequest.new

# Call the list_python_packages method.
result = client.list_python_packages request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::PythonPackage.
  p item
end
```

### #list_repositories

    def list_repositories(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Repository>
    def list_repositories(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Repository>

Lists repositories.
**Overloads**

    def list_repositories(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Repository>

Pass arguments to `list_repositories` via a request object, either of type [ListRepositoriesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListRepositoriesRequest "Google::Cloud::ArtifactRegistry::V1::ListRepositoriesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListRepositoriesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListRepositoriesRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_repositories(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Repository>

Pass arguments to `list_repositories` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent resource whose repositories will be listed.
- **page_size** (::Integer) --- The maximum number of repositories to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
- **filter** (::String) ---

  Optional. An expression for filtering the results of the request. Filter
  rules are case insensitive. The fields eligible for filtering are:
  - `name`

  Examples of using a filter:

  To filter the results of your request to repositories with the name
  `my-repo` in project `my-project` in the `us-central` region, append the
  following filter expression to your request:
  - `name="projects/my-project/locations/us-central1/repositories/my-repo"`

  You can also use wildcards to match any number of characters before or
  after the value:
  - `name="projects/my-project/locations/us-central1/repositories/my-*"`
  - `name="projects/my-project/locations/us-central1/repositories/*repo"`
  - `name="projects/my-project/locations/us-central1/repositories/*repo*"`
- **order_by** (::String) --- Optional. The field to order the results by.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListRepositoriesRequest.new

# Call the list_repositories method.
result = client.list_repositories request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Repository.
  p item
end
```

### #list_rules

    def list_rules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Rule>
    def list_rules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Rule>

Lists rules.
**Overloads**

    def list_rules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Rule>

Pass arguments to `list_rules` via a request object, either of type [ListRulesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListRulesRequest "Google::Cloud::ArtifactRegistry::V1::ListRulesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListRulesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListRulesRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_rules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Rule>

Pass arguments to `list_rules` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The name of the parent repository whose rules will be listed. For example: `projects/p1/locations/us-central1/repositories/repo1`.
- **page_size** (::Integer) --- The maximum number of rules to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Rule)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Rule)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListRulesRequest.new

# Call the list_rules method.
result = client.list_rules request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Rule.
  p item
end
```

### #list_tags

    def list_tags(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>
    def list_tags(parent: nil, filter: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>

Lists tags.
**Overloads**

    def list_tags(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>

Pass arguments to `list_tags` via a request object, either of type [ListTagsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListTagsRequest "Google::Cloud::ArtifactRegistry::V1::ListTagsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListTagsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListTagsRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_tags(parent: nil, filter: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>

Pass arguments to `list_tags` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- The name of the parent package whose tags will be listed. For example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
- **filter** (::String) ---

  An expression for filtering the results of the request. Filter rules are
  case insensitive. The fields eligible for filtering are:
  - `name`
  - `version`

  Examples of using a filter:

  To filter the results of your request to tags with the name `my-tag` in
  package `my-package` in repository `my-repo` in project "`y-project` in
  the us-central region, append the following filter expression to your
  request:
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"`

  You can also use wildcards to match any number of characters before or
  after the value:
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"`
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"`
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"`

  To filter the results of your request to tags applied to the version
  `1.0` in package `my-package`, append the following filter expression to
  your request:
  - `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"`
- **page_size** (::Integer) --- The maximum number of tags to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Tag)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Tag)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListTagsRequest.new

# Call the list_tags method.
result = client.list_tags request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Tag.
  p item
end
```

### #list_versions

    def list_versions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Version>
    def list_versions(parent: nil, page_size: nil, page_token: nil, view: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Version>

Lists versions.
**Overloads**

    def list_versions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Version>

Pass arguments to `list_versions` via a request object, either of type [ListVersionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListVersionsRequest "Google::Cloud::ArtifactRegistry::V1::ListVersionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::ListVersionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ListVersionsRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_versions(parent: nil, page_size: nil, page_token: nil, view: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Version>

Pass arguments to `list_versions` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- The name of the parent resource whose versions will be listed.
- **page_size** (::Integer) --- The maximum number of versions to return. Maximum page size is 1,000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request, if any.
- **view** ([::Google::Cloud::ArtifactRegistry::V1::VersionView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-VersionView)) --- The view that should be returned in the response.
- **order_by** (::String) --- Optional. The field to order the results by.
- **filter** (::String) ---

  Optional. An expression for filtering the results of the request. Filter
  rules are case insensitive. The fields eligible for filtering are:
  - `name`
  - `annotations`

  Examples of using a filter:

  To filter the results of your request to versions with the name
  `my-version` in project `my-project` in the `us-central` region, in
  repository `my-repo`, append the following filter expression to your
  request:
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`

  You can also use wildcards to match any number of characters before or
  after the value:
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
  - `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`

  To filter the results of your request to versions with the annotation
  key-value pair \[`external_link`: `external_link_value`\], append the
  following filter expression to your request:
  - `"annotations.external_link:external_link_value"`

  To filter just for a specific annotation key `external_link`, append the
  following filter expression to your request:
  - `"annotations.external_link"`

  If the annotation key or value contains special characters, you can escape
  them by surrounding the value with backticks. For example, to filter the
  results of your request to versions with the annotation key-value pair
  \[`external.link`:`https://example.com/my-version`\], append the following
  filter expression to your request:
  - ``"annotations.`external.link`:`https://example.com/my-version`"``

  You can also filter with annotations with a wildcard to
  match any number of characters before or after the value:
  - ``"annotations.*_link:`*example.com*`"``
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Version)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::ArtifactRegistry::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Version)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::ListVersionsRequest.new

# Call the list_versions method.
result = client.list_versions request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Version.
  p item
end
```

### #location_client

    def location_client() -> Google::Cloud::Location::Locations::Client

Get the associated client for mix-in of the Locations.
**Returns**

- (Google::Cloud::Location::Locations::Client)

### #logger

    def logger() -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #operations_client

    def operations_client() -> ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Operations

Get the associated client for long-running operations.
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Operations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ArtifactRegistry-Operations))

### #set_iam_policy

    def set_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policy
    def set_iam_policy(resource: nil, policy: nil, update_mask: nil) -> ::Google::Iam::V1::Policy

Updates the IAM policy for a given resource.
**Overloads**

    def set_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policy

Pass arguments to `set_iam_policy` via a request object, either of type [Iam::V1::SetIamPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-SetIamPolicyRequest "Google::Iam::V1::SetIamPolicyRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Iam::V1::SetIamPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-SetIamPolicyRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def set_iam_policy(resource: nil, policy: nil, update_mask: nil) -> ::Google::Iam::V1::Policy

Pass arguments to `set_iam_policy` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **resource** (::String) --- REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
- **policy** ([::Google::Iam::V1::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-Policy), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-FieldMask), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used:


  `paths: "bindings, etag"`
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Iam::V1::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-Policy))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Iam::V1::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-Policy))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Iam::V1::SetIamPolicyRequest.new

# Call the set_iam_policy method.
result = client.set_iam_policy request

# The returned object is of type Google::Iam::V1::Policy.
p result
```

### #test_iam_permissions

    def test_iam_permissions(request, options = nil) -> ::Google::Iam::V1::TestIamPermissionsResponse
    def test_iam_permissions(resource: nil, permissions: nil) -> ::Google::Iam::V1::TestIamPermissionsResponse

Tests if the caller has a list of permissions on a resource.
**Overloads**

    def test_iam_permissions(request, options = nil) -> ::Google::Iam::V1::TestIamPermissionsResponse

Pass arguments to `test_iam_permissions` via a request object, either of type [Iam::V1::TestIamPermissionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-TestIamPermissionsRequest "Google::Iam::V1::TestIamPermissionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Iam::V1::TestIamPermissionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-TestIamPermissionsRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def test_iam_permissions(resource: nil, permissions: nil) -> ::Google::Iam::V1::TestIamPermissionsResponse

Pass arguments to `test_iam_permissions` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **resource** (::String) --- REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
- **permissions** (::Array\<::String\>) --- The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Iam::V1::TestIamPermissionsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-TestIamPermissionsResponse))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Iam::V1::TestIamPermissionsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Iam-V1-TestIamPermissionsResponse))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Iam::V1::TestIamPermissionsRequest.new

# Call the test_iam_permissions method.
result = client.test_iam_permissions request

# The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
p result
```

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_file

    def update_file(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::File
    def update_file(file: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::File

Updates a file.
**Overloads**

    def update_file(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::File

Pass arguments to `update_file` via a request object, either of type [UpdateFileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateFileRequest "Google::Cloud::ArtifactRegistry::V1::UpdateFileRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::UpdateFileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateFileRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_file(file: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::File

Pass arguments to `update_file` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **file** ([::Google::Cloud::ArtifactRegistry::V1::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-File), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Required. The File that replaces the resource on the server.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-FieldMask), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-File))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-File))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::UpdateFileRequest.new

# Call the update_file method.
result = client.update_file request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::File.
p result
```

### #update_package

    def update_package(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Package
    def update_package(package: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Package

Updates a package.
**Overloads**

    def update_package(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Package

Pass arguments to `update_package` via a request object, either of type [UpdatePackageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdatePackageRequest "Google::Cloud::ArtifactRegistry::V1::UpdatePackageRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::UpdatePackageRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdatePackageRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_package(package: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Package

Pass arguments to `update_package` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **package** ([::Google::Cloud::ArtifactRegistry::V1::Package](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Package), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The package that replaces the resource on the server.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-FieldMask), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Package](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Package))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Package](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Package))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::UpdatePackageRequest.new

# Call the update_package method.
result = client.update_package request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Package.
p result
```

### #update_project_settings

    def update_project_settings(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings
    def update_project_settings(project_settings: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings

Updates the Settings for the Project.
**Overloads**

    def update_project_settings(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings

Pass arguments to `update_project_settings` via a request object, either of type [UpdateProjectSettingsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateProjectSettingsRequest "Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateProjectSettingsRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_project_settings(project_settings: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings

Pass arguments to `update_project_settings` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **project_settings** ([::Google::Cloud::ArtifactRegistry::V1::ProjectSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ProjectSettings), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The project settings.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-FieldMask), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Field mask to support partial updates.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::ProjectSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ProjectSettings))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::ProjectSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-ProjectSettings))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest.new

# Call the update_project_settings method.
result = client.update_project_settings request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::ProjectSettings.
p result
```

### #update_repository

    def update_repository(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Repository
    def update_repository(repository: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Repository

Updates a repository.
**Overloads**

    def update_repository(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Repository

Pass arguments to `update_repository` via a request object, either of type [UpdateRepositoryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateRepositoryRequest "Google::Cloud::ArtifactRegistry::V1::UpdateRepositoryRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::UpdateRepositoryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateRepositoryRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_repository(repository: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Repository

Pass arguments to `update_repository` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **repository** ([::Google::Cloud::ArtifactRegistry::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The repository that replaces the resource on the server.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-FieldMask), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::UpdateRepositoryRequest.new

# Call the update_repository method.
result = client.update_repository request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Repository.
p result
```

### #update_rule

    def update_rule(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule
    def update_rule(rule: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule

Updates a rule.
**Overloads**

    def update_rule(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule

Pass arguments to `update_rule` via a request object, either of type [UpdateRuleRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateRuleRequest "Google::Cloud::ArtifactRegistry::V1::UpdateRuleRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::UpdateRuleRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateRuleRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_rule(rule: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Rule

Pass arguments to `update_rule` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **rule** ([::Google::Cloud::ArtifactRegistry::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Rule), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The rule that replaces the resource on the server.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-FieldMask), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Rule))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Rule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Rule))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::UpdateRuleRequest.new

# Call the update_rule method.
result = client.update_rule request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Rule.
p result
```

### #update_tag

    def update_tag(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag
    def update_tag(tag: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Updates a tag.
**Overloads**

    def update_tag(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Pass arguments to `update_tag` via a request object, either of type [UpdateTagRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateTagRequest "Google::Cloud::ArtifactRegistry::V1::UpdateTagRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::UpdateTagRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateTagRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_tag(tag: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Pass arguments to `update_tag` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **tag** ([::Google::Cloud::ArtifactRegistry::V1::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Tag), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The tag that replaces the resource on the server.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-FieldMask), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Tag))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Tag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Tag))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::UpdateTagRequest.new

# Call the update_tag method.
result = client.update_tag request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
p result
```

### #update_version

    def update_version(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Version
    def update_version(version: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Version

Updates a version.
**Overloads**

    def update_version(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::Version

Pass arguments to `update_version` via a request object, either of type [UpdateVersionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateVersionRequest "Google::Cloud::ArtifactRegistry::V1::UpdateVersionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::UpdateVersionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateVersionRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_version(version: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::Version

Pass arguments to `update_version` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **version** ([::Google::Cloud::ArtifactRegistry::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Version), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Required. The Version that replaces the resource on the server.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-FieldMask), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Version))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Version))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::UpdateVersionRequest.new

# Call the update_version method.
result = client.update_version request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::Version.
p result
```

### #update_vpcsc_config

    def update_vpcsc_config(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig
    def update_vpcsc_config(vpcsc_config: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig

Updates the VPCSC Config for the Project.
**Overloads**

    def update_vpcsc_config(request, options = nil) -> ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig

Pass arguments to `update_vpcsc_config` via a request object, either of type [UpdateVPCSCConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateVPCSCConfigRequest "Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-UpdateVPCSCConfigRequest), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_vpcsc_config(vpcsc_config: nil, update_mask: nil) -> ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig

Pass arguments to `update_vpcsc_config` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **vpcsc_config** ([::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-VPCSCConfig), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- The project config.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-FieldMask), [::Hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Hash)) --- Field mask to support partial updates.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-VPCSCConfig))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-VPCSCConfig))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/artifact_registry/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest.new

# Call the update_vpcsc_config method.
result = client.update_vpcsc_config request

# The returned object is of type Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.
p result
```