Class ArtifactRegistry.ArtifactRegistryBase

[BindServiceMethod(typeof(ArtifactRegistry), "BindService")]
public abstract class ArtifactRegistryBase

Base class for server-side implementations of ArtifactRegistry

Inheritance

Object > ArtifactRegistry.ArtifactRegistryBase

Namespace

Google.Cloud.ArtifactRegistry.V1Beta2

Assembly

Google.Cloud.ArtifactRegistry.V1Beta2.dll

Methods

CreateRepository(CreateRepositoryRequest, ServerCallContext)

public virtual Task<Operation> CreateRepository(CreateRepositoryRequest request, ServerCallContext context)

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

Parameters
TypeNameDescription
CreateRepositoryRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateTag(CreateTagRequest, ServerCallContext)

public virtual Task<Tag> CreateTag(CreateTagRequest request, ServerCallContext context)

Creates a tag.

Parameters
TypeNameDescription
CreateTagRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Tag>

The response to send back to the client (wrapped by a task).

DeletePackage(DeletePackageRequest, ServerCallContext)

public virtual Task<Operation> DeletePackage(DeletePackageRequest request, ServerCallContext context)

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

Parameters
TypeNameDescription
DeletePackageRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteRepository(DeleteRepositoryRequest, ServerCallContext)

public virtual Task<Operation> DeleteRepository(DeleteRepositoryRequest request, ServerCallContext context)

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
TypeNameDescription
DeleteRepositoryRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteTag(DeleteTagRequest, ServerCallContext)

public virtual Task<Empty> DeleteTag(DeleteTagRequest request, ServerCallContext context)

Deletes a tag.

Parameters
TypeNameDescription
DeleteTagRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteVersion(DeleteVersionRequest, ServerCallContext)

public virtual Task<Operation> DeleteVersion(DeleteVersionRequest request, ServerCallContext context)

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

Parameters
TypeNameDescription
DeleteVersionRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

GetFile(GetFileRequest, ServerCallContext)

public virtual Task<File> GetFile(GetFileRequest request, ServerCallContext context)

Gets a file.

Parameters
TypeNameDescription
GetFileRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<File>

The response to send back to the client (wrapped by a task).

GetIamPolicy(GetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyRequest request, ServerCallContext context)

Gets the IAM policy for a given resource.

Parameters
TypeNameDescription
GetIamPolicyRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Policy>

The response to send back to the client (wrapped by a task).

GetPackage(GetPackageRequest, ServerCallContext)

public virtual Task<Package> GetPackage(GetPackageRequest request, ServerCallContext context)

Gets a package.

Parameters
TypeNameDescription
GetPackageRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Package>

The response to send back to the client (wrapped by a task).

GetRepository(GetRepositoryRequest, ServerCallContext)

public virtual Task<Repository> GetRepository(GetRepositoryRequest request, ServerCallContext context)

Gets a repository.

Parameters
TypeNameDescription
GetRepositoryRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Repository>

The response to send back to the client (wrapped by a task).

GetTag(GetTagRequest, ServerCallContext)

public virtual Task<Tag> GetTag(GetTagRequest request, ServerCallContext context)

Gets a tag.

Parameters
TypeNameDescription
GetTagRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Tag>

The response to send back to the client (wrapped by a task).

GetVersion(GetVersionRequest, ServerCallContext)

public virtual Task<Version> GetVersion(GetVersionRequest request, ServerCallContext context)

Gets a version

Parameters
TypeNameDescription
GetVersionRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Version>

The response to send back to the client (wrapped by a task).

ListFiles(ListFilesRequest, ServerCallContext)

public virtual Task<ListFilesResponse> ListFiles(ListFilesRequest request, ServerCallContext context)

Lists files.

Parameters
TypeNameDescription
ListFilesRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListFilesResponse>

The response to send back to the client (wrapped by a task).

ListPackages(ListPackagesRequest, ServerCallContext)

public virtual Task<ListPackagesResponse> ListPackages(ListPackagesRequest request, ServerCallContext context)

Lists packages.

Parameters
TypeNameDescription
ListPackagesRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListPackagesResponse>

The response to send back to the client (wrapped by a task).

ListRepositories(ListRepositoriesRequest, ServerCallContext)

public virtual Task<ListRepositoriesResponse> ListRepositories(ListRepositoriesRequest request, ServerCallContext context)

Lists repositories.

Parameters
TypeNameDescription
ListRepositoriesRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListRepositoriesResponse>

The response to send back to the client (wrapped by a task).

ListTags(ListTagsRequest, ServerCallContext)

public virtual Task<ListTagsResponse> ListTags(ListTagsRequest request, ServerCallContext context)

Lists tags.

Parameters
TypeNameDescription
ListTagsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListTagsResponse>

The response to send back to the client (wrapped by a task).

ListVersions(ListVersionsRequest, ServerCallContext)

public virtual Task<ListVersionsResponse> ListVersions(ListVersionsRequest request, ServerCallContext context)

Lists versions.

Parameters
TypeNameDescription
ListVersionsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListVersionsResponse>

The response to send back to the client (wrapped by a task).

SetIamPolicy(SetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyRequest request, ServerCallContext context)

Updates the IAM policy for a given resource.

Parameters
TypeNameDescription
SetIamPolicyRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Policy>

The response to send back to the client (wrapped by a task).

TestIamPermissions(TestIamPermissionsRequest, ServerCallContext)

public virtual Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, ServerCallContext context)

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

Parameters
TypeNameDescription
TestIamPermissionsRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<TestIamPermissionsResponse>

The response to send back to the client (wrapped by a task).

UpdateRepository(UpdateRepositoryRequest, ServerCallContext)

public virtual Task<Repository> UpdateRepository(UpdateRepositoryRequest request, ServerCallContext context)

Updates a repository.

Parameters
TypeNameDescription
UpdateRepositoryRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Repository>

The response to send back to the client (wrapped by a task).

UpdateTag(UpdateTagRequest, ServerCallContext)

public virtual Task<Tag> UpdateTag(UpdateTagRequest request, ServerCallContext context)

Updates a tag.

Parameters
TypeNameDescription
UpdateTagRequestrequest

The request received from the client.

ServerCallContextcontext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Tag>

The response to send back to the client (wrapped by a task).