Class protos.google.devtools.artifactregistry.v1beta2.ArtifactRegistry

Represents an ArtifactRegistry

Inheritance

$protobuf.rpc.Service > protos.google.devtools.artifactregistry.v1beta2.ArtifactRegistry

Package

@google-cloud/artifact-registry

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new ArtifactRegistry service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ArtifactRegistry;

Creates new ArtifactRegistry service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
ArtifactRegistry

RPC service. Useful where requests and/or responses are streamed.

createRepository(request, callback)

public createRepository(request: google.devtools.artifactregistry.v1beta2.ICreateRepositoryRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateRepositoryCallback): void;

Calls CreateRepository.

Parameters
NameDescription
request ICreateRepositoryRequest

CreateRepositoryRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateRepositoryCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

createRepository(request)

public createRepository(request: google.devtools.artifactregistry.v1beta2.ICreateRepositoryRequest): Promise<google.longrunning.Operation>;

Calls CreateRepository.

Parameter
NameDescription
request ICreateRepositoryRequest

CreateRepositoryRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

createTag(request, callback)

public createTag(request: google.devtools.artifactregistry.v1beta2.ICreateTagRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateTagCallback): void;

Calls CreateTag.

Parameters
NameDescription
request ICreateTagRequest

CreateTagRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateTagCallback

Node-style callback called with the error, if any, and Tag

Returns
TypeDescription
void

createTag(request)

public createTag(request: google.devtools.artifactregistry.v1beta2.ICreateTagRequest): Promise<google.devtools.artifactregistry.v1beta2.Tag>;

Calls CreateTag.

Parameter
NameDescription
request ICreateTagRequest

CreateTagRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.Tag>

Promise

deletePackage(request, callback)

public deletePackage(request: google.devtools.artifactregistry.v1beta2.IDeletePackageRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeletePackageCallback): void;

Calls DeletePackage.

Parameters
NameDescription
request IDeletePackageRequest

DeletePackageRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeletePackageCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deletePackage(request)

public deletePackage(request: google.devtools.artifactregistry.v1beta2.IDeletePackageRequest): Promise<google.longrunning.Operation>;

Calls DeletePackage.

Parameter
NameDescription
request IDeletePackageRequest

DeletePackageRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteRepository(request, callback)

public deleteRepository(request: google.devtools.artifactregistry.v1beta2.IDeleteRepositoryRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteRepositoryCallback): void;

Calls DeleteRepository.

Parameters
NameDescription
request IDeleteRepositoryRequest

DeleteRepositoryRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteRepositoryCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deleteRepository(request)

public deleteRepository(request: google.devtools.artifactregistry.v1beta2.IDeleteRepositoryRequest): Promise<google.longrunning.Operation>;

Calls DeleteRepository.

Parameter
NameDescription
request IDeleteRepositoryRequest

DeleteRepositoryRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteTag(request, callback)

public deleteTag(request: google.devtools.artifactregistry.v1beta2.IDeleteTagRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteTagCallback): void;

Calls DeleteTag.

Parameters
NameDescription
request IDeleteTagRequest

DeleteTagRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteTagCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteTag(request)

public deleteTag(request: google.devtools.artifactregistry.v1beta2.IDeleteTagRequest): Promise<google.protobuf.Empty>;

Calls DeleteTag.

Parameter
NameDescription
request IDeleteTagRequest

DeleteTagRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteVersion(request, callback)

public deleteVersion(request: google.devtools.artifactregistry.v1beta2.IDeleteVersionRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteVersionCallback): void;

Calls DeleteVersion.

Parameters
NameDescription
request IDeleteVersionRequest

DeleteVersionRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteVersionCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deleteVersion(request)

public deleteVersion(request: google.devtools.artifactregistry.v1beta2.IDeleteVersionRequest): Promise<google.longrunning.Operation>;

Calls DeleteVersion.

Parameter
NameDescription
request IDeleteVersionRequest

DeleteVersionRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getFile(request, callback)

public getFile(request: google.devtools.artifactregistry.v1beta2.IGetFileRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetFileCallback): void;

Calls GetFile.

Parameters
NameDescription
request IGetFileRequest

GetFileRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetFileCallback

Node-style callback called with the error, if any, and File

Returns
TypeDescription
void

getFile(request)

public getFile(request: google.devtools.artifactregistry.v1beta2.IGetFileRequest): Promise<google.devtools.artifactregistry.v1beta2.File>;

Calls GetFile.

Parameter
NameDescription
request IGetFileRequest

GetFileRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.File>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

getPackage(request, callback)

public getPackage(request: google.devtools.artifactregistry.v1beta2.IGetPackageRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetPackageCallback): void;

Calls GetPackage.

Parameters
NameDescription
request google.devtools.artifactregistry.v1beta2.IGetPackageRequest

GetPackageRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetPackageCallback

Node-style callback called with the error, if any, and Package

Returns
TypeDescription
void

getPackage(request)

public getPackage(request: google.devtools.artifactregistry.v1beta2.IGetPackageRequest): Promise<google.devtools.artifactregistry.v1beta2.Package>;

Calls GetPackage.

Parameter
NameDescription
request google.devtools.artifactregistry.v1beta2.IGetPackageRequest

GetPackageRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.Package>

Promise

getRepository(request, callback)

public getRepository(request: google.devtools.artifactregistry.v1beta2.IGetRepositoryRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetRepositoryCallback): void;

Calls GetRepository.

Parameters
NameDescription
request IGetRepositoryRequest

GetRepositoryRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetRepositoryCallback

Node-style callback called with the error, if any, and Repository

Returns
TypeDescription
void

getRepository(request)

public getRepository(request: google.devtools.artifactregistry.v1beta2.IGetRepositoryRequest): Promise<google.devtools.artifactregistry.v1beta2.Repository>;

Calls GetRepository.

Parameter
NameDescription
request IGetRepositoryRequest

GetRepositoryRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.Repository>

Promise

getTag(request, callback)

public getTag(request: google.devtools.artifactregistry.v1beta2.IGetTagRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetTagCallback): void;

Calls GetTag.

Parameters
NameDescription
request IGetTagRequest

GetTagRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetTagCallback

Node-style callback called with the error, if any, and Tag

Returns
TypeDescription
void

getTag(request)

public getTag(request: google.devtools.artifactregistry.v1beta2.IGetTagRequest): Promise<google.devtools.artifactregistry.v1beta2.Tag>;

Calls GetTag.

Parameter
NameDescription
request IGetTagRequest

GetTagRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.Tag>

Promise

getVersion(request, callback)

public getVersion(request: google.devtools.artifactregistry.v1beta2.IGetVersionRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetVersionCallback): void;

Calls GetVersion.

Parameters
NameDescription
request IGetVersionRequest

GetVersionRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetVersionCallback

Node-style callback called with the error, if any, and Version

Returns
TypeDescription
void

getVersion(request)

public getVersion(request: google.devtools.artifactregistry.v1beta2.IGetVersionRequest): Promise<google.devtools.artifactregistry.v1beta2.Version>;

Calls GetVersion.

Parameter
NameDescription
request IGetVersionRequest

GetVersionRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.Version>

Promise

listFiles(request, callback)

public listFiles(request: google.devtools.artifactregistry.v1beta2.IListFilesRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListFilesCallback): void;

Calls ListFiles.

Parameters
NameDescription
request IListFilesRequest

ListFilesRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListFilesCallback

Node-style callback called with the error, if any, and ListFilesResponse

Returns
TypeDescription
void

listFiles(request)

public listFiles(request: google.devtools.artifactregistry.v1beta2.IListFilesRequest): Promise<google.devtools.artifactregistry.v1beta2.ListFilesResponse>;

Calls ListFiles.

Parameter
NameDescription
request IListFilesRequest

ListFilesRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.ListFilesResponse>

Promise

listPackages(request, callback)

public listPackages(request: google.devtools.artifactregistry.v1beta2.IListPackagesRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListPackagesCallback): void;

Calls ListPackages.

Parameters
NameDescription
request IListPackagesRequest

ListPackagesRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListPackagesCallback

Node-style callback called with the error, if any, and ListPackagesResponse

Returns
TypeDescription
void

listPackages(request)

public listPackages(request: google.devtools.artifactregistry.v1beta2.IListPackagesRequest): Promise<google.devtools.artifactregistry.v1beta2.ListPackagesResponse>;

Calls ListPackages.

Parameter
NameDescription
request IListPackagesRequest

ListPackagesRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.ListPackagesResponse>

Promise

listRepositories(request, callback)

public listRepositories(request: google.devtools.artifactregistry.v1beta2.IListRepositoriesRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListRepositoriesCallback): void;

Calls ListRepositories.

Parameters
NameDescription
request IListRepositoriesRequest

ListRepositoriesRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListRepositoriesCallback

Node-style callback called with the error, if any, and ListRepositoriesResponse

Returns
TypeDescription
void

listRepositories(request)

public listRepositories(request: google.devtools.artifactregistry.v1beta2.IListRepositoriesRequest): Promise<google.devtools.artifactregistry.v1beta2.ListRepositoriesResponse>;

Calls ListRepositories.

Parameter
NameDescription
request IListRepositoriesRequest

ListRepositoriesRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.ListRepositoriesResponse>

Promise

listTags(request, callback)

public listTags(request: google.devtools.artifactregistry.v1beta2.IListTagsRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListTagsCallback): void;

Calls ListTags.

Parameters
NameDescription
request IListTagsRequest

ListTagsRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListTagsCallback

Node-style callback called with the error, if any, and ListTagsResponse

Returns
TypeDescription
void

listTags(request)

public listTags(request: google.devtools.artifactregistry.v1beta2.IListTagsRequest): Promise<google.devtools.artifactregistry.v1beta2.ListTagsResponse>;

Calls ListTags.

Parameter
NameDescription
request IListTagsRequest

ListTagsRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.ListTagsResponse>

Promise

listVersions(request, callback)

public listVersions(request: google.devtools.artifactregistry.v1beta2.IListVersionsRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListVersionsCallback): void;

Calls ListVersions.

Parameters
NameDescription
request IListVersionsRequest

ListVersionsRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListVersionsCallback

Node-style callback called with the error, if any, and ListVersionsResponse

Returns
TypeDescription
void

listVersions(request)

public listVersions(request: google.devtools.artifactregistry.v1beta2.IListVersionsRequest): Promise<google.devtools.artifactregistry.v1beta2.ListVersionsResponse>;

Calls ListVersions.

Parameter
NameDescription
request IListVersionsRequest

ListVersionsRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.ListVersionsResponse>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestIamPermissionsResponse

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.TestIamPermissionsResponse>

Promise

updateRepository(request, callback)

public updateRepository(request: google.devtools.artifactregistry.v1beta2.IUpdateRepositoryRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateRepositoryCallback): void;

Calls UpdateRepository.

Parameters
NameDescription
request IUpdateRepositoryRequest

UpdateRepositoryRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateRepositoryCallback

Node-style callback called with the error, if any, and Repository

Returns
TypeDescription
void

updateRepository(request)

public updateRepository(request: google.devtools.artifactregistry.v1beta2.IUpdateRepositoryRequest): Promise<google.devtools.artifactregistry.v1beta2.Repository>;

Calls UpdateRepository.

Parameter
NameDescription
request IUpdateRepositoryRequest

UpdateRepositoryRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.Repository>

Promise

updateTag(request, callback)

public updateTag(request: google.devtools.artifactregistry.v1beta2.IUpdateTagRequest, callback: google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateTagCallback): void;

Calls UpdateTag.

Parameters
NameDescription
request IUpdateTagRequest

UpdateTagRequest message or plain object

callback google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateTagCallback

Node-style callback called with the error, if any, and Tag

Returns
TypeDescription
void

updateTag(request)

public updateTag(request: google.devtools.artifactregistry.v1beta2.IUpdateTagRequest): Promise<google.devtools.artifactregistry.v1beta2.Tag>;

Calls UpdateTag.

Parameter
NameDescription
request IUpdateTagRequest

UpdateTagRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.artifactregistry.v1beta2.Tag>

Promise