Class v1.ArtifactRegistryClient (3.1.1)

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. v1

Package

@google-cloud/artifact-registry

Constructors

(constructor)(opts, gaxInstance)

constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);

Construct an instance of ArtifactRegistryClient.

Parameters
NameDescription
opts ClientOptions
gaxInstance typeof gax | typeof fallback

: loaded instance of google-gax. Useful if you need to avoid loading the default gRPC version and want to use the fallback HTTP implementation. Load only fallback version and pass it to the constructor: ``` const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC const client = new ArtifactRegistryClient({fallback: true}, gax); ```

Properties

apiEndpoint

static get apiEndpoint(): string;

The DNS address for this API service - same as servicePath(), exists for compatibility reasons.

artifactRegistryStub

artifactRegistryStub?: Promise<{
        [name: string]: Function;
    }>;

auth

auth: gax.GoogleAuth;

descriptors

descriptors: Descriptors;

innerApiCalls

innerApiCalls: {
        [name: string]: Function;
    };

locationsClient

locationsClient: LocationsClient;

operationsClient

operationsClient: gax.OperationsClient;

pathTemplates

pathTemplates: {
        [name: string]: gax.PathTemplate;
    };

port

static get port(): number;

The port for this API service.

scopes

static get scopes(): string[];

The scopes needed to make gRPC calls for every method defined in this service.

servicePath

static get servicePath(): string;

The DNS address for this API service.

warn

warn: (code: string, message: string, warnType?: string) => void;

Methods

aptArtifactPath(project, location, repository, aptArtifact)

aptArtifactPath(project: string, location: string, repository: string, aptArtifact: string): string;

Return a fully-qualified aptArtifact resource name string.

Parameters
NameDescription
project string
location string
repository string
aptArtifact string
Returns
TypeDescription
string

{string} Resource name string.

batchDeleteVersions(request, options)

batchDeleteVersions(request?: protos.google.devtools.artifactregistry.v1.IBatchDeleteVersionsRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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

Parameters
NameDescription
request IBatchDeleteVersionsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The name of the repository holding all requested versions.
   */
  // const parent = 'abc123'
  /**
   *  Required. The names of the versions to delete.
   *  A maximum of 10000 versions can be deleted in a batch.
   */
  // const names = ['abc','def']
  /**
   *  If true, the request is performed without deleting data, following AIP-163.
   */
  // const validateOnly = true

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callBatchDeleteVersions() {
    // Construct request
    const request = {
      names,
    };

    // Run request
    const [operation] = await artifactregistryClient.batchDeleteVersions(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callBatchDeleteVersions();

batchDeleteVersions(request, options, callback)

batchDeleteVersions(request: protos.google.devtools.artifactregistry.v1.IBatchDeleteVersionsRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IBatchDeleteVersionsRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

batchDeleteVersions(request, callback)

batchDeleteVersions(request: protos.google.devtools.artifactregistry.v1.IBatchDeleteVersionsRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IBatchDeleteVersionsRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

cancelOperation(request, options, callback)

cancelOperation(request: protos.google.longrunning.CancelOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an value with a of 1, corresponding to Code.CANCELLED.

Parameters
NameDescription
request CancelOperationRequest

The request object that will be sent.

options CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details.

callback Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>

The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call.

Returns
TypeDescription
Promise<protos.google.protobuf.Empty>
Example

const client = longrunning.operationsClient();
await client.cancelOperation({name: ''});

checkBatchDeleteVersionsProgress(name)

checkBatchDeleteVersionsProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata>>;

Check the status of the long running operation returned by batchDeleteVersions().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.protobuf.Empty, protos.google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The name of the repository holding all requested versions.
   */
  // const parent = 'abc123'
  /**
   *  Required. The names of the versions to delete.
   *  A maximum of 10000 versions can be deleted in a batch.
   */
  // const names = ['abc','def']
  /**
   *  If true, the request is performed without deleting data, following AIP-163.
   */
  // const validateOnly = true

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callBatchDeleteVersions() {
    // Construct request
    const request = {
      names,
    };

    // Run request
    const [operation] = await artifactregistryClient.batchDeleteVersions(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callBatchDeleteVersions();

checkCreateRepositoryProgress(name)

checkCreateRepositoryProgress(name: string): Promise<LROperation<protos.google.devtools.artifactregistry.v1.Repository, protos.google.devtools.artifactregistry.v1.OperationMetadata>>;

Check the status of the long running operation returned by createRepository().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.devtools.artifactregistry.v1.Repository, protos.google.devtools.artifactregistry.v1.OperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the parent resource where the repository will be
   *  created.
   */
  // const parent = 'abc123'
  /**
   *  Required. The repository id to use for this repository.
   */
  // const repositoryId = 'abc123'
  /**
   *  Required. The repository to be created.
   */
  // const repository = {}

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callCreateRepository() {
    // Construct request
    const request = {
      parent,
      repositoryId,
      repository,
    };

    // Run request
    const [operation] = await artifactregistryClient.createRepository(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateRepository();

checkDeletePackageProgress(name)

checkDeletePackageProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.devtools.artifactregistry.v1.OperationMetadata>>;

Check the status of the long running operation returned by deletePackage().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.protobuf.Empty, protos.google.devtools.artifactregistry.v1.OperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the package to delete.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callDeletePackage() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await artifactregistryClient.deletePackage(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeletePackage();

checkDeleteRepositoryProgress(name)

checkDeleteRepositoryProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.devtools.artifactregistry.v1.OperationMetadata>>;

Check the status of the long running operation returned by deleteRepository().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.protobuf.Empty, protos.google.devtools.artifactregistry.v1.OperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the repository to delete.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callDeleteRepository() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await artifactregistryClient.deleteRepository(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteRepository();

checkDeleteVersionProgress(name)

checkDeleteVersionProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.devtools.artifactregistry.v1.OperationMetadata>>;

Check the status of the long running operation returned by deleteVersion().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.protobuf.Empty, protos.google.devtools.artifactregistry.v1.OperationMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The name of the version to delete.
   */
  // const name = 'abc123'
  /**
   *  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.
   */
  // const force = true

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callDeleteVersion() {
    // Construct request
    const request = {
    };

    // Run request
    const [operation] = await artifactregistryClient.deleteVersion(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteVersion();

checkImportAptArtifactsProgress(name)

checkImportAptArtifactsProgress(name: string): Promise<LROperation<protos.google.devtools.artifactregistry.v1.ImportAptArtifactsResponse, protos.google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata>>;

Check the status of the long running operation returned by importAptArtifacts().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.devtools.artifactregistry.v1.ImportAptArtifactsResponse, protos.google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Google Cloud Storage location where input content is located.
   */
  // const gcsSource = {}
  /**
   *  The name of the parent resource where the artifacts will be imported.
   */
  // const parent = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callImportAptArtifacts() {
    // Construct request
    const request = {
    };

    // Run request
    const [operation] = await artifactregistryClient.importAptArtifacts(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callImportAptArtifacts();

checkImportYumArtifactsProgress(name)

checkImportYumArtifactsProgress(name: string): Promise<LROperation<protos.google.devtools.artifactregistry.v1.ImportYumArtifactsResponse, protos.google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata>>;

Check the status of the long running operation returned by importYumArtifacts().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.devtools.artifactregistry.v1.ImportYumArtifactsResponse, protos.google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Google Cloud Storage location where input content is located.
   */
  // const gcsSource = {}
  /**
   *  The name of the parent resource where the artifacts will be imported.
   */
  // const parent = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callImportYumArtifacts() {
    // Construct request
    const request = {
    };

    // Run request
    const [operation] = await artifactregistryClient.importYumArtifacts(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callImportYumArtifacts();

close()

close(): Promise<void>;

Terminate the gRPC channel and close the client.

The client will no longer be usable and all future behavior is undefined.

Returns
TypeDescription
Promise<void>

{Promise} A promise that resolves when the client is closed.

createRepository(request, options)

createRepository(request?: protos.google.devtools.artifactregistry.v1.ICreateRepositoryRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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

Parameters
NameDescription
request ICreateRepositoryRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ LROperation<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the parent resource where the repository will be
   *  created.
   */
  // const parent = 'abc123'
  /**
   *  Required. The repository id to use for this repository.
   */
  // const repositoryId = 'abc123'
  /**
   *  Required. The repository to be created.
   */
  // const repository = {}

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callCreateRepository() {
    // Construct request
    const request = {
      parent,
      repositoryId,
      repository,
    };

    // Run request
    const [operation] = await artifactregistryClient.createRepository(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateRepository();

createRepository(request, options, callback)

createRepository(request: protos.google.devtools.artifactregistry.v1.ICreateRepositoryRequest, options: CallOptions, callback: Callback<LROperation<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateRepositoryRequest
options CallOptions
callback Callback<LROperation<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createRepository(request, callback)

createRepository(request: protos.google.devtools.artifactregistry.v1.ICreateRepositoryRequest, callback: Callback<LROperation<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateRepositoryRequest
callback Callback<LROperation<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createTag(request, options)

createTag(request?: protos.google.devtools.artifactregistry.v1.ICreateTagRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.ITag,
        protos.google.devtools.artifactregistry.v1.ICreateTagRequest | undefined,
        {} | undefined
    ]>;

Creates a tag.

Parameters
NameDescription
request ICreateTagRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.ICreateTagRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Tag. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The name of the parent resource where the tag will be created.
   */
  // const parent = 'abc123'
  /**
   *  The tag id to use for this repository.
   */
  // const tagId = 'abc123'
  /**
   *  The tag to be created.
   */
  // const tag = {}

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callCreateTag() {
    // Construct request
    const request = {
    };

    // Run request
    const response = await artifactregistryClient.createTag(request);
    console.log(response);
  }

  callCreateTag();

createTag(request, options, callback)

createTag(request: protos.google.devtools.artifactregistry.v1.ICreateTagRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.ICreateTagRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateTagRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.ICreateTagRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createTag(request, callback)

createTag(request: protos.google.devtools.artifactregistry.v1.ICreateTagRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.ICreateTagRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateTagRequest
callback Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.ICreateTagRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteOperation(request, options, callback)

deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
NameDescription
request DeleteOperationRequest

The request object that will be sent.

options CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details.

callback Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>

The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call.

Returns
TypeDescription
Promise<protos.google.protobuf.Empty>
Example

const client = longrunning.operationsClient();
await client.deleteOperation({name: ''});

deletePackage(request, options)

deletePackage(request?: protos.google.devtools.artifactregistry.v1.IDeletePackageRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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

Parameters
NameDescription
request IDeletePackageRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the package to delete.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callDeletePackage() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await artifactregistryClient.deletePackage(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeletePackage();

deletePackage(request, options, callback)

deletePackage(request: protos.google.devtools.artifactregistry.v1.IDeletePackageRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeletePackageRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deletePackage(request, callback)

deletePackage(request: protos.google.devtools.artifactregistry.v1.IDeletePackageRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeletePackageRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteRepository(request, options)

deleteRepository(request?: protos.google.devtools.artifactregistry.v1.IDeleteRepositoryRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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
request IDeleteRepositoryRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the repository to delete.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callDeleteRepository() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await artifactregistryClient.deleteRepository(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteRepository();

deleteRepository(request, options, callback)

deleteRepository(request: protos.google.devtools.artifactregistry.v1.IDeleteRepositoryRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteRepositoryRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteRepository(request, callback)

deleteRepository(request: protos.google.devtools.artifactregistry.v1.IDeleteRepositoryRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteRepositoryRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteTag(request, options)

deleteTag(request?: protos.google.devtools.artifactregistry.v1.IDeleteTagRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        protos.google.devtools.artifactregistry.v1.IDeleteTagRequest | undefined,
        {} | undefined
    ]>;

Deletes a tag.

Parameters
NameDescription
request IDeleteTagRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IDeleteTagRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Empty. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The name of the tag to delete.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callDeleteTag() {
    // Construct request
    const request = {
    };

    // Run request
    const response = await artifactregistryClient.deleteTag(request);
    console.log(response);
  }

  callDeleteTag();

deleteTag(request, options, callback)

deleteTag(request: protos.google.devtools.artifactregistry.v1.IDeleteTagRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IDeleteTagRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteTagRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IDeleteTagRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteTag(request, callback)

deleteTag(request: protos.google.devtools.artifactregistry.v1.IDeleteTagRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IDeleteTagRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteTagRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IDeleteTagRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteVersion(request, options)

deleteVersion(request?: protos.google.devtools.artifactregistry.v1.IDeleteVersionRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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

Parameters
NameDescription
request IDeleteVersionRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The name of the version to delete.
   */
  // const name = 'abc123'
  /**
   *  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.
   */
  // const force = true

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callDeleteVersion() {
    // Construct request
    const request = {
    };

    // Run request
    const [operation] = await artifactregistryClient.deleteVersion(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteVersion();

deleteVersion(request, options, callback)

deleteVersion(request: protos.google.devtools.artifactregistry.v1.IDeleteVersionRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteVersionRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteVersion(request, callback)

deleteVersion(request: protos.google.devtools.artifactregistry.v1.IDeleteVersionRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteVersionRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.devtools.artifactregistry.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

dockerImagePath(project, location, repository, dockerImage)

dockerImagePath(project: string, location: string, repository: string, dockerImage: string): string;

Return a fully-qualified dockerImage resource name string.

Parameters
NameDescription
project string
location string
repository string
dockerImage string
Returns
TypeDescription
string

{string} Resource name string.

filePath(project, location, repository, file)

filePath(project: string, location: string, repository: string, file: string): string;

Return a fully-qualified file resource name string.

Parameters
NameDescription
project string
location string
repository string
file string
Returns
TypeDescription
string

{string} Resource name string.

getDockerImage(request, options)

getDockerImage(request?: protos.google.devtools.artifactregistry.v1.IGetDockerImageRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IDockerImage,
        (protos.google.devtools.artifactregistry.v1.IGetDockerImageRequest | undefined),
        {} | undefined
    ]>;

Gets a docker image.

Parameters
NameDescription
request IGetDockerImageRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IDockerImage, (protos.google.devtools.artifactregistry.v1.IGetDockerImageRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing DockerImage. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the docker images.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetDockerImage() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await artifactregistryClient.getDockerImage(request);
    console.log(response);
  }

  callGetDockerImage();

getDockerImage(request, options, callback)

getDockerImage(request: protos.google.devtools.artifactregistry.v1.IGetDockerImageRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IDockerImage, protos.google.devtools.artifactregistry.v1.IGetDockerImageRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetDockerImageRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IDockerImage, protos.google.devtools.artifactregistry.v1.IGetDockerImageRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getDockerImage(request, callback)

getDockerImage(request: protos.google.devtools.artifactregistry.v1.IGetDockerImageRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IDockerImage, protos.google.devtools.artifactregistry.v1.IGetDockerImageRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetDockerImageRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IDockerImage, protos.google.devtools.artifactregistry.v1.IGetDockerImageRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getFile(request, options)

getFile(request?: protos.google.devtools.artifactregistry.v1.IGetFileRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IFile,
        protos.google.devtools.artifactregistry.v1.IGetFileRequest | undefined,
        {} | undefined
    ]>;

Gets a file.

Parameters
NameDescription
request IGetFileRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IFile, protos.google.devtools.artifactregistry.v1.IGetFileRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing File. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the file to retrieve.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetFile() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await artifactregistryClient.getFile(request);
    console.log(response);
  }

  callGetFile();

getFile(request, options, callback)

getFile(request: protos.google.devtools.artifactregistry.v1.IGetFileRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IFile, protos.google.devtools.artifactregistry.v1.IGetFileRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetFileRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IFile, protos.google.devtools.artifactregistry.v1.IGetFileRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getFile(request, callback)

getFile(request: protos.google.devtools.artifactregistry.v1.IGetFileRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IFile, protos.google.devtools.artifactregistry.v1.IGetFileRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetFileRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IFile, protos.google.devtools.artifactregistry.v1.IGetFileRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getIamPolicy(request, options)

getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
        protos.google.iam.v1.IPolicy,
        protos.google.iam.v1.IGetIamPolicyRequest | undefined,
        {} | undefined
    ]>;

Gets the IAM policy for a given resource.

Parameters
NameDescription
request IGetIamPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Policy. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  REQUIRED: The resource for which the policy is being requested.
   *  See the operation documentation for the appropriate value for this field.
   */
  // const resource = 'abc123'
  /**
   *  OPTIONAL: A `GetPolicyOptions` object for specifying options to
   *  `GetIamPolicy`.
   */
  // const options = {}

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetIamPolicy() {
    // Construct request
    const request = {
      resource,
    };

    // Run request
    const response = await artifactregistryClient.getIamPolicy(request);
    console.log(response);
  }

  callGetIamPolicy();

getIamPolicy(request, options, callback)

getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetIamPolicyRequest
options CallOptions
callback Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getIamPolicy(request, callback)

getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetIamPolicyRequest
callback Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getLocation(request, options, callback)

getLocation(request: LocationProtos.google.cloud.location.IGetLocationRequest, options?: gax.CallOptions | Callback<LocationProtos.google.cloud.location.ILocation, LocationProtos.google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>, callback?: Callback<LocationProtos.google.cloud.location.ILocation, LocationProtos.google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>): Promise<LocationProtos.google.cloud.location.ILocation>;

Gets information about a location.

Parameters
NameDescription
request LocationProtos.google.cloud.location.IGetLocationRequest

The request object that will be sent.

options CallOptions | Callback<google.cloud.location.ILocation, google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>

Call options. See CallOptions for more details.

callback Callback<google.cloud.location.ILocation, google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
Promise<google.cloud.location.ILocation>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

const [response] = await client.getLocation(request);

getMavenArtifact(request, options)

getMavenArtifact(request?: protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IMavenArtifact,
        (protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest | undefined),
        {} | undefined
    ]>;

Gets a maven artifact.

Parameters
NameDescription
request IGetMavenArtifactRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IMavenArtifact, (protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing MavenArtifact. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the maven artifact.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetMavenArtifact() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await artifactregistryClient.getMavenArtifact(request);
    console.log(response);
  }

  callGetMavenArtifact();

getMavenArtifact(request, options, callback)

getMavenArtifact(request: protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IMavenArtifact, protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetMavenArtifactRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IMavenArtifact, protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getMavenArtifact(request, callback)

getMavenArtifact(request: protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IMavenArtifact, protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetMavenArtifactRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IMavenArtifact, protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getNpmPackage(request, options)

getNpmPackage(request?: protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.INpmPackage,
        (protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest | undefined),
        {} | undefined
    ]>;

Gets a npm package.

Parameters
NameDescription
request IGetNpmPackageRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.INpmPackage, (protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing NpmPackage. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the npm package.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetNpmPackage() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await artifactregistryClient.getNpmPackage(request);
    console.log(response);
  }

  callGetNpmPackage();

getNpmPackage(request, options, callback)

getNpmPackage(request: protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.INpmPackage, protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetNpmPackageRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.INpmPackage, protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getNpmPackage(request, callback)

getNpmPackage(request: protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.INpmPackage, protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetNpmPackageRequest
callback Callback<protos.google.devtools.artifactregistry.v1.INpmPackage, protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getOperation(request, options, callback)

getOperation(request: protos.google.longrunning.GetOperationRequest, options?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Parameters
NameDescription
request GetOperationRequest

The request object that will be sent.

options CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details.

callback Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>

The function which will be called with the result of the API call.

The second parameter to the callback is an object representing . {Promise} - The promise which resolves to an array. The first element of the array is an object representing . The promise has a method named "cancel" which cancels the ongoing API call.

Returns
TypeDescription
Promise<[protos.google.longrunning.Operation]>
Example

const client = longrunning.operationsClient();
const name = '';
const [response] = await client.getOperation({name});
// doThingsWith(response)

getPackage(request, options)

getPackage(request?: protos.google.devtools.artifactregistry.v1.IGetPackageRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IPackage,
        protos.google.devtools.artifactregistry.v1.IGetPackageRequest | undefined,
        {} | undefined
    ]>;

Gets a package.

Parameters
NameDescription
request IGetPackageRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IPackage, protos.google.devtools.artifactregistry.v1.IGetPackageRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Package. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the package to retrieve.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetPackage() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await artifactregistryClient.getPackage(request);
    console.log(response);
  }

  callGetPackage();

getPackage(request, options, callback)

getPackage(request: protos.google.devtools.artifactregistry.v1.IGetPackageRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IPackage, protos.google.devtools.artifactregistry.v1.IGetPackageRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetPackageRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IPackage, protos.google.devtools.artifactregistry.v1.IGetPackageRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getPackage(request, callback)

getPackage(request: protos.google.devtools.artifactregistry.v1.IGetPackageRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IPackage, protos.google.devtools.artifactregistry.v1.IGetPackageRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetPackageRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IPackage, protos.google.devtools.artifactregistry.v1.IGetPackageRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getProjectId()

getProjectId(): Promise<string>;
Returns
TypeDescription
Promise<string>

getProjectId(callback)

getProjectId(callback: Callback<string, undefined, undefined>): void;
Parameter
NameDescription
callback Callback<string, undefined, undefined>
Returns
TypeDescription
void

getProjectSettings(request, options)

getProjectSettings(request?: protos.google.devtools.artifactregistry.v1.IGetProjectSettingsRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IProjectSettings,
        (protos.google.devtools.artifactregistry.v1.IGetProjectSettingsRequest | undefined),
        {} | undefined
    ]>;

Retrieves the Settings for the Project.

Parameters
NameDescription
request IGetProjectSettingsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IProjectSettings, (protos.google.devtools.artifactregistry.v1.IGetProjectSettingsRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the projectSettings resource.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetProjectSettings() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await artifactregistryClient.getProjectSettings(request);
    console.log(response);
  }

  callGetProjectSettings();

getProjectSettings(request, options, callback)

getProjectSettings(request: protos.google.devtools.artifactregistry.v1.IGetProjectSettingsRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IProjectSettings, protos.google.devtools.artifactregistry.v1.IGetProjectSettingsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetProjectSettingsRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IProjectSettings, protos.google.devtools.artifactregistry.v1.IGetProjectSettingsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getProjectSettings(request, callback)

getProjectSettings(request: protos.google.devtools.artifactregistry.v1.IGetProjectSettingsRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IProjectSettings, protos.google.devtools.artifactregistry.v1.IGetProjectSettingsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetProjectSettingsRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IProjectSettings, protos.google.devtools.artifactregistry.v1.IGetProjectSettingsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getPythonPackage(request, options)

getPythonPackage(request?: protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IPythonPackage,
        (protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest | undefined),
        {} | undefined
    ]>;

Gets a python package.

Parameters
NameDescription
request IGetPythonPackageRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IPythonPackage, (protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing PythonPackage. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the python package.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetPythonPackage() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await artifactregistryClient.getPythonPackage(request);
    console.log(response);
  }

  callGetPythonPackage();

getPythonPackage(request, options, callback)

getPythonPackage(request: protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IPythonPackage, protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetPythonPackageRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IPythonPackage, protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getPythonPackage(request, callback)

getPythonPackage(request: protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IPythonPackage, protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetPythonPackageRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IPythonPackage, protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getRepository(request, options)

getRepository(request?: protos.google.devtools.artifactregistry.v1.IGetRepositoryRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IRepository,
        (protos.google.devtools.artifactregistry.v1.IGetRepositoryRequest | undefined),
        {} | undefined
    ]>;

Gets a repository.

Parameters
NameDescription
request IGetRepositoryRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IRepository, (protos.google.devtools.artifactregistry.v1.IGetRepositoryRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the repository to retrieve.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetRepository() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await artifactregistryClient.getRepository(request);
    console.log(response);
  }

  callGetRepository();

getRepository(request, options, callback)

getRepository(request: protos.google.devtools.artifactregistry.v1.IGetRepositoryRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IGetRepositoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetRepositoryRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IGetRepositoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getRepository(request, callback)

getRepository(request: protos.google.devtools.artifactregistry.v1.IGetRepositoryRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IGetRepositoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetRepositoryRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IGetRepositoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getTag(request, options)

getTag(request?: protos.google.devtools.artifactregistry.v1.IGetTagRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.ITag,
        protos.google.devtools.artifactregistry.v1.IGetTagRequest | undefined,
        {} | undefined
    ]>;

Gets a tag.

Parameters
NameDescription
request IGetTagRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.IGetTagRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Tag. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The name of the tag to retrieve.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetTag() {
    // Construct request
    const request = {
    };

    // Run request
    const response = await artifactregistryClient.getTag(request);
    console.log(response);
  }

  callGetTag();

getTag(request, options, callback)

getTag(request: protos.google.devtools.artifactregistry.v1.IGetTagRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.IGetTagRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetTagRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.IGetTagRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getTag(request, callback)

getTag(request: protos.google.devtools.artifactregistry.v1.IGetTagRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.IGetTagRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetTagRequest
callback Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.IGetTagRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getVersion(request, options)

getVersion(request?: protos.google.devtools.artifactregistry.v1.IGetVersionRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IVersion,
        protos.google.devtools.artifactregistry.v1.IGetVersionRequest | undefined,
        {} | undefined
    ]>;

Gets a version

Parameters
NameDescription
request IGetVersionRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IVersion, protos.google.devtools.artifactregistry.v1.IGetVersionRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Version. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The name of the version to retrieve.
   */
  // const name = 'abc123'
  /**
   *  The view that should be returned in the response.
   */
  // const view = {}

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetVersion() {
    // Construct request
    const request = {
    };

    // Run request
    const response = await artifactregistryClient.getVersion(request);
    console.log(response);
  }

  callGetVersion();

getVersion(request, options, callback)

getVersion(request: protos.google.devtools.artifactregistry.v1.IGetVersionRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IVersion, protos.google.devtools.artifactregistry.v1.IGetVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetVersionRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IVersion, protos.google.devtools.artifactregistry.v1.IGetVersionRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getVersion(request, callback)

getVersion(request: protos.google.devtools.artifactregistry.v1.IGetVersionRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IVersion, protos.google.devtools.artifactregistry.v1.IGetVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetVersionRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IVersion, protos.google.devtools.artifactregistry.v1.IGetVersionRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getVPCSCConfig(request, options)

getVPCSCConfig(request?: protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IVPCSCConfig,
        (protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest | undefined),
        {} | undefined
    ]>;

Retrieves the VPCSC Config for the Project.

Parameters
NameDescription
request IGetVPCSCConfigRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IVPCSCConfig, (protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the VPCSCConfig resource.
   */
  // const name = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callGetVPCSCConfig() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await artifactregistryClient.getVPCSCConfig(request);
    console.log(response);
  }

  callGetVPCSCConfig();

getVPCSCConfig(request, options, callback)

getVPCSCConfig(request: protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IVPCSCConfig, protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetVPCSCConfigRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IVPCSCConfig, protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getVPCSCConfig(request, callback)

getVPCSCConfig(request: protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IVPCSCConfig, protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetVPCSCConfigRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IVPCSCConfig, protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

importAptArtifacts(request, options)

importAptArtifacts(request?: protos.google.devtools.artifactregistry.v1.IImportAptArtifactsRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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.

Parameters
NameDescription
request IImportAptArtifactsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ LROperation<protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Google Cloud Storage location where input content is located.
   */
  // const gcsSource = {}
  /**
   *  The name of the parent resource where the artifacts will be imported.
   */
  // const parent = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callImportAptArtifacts() {
    // Construct request
    const request = {
    };

    // Run request
    const [operation] = await artifactregistryClient.importAptArtifacts(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callImportAptArtifacts();

importAptArtifacts(request, options, callback)

importAptArtifacts(request: protos.google.devtools.artifactregistry.v1.IImportAptArtifactsRequest, options: CallOptions, callback: Callback<LROperation<protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IImportAptArtifactsRequest
options CallOptions
callback Callback<LROperation<protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

importAptArtifacts(request, callback)

importAptArtifacts(request: protos.google.devtools.artifactregistry.v1.IImportAptArtifactsRequest, callback: Callback<LROperation<protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IImportAptArtifactsRequest
callback Callback<LROperation<protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

importYumArtifacts(request, options)

importYumArtifacts(request?: protos.google.devtools.artifactregistry.v1.IImportYumArtifactsRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.devtools.artifactregistry.v1.IImportYumArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportYumArtifactsMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

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.

Parameters
NameDescription
request IImportYumArtifactsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ LROperation<protos.google.devtools.artifactregistry.v1.IImportYumArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportYumArtifactsMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Google Cloud Storage location where input content is located.
   */
  // const gcsSource = {}
  /**
   *  The name of the parent resource where the artifacts will be imported.
   */
  // const parent = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callImportYumArtifacts() {
    // Construct request
    const request = {
    };

    // Run request
    const [operation] = await artifactregistryClient.importYumArtifacts(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callImportYumArtifacts();

importYumArtifacts(request, options, callback)

importYumArtifacts(request: protos.google.devtools.artifactregistry.v1.IImportYumArtifactsRequest, options: CallOptions, callback: Callback<LROperation<protos.google.devtools.artifactregistry.v1.IImportYumArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportYumArtifactsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IImportYumArtifactsRequest
options CallOptions
callback Callback<LROperation<protos.google.devtools.artifactregistry.v1.IImportYumArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportYumArtifactsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

importYumArtifacts(request, callback)

importYumArtifacts(request: protos.google.devtools.artifactregistry.v1.IImportYumArtifactsRequest, callback: Callback<LROperation<protos.google.devtools.artifactregistry.v1.IImportYumArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportYumArtifactsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IImportYumArtifactsRequest
callback Callback<LROperation<protos.google.devtools.artifactregistry.v1.IImportYumArtifactsResponse, protos.google.devtools.artifactregistry.v1.IImportYumArtifactsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

initialize()

initialize(): Promise<{
        [name: string]: Function;
    }>;

Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.

You can await on this method if you want to make sure the client is initialized.

Returns
TypeDescription
Promise<{ [name: string]: Function; }>

{Promise} A promise that resolves to an authenticated service stub.

listDockerImages(request, options)

listDockerImages(request?: protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IDockerImage[],
        protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest | null,
        protos.google.devtools.artifactregistry.v1.IListDockerImagesResponse
    ]>;

Lists docker images.

Parameters
NameDescription
request IListDockerImagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IDockerImage[], protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest | null, protos.google.devtools.artifactregistry.v1.IListDockerImagesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of DockerImage. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listDockerImagesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listDockerImages(request, options, callback)

listDockerImages(request: protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest, options: CallOptions, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest, protos.google.devtools.artifactregistry.v1.IListDockerImagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IDockerImage>): void;
Parameters
NameDescription
request IListDockerImagesRequest
options CallOptions
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest, protos.google.devtools.artifactregistry.v1.IListDockerImagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IDockerImage>
Returns
TypeDescription
void

listDockerImages(request, callback)

listDockerImages(request: protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest, protos.google.devtools.artifactregistry.v1.IListDockerImagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IDockerImage>): void;
Parameters
NameDescription
request IListDockerImagesRequest
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest, protos.google.devtools.artifactregistry.v1.IListDockerImagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IDockerImage>
Returns
TypeDescription
void

listDockerImagesAsync(request, options)

listDockerImagesAsync(request?: protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.artifactregistry.v1.IDockerImage>;

Equivalent to listDockerImages, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request IListDockerImagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.devtools.artifactregistry.v1.IDockerImage>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing DockerImage. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the parent resource whose docker images will be
   *  listed.
   */
  // const parent = 'abc123'
  /**
   *  The maximum number of artifacts to return.
   */
  // const pageSize = 1234
  /**
   *  The next_page_token value returned from a previous list request, if any.
   */
  // const pageToken = 'abc123'
  /**
   *  The field to order the results by.
   */
  // const orderBy = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callListDockerImages() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = await artifactregistryClient.listDockerImagesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListDockerImages();

listDockerImagesStream(request, options)

listDockerImagesStream(request?: protos.google.devtools.artifactregistry.v1.IListDockerImagesRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request IListDockerImagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing DockerImage on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listDockerImagesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listFiles(request, options)

listFiles(request?: protos.google.devtools.artifactregistry.v1.IListFilesRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IFile[],
        protos.google.devtools.artifactregistry.v1.IListFilesRequest | null,
        protos.google.devtools.artifactregistry.v1.IListFilesResponse
    ]>;

Lists files.

Parameters
NameDescription
request IListFilesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IFile[], protos.google.devtools.artifactregistry.v1.IListFilesRequest | null, protos.google.devtools.artifactregistry.v1.IListFilesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of File. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listFilesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listFiles(request, options, callback)

listFiles(request: protos.google.devtools.artifactregistry.v1.IListFilesRequest, options: CallOptions, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListFilesRequest, protos.google.devtools.artifactregistry.v1.IListFilesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IFile>): void;
Parameters
NameDescription
request IListFilesRequest
options CallOptions
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListFilesRequest, protos.google.devtools.artifactregistry.v1.IListFilesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IFile>
Returns
TypeDescription
void

listFiles(request, callback)

listFiles(request: protos.google.devtools.artifactregistry.v1.IListFilesRequest, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListFilesRequest, protos.google.devtools.artifactregistry.v1.IListFilesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IFile>): void;
Parameters
NameDescription
request IListFilesRequest
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListFilesRequest, protos.google.devtools.artifactregistry.v1.IListFilesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IFile>
Returns
TypeDescription
void

listFilesAsync(request, options)

listFilesAsync(request?: protos.google.devtools.artifactregistry.v1.IListFilesRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.artifactregistry.v1.IFile>;

Equivalent to listFiles, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request IListFilesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.devtools.artifactregistry.v1.IFile>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing File. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the repository whose files will be listed. For
   *  example: "projects/p1/locations/us-central1/repositories/repo1
   */
  // const parent = 'abc123'
  /**
   *  An expression for filtering the results of the request. Filter rules are
   *  case insensitive. The fields eligible for filtering are:
   *    * `name`
   *    * `owner`
   *   An example of using a filter:
   *    * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an
   *    ID starting with "a/b/".
   *    * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` -->
   *    Files owned by the version `1.0` in package `pkg1`.
   */
  // const filter = 'abc123'
  /**
   *  The maximum number of files to return.
   */
  // const pageSize = 1234
  /**
   *  The next_page_token value returned from a previous list request, if any.
   */
  // const pageToken = 'abc123'
  /**
   *  The field to order the results by.
   */
  // const orderBy = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callListFiles() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = await artifactregistryClient.listFilesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListFiles();

listFilesStream(request, options)

listFilesStream(request?: protos.google.devtools.artifactregistry.v1.IListFilesRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request IListFilesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing File on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listFilesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listLocationsAsync(request, options)

listLocationsAsync(request: LocationProtos.google.cloud.location.IListLocationsRequest, options?: CallOptions): AsyncIterable<LocationProtos.google.cloud.location.ILocation>;

Lists information about the supported locations for this service. Returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request LocationProtos.google.cloud.location.IListLocationsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<google.cloud.location.ILocation>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

const iterable = client.listLocationsAsync(request);
for await (const response of iterable) {
  // process response
}

listMavenArtifacts(request, options)

listMavenArtifacts(request?: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IMavenArtifact[],
        protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest | null,
        protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse
    ]>;

Lists maven artifacts.

Parameters
NameDescription
request IListMavenArtifactsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IMavenArtifact[], protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest | null, protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of MavenArtifact. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listMavenArtifactsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listMavenArtifacts(request, options, callback)

listMavenArtifacts(request: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, options: CallOptions, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IMavenArtifact>): void;
Parameters
NameDescription
request IListMavenArtifactsRequest
options CallOptions
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IMavenArtifact>
Returns
TypeDescription
void

listMavenArtifacts(request, callback)

listMavenArtifacts(request: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IMavenArtifact>): void;
Parameters
NameDescription
request IListMavenArtifactsRequest
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IMavenArtifact>
Returns
TypeDescription
void

listMavenArtifactsAsync(request, options)

listMavenArtifactsAsync(request?: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.artifactregistry.v1.IMavenArtifact>;

Equivalent to listMavenArtifacts, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request IListMavenArtifactsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.devtools.artifactregistry.v1.IMavenArtifact>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing MavenArtifact. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the parent resource whose maven artifacts will be
   *  listed.
   */
  // const parent = 'abc123'
  /**
   *  The maximum number of artifacts to return.
   */
  // const pageSize = 1234
  /**
   *  The next_page_token value returned from a previous list request, if any.
   */
  // const pageToken = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callListMavenArtifacts() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = await artifactregistryClient.listMavenArtifactsAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListMavenArtifacts();

listMavenArtifactsStream(request, options)

listMavenArtifactsStream(request?: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request IListMavenArtifactsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing MavenArtifact on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listMavenArtifactsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listNpmPackages(request, options)

listNpmPackages(request?: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.INpmPackage[],
        protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest | null,
        protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse
    ]>;

Lists npm packages.

Parameters
NameDescription
request IListNpmPackagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.INpmPackage[], protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest | null, protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of NpmPackage. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listNpmPackagesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listNpmPackages(request, options, callback)

listNpmPackages(request: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, options: CallOptions, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.INpmPackage>): void;
Parameters
NameDescription
request IListNpmPackagesRequest
options CallOptions
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.INpmPackage>
Returns
TypeDescription
void

listNpmPackages(request, callback)

listNpmPackages(request: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.INpmPackage>): void;
Parameters
NameDescription
request IListNpmPackagesRequest
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.INpmPackage>
Returns
TypeDescription
void

listNpmPackagesAsync(request, options)

listNpmPackagesAsync(request?: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.artifactregistry.v1.INpmPackage>;

Equivalent to listNpmPackages, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request IListNpmPackagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.devtools.artifactregistry.v1.INpmPackage>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing NpmPackage. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the parent resource whose npm packages will be
   *  listed.
   */
  // const parent = 'abc123'
  /**
   *  The maximum number of artifacts to return.
   */
  // const pageSize = 1234
  /**
   *  The next_page_token value returned from a previous list request, if any.
   */
  // const pageToken = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callListNpmPackages() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = await artifactregistryClient.listNpmPackagesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListNpmPackages();

listNpmPackagesStream(request, options)

listNpmPackagesStream(request?: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request IListNpmPackagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing NpmPackage on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listNpmPackagesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listOperationsAsync(request, options)

listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. Returns an iterable object.

For-await-of syntax is used with the iterable to recursively get response element on-demand.

Parameters
NameDescription
request ListOperationsRequest

The request object that will be sent.

options CallOptions

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details.

Returns
TypeDescription
AsyncIterable<protos.google.longrunning.ListOperationsResponse>

{Object} An iterable Object that conforms to iteration protocols.

Example

const client = longrunning.operationsClient();
for await (const response of client.listOperationsAsync(request));
// doThingsWith(response)

listPackages(request, options)

listPackages(request?: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IPackage[],
        protos.google.devtools.artifactregistry.v1.IListPackagesRequest | null,
        protos.google.devtools.artifactregistry.v1.IListPackagesResponse
    ]>;

Lists packages.

Parameters
NameDescription
request IListPackagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IPackage[], protos.google.devtools.artifactregistry.v1.IListPackagesRequest | null, protos.google.devtools.artifactregistry.v1.IListPackagesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of Package. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listPackagesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listPackages(request, options, callback)

listPackages(request: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, options: CallOptions, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListPackagesRequest, protos.google.devtools.artifactregistry.v1.IListPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IPackage>): void;
Parameters
NameDescription
request IListPackagesRequest
options CallOptions
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListPackagesRequest, protos.google.devtools.artifactregistry.v1.IListPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IPackage>
Returns
TypeDescription
void

listPackages(request, callback)

listPackages(request: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListPackagesRequest, protos.google.devtools.artifactregistry.v1.IListPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IPackage>): void;
Parameters
NameDescription
request IListPackagesRequest
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListPackagesRequest, protos.google.devtools.artifactregistry.v1.IListPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IPackage>
Returns
TypeDescription
void

listPackagesAsync(request, options)

listPackagesAsync(request?: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.artifactregistry.v1.IPackage>;

Equivalent to listPackages, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request IListPackagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.devtools.artifactregistry.v1.IPackage>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Package. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the parent resource whose packages will be listed.
   */
  // const parent = 'abc123'
  /**
   *  The maximum number of packages to return. Maximum page size is 1,000.
   */
  // const pageSize = 1234
  /**
   *  The next_page_token value returned from a previous list request, if any.
   */
  // const pageToken = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callListPackages() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = await artifactregistryClient.listPackagesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListPackages();

listPackagesStream(request, options)

listPackagesStream(request?: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request IListPackagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing Package on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listPackagesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listPythonPackages(request, options)

listPythonPackages(request?: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IPythonPackage[],
        protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest | null,
        protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse
    ]>;

Lists python packages.

Parameters
NameDescription
request IListPythonPackagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IPythonPackage[], protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest | null, protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of PythonPackage. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listPythonPackagesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listPythonPackages(request, options, callback)

listPythonPackages(request: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, options: CallOptions, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IPythonPackage>): void;
Parameters
NameDescription
request IListPythonPackagesRequest
options CallOptions
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IPythonPackage>
Returns
TypeDescription
void

listPythonPackages(request, callback)

listPythonPackages(request: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IPythonPackage>): void;
Parameters
NameDescription
request IListPythonPackagesRequest
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IPythonPackage>
Returns
TypeDescription
void

listPythonPackagesAsync(request, options)

listPythonPackagesAsync(request?: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.artifactregistry.v1.IPythonPackage>;

Equivalent to listPythonPackages, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request IListPythonPackagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.devtools.artifactregistry.v1.IPythonPackage>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing PythonPackage. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the parent resource whose python packages will be
   *  listed.
   */
  // const parent = 'abc123'
  /**
   *  The maximum number of artifacts to return.
   */
  // const pageSize = 1234
  /**
   *  The next_page_token value returned from a previous list request, if any.
   */
  // const pageToken = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callListPythonPackages() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = await artifactregistryClient.listPythonPackagesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListPythonPackages();

listPythonPackagesStream(request, options)

listPythonPackagesStream(request?: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request IListPythonPackagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing PythonPackage on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listPythonPackagesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listRepositories(request, options)

listRepositories(request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IRepository[],
        protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest | null,
        protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse
    ]>;

Lists repositories.

Parameters
NameDescription
request IListRepositoriesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IRepository[], protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest | null, protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listRepositoriesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listRepositories(request, options, callback)

listRepositories(request: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, options: CallOptions, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IRepository>): void;
Parameters
NameDescription
request IListRepositoriesRequest
options CallOptions
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IRepository>
Returns
TypeDescription
void

listRepositories(request, callback)

listRepositories(request: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IRepository>): void;
Parameters
NameDescription
request IListRepositoriesRequest
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IRepository>
Returns
TypeDescription
void

listRepositoriesAsync(request, options)

listRepositoriesAsync(request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.artifactregistry.v1.IRepository>;

Equivalent to listRepositories, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request IListRepositoriesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.devtools.artifactregistry.v1.IRepository>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The name of the parent resource whose repositories will be
   *  listed.
   */
  // const parent = 'abc123'
  /**
   *  The maximum number of repositories to return. Maximum page size is 1,000.
   */
  // const pageSize = 1234
  /**
   *  The next_page_token value returned from a previous list request, if any.
   */
  // const pageToken = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callListRepositories() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = await artifactregistryClient.listRepositoriesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListRepositories();

listRepositoriesStream(request, options)

listRepositoriesStream(request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request IListRepositoriesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listRepositoriesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listTags(request, options)

listTags(request?: protos.google.devtools.artifactregistry.v1.IListTagsRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.ITag[],
        protos.google.devtools.artifactregistry.v1.IListTagsRequest | null,
        protos.google.devtools.artifactregistry.v1.IListTagsResponse
    ]>;

Lists tags.

Parameters
NameDescription
request IListTagsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.ITag[], protos.google.devtools.artifactregistry.v1.IListTagsRequest | null, protos.google.devtools.artifactregistry.v1.IListTagsResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of Tag. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listTagsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listTags(request, options, callback)

listTags(request: protos.google.devtools.artifactregistry.v1.IListTagsRequest, options: CallOptions, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListTagsRequest, protos.google.devtools.artifactregistry.v1.IListTagsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.ITag>): void;
Parameters
NameDescription
request IListTagsRequest
options CallOptions
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListTagsRequest, protos.google.devtools.artifactregistry.v1.IListTagsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.ITag>
Returns
TypeDescription
void

listTags(request, callback)

listTags(request: protos.google.devtools.artifactregistry.v1.IListTagsRequest, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListTagsRequest, protos.google.devtools.artifactregistry.v1.IListTagsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.ITag>): void;
Parameters
NameDescription
request IListTagsRequest
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListTagsRequest, protos.google.devtools.artifactregistry.v1.IListTagsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.ITag>
Returns
TypeDescription
void

listTagsAsync(request, options)

listTagsAsync(request?: protos.google.devtools.artifactregistry.v1.IListTagsRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.artifactregistry.v1.ITag>;

Equivalent to listTags, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request IListTagsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.devtools.artifactregistry.v1.ITag>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Tag. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The name of the parent package whose tags will be listed.
   *  For example:
   *  `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
   */
  // const parent = 'abc123'
  /**
   *  An expression for filtering the results of the request. Filter rules are
   *  case insensitive. The fields eligible for filtering are:
   *    * `version`
   *   An example of using a filter:
   *    * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"`
   *    --> Tags that are applied to the version `1.0` in package `pkg1`.
   */
  // const filter = 'abc123'
  /**
   *  The maximum number of tags to return. Maximum page size is 10,000.
   */
  // const pageSize = 1234
  /**
   *  The next_page_token value returned from a previous list request, if any.
   */
  // const pageToken = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callListTags() {
    // Construct request
    const request = {
    };

    // Run request
    const iterable = await artifactregistryClient.listTagsAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListTags();

listTagsStream(request, options)

listTagsStream(request?: protos.google.devtools.artifactregistry.v1.IListTagsRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request IListTagsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing Tag on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listTagsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listVersions(request, options)

listVersions(request?: protos.google.devtools.artifactregistry.v1.IListVersionsRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IVersion[],
        protos.google.devtools.artifactregistry.v1.IListVersionsRequest | null,
        protos.google.devtools.artifactregistry.v1.IListVersionsResponse
    ]>;

Lists versions.

Parameters
NameDescription
request IListVersionsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IVersion[], protos.google.devtools.artifactregistry.v1.IListVersionsRequest | null, protos.google.devtools.artifactregistry.v1.IListVersionsResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of Version. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listVersionsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listVersions(request, options, callback)

listVersions(request: protos.google.devtools.artifactregistry.v1.IListVersionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListVersionsRequest, protos.google.devtools.artifactregistry.v1.IListVersionsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IVersion>): void;
Parameters
NameDescription
request IListVersionsRequest
options CallOptions
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListVersionsRequest, protos.google.devtools.artifactregistry.v1.IListVersionsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IVersion>
Returns
TypeDescription
void

listVersions(request, callback)

listVersions(request: protos.google.devtools.artifactregistry.v1.IListVersionsRequest, callback: PaginationCallback<protos.google.devtools.artifactregistry.v1.IListVersionsRequest, protos.google.devtools.artifactregistry.v1.IListVersionsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IVersion>): void;
Parameters
NameDescription
request IListVersionsRequest
callback PaginationCallback<protos.google.devtools.artifactregistry.v1.IListVersionsRequest, protos.google.devtools.artifactregistry.v1.IListVersionsResponse | null | undefined, protos.google.devtools.artifactregistry.v1.IVersion>
Returns
TypeDescription
void

listVersionsAsync(request, options)

listVersionsAsync(request?: protos.google.devtools.artifactregistry.v1.IListVersionsRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.artifactregistry.v1.IVersion>;

Equivalent to listVersions, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request IListVersionsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.devtools.artifactregistry.v1.IVersion>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Version. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The name of the parent resource whose versions will be listed.
   */
  // const parent = 'abc123'
  /**
   *  The maximum number of versions to return. Maximum page size is 1,000.
   */
  // const pageSize = 1234
  /**
   *  The next_page_token value returned from a previous list request, if any.
   */
  // const pageToken = 'abc123'
  /**
   *  The view that should be returned in the response.
   */
  // const view = {}
  /**
   *  Optional. The field to order the results by.
   */
  // const orderBy = 'abc123'

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callListVersions() {
    // Construct request
    const request = {
    };

    // Run request
    const iterable = await artifactregistryClient.listVersionsAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListVersions();

listVersionsStream(request, options)

listVersionsStream(request?: protos.google.devtools.artifactregistry.v1.IListVersionsRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request IListVersionsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing Version on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listVersionsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

matchAptArtifactFromAptArtifactName(aptArtifactName)

matchAptArtifactFromAptArtifactName(aptArtifactName: string): string | number;

Parse the apt_artifact from AptArtifact resource.

Parameter
NameDescription
aptArtifactName string

A fully-qualified path representing AptArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the apt_artifact.

matchDockerImageFromDockerImageName(dockerImageName)

matchDockerImageFromDockerImageName(dockerImageName: string): string | number;

Parse the docker_image from DockerImage resource.

Parameter
NameDescription
dockerImageName string

A fully-qualified path representing DockerImage resource.

Returns
TypeDescription
string | number

{string} A string representing the docker_image.

matchFileFromFileName(fileName)

matchFileFromFileName(fileName: string): string | number;

Parse the file from File resource.

Parameter
NameDescription
fileName string

A fully-qualified path representing File resource.

Returns
TypeDescription
string | number

{string} A string representing the file.

matchLocationFromAptArtifactName(aptArtifactName)

matchLocationFromAptArtifactName(aptArtifactName: string): string | number;

Parse the location from AptArtifact resource.

Parameter
NameDescription
aptArtifactName string

A fully-qualified path representing AptArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromDockerImageName(dockerImageName)

matchLocationFromDockerImageName(dockerImageName: string): string | number;

Parse the location from DockerImage resource.

Parameter
NameDescription
dockerImageName string

A fully-qualified path representing DockerImage resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromFileName(fileName)

matchLocationFromFileName(fileName: string): string | number;

Parse the location from File resource.

Parameter
NameDescription
fileName string

A fully-qualified path representing File resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromMavenArtifactName(mavenArtifactName)

matchLocationFromMavenArtifactName(mavenArtifactName: string): string | number;

Parse the location from MavenArtifact resource.

Parameter
NameDescription
mavenArtifactName string

A fully-qualified path representing MavenArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromNpmPackageName(npmPackageName)

matchLocationFromNpmPackageName(npmPackageName: string): string | number;

Parse the location from NpmPackage resource.

Parameter
NameDescription
npmPackageName string

A fully-qualified path representing NpmPackage resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromPackageName(packageName)

matchLocationFromPackageName(packageName: string): string | number;

Parse the location from Package resource.

Parameter
NameDescription
packageName string

A fully-qualified path representing Package resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromPythonPackageName(pythonPackageName)

matchLocationFromPythonPackageName(pythonPackageName: string): string | number;

Parse the location from PythonPackage resource.

Parameter
NameDescription
pythonPackageName string

A fully-qualified path representing PythonPackage resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromRepositoryName(repositoryName)

matchLocationFromRepositoryName(repositoryName: string): string | number;

Parse the location from Repository resource.

Parameter
NameDescription
repositoryName string

A fully-qualified path representing Repository resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromTagName(tagName)

matchLocationFromTagName(tagName: string): string | number;

Parse the location from Tag resource.

Parameter
NameDescription
tagName string

A fully-qualified path representing Tag resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromVersionName(versionName)

matchLocationFromVersionName(versionName: string): string | number;

Parse the location from Version resource.

Parameter
NameDescription
versionName string

A fully-qualified path representing Version resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromVpcscConfigName(vpcscConfigName)

matchLocationFromVpcscConfigName(vpcscConfigName: string): string | number;

Parse the location from VpcscConfig resource.

Parameter
NameDescription
vpcscConfigName string

A fully-qualified path representing VpcscConfig resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromYumArtifactName(yumArtifactName)

matchLocationFromYumArtifactName(yumArtifactName: string): string | number;

Parse the location from YumArtifact resource.

Parameter
NameDescription
yumArtifactName string

A fully-qualified path representing YumArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchMavenArtifactFromMavenArtifactName(mavenArtifactName)

matchMavenArtifactFromMavenArtifactName(mavenArtifactName: string): string | number;

Parse the maven_artifact from MavenArtifact resource.

Parameter
NameDescription
mavenArtifactName string

A fully-qualified path representing MavenArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the maven_artifact.

matchNpmPackageFromNpmPackageName(npmPackageName)

matchNpmPackageFromNpmPackageName(npmPackageName: string): string | number;

Parse the npm_package from NpmPackage resource.

Parameter
NameDescription
npmPackageName string

A fully-qualified path representing NpmPackage resource.

Returns
TypeDescription
string | number

{string} A string representing the npm_package.

matchPackageFromPackageName(packageName)

matchPackageFromPackageName(packageName: string): string | number;

Parse the package from Package resource.

Parameter
NameDescription
packageName string

A fully-qualified path representing Package resource.

Returns
TypeDescription
string | number

{string} A string representing the package.

matchPackageFromTagName(tagName)

matchPackageFromTagName(tagName: string): string | number;

Parse the package from Tag resource.

Parameter
NameDescription
tagName string

A fully-qualified path representing Tag resource.

Returns
TypeDescription
string | number

{string} A string representing the package.

matchPackageFromVersionName(versionName)

matchPackageFromVersionName(versionName: string): string | number;

Parse the package from Version resource.

Parameter
NameDescription
versionName string

A fully-qualified path representing Version resource.

Returns
TypeDescription
string | number

{string} A string representing the package.

matchProjectFromAptArtifactName(aptArtifactName)

matchProjectFromAptArtifactName(aptArtifactName: string): string | number;

Parse the project from AptArtifact resource.

Parameter
NameDescription
aptArtifactName string

A fully-qualified path representing AptArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromDockerImageName(dockerImageName)

matchProjectFromDockerImageName(dockerImageName: string): string | number;

Parse the project from DockerImage resource.

Parameter
NameDescription
dockerImageName string

A fully-qualified path representing DockerImage resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromFileName(fileName)

matchProjectFromFileName(fileName: string): string | number;

Parse the project from File resource.

Parameter
NameDescription
fileName string

A fully-qualified path representing File resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromMavenArtifactName(mavenArtifactName)

matchProjectFromMavenArtifactName(mavenArtifactName: string): string | number;

Parse the project from MavenArtifact resource.

Parameter
NameDescription
mavenArtifactName string

A fully-qualified path representing MavenArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromNpmPackageName(npmPackageName)

matchProjectFromNpmPackageName(npmPackageName: string): string | number;

Parse the project from NpmPackage resource.

Parameter
NameDescription
npmPackageName string

A fully-qualified path representing NpmPackage resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromPackageName(packageName)

matchProjectFromPackageName(packageName: string): string | number;

Parse the project from Package resource.

Parameter
NameDescription
packageName string

A fully-qualified path representing Package resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromProjectSettingsName(projectSettingsName)

matchProjectFromProjectSettingsName(projectSettingsName: string): string | number;

Parse the project from ProjectSettings resource.

Parameter
NameDescription
projectSettingsName string

A fully-qualified path representing ProjectSettings resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromPythonPackageName(pythonPackageName)

matchProjectFromPythonPackageName(pythonPackageName: string): string | number;

Parse the project from PythonPackage resource.

Parameter
NameDescription
pythonPackageName string

A fully-qualified path representing PythonPackage resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromRepositoryName(repositoryName)

matchProjectFromRepositoryName(repositoryName: string): string | number;

Parse the project from Repository resource.

Parameter
NameDescription
repositoryName string

A fully-qualified path representing Repository resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromTagName(tagName)

matchProjectFromTagName(tagName: string): string | number;

Parse the project from Tag resource.

Parameter
NameDescription
tagName string

A fully-qualified path representing Tag resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromVersionName(versionName)

matchProjectFromVersionName(versionName: string): string | number;

Parse the project from Version resource.

Parameter
NameDescription
versionName string

A fully-qualified path representing Version resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromVpcscConfigName(vpcscConfigName)

matchProjectFromVpcscConfigName(vpcscConfigName: string): string | number;

Parse the project from VpcscConfig resource.

Parameter
NameDescription
vpcscConfigName string

A fully-qualified path representing VpcscConfig resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromYumArtifactName(yumArtifactName)

matchProjectFromYumArtifactName(yumArtifactName: string): string | number;

Parse the project from YumArtifact resource.

Parameter
NameDescription
yumArtifactName string

A fully-qualified path representing YumArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchPythonPackageFromPythonPackageName(pythonPackageName)

matchPythonPackageFromPythonPackageName(pythonPackageName: string): string | number;

Parse the python_package from PythonPackage resource.

Parameter
NameDescription
pythonPackageName string

A fully-qualified path representing PythonPackage resource.

Returns
TypeDescription
string | number

{string} A string representing the python_package.

matchRepositoryFromAptArtifactName(aptArtifactName)

matchRepositoryFromAptArtifactName(aptArtifactName: string): string | number;

Parse the repository from AptArtifact resource.

Parameter
NameDescription
aptArtifactName string

A fully-qualified path representing AptArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromDockerImageName(dockerImageName)

matchRepositoryFromDockerImageName(dockerImageName: string): string | number;

Parse the repository from DockerImage resource.

Parameter
NameDescription
dockerImageName string

A fully-qualified path representing DockerImage resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromFileName(fileName)

matchRepositoryFromFileName(fileName: string): string | number;

Parse the repository from File resource.

Parameter
NameDescription
fileName string

A fully-qualified path representing File resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromMavenArtifactName(mavenArtifactName)

matchRepositoryFromMavenArtifactName(mavenArtifactName: string): string | number;

Parse the repository from MavenArtifact resource.

Parameter
NameDescription
mavenArtifactName string

A fully-qualified path representing MavenArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromNpmPackageName(npmPackageName)

matchRepositoryFromNpmPackageName(npmPackageName: string): string | number;

Parse the repository from NpmPackage resource.

Parameter
NameDescription
npmPackageName string

A fully-qualified path representing NpmPackage resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromPackageName(packageName)

matchRepositoryFromPackageName(packageName: string): string | number;

Parse the repository from Package resource.

Parameter
NameDescription
packageName string

A fully-qualified path representing Package resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromPythonPackageName(pythonPackageName)

matchRepositoryFromPythonPackageName(pythonPackageName: string): string | number;

Parse the repository from PythonPackage resource.

Parameter
NameDescription
pythonPackageName string

A fully-qualified path representing PythonPackage resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromRepositoryName(repositoryName)

matchRepositoryFromRepositoryName(repositoryName: string): string | number;

Parse the repository from Repository resource.

Parameter
NameDescription
repositoryName string

A fully-qualified path representing Repository resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromTagName(tagName)

matchRepositoryFromTagName(tagName: string): string | number;

Parse the repository from Tag resource.

Parameter
NameDescription
tagName string

A fully-qualified path representing Tag resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromVersionName(versionName)

matchRepositoryFromVersionName(versionName: string): string | number;

Parse the repository from Version resource.

Parameter
NameDescription
versionName string

A fully-qualified path representing Version resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromYumArtifactName(yumArtifactName)

matchRepositoryFromYumArtifactName(yumArtifactName: string): string | number;

Parse the repository from YumArtifact resource.

Parameter
NameDescription
yumArtifactName string

A fully-qualified path representing YumArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchTagFromTagName(tagName)

matchTagFromTagName(tagName: string): string | number;

Parse the tag from Tag resource.

Parameter
NameDescription
tagName string

A fully-qualified path representing Tag resource.

Returns
TypeDescription
string | number

{string} A string representing the tag.

matchVersionFromVersionName(versionName)

matchVersionFromVersionName(versionName: string): string | number;

Parse the version from Version resource.

Parameter
NameDescription
versionName string

A fully-qualified path representing Version resource.

Returns
TypeDescription
string | number

{string} A string representing the version.

matchYumArtifactFromYumArtifactName(yumArtifactName)

matchYumArtifactFromYumArtifactName(yumArtifactName: string): string | number;

Parse the yum_artifact from YumArtifact resource.

Parameter
NameDescription
yumArtifactName string

A fully-qualified path representing YumArtifact resource.

Returns
TypeDescription
string | number

{string} A string representing the yum_artifact.

mavenArtifactPath(project, location, repository, mavenArtifact)

mavenArtifactPath(project: string, location: string, repository: string, mavenArtifact: string): string;

Return a fully-qualified mavenArtifact resource name string.

Parameters
NameDescription
project string
location string
repository string
mavenArtifact string
Returns
TypeDescription
string

{string} Resource name string.

npmPackagePath(project, location, repository, npmPackage)

npmPackagePath(project: string, location: string, repository: string, npmPackage: string): string;

Return a fully-qualified npmPackage resource name string.

Parameters
NameDescription
project string
location string
repository string
npmPackage string
Returns
TypeDescription
string

{string} Resource name string.

packagePath(project, location, repository, packageParam)

packagePath(project: string, location: string, repository: string, packageParam: string): string;

Return a fully-qualified package resource name string.

Parameters
NameDescription
project string
location string
repository string
packageParam string
Returns
TypeDescription
string

{string} Resource name string.

projectSettingsPath(project)

projectSettingsPath(project: string): string;

Return a fully-qualified projectSettings resource name string.

Parameter
NameDescription
project string
Returns
TypeDescription
string

{string} Resource name string.

pythonPackagePath(project, location, repository, pythonPackage)

pythonPackagePath(project: string, location: string, repository: string, pythonPackage: string): string;

Return a fully-qualified pythonPackage resource name string.

Parameters
NameDescription
project string
location string
repository string
pythonPackage string
Returns
TypeDescription
string

{string} Resource name string.

repositoryPath(project, location, repository)

repositoryPath(project: string, location: string, repository: string): string;

Return a fully-qualified repository resource name string.

Parameters
NameDescription
project string
location string
repository string
Returns
TypeDescription
string

{string} Resource name string.

setIamPolicy(request, options)

setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
        protos.google.iam.v1.IPolicy,
        protos.google.iam.v1.ISetIamPolicyRequest | undefined,
        {} | undefined
    ]>;

Updates the IAM policy for a given resource.

Parameters
NameDescription
request ISetIamPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Policy. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  REQUIRED: The resource for which the policy is being specified.
   *  See the operation documentation for the appropriate value for this field.
   */
  // const resource = 'abc123'
  /**
   *  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.
   */
  // const policy = {}
  /**
   *  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"`
   */
  // const updateMask = {}

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callSetIamPolicy() {
    // Construct request
    const request = {
      resource,
      policy,
    };

    // Run request
    const response = await artifactregistryClient.setIamPolicy(request);
    console.log(response);
  }

  callSetIamPolicy();

setIamPolicy(request, options, callback)

setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ISetIamPolicyRequest
options CallOptions
callback Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

setIamPolicy(request, callback)

setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ISetIamPolicyRequest
callback Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

tagPath(project, location, repository, packageParam, tag)

tagPath(project: string, location: string, repository: string, packageParam: string, tag: string): string;

Return a fully-qualified tag resource name string.

Parameters
NameDescription
project string
location string
repository string
packageParam string
tag string
Returns
TypeDescription
string

{string} Resource name string.

testIamPermissions(request, options)

testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
        protos.google.iam.v1.ITestIamPermissionsResponse,
        protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
        {} | undefined
    ]>;

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

Parameters
NameDescription
request ITestIamPermissionsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing TestIamPermissionsResponse. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  REQUIRED: The resource for which the policy detail is being requested.
   *  See the operation documentation for the appropriate value for this field.
   */
  // const resource = 'abc123'
  /**
   *  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).
   */
  // const permissions = ['abc','def']

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callTestIamPermissions() {
    // Construct request
    const request = {
      resource,
      permissions,
    };

    // Run request
    const response = await artifactregistryClient.testIamPermissions(request);
    console.log(response);
  }

  callTestIamPermissions();

testIamPermissions(request, options, callback)

testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ITestIamPermissionsRequest
options CallOptions
callback Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

testIamPermissions(request, callback)

testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ITestIamPermissionsRequest
callback Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateProjectSettings(request, options)

updateProjectSettings(request?: protos.google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IProjectSettings,
        (protos.google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest | undefined),
        {} | undefined
    ]>;

Updates the Settings for the Project.

Parameters
NameDescription
request IUpdateProjectSettingsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IProjectSettings, (protos.google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The project settings.
   */
  // const projectSettings = {}
  /**
   *  Field mask to support partial updates.
   */
  // const updateMask = {}

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callUpdateProjectSettings() {
    // Construct request
    const request = {
    };

    // Run request
    const response = await artifactregistryClient.updateProjectSettings(request);
    console.log(response);
  }

  callUpdateProjectSettings();

updateProjectSettings(request, options, callback)

updateProjectSettings(request: protos.google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IProjectSettings, protos.google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IUpdateProjectSettingsRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IProjectSettings, protos.google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateProjectSettings(request, callback)

updateProjectSettings(request: protos.google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IProjectSettings, protos.google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IUpdateProjectSettingsRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IProjectSettings, protos.google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateRepository(request, options)

updateRepository(request?: protos.google.devtools.artifactregistry.v1.IUpdateRepositoryRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IRepository,
        (protos.google.devtools.artifactregistry.v1.IUpdateRepositoryRequest | undefined),
        {} | undefined
    ]>;

Updates a repository.

Parameters
NameDescription
request IUpdateRepositoryRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IRepository, (protos.google.devtools.artifactregistry.v1.IUpdateRepositoryRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The repository that replaces the resource on the server.
   */
  // const repository = {}
  /**
   *  The update mask applies to the resource. For the `FieldMask` definition,
   *  see
   *  https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
   */
  // const updateMask = {}

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callUpdateRepository() {
    // Construct request
    const request = {
    };

    // Run request
    const response = await artifactregistryClient.updateRepository(request);
    console.log(response);
  }

  callUpdateRepository();

updateRepository(request, options, callback)

updateRepository(request: protos.google.devtools.artifactregistry.v1.IUpdateRepositoryRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IUpdateRepositoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IUpdateRepositoryRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IUpdateRepositoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateRepository(request, callback)

updateRepository(request: protos.google.devtools.artifactregistry.v1.IUpdateRepositoryRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IUpdateRepositoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IUpdateRepositoryRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IRepository, protos.google.devtools.artifactregistry.v1.IUpdateRepositoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateTag(request, options)

updateTag(request?: protos.google.devtools.artifactregistry.v1.IUpdateTagRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.ITag,
        protos.google.devtools.artifactregistry.v1.IUpdateTagRequest | undefined,
        {} | undefined
    ]>;

Updates a tag.

Parameters
NameDescription
request IUpdateTagRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.IUpdateTagRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Tag. Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The tag that replaces the resource on the server.
   */
  // const tag = {}
  /**
   *  The update mask applies to the resource. For the `FieldMask` definition,
   *  see
   *  https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
   */
  // const updateMask = {}

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callUpdateTag() {
    // Construct request
    const request = {
    };

    // Run request
    const response = await artifactregistryClient.updateTag(request);
    console.log(response);
  }

  callUpdateTag();

updateTag(request, options, callback)

updateTag(request: protos.google.devtools.artifactregistry.v1.IUpdateTagRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.IUpdateTagRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IUpdateTagRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.IUpdateTagRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateTag(request, callback)

updateTag(request: protos.google.devtools.artifactregistry.v1.IUpdateTagRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.IUpdateTagRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IUpdateTagRequest
callback Callback<protos.google.devtools.artifactregistry.v1.ITag, protos.google.devtools.artifactregistry.v1.IUpdateTagRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateVPCSCConfig(request, options)

updateVPCSCConfig(request?: protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest, options?: CallOptions): Promise<[
        protos.google.devtools.artifactregistry.v1.IVPCSCConfig,
        (protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest | undefined),
        {} | undefined
    ]>;

Updates the VPCSC Config for the Project.

Parameters
NameDescription
request IUpdateVPCSCConfigRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.devtools.artifactregistry.v1.IVPCSCConfig, (protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  The project config.
   */
  // const vpcscConfig = {}
  /**
   *  Field mask to support partial updates.
   */
  // const updateMask = {}

  // Imports the Artifactregistry library
  const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;

  // Instantiates a client
  const artifactregistryClient = new ArtifactRegistryClient();

  async function callUpdateVPCSCConfig() {
    // Construct request
    const request = {
    };

    // Run request
    const response = await artifactregistryClient.updateVPCSCConfig(request);
    console.log(response);
  }

  callUpdateVPCSCConfig();

updateVPCSCConfig(request, options, callback)

updateVPCSCConfig(request: protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest, options: CallOptions, callback: Callback<protos.google.devtools.artifactregistry.v1.IVPCSCConfig, protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IUpdateVPCSCConfigRequest
options CallOptions
callback Callback<protos.google.devtools.artifactregistry.v1.IVPCSCConfig, protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateVPCSCConfig(request, callback)

updateVPCSCConfig(request: protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest, callback: Callback<protos.google.devtools.artifactregistry.v1.IVPCSCConfig, protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IUpdateVPCSCConfigRequest
callback Callback<protos.google.devtools.artifactregistry.v1.IVPCSCConfig, protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

versionPath(project, location, repository, packageParam, version)

versionPath(project: string, location: string, repository: string, packageParam: string, version: string): string;

Return a fully-qualified version resource name string.

Parameters
NameDescription
project string
location string
repository string
packageParam string
version string
Returns
TypeDescription
string

{string} Resource name string.

vpcscConfigPath(project, location)

vpcscConfigPath(project: string, location: string): string;

Return a fully-qualified vpcscConfig resource name string.

Parameters
NameDescription
project string
location string
Returns
TypeDescription
string

{string} Resource name string.

yumArtifactPath(project, location, repository, yumArtifact)

yumArtifactPath(project: string, location: string, repository: string, yumArtifact: string): string;

Return a fully-qualified yumArtifact resource name string.

Parameters
NameDescription
project string
location string
repository string
yumArtifact string
Returns
TypeDescription
string

{string} Resource name string.