Artifact Registry v1 API - Class ArtifactRegistryClientImpl (2.5.0)

public sealed class ArtifactRegistryClientImpl : ArtifactRegistryClient

Reference documentation and code samples for the Artifact Registry v1 API class ArtifactRegistryClientImpl.

ArtifactRegistry client wrapper implementation, for convenient use.

Inheritance

object > ArtifactRegistryClient > ArtifactRegistryClientImpl

Namespace

Google.Cloud.ArtifactRegistry.V1

Assembly

Google.Cloud.ArtifactRegistry.V1.dll

Remarks

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.

Constructors

ArtifactRegistryClientImpl(ArtifactRegistryClient, ArtifactRegistrySettings, ILogger)

public ArtifactRegistryClientImpl(ArtifactRegistry.ArtifactRegistryClient grpcClient, ArtifactRegistrySettings settings, ILogger logger)

Constructs a client wrapper for the ArtifactRegistry service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientArtifactRegistryArtifactRegistryClient

The underlying gRPC client.

settingsArtifactRegistrySettings

The base ArtifactRegistrySettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

BatchDeleteVersionsOperationsClient

public override OperationsClient BatchDeleteVersionsOperationsClient { get; }

The long-running operations client for BatchDeleteVersions.

Property Value
TypeDescription
OperationsClient
Overrides

CreateRepositoryOperationsClient

public override OperationsClient CreateRepositoryOperationsClient { get; }

The long-running operations client for CreateRepository.

Property Value
TypeDescription
OperationsClient
Overrides

DeletePackageOperationsClient

public override OperationsClient DeletePackageOperationsClient { get; }

The long-running operations client for DeletePackage.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteRepositoryOperationsClient

public override OperationsClient DeleteRepositoryOperationsClient { get; }

The long-running operations client for DeleteRepository.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteVersionOperationsClient

public override OperationsClient DeleteVersionOperationsClient { get; }

The long-running operations client for DeleteVersion.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override ArtifactRegistry.ArtifactRegistryClient GrpcClient { get; }

The underlying gRPC ArtifactRegistry client

Property Value
TypeDescription
ArtifactRegistryArtifactRegistryClient
Overrides

ImportAptArtifactsOperationsClient

public override OperationsClient ImportAptArtifactsOperationsClient { get; }

The long-running operations client for ImportAptArtifacts.

Property Value
TypeDescription
OperationsClient
Overrides

ImportYumArtifactsOperationsClient

public override OperationsClient ImportYumArtifactsOperationsClient { get; }

The long-running operations client for ImportYumArtifacts.

Property Value
TypeDescription
OperationsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

Methods

BatchDeleteVersions(BatchDeleteVersionsRequest, CallSettings)

public override Operation<Empty, BatchDeleteVersionsMetadata> BatchDeleteVersions(BatchDeleteVersionsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestBatchDeleteVersionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyBatchDeleteVersionsMetadata

The RPC response.

Overrides

BatchDeleteVersionsAsync(BatchDeleteVersionsRequest, CallSettings)

public override Task<Operation<Empty, BatchDeleteVersionsMetadata>> BatchDeleteVersionsAsync(BatchDeleteVersionsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestBatchDeleteVersionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyBatchDeleteVersionsMetadata

A Task containing the RPC response.

Overrides

CreateRepository(CreateRepositoryRequest, CallSettings)

public override Operation<Repository, OperationMetadata> CreateRepository(CreateRepositoryRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestCreateRepositoryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationRepositoryOperationMetadata

The RPC response.

Overrides

CreateRepositoryAsync(CreateRepositoryRequest, CallSettings)

public override Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(CreateRepositoryRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestCreateRepositoryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationRepositoryOperationMetadata

A Task containing the RPC response.

Overrides

CreateTag(CreateTagRequest, CallSettings)

public override Tag CreateTag(CreateTagRequest request, CallSettings callSettings = null)

Creates a tag.

Parameters
NameDescription
requestCreateTagRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Tag

The RPC response.

Overrides

CreateTagAsync(CreateTagRequest, CallSettings)

public override Task<Tag> CreateTagAsync(CreateTagRequest request, CallSettings callSettings = null)

Creates a tag.

Parameters
NameDescription
requestCreateTagRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTag

A Task containing the RPC response.

Overrides

DeletePackage(DeletePackageRequest, CallSettings)

public override Operation<Empty, OperationMetadata> DeletePackage(DeletePackageRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeletePackageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeletePackageAsync(DeletePackageRequest, CallSettings)

public override Task<Operation<Empty, OperationMetadata>> DeletePackageAsync(DeletePackageRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeletePackageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides

DeleteRepository(DeleteRepositoryRequest, CallSettings)

public override Operation<Empty, OperationMetadata> DeleteRepository(DeleteRepositoryRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestDeleteRepositoryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeleteRepositoryAsync(DeleteRepositoryRequest, CallSettings)

public override Task<Operation<Empty, OperationMetadata>> DeleteRepositoryAsync(DeleteRepositoryRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestDeleteRepositoryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides

DeleteTag(DeleteTagRequest, CallSettings)

public override void DeleteTag(DeleteTagRequest request, CallSettings callSettings = null)

Deletes a tag.

Parameters
NameDescription
requestDeleteTagRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteTagAsync(DeleteTagRequest, CallSettings)

public override Task DeleteTagAsync(DeleteTagRequest request, CallSettings callSettings = null)

Deletes a tag.

Parameters
NameDescription
requestDeleteTagRequest

The request object containing all of the parameters for the API call.