Class v1alpha2.DataformClient (1.0.2)

Dataform is a service to develop, create, document, test, and update curated tables in BigQuery. v1alpha2

Package

@google-cloud/dataform

Constructors

(constructor)(opts, gaxInstance)

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

Construct an instance of DataformClient.

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 DataformClient({fallback: true}, gax); ```

Properties

apiEndpoint

static get apiEndpoint(): string;

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

auth

auth: gax.GoogleAuth;

dataformStub

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

descriptors

descriptors: Descriptors;

iamClient

iamClient: IamClient;

innerApiCalls

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

locationsClient

locationsClient: LocationsClient;

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

cancelWorkflowInvocation(request, options)

cancelWorkflowInvocation(request?: protos.google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        (protos.google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest | undefined),
        {} | undefined
    ]>;

Requests cancellation of a running WorkflowInvocation.

Parameters
NameDescription
request ICancelWorkflowInvocationRequest

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.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest | 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.
   */
  /**
   *  Required. The workflow invocation resource's name.
   */
  // const name = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.cancelWorkflowInvocation(request);
    console.log(response);
  }

  callCancelWorkflowInvocation();

cancelWorkflowInvocation(request, options, callback)

cancelWorkflowInvocation(request: protos.google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICancelWorkflowInvocationRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

cancelWorkflowInvocation(request, callback)

cancelWorkflowInvocation(request: protos.google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICancelWorkflowInvocationRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

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.

commitWorkspaceChanges(request, options)

commitWorkspaceChanges(request?: protos.google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        (protos.google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest | undefined),
        {} | undefined
    ]>;

Applies a Git commit for uncommitted files in a Workspace.

Parameters
NameDescription
request ICommitWorkspaceChangesRequest

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.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest | 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.
   */
  /**
   *  Required. The workspace's name.
   */
  // const name = 'abc123'
  /**
   *  Required. The commit's author.
   */
  // const author = {}
  /**
   *  Optional. The commit's message.
   */
  // const commitMessage = 'abc123'
  /**
   *  Optional. Full file paths to commit including filename, rooted at workspace root. If
   *  left empty, all files will be committed.
   */
  // const paths = ['abc','def']

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.commitWorkspaceChanges(request);
    console.log(response);
  }

  callCommitWorkspaceChanges();

commitWorkspaceChanges(request, options, callback)

commitWorkspaceChanges(request: protos.google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICommitWorkspaceChangesRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

commitWorkspaceChanges(request, callback)

commitWorkspaceChanges(request: protos.google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICommitWorkspaceChangesRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

compilationResultPath(project, location, repository, compilationResult)

compilationResultPath(project: string, location: string, repository: string, compilationResult: string): string;

Return a fully-qualified compilationResult resource name string.

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

{string} Resource name string.

createCompilationResult(request, options)

createCompilationResult(request?: protos.google.cloud.dataform.v1alpha2.ICreateCompilationResultRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.ICompilationResult,
        (protos.google.cloud.dataform.v1alpha2.ICreateCompilationResultRequest | undefined),
        {} | undefined
    ]>;

Creates a new CompilationResult in a given project and location.

Parameters
NameDescription
request ICreateCompilationResultRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.ICompilationResult, (protos.google.cloud.dataform.v1alpha2.ICreateCompilationResultRequest | 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 repository in which to create the compilation result. Must be in the
   *  format `projects/* /locations/* /repositories/*`.
   */
  // const parent = 'abc123'
  /**
   *  Required. The compilation result to create.
   */
  // const compilationResult = {}

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.createCompilationResult(request);
    console.log(response);
  }

  callCreateCompilationResult();

createCompilationResult(request, options, callback)

createCompilationResult(request: protos.google.cloud.dataform.v1alpha2.ICreateCompilationResultRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.ICompilationResult, protos.google.cloud.dataform.v1alpha2.ICreateCompilationResultRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateCompilationResultRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.ICompilationResult, protos.google.cloud.dataform.v1alpha2.ICreateCompilationResultRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createCompilationResult(request, callback)

createCompilationResult(request: protos.google.cloud.dataform.v1alpha2.ICreateCompilationResultRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.ICompilationResult, protos.google.cloud.dataform.v1alpha2.ICreateCompilationResultRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateCompilationResultRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.ICompilationResult, protos.google.cloud.dataform.v1alpha2.ICreateCompilationResultRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createRepository(request, options)

createRepository(request?: protos.google.cloud.dataform.v1alpha2.ICreateRepositoryRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IRepository,
        (protos.google.cloud.dataform.v1alpha2.ICreateRepositoryRequest | undefined),
        {} | undefined
    ]>;

Creates a new Repository in a given project and location.

Parameters
NameDescription
request ICreateRepositoryRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IRepository, (protos.google.cloud.dataform.v1alpha2.ICreateRepositoryRequest | 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 location in which to create the repository. Must be in the format
   *  `projects/* /locations/*`.
   */
  // const parent = 'abc123'
  /**
   *  Required. The repository to create.
   */
  // const repository = {}
  /**
   *  Required. The ID to use for the repository, which will become the final component of
   *  the repository's resource name.
   */
  // const repositoryId = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.createRepository(request);
    console.log(response);
  }

  callCreateRepository();

createRepository(request, options, callback)

createRepository(request: protos.google.cloud.dataform.v1alpha2.ICreateRepositoryRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IRepository, protos.google.cloud.dataform.v1alpha2.ICreateRepositoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateRepositoryRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IRepository, protos.google.cloud.dataform.v1alpha2.ICreateRepositoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createRepository(request, callback)

createRepository(request: protos.google.cloud.dataform.v1alpha2.ICreateRepositoryRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IRepository, protos.google.cloud.dataform.v1alpha2.ICreateRepositoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateRepositoryRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IRepository, protos.google.cloud.dataform.v1alpha2.ICreateRepositoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createWorkflowInvocation(request, options)

createWorkflowInvocation(request?: protos.google.cloud.dataform.v1alpha2.ICreateWorkflowInvocationRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation,
        (protos.google.cloud.dataform.v1alpha2.ICreateWorkflowInvocationRequest | undefined),
        {} | undefined
    ]>;

Creates a new WorkflowInvocation in a given Repository.

Parameters
NameDescription
request ICreateWorkflowInvocationRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation, (protos.google.cloud.dataform.v1alpha2.ICreateWorkflowInvocationRequest | 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 parent resource of the WorkflowInvocation type.
   */
  // const parent = 'abc123'
  /**
   *  Required. The workflow invocation resource to create.
   */
  // const workflowInvocation = {}

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.createWorkflowInvocation(request);
    console.log(response);
  }

  callCreateWorkflowInvocation();

createWorkflowInvocation(request, options, callback)

createWorkflowInvocation(request: protos.google.cloud.dataform.v1alpha2.ICreateWorkflowInvocationRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation, protos.google.cloud.dataform.v1alpha2.ICreateWorkflowInvocationRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateWorkflowInvocationRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation, protos.google.cloud.dataform.v1alpha2.ICreateWorkflowInvocationRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createWorkflowInvocation(request, callback)

createWorkflowInvocation(request: protos.google.cloud.dataform.v1alpha2.ICreateWorkflowInvocationRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation, protos.google.cloud.dataform.v1alpha2.ICreateWorkflowInvocationRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateWorkflowInvocationRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation, protos.google.cloud.dataform.v1alpha2.ICreateWorkflowInvocationRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createWorkspace(request, options)

createWorkspace(request?: protos.google.cloud.dataform.v1alpha2.ICreateWorkspaceRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IWorkspace,
        protos.google.cloud.dataform.v1alpha2.ICreateWorkspaceRequest | undefined,
        {} | undefined
    ]>;

Creates a new Workspace in a given Repository.

Parameters
NameDescription
request ICreateWorkspaceRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IWorkspace, protos.google.cloud.dataform.v1alpha2.ICreateWorkspaceRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Workspace. 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 repository in which to create the workspace. Must be in the format
   *  `projects/* /locations/* /repositories/*`.
   */
  // const parent = 'abc123'
  /**
   *  Required. The workspace to create.
   */
  // const workspace = {}
  /**
   *  Required. The ID to use for the workspace, which will become the final component of
   *  the workspace's resource name.
   */
  // const workspaceId = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callCreateWorkspace() {
    // Construct request
    const request = {
      parent,
      workspace,
      workspaceId,
    };

    // Run request
    const response = await dataformClient.createWorkspace(request);
    console.log(response);
  }

  callCreateWorkspace();

createWorkspace(request, options, callback)

createWorkspace(request: protos.google.cloud.dataform.v1alpha2.ICreateWorkspaceRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IWorkspace, protos.google.cloud.dataform.v1alpha2.ICreateWorkspaceRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateWorkspaceRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IWorkspace, protos.google.cloud.dataform.v1alpha2.ICreateWorkspaceRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createWorkspace(request, callback)

createWorkspace(request: protos.google.cloud.dataform.v1alpha2.ICreateWorkspaceRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IWorkspace, protos.google.cloud.dataform.v1alpha2.ICreateWorkspaceRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request ICreateWorkspaceRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IWorkspace, protos.google.cloud.dataform.v1alpha2.ICreateWorkspaceRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteRepository(request, options)

deleteRepository(request?: protos.google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        (protos.google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest | undefined),
        {} | undefined
    ]>;

Deletes a single Repository.

Parameters
NameDescription
request IDeleteRepositoryRequest

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.cloud.dataform.v1alpha2.IDeleteRepositoryRequest | 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.
   */
  /**
   *  Required. The repository's name.
   */
  // const name = 'abc123'
  /**
   *  If set to true, any child resources of this repository will also be
   *  deleted. (Otherwise, the request will only succeed if the repository has no
   *  child resources.)
   */
  // const force = true

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.deleteRepository(request);
    console.log(response);
  }

  callDeleteRepository();

deleteRepository(request, options, callback)

deleteRepository(request: protos.google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteRepositoryRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteRepository(request, callback)

deleteRepository(request: protos.google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteRepositoryRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteWorkflowInvocation(request, options)

deleteWorkflowInvocation(request?: protos.google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        (protos.google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest | undefined),
        {} | undefined
    ]>;

Deletes a single WorkflowInvocation.

Parameters
NameDescription
request IDeleteWorkflowInvocationRequest

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.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest | 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.
   */
  /**
   *  Required. The workflow invocation resource's name.
   */
  // const name = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.deleteWorkflowInvocation(request);
    console.log(response);
  }

  callDeleteWorkflowInvocation();

deleteWorkflowInvocation(request, options, callback)

deleteWorkflowInvocation(request: protos.google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteWorkflowInvocationRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteWorkflowInvocation(request, callback)

deleteWorkflowInvocation(request: protos.google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteWorkflowInvocationRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteWorkspace(request, options)

deleteWorkspace(request?: protos.google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        protos.google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest | undefined,
        {} | undefined
    ]>;

Deletes a single Workspace.

Parameters
NameDescription
request IDeleteWorkspaceRequest

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.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest | 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.
   */
  /**
   *  Required. The workspace resource's name.
   */
  // const name = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.deleteWorkspace(request);
    console.log(response);
  }

  callDeleteWorkspace();

deleteWorkspace(request, options, callback)

deleteWorkspace(request: protos.google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteWorkspaceRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteWorkspace(request, callback)

deleteWorkspace(request: protos.google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IDeleteWorkspaceRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

fetchFileDiff(request, options)

fetchFileDiff(request?: protos.google.cloud.dataform.v1alpha2.IFetchFileDiffRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IFetchFileDiffResponse,
        protos.google.cloud.dataform.v1alpha2.IFetchFileDiffRequest | undefined,
        {} | undefined
    ]>;

Fetches Git diff for an uncommitted file in a Workspace.

Parameters
NameDescription
request IFetchFileDiffRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IFetchFileDiffResponse, protos.google.cloud.dataform.v1alpha2.IFetchFileDiffRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing FetchFileDiffResponse. 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 workspace's name.
   */
  // const workspace = 'abc123'
  /**
   *  Required. The file's full path including filename, relative to the workspace root.
   */
  // const path = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callFetchFileDiff() {
    // Construct request
    const request = {
      workspace,
      path,
    };

    // Run request
    const response = await dataformClient.fetchFileDiff(request);
    console.log(response);
  }

  callFetchFileDiff();

fetchFileDiff(request, options, callback)

fetchFileDiff(request: protos.google.cloud.dataform.v1alpha2.IFetchFileDiffRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IFetchFileDiffResponse, protos.google.cloud.dataform.v1alpha2.IFetchFileDiffRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IFetchFileDiffRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IFetchFileDiffResponse, protos.google.cloud.dataform.v1alpha2.IFetchFileDiffRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

fetchFileDiff(request, callback)

fetchFileDiff(request: protos.google.cloud.dataform.v1alpha2.IFetchFileDiffRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IFetchFileDiffResponse, protos.google.cloud.dataform.v1alpha2.IFetchFileDiffRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IFetchFileDiffRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IFetchFileDiffResponse, protos.google.cloud.dataform.v1alpha2.IFetchFileDiffRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

fetchFileGitStatuses(request, options)

fetchFileGitStatuses(request?: protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesResponse,
        (protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesRequest | undefined),
        {} | undefined
    ]>;

Fetches Git statuses for the files in a Workspace.

Parameters
NameDescription
request IFetchFileGitStatusesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesResponse, (protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesRequest | 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 workspace's name.
   */
  // const name = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.fetchFileGitStatuses(request);
    console.log(response);
  }

  callFetchFileGitStatuses();

fetchFileGitStatuses(request, options, callback)

fetchFileGitStatuses(request: protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesResponse, protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IFetchFileGitStatusesRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesResponse, protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

fetchFileGitStatuses(request, callback)

fetchFileGitStatuses(request: protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesResponse, protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IFetchFileGitStatusesRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesResponse, protos.google.cloud.dataform.v1alpha2.IFetchFileGitStatusesRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

fetchGitAheadBehind(request, options)

fetchGitAheadBehind(request?: protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindResponse,
        (protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindRequest | undefined),
        {} | undefined
    ]>;

Fetches Git ahead/behind against a remote branch.

Parameters
NameDescription
request IFetchGitAheadBehindRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindResponse, (protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing FetchGitAheadBehindResponse. 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 workspace's name.
   */
  // const name = 'abc123'
  /**
   *  Optional. The name of the branch in the Git remote against which this workspace
   *  should be compared. If left unset, the repository's default branch name
   *  will be used.
   */
  // const remoteBranch = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.fetchGitAheadBehind(request);
    console.log(response);
  }

  callFetchGitAheadBehind();

fetchGitAheadBehind(request, options, callback)

fetchGitAheadBehind(request: protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindResponse, protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IFetchGitAheadBehindRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindResponse, protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

fetchGitAheadBehind(request, callback)

fetchGitAheadBehind(request: protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindResponse, protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IFetchGitAheadBehindRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindResponse, protos.google.cloud.dataform.v1alpha2.IFetchGitAheadBehindRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

fetchRemoteBranches(request, options)

fetchRemoteBranches(request?: protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesResponse,
        (protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesRequest | undefined),
        {} | undefined
    ]>;

Fetches a Repository's remote branches.

Parameters
NameDescription
request IFetchRemoteBranchesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesResponse, (protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing FetchRemoteBranchesResponse. 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 repository's name.
   */
  // const name = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.fetchRemoteBranches(request);
    console.log(response);
  }

  callFetchRemoteBranches();

fetchRemoteBranches(request, options, callback)

fetchRemoteBranches(request: protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesResponse, protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IFetchRemoteBranchesRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesResponse, protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

fetchRemoteBranches(request, callback)

fetchRemoteBranches(request: protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesResponse, protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IFetchRemoteBranchesRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesResponse, protos.google.cloud.dataform.v1alpha2.IFetchRemoteBranchesRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getCompilationResult(request, options)

getCompilationResult(request?: protos.google.cloud.dataform.v1alpha2.IGetCompilationResultRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.ICompilationResult,
        (protos.google.cloud.dataform.v1alpha2.IGetCompilationResultRequest | undefined),
        {} | undefined
    ]>;

Fetches a single CompilationResult.

Parameters
NameDescription
request IGetCompilationResultRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.ICompilationResult, (protos.google.cloud.dataform.v1alpha2.IGetCompilationResultRequest | 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 compilation result's name.
   */
  // const name = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.getCompilationResult(request);
    console.log(response);
  }

  callGetCompilationResult();

getCompilationResult(request, options, callback)

getCompilationResult(request: protos.google.cloud.dataform.v1alpha2.IGetCompilationResultRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.ICompilationResult, protos.google.cloud.dataform.v1alpha2.IGetCompilationResultRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetCompilationResultRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.ICompilationResult, protos.google.cloud.dataform.v1alpha2.IGetCompilationResultRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getCompilationResult(request, callback)

getCompilationResult(request: protos.google.cloud.dataform.v1alpha2.IGetCompilationResultRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.ICompilationResult, protos.google.cloud.dataform.v1alpha2.IGetCompilationResultRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetCompilationResultRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.ICompilationResult, protos.google.cloud.dataform.v1alpha2.IGetCompilationResultRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getIamPolicy(request, options, callback)

getIamPolicy(request: IamProtos.google.iam.v1.GetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<[IamProtos.google.iam.v1.Policy]>;

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Parameters
NameDescription
request IamProtos.google.iam.v1.GetIamPolicyRequest

The request object that will be sent.

options CallOptions | Callback<google.iam.v1.Policy, google.iam.v1.GetIamPolicyRequest | null | undefined, {} | 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<google.iam.v1.Policy, google.iam.v1.GetIamPolicyRequest | null | undefined, {} | 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 .

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

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

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);

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

getRepository(request, options)

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

Fetches a single 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.cloud.dataform.v1alpha2.IRepository, protos.google.cloud.dataform.v1alpha2.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 repository's name.
   */
  // const name = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

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

  callGetRepository();

getRepository(request, options, callback)

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

getRepository(request, callback)

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

getWorkflowInvocation(request, options)

getWorkflowInvocation(request?: protos.google.cloud.dataform.v1alpha2.IGetWorkflowInvocationRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation,
        (protos.google.cloud.dataform.v1alpha2.IGetWorkflowInvocationRequest | undefined),
        {} | undefined
    ]>;

Fetches a single WorkflowInvocation.

Parameters
NameDescription
request IGetWorkflowInvocationRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation, (protos.google.cloud.dataform.v1alpha2.IGetWorkflowInvocationRequest | 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 workflow invocation resource's name.
   */
  // const name = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.getWorkflowInvocation(request);
    console.log(response);
  }

  callGetWorkflowInvocation();

getWorkflowInvocation(request, options, callback)

getWorkflowInvocation(request: protos.google.cloud.dataform.v1alpha2.IGetWorkflowInvocationRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation, protos.google.cloud.dataform.v1alpha2.IGetWorkflowInvocationRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetWorkflowInvocationRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation, protos.google.cloud.dataform.v1alpha2.IGetWorkflowInvocationRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getWorkflowInvocation(request, callback)

getWorkflowInvocation(request: protos.google.cloud.dataform.v1alpha2.IGetWorkflowInvocationRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation, protos.google.cloud.dataform.v1alpha2.IGetWorkflowInvocationRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetWorkflowInvocationRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation, protos.google.cloud.dataform.v1alpha2.IGetWorkflowInvocationRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getWorkspace(request, options)

getWorkspace(request?: protos.google.cloud.dataform.v1alpha2.IGetWorkspaceRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IWorkspace,
        protos.google.cloud.dataform.v1alpha2.IGetWorkspaceRequest | undefined,
        {} | undefined
    ]>;

Fetches a single Workspace.

Parameters
NameDescription
request IGetWorkspaceRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IWorkspace, protos.google.cloud.dataform.v1alpha2.IGetWorkspaceRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing Workspace. 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 workspace's name.
   */
  // const name = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.getWorkspace(request);
    console.log(response);
  }

  callGetWorkspace();

getWorkspace(request, options, callback)

getWorkspace(request: protos.google.cloud.dataform.v1alpha2.IGetWorkspaceRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IWorkspace, protos.google.cloud.dataform.v1alpha2.IGetWorkspaceRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetWorkspaceRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IWorkspace, protos.google.cloud.dataform.v1alpha2.IGetWorkspaceRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getWorkspace(request, callback)

getWorkspace(request: protos.google.cloud.dataform.v1alpha2.IGetWorkspaceRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IWorkspace, protos.google.cloud.dataform.v1alpha2.IGetWorkspaceRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IGetWorkspaceRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IWorkspace, protos.google.cloud.dataform.v1alpha2.IGetWorkspaceRequest | 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.

installNpmPackages(request, options)

installNpmPackages(request?: protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesResponse,
        (protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesRequest | undefined),
        {} | undefined
    ]>;

Installs dependency NPM packages (inside a Workspace).

Parameters
NameDescription
request IInstallNpmPackagesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesResponse, (protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing InstallNpmPackagesResponse. 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 workspace's name.
   */
  // const workspace = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callInstallNpmPackages() {
    // Construct request
    const request = {
      workspace,
    };

    // Run request
    const response = await dataformClient.installNpmPackages(request);
    console.log(response);
  }

  callInstallNpmPackages();

installNpmPackages(request, options, callback)

installNpmPackages(request: protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesResponse, protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IInstallNpmPackagesRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesResponse, protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

installNpmPackages(request, callback)

installNpmPackages(request: protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesResponse, protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IInstallNpmPackagesRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesResponse, protos.google.cloud.dataform.v1alpha2.IInstallNpmPackagesRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

listCompilationResults(request, options)

listCompilationResults(request?: protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.ICompilationResult[],
        protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest | null,
        protos.google.cloud.dataform.v1alpha2.IListCompilationResultsResponse
    ]>;

Lists CompilationResults in a given Repository.

Parameters
NameDescription
request IListCompilationResultsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.ICompilationResult[], protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest | null, protos.google.cloud.dataform.v1alpha2.IListCompilationResultsResponse ]>

{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 listCompilationResultsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listCompilationResults(request, options, callback)

listCompilationResults(request: protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest, protos.google.cloud.dataform.v1alpha2.IListCompilationResultsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.ICompilationResult>): void;
Parameters
NameDescription
request IListCompilationResultsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest, protos.google.cloud.dataform.v1alpha2.IListCompilationResultsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.ICompilationResult>
Returns
TypeDescription
void

listCompilationResults(request, callback)

listCompilationResults(request: protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest, protos.google.cloud.dataform.v1alpha2.IListCompilationResultsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.ICompilationResult>): void;
Parameters
NameDescription
request IListCompilationResultsRequest
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest, protos.google.cloud.dataform.v1alpha2.IListCompilationResultsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.ICompilationResult>
Returns
TypeDescription
void

listCompilationResultsAsync(request, options)

listCompilationResultsAsync(request?: protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.dataform.v1alpha2.ICompilationResult>;

Equivalent to listCompilationResults, but returns an iterable object.

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

Parameters
NameDescription
request IListCompilationResultsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.dataform.v1alpha2.ICompilationResult>

{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 repository in which to list compilation results. Must be in the
   *  format `projects/* /locations/* /repositories/*`.
   */
  // const parent = 'abc123'
  /**
   *  Optional. Maximum number of compilation results to return. The server may return
   *  fewer items than requested. If unspecified, the server will pick an
   *  appropriate default.
   */
  // const pageSize = 1234
  /**
   *  Optional. Page token received from a previous `ListCompilationResults` call.
   *  Provide this to retrieve the subsequent page.
   *  When paginating, all other parameters provided to `ListCompilationResults`
   *  must match the call that provided the page token.
   */
  // const pageToken = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

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

  callListCompilationResults();

listCompilationResultsStream(request, options)

listCompilationResultsStream(request?: protos.google.cloud.dataform.v1alpha2.IListCompilationResultsRequest, options?: CallOptions): Transform;

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

Parameters
NameDescription
request IListCompilationResultsRequest

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 listCompilationResultsAsync() 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
}

listRepositories(request, options)

listRepositories(request?: protos.google.cloud.dataform.v1alpha2.IListRepositoriesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IRepository[],
        protos.google.cloud.dataform.v1alpha2.IListRepositoriesRequest | null,
        protos.google.cloud.dataform.v1alpha2.IListRepositoriesResponse
    ]>;

Lists Repositories in a given project and location.

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.cloud.dataform.v1alpha2.IRepository[], protos.google.cloud.dataform.v1alpha2.IListRepositoriesRequest | null, protos.google.cloud.dataform.v1alpha2.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.cloud.dataform.v1alpha2.IListRepositoriesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListRepositoriesRequest, protos.google.cloud.dataform.v1alpha2.IListRepositoriesResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IRepository>): void;
Parameters
NameDescription
request IListRepositoriesRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListRepositoriesRequest, protos.google.cloud.dataform.v1alpha2.IListRepositoriesResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IRepository>
Returns
TypeDescription
void

listRepositories(request, callback)

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

listRepositoriesAsync(request, options)

listRepositoriesAsync(request?: protos.google.cloud.dataform.v1alpha2.IListRepositoriesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.dataform.v1alpha2.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.cloud.dataform.v1alpha2.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

  /**
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The location in which to list repositories. Must be in the format
   *  `projects/* /locations/*`.
   */
  // const parent = 'abc123'
  /**
   *  Optional. Maximum number of repositories to return. The server may return fewer
   *  items than requested. If unspecified, the server will pick an appropriate
   *  default.
   */
  // const pageSize = 1234
  /**
   *  Optional. Page token received from a previous `ListRepositories` call.
   *  Provide this to retrieve the subsequent page.
   *  When paginating, all other parameters provided to `ListRepositories`
   *  must match the call that provided the page token.
   */
  // const pageToken = 'abc123'
  /**
   *  Optional. This field only supports ordering by `name`. If unspecified, the server
   *  will choose the ordering. If specified, the default order is ascending for
   *  the `name` field.
   */
  // const orderBy = 'abc123'
  /**
   *  Optional. Filter for the returned list.
   */
  // const filter = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

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

  callListRepositories();

listRepositoriesStream(request, options)

listRepositoriesStream(request?: protos.google.cloud.dataform.v1alpha2.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.

listWorkflowInvocations(request, options)

listWorkflowInvocations(request?: protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation[],
        protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest | null,
        protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsResponse
    ]>;

Lists WorkflowInvocations in a given Repository.

Parameters
NameDescription
request IListWorkflowInvocationsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation[], protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest | null, protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsResponse ]>

{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 listWorkflowInvocationsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listWorkflowInvocations(request, options, callback)

listWorkflowInvocations(request: protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest, protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation>): void;
Parameters
NameDescription
request IListWorkflowInvocationsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest, protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation>
Returns
TypeDescription
void

listWorkflowInvocations(request, callback)

listWorkflowInvocations(request: protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest, protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation>): void;
Parameters
NameDescription
request IListWorkflowInvocationsRequest
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest, protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation>
Returns
TypeDescription
void

listWorkflowInvocationsAsync(request, options)

listWorkflowInvocationsAsync(request?: protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation>;

Equivalent to listWorkflowInvocations, but returns an iterable object.

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

Parameters
NameDescription
request IListWorkflowInvocationsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocation>

{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 parent resource of the WorkflowInvocation type. Must be in the
   *  format `projects/* /locations/* /repositories/*`.
   */
  // const parent = 'abc123'
  /**
   *  Optional. Maximum number of workflow invocations to return. The server may return
   *  fewer items than requested. If unspecified, the server will pick an
   *  appropriate default.
   */
  // const pageSize = 1234
  /**
   *  Optional. Page token received from a previous `ListWorkflowInvocations` call.
   *  Provide this to retrieve the subsequent page.
   *  When paginating, all other parameters provided to `ListWorkflowInvocations`
   *  must match the call that provided the page token.
   */
  // const pageToken = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

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

  callListWorkflowInvocations();

listWorkflowInvocationsStream(request, options)

listWorkflowInvocationsStream(request?: protos.google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest, options?: CallOptions): Transform;

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

Parameters
NameDescription
request IListWorkflowInvocationsRequest

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 listWorkflowInvocationsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listWorkspaces(request, options)

listWorkspaces(request?: protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IWorkspace[],
        protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest | null,
        protos.google.cloud.dataform.v1alpha2.IListWorkspacesResponse
    ]>;

Lists Workspaces in a given Repository.

Parameters
NameDescription
request IListWorkspacesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IWorkspace[], protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest | null, protos.google.cloud.dataform.v1alpha2.IListWorkspacesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of Workspace. 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 listWorkspacesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listWorkspaces(request, options, callback)

listWorkspaces(request: protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest, protos.google.cloud.dataform.v1alpha2.IListWorkspacesResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkspace>): void;
Parameters
NameDescription
request IListWorkspacesRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest, protos.google.cloud.dataform.v1alpha2.IListWorkspacesResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkspace>
Returns
TypeDescription
void

listWorkspaces(request, callback)

listWorkspaces(request: protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest, protos.google.cloud.dataform.v1alpha2.IListWorkspacesResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkspace>): void;
Parameters
NameDescription
request IListWorkspacesRequest
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest, protos.google.cloud.dataform.v1alpha2.IListWorkspacesResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkspace>
Returns
TypeDescription
void

listWorkspacesAsync(request, options)

listWorkspacesAsync(request?: protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.dataform.v1alpha2.IWorkspace>;

Equivalent to listWorkspaces, but returns an iterable object.

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

Parameters
NameDescription
request IListWorkspacesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.dataform.v1alpha2.IWorkspace>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Workspace. 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 repository in which to list workspaces. Must be in the
   *  format `projects/* /locations/* /repositories/*`.
   */
  // const parent = 'abc123'
  /**
   *  Optional. Maximum number of workspaces to return. The server may return fewer
   *  items than requested. If unspecified, the server will pick an appropriate
   *  default.
   */
  // const pageSize = 1234
  /**
   *  Optional. Page token received from a previous `ListWorkspaces` call.
   *  Provide this to retrieve the subsequent page.
   *  When paginating, all other parameters provided to `ListWorkspaces`
   *  must match the call that provided the page token.
   */
  // const pageToken = 'abc123'
  /**
   *  Optional. This field only supports ordering by `name`. If unspecified, the server
   *  will choose the ordering. If specified, the default order is ascending for
   *  the `name` field.
   */
  // const orderBy = 'abc123'
  /**
   *  Optional. Filter for the returned list.
   */
  // const filter = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

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

  callListWorkspaces();

listWorkspacesStream(request, options)

listWorkspacesStream(request?: protos.google.cloud.dataform.v1alpha2.IListWorkspacesRequest, options?: CallOptions): Transform;

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

Parameters
NameDescription
request IListWorkspacesRequest

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 Workspace 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 listWorkspacesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

locationPath(project, location)

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

Return a fully-qualified location resource name string.

Parameters
NameDescription
project string
location string
Returns
TypeDescription
string

{string} Resource name string.

makeDirectory(request, options)

makeDirectory(request?: protos.google.cloud.dataform.v1alpha2.IMakeDirectoryRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IMakeDirectoryResponse,
        protos.google.cloud.dataform.v1alpha2.IMakeDirectoryRequest | undefined,
        {} | undefined
    ]>;

Creates a directory inside a Workspace.

Parameters
NameDescription
request IMakeDirectoryRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IMakeDirectoryResponse, protos.google.cloud.dataform.v1alpha2.IMakeDirectoryRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing MakeDirectoryResponse. 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 workspace's name.
   */
  // const workspace = 'abc123'
  /**
   *  Required. The directory's full path including directory name, relative to the
   *  workspace root.
   */
  // const path = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callMakeDirectory() {
    // Construct request
    const request = {
      workspace,
      path,
    };

    // Run request
    const response = await dataformClient.makeDirectory(request);
    console.log(response);
  }

  callMakeDirectory();

makeDirectory(request, options, callback)

makeDirectory(request: protos.google.cloud.dataform.v1alpha2.IMakeDirectoryRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IMakeDirectoryResponse, protos.google.cloud.dataform.v1alpha2.IMakeDirectoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IMakeDirectoryRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IMakeDirectoryResponse, protos.google.cloud.dataform.v1alpha2.IMakeDirectoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

makeDirectory(request, callback)

makeDirectory(request: protos.google.cloud.dataform.v1alpha2.IMakeDirectoryRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IMakeDirectoryResponse, protos.google.cloud.dataform.v1alpha2.IMakeDirectoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IMakeDirectoryRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IMakeDirectoryResponse, protos.google.cloud.dataform.v1alpha2.IMakeDirectoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

matchCompilationResultFromCompilationResultName(compilationResultName)

matchCompilationResultFromCompilationResultName(compilationResultName: string): string | number;

Parse the compilation_result from CompilationResult resource.

Parameter
NameDescription
compilationResultName string

A fully-qualified path representing CompilationResult resource.

Returns
TypeDescription
string | number

{string} A string representing the compilation_result.

matchLocationFromCompilationResultName(compilationResultName)

matchLocationFromCompilationResultName(compilationResultName: string): string | number;

Parse the location from CompilationResult resource.

Parameter
NameDescription
compilationResultName string

A fully-qualified path representing CompilationResult resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromLocationName(locationName)

matchLocationFromLocationName(locationName: string): string | number;

Parse the location from Location resource.

Parameter
NameDescription
locationName string

A fully-qualified path representing Location 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.

matchLocationFromWorkflowInvocationName(workflowInvocationName)

matchLocationFromWorkflowInvocationName(workflowInvocationName: string): string | number;

Parse the location from WorkflowInvocation resource.

Parameter
NameDescription
workflowInvocationName string

A fully-qualified path representing WorkflowInvocation resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromWorkspaceName(workspaceName)

matchLocationFromWorkspaceName(workspaceName: string): string | number;

Parse the location from Workspace resource.

Parameter
NameDescription
workspaceName string

A fully-qualified path representing Workspace resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchProjectFromCompilationResultName(compilationResultName)

matchProjectFromCompilationResultName(compilationResultName: string): string | number;

Parse the project from CompilationResult resource.

Parameter
NameDescription
compilationResultName string

A fully-qualified path representing CompilationResult resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromLocationName(locationName)

matchProjectFromLocationName(locationName: string): string | number;

Parse the project from Location resource.

Parameter
NameDescription
locationName string

A fully-qualified path representing Location 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.

matchProjectFromWorkflowInvocationName(workflowInvocationName)

matchProjectFromWorkflowInvocationName(workflowInvocationName: string): string | number;

Parse the project from WorkflowInvocation resource.

Parameter
NameDescription
workflowInvocationName string

A fully-qualified path representing WorkflowInvocation resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromWorkspaceName(workspaceName)

matchProjectFromWorkspaceName(workspaceName: string): string | number;

Parse the project from Workspace resource.

Parameter
NameDescription
workspaceName string

A fully-qualified path representing Workspace resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchRepositoryFromCompilationResultName(compilationResultName)

matchRepositoryFromCompilationResultName(compilationResultName: string): string | number;

Parse the repository from CompilationResult resource.

Parameter
NameDescription
compilationResultName string

A fully-qualified path representing CompilationResult 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.

matchRepositoryFromWorkflowInvocationName(workflowInvocationName)

matchRepositoryFromWorkflowInvocationName(workflowInvocationName: string): string | number;

Parse the repository from WorkflowInvocation resource.

Parameter
NameDescription
workflowInvocationName string

A fully-qualified path representing WorkflowInvocation resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchRepositoryFromWorkspaceName(workspaceName)

matchRepositoryFromWorkspaceName(workspaceName: string): string | number;

Parse the repository from Workspace resource.

Parameter
NameDescription
workspaceName string

A fully-qualified path representing Workspace resource.

Returns
TypeDescription
string | number

{string} A string representing the repository.

matchWorkflowInvocationFromWorkflowInvocationName(workflowInvocationName)

matchWorkflowInvocationFromWorkflowInvocationName(workflowInvocationName: string): string | number;

Parse the workflow_invocation from WorkflowInvocation resource.

Parameter
NameDescription
workflowInvocationName string

A fully-qualified path representing WorkflowInvocation resource.

Returns
TypeDescription
string | number

{string} A string representing the workflow_invocation.

matchWorkspaceFromWorkspaceName(workspaceName)

matchWorkspaceFromWorkspaceName(workspaceName: string): string | number;

Parse the workspace from Workspace resource.

Parameter
NameDescription
workspaceName string

A fully-qualified path representing Workspace resource.

Returns
TypeDescription
string | number

{string} A string representing the workspace.

moveDirectory(request, options)

moveDirectory(request?: protos.google.cloud.dataform.v1alpha2.IMoveDirectoryRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IMoveDirectoryResponse,
        protos.google.cloud.dataform.v1alpha2.IMoveDirectoryRequest | undefined,
        {} | undefined
    ]>;

Moves a directory (inside a Workspace), and all of its contents, to a new location.

Parameters
NameDescription
request IMoveDirectoryRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IMoveDirectoryResponse, protos.google.cloud.dataform.v1alpha2.IMoveDirectoryRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing MoveDirectoryResponse. 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 workspace's name.
   */
  // const workspace = 'abc123'
  /**
   *  Required. The directory's full path including directory name, relative to the
   *  workspace root.
   */
  // const path = 'abc123'
  /**
   *  Required. The new path for the directory including directory name, rooted at
   *  workspace root.
   */
  // const newPath = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callMoveDirectory() {
    // Construct request
    const request = {
      workspace,
      path,
      newPath,
    };

    // Run request
    const response = await dataformClient.moveDirectory(request);
    console.log(response);
  }

  callMoveDirectory();

moveDirectory(request, options, callback)

moveDirectory(request: protos.google.cloud.dataform.v1alpha2.IMoveDirectoryRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IMoveDirectoryResponse, protos.google.cloud.dataform.v1alpha2.IMoveDirectoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IMoveDirectoryRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IMoveDirectoryResponse, protos.google.cloud.dataform.v1alpha2.IMoveDirectoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

moveDirectory(request, callback)

moveDirectory(request: protos.google.cloud.dataform.v1alpha2.IMoveDirectoryRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IMoveDirectoryResponse, protos.google.cloud.dataform.v1alpha2.IMoveDirectoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IMoveDirectoryRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IMoveDirectoryResponse, protos.google.cloud.dataform.v1alpha2.IMoveDirectoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

moveFile(request, options)

moveFile(request?: protos.google.cloud.dataform.v1alpha2.IMoveFileRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IMoveFileResponse,
        protos.google.cloud.dataform.v1alpha2.IMoveFileRequest | undefined,
        {} | undefined
    ]>;

Moves a file (inside a Workspace) to a new location.

Parameters
NameDescription
request IMoveFileRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IMoveFileResponse, protos.google.cloud.dataform.v1alpha2.IMoveFileRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing MoveFileResponse. 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 workspace's name.
   */
  // const workspace = 'abc123'
  /**
   *  Required. The file's full path including filename, relative to the workspace root.
   */
  // const path = 'abc123'
  /**
   *  Required. The file's new path including filename, relative to the workspace root.
   */
  // const newPath = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callMoveFile() {
    // Construct request
    const request = {
      workspace,
      path,
      newPath,
    };

    // Run request
    const response = await dataformClient.moveFile(request);
    console.log(response);
  }

  callMoveFile();

moveFile(request, options, callback)

moveFile(request: protos.google.cloud.dataform.v1alpha2.IMoveFileRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IMoveFileResponse, protos.google.cloud.dataform.v1alpha2.IMoveFileRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IMoveFileRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IMoveFileResponse, protos.google.cloud.dataform.v1alpha2.IMoveFileRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

moveFile(request, callback)

moveFile(request: protos.google.cloud.dataform.v1alpha2.IMoveFileRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IMoveFileResponse, protos.google.cloud.dataform.v1alpha2.IMoveFileRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IMoveFileRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IMoveFileResponse, protos.google.cloud.dataform.v1alpha2.IMoveFileRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

pullGitCommits(request, options)

pullGitCommits(request?: protos.google.cloud.dataform.v1alpha2.IPullGitCommitsRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        protos.google.cloud.dataform.v1alpha2.IPullGitCommitsRequest | undefined,
        {} | undefined
    ]>;

Pulls Git commits from the Repository's remote into a Workspace.

Parameters
NameDescription
request IPullGitCommitsRequest

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.cloud.dataform.v1alpha2.IPullGitCommitsRequest | 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.
   */
  /**
   *  Required. The workspace's name.
   */
  // const name = 'abc123'
  /**
   *  Optional. The name of the branch in the Git remote from which to pull commits.
   *  If left unset, the repository's default branch name will be used.
   */
  // const remoteBranch = 'abc123'
  /**
   *  Required. The author of any merge commit which may be created as a result of merging
   *  fetched Git commits into this workspace.
   */
  // const author = {}

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.pullGitCommits(request);
    console.log(response);
  }

  callPullGitCommits();

pullGitCommits(request, options, callback)

pullGitCommits(request: protos.google.cloud.dataform.v1alpha2.IPullGitCommitsRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IPullGitCommitsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IPullGitCommitsRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IPullGitCommitsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

pullGitCommits(request, callback)

pullGitCommits(request: protos.google.cloud.dataform.v1alpha2.IPullGitCommitsRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IPullGitCommitsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IPullGitCommitsRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IPullGitCommitsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

pushGitCommits(request, options)

pushGitCommits(request?: protos.google.cloud.dataform.v1alpha2.IPushGitCommitsRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        protos.google.cloud.dataform.v1alpha2.IPushGitCommitsRequest | undefined,
        {} | undefined
    ]>;

Pushes Git commits from a Workspace to the Repository's remote.

Parameters
NameDescription
request IPushGitCommitsRequest

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.cloud.dataform.v1alpha2.IPushGitCommitsRequest | 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.
   */
  /**
   *  Required. The workspace's name.
   */
  // const name = 'abc123'
  /**
   *  Optional. The name of the branch in the Git remote to which commits should be pushed.
   *  If left unset, the repository's default branch name will be used.
   */
  // const remoteBranch = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.pushGitCommits(request);
    console.log(response);
  }

  callPushGitCommits();

pushGitCommits(request, options, callback)

pushGitCommits(request: protos.google.cloud.dataform.v1alpha2.IPushGitCommitsRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IPushGitCommitsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IPushGitCommitsRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IPushGitCommitsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

pushGitCommits(request, callback)

pushGitCommits(request: protos.google.cloud.dataform.v1alpha2.IPushGitCommitsRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IPushGitCommitsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IPushGitCommitsRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IPushGitCommitsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

queryCompilationResultActions(request, options)

queryCompilationResultActions(request?: protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.ICompilationResultAction[],
        protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest | null,
        protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsResponse
    ]>;

Returns CompilationResultActions in a given CompilationResult.

Parameters
NameDescription
request IQueryCompilationResultActionsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.ICompilationResultAction[], protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest | null, protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsResponse ]>

{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 queryCompilationResultActionsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

queryCompilationResultActions(request, options, callback)

queryCompilationResultActions(request: protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest, protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.ICompilationResultAction>): void;
Parameters
NameDescription
request IQueryCompilationResultActionsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest, protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.ICompilationResultAction>
Returns
TypeDescription
void

queryCompilationResultActions(request, callback)

queryCompilationResultActions(request: protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest, protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.ICompilationResultAction>): void;
Parameters
NameDescription
request IQueryCompilationResultActionsRequest
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest, protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.ICompilationResultAction>
Returns
TypeDescription
void

queryCompilationResultActionsAsync(request, options)

queryCompilationResultActionsAsync(request?: protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.dataform.v1alpha2.ICompilationResultAction>;

Equivalent to queryCompilationResultActions, but returns an iterable object.

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

Parameters
NameDescription
request IQueryCompilationResultActionsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.dataform.v1alpha2.ICompilationResultAction>

{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 compilation result's name.
   */
  // const name = 'abc123'
  /**
   *  Optional. Maximum number of compilation results to return. The server may return
   *  fewer items than requested. If unspecified, the server will pick an
   *  appropriate default.
   */
  // const pageSize = 1234
  /**
   *  Optional. Page token received from a previous `QueryCompilationResultActions` call.
   *  Provide this to retrieve the subsequent page.
   *  When paginating, all other parameters provided to
   *  `QueryCompilationResultActions` must match the call that provided the page
   *  token.
   */
  // const pageToken = 'abc123'
  /**
   *  Optional. Optional filter for the returned list. Filtering is only currently
   *  supported on the `file_path` field.
   */
  // const filter = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

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

  callQueryCompilationResultActions();

queryCompilationResultActionsStream(request, options)

queryCompilationResultActionsStream(request?: protos.google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest, options?: CallOptions): Transform;

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

Parameters
NameDescription
request IQueryCompilationResultActionsRequest

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 queryCompilationResultActionsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

queryDirectoryContents(request, options)

queryDirectoryContents(request?: protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.IDirectoryEntry[],
        protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest | null,
        protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsResponse
    ]>;

Returns the contents of a given Workspace directory.

Parameters
NameDescription
request IQueryDirectoryContentsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.IDirectoryEntry[], protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest | null, protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsResponse ]>

{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 queryDirectoryContentsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

queryDirectoryContents(request, options, callback)

queryDirectoryContents(request: protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest, protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.IDirectoryEntry>): void;
Parameters
NameDescription
request IQueryDirectoryContentsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest, protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.IDirectoryEntry>
Returns
TypeDescription
void

queryDirectoryContents(request, callback)

queryDirectoryContents(request: protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest, protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.IDirectoryEntry>): void;
Parameters
NameDescription
request IQueryDirectoryContentsRequest
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest, protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.IDirectoryEntry>
Returns
TypeDescription
void

queryDirectoryContentsAsync(request, options)

queryDirectoryContentsAsync(request?: protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.IDirectoryEntry>;

Equivalent to queryDirectoryContents, but returns an iterable object.

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

Parameters
NameDescription
request IQueryDirectoryContentsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.IDirectoryEntry>

{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 workspace's name.
   */
  // const workspace = 'abc123'
  /**
   *  Optional. The directory's full path including directory name, relative to the
   *  workspace root. If left unset, the workspace root is used.
   */
  // const path = 'abc123'
  /**
   *  Optional. Maximum number of paths to return. The server may return fewer
   *  items than requested. If unspecified, the server will pick an appropriate
   *  default.
   */
  // const pageSize = 1234
  /**
   *  Optional. Page token received from a previous `QueryDirectoryContents` call.
   *  Provide this to retrieve the subsequent page.
   *  When paginating, all other parameters provided to
   *  `QueryDirectoryContents` must match the call that provided the page
   *  token.
   */
  // const pageToken = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callQueryDirectoryContents() {
    // Construct request
    const request = {
      workspace,
    };

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

  callQueryDirectoryContents();

queryDirectoryContentsStream(request, options)

queryDirectoryContentsStream(request?: protos.google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest, options?: CallOptions): Transform;

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

Parameters
NameDescription
request IQueryDirectoryContentsRequest

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 queryDirectoryContentsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

queryWorkflowInvocationActions(request, options)

queryWorkflowInvocationActions(request?: protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IWorkflowInvocationAction[],
        protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest | null,
        protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsResponse
    ]>;

Returns WorkflowInvocationActions in a given WorkflowInvocation.

Parameters
NameDescription
request IQueryWorkflowInvocationActionsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IWorkflowInvocationAction[], protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest | null, protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsResponse ]>

{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 queryWorkflowInvocationActionsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

queryWorkflowInvocationActions(request, options, callback)

queryWorkflowInvocationActions(request: protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest, protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkflowInvocationAction>): void;
Parameters
NameDescription
request IQueryWorkflowInvocationActionsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest, protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkflowInvocationAction>
Returns
TypeDescription
void

queryWorkflowInvocationActions(request, callback)

queryWorkflowInvocationActions(request: protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest, callback: PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest, protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkflowInvocationAction>): void;
Parameters
NameDescription
request IQueryWorkflowInvocationActionsRequest
callback PaginationCallback<protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest, protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsResponse | null | undefined, protos.google.cloud.dataform.v1alpha2.IWorkflowInvocationAction>
Returns
TypeDescription
void

queryWorkflowInvocationActionsAsync(request, options)

queryWorkflowInvocationActionsAsync(request?: protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocationAction>;

Equivalent to queryWorkflowInvocationActions, but returns an iterable object.

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

Parameters
NameDescription
request IQueryWorkflowInvocationActionsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.dataform.v1alpha2.IWorkflowInvocationAction>

{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 workflow invocation's name.
   */
  // const name = 'abc123'
  /**
   *  Optional. Maximum number of workflow invocations to return. The server may return
   *  fewer items than requested. If unspecified, the server will pick an
   *  appropriate default.
   */
  // const pageSize = 1234
  /**
   *  Optional. Page token received from a previous `QueryWorkflowInvocationActions` call.
   *  Provide this to retrieve the subsequent page.
   *  When paginating, all other parameters provided to
   *  `QueryWorkflowInvocationActions` must match the call that provided the page
   *  token.
   */
  // const pageToken = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

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

  callQueryWorkflowInvocationActions();

queryWorkflowInvocationActionsStream(request, options)

queryWorkflowInvocationActionsStream(request?: protos.google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest, options?: CallOptions): Transform;

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

Parameters
NameDescription
request IQueryWorkflowInvocationActionsRequest

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 queryWorkflowInvocationActionsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

readFile(request, options)

readFile(request?: protos.google.cloud.dataform.v1alpha2.IReadFileRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IReadFileResponse,
        protos.google.cloud.dataform.v1alpha2.IReadFileRequest | undefined,
        {} | undefined
    ]>;

Returns the contents of a file (inside a Workspace).

Parameters
NameDescription
request IReadFileRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IReadFileResponse, protos.google.cloud.dataform.v1alpha2.IReadFileRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing ReadFileResponse. 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 workspace's name.
   */
  // const workspace = 'abc123'
  /**
   *  Required. The file's full path including filename, relative to the workspace root.
   */
  // const path = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callReadFile() {
    // Construct request
    const request = {
      workspace,
      path,
    };

    // Run request
    const response = await dataformClient.readFile(request);
    console.log(response);
  }

  callReadFile();

readFile(request, options, callback)

readFile(request: protos.google.cloud.dataform.v1alpha2.IReadFileRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IReadFileResponse, protos.google.cloud.dataform.v1alpha2.IReadFileRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IReadFileRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IReadFileResponse, protos.google.cloud.dataform.v1alpha2.IReadFileRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

readFile(request, callback)

readFile(request: protos.google.cloud.dataform.v1alpha2.IReadFileRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IReadFileResponse, protos.google.cloud.dataform.v1alpha2.IReadFileRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IReadFileRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IReadFileResponse, protos.google.cloud.dataform.v1alpha2.IReadFileRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

removeDirectory(request, options)

removeDirectory(request?: protos.google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        protos.google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest | undefined,
        {} | undefined
    ]>;

Deletes a directory (inside a Workspace) and all of its contents.

Parameters
NameDescription
request IRemoveDirectoryRequest

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.cloud.dataform.v1alpha2.IRemoveDirectoryRequest | 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.
   */
  /**
   *  Required. The workspace's name.
   */
  // const workspace = 'abc123'
  /**
   *  Required. The directory's full path including directory name, relative to the
   *  workspace root.
   */
  // const path = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callRemoveDirectory() {
    // Construct request
    const request = {
      workspace,
      path,
    };

    // Run request
    const response = await dataformClient.removeDirectory(request);
    console.log(response);
  }

  callRemoveDirectory();

removeDirectory(request, options, callback)

removeDirectory(request: protos.google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IRemoveDirectoryRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

removeDirectory(request, callback)

removeDirectory(request: protos.google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IRemoveDirectoryRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

removeFile(request, options)

removeFile(request?: protos.google.cloud.dataform.v1alpha2.IRemoveFileRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        protos.google.cloud.dataform.v1alpha2.IRemoveFileRequest | undefined,
        {} | undefined
    ]>;

Deletes a file (inside a Workspace).

Parameters
NameDescription
request IRemoveFileRequest

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.cloud.dataform.v1alpha2.IRemoveFileRequest | 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.
   */
  /**
   *  Required. The workspace's name.
   */
  // const workspace = 'abc123'
  /**
   *  Required. The file's full path including filename, relative to the workspace root.
   */
  // const path = 'abc123'

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callRemoveFile() {
    // Construct request
    const request = {
      workspace,
      path,
    };

    // Run request
    const response = await dataformClient.removeFile(request);
    console.log(response);
  }

  callRemoveFile();

removeFile(request, options, callback)

removeFile(request: protos.google.cloud.dataform.v1alpha2.IRemoveFileRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IRemoveFileRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IRemoveFileRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IRemoveFileRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

removeFile(request, callback)

removeFile(request: protos.google.cloud.dataform.v1alpha2.IRemoveFileRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IRemoveFileRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IRemoveFileRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IRemoveFileRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

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.

resetWorkspaceChanges(request, options)

resetWorkspaceChanges(request?: protos.google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        (protos.google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest | undefined),
        {} | undefined
    ]>;

Performs a Git reset for uncommitted files in a Workspace.

Parameters
NameDescription
request IResetWorkspaceChangesRequest

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.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest | 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.
   */
  /**
   *  Required. The workspace's name.
   */
  // const name = 'abc123'
  /**
   *  Optional. Full file paths to reset back to their committed state including filename,
   *  rooted at workspace root. If left empty, all files will be reset.
   */
  // const paths = ['abc','def']
  /**
   *  Optional. If set to true, untracked files will be deleted.
   */
  // const clean = true

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

    // Run request
    const response = await dataformClient.resetWorkspaceChanges(request);
    console.log(response);
  }

  callResetWorkspaceChanges();

resetWorkspaceChanges(request, options, callback)

resetWorkspaceChanges(request: protos.google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IResetWorkspaceChangesRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

resetWorkspaceChanges(request, callback)

resetWorkspaceChanges(request: protos.google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IResetWorkspaceChangesRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

setIamPolicy(request, options, callback)

setIamPolicy(request: IamProtos.google.iam.v1.SetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<[IamProtos.google.iam.v1.Policy]>;

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

Parameters
NameDescription
request IamProtos.google.iam.v1.SetIamPolicyRequest

The request object that will be sent.

options CallOptions | Callback<google.iam.v1.Policy, google.iam.v1.SetIamPolicyRequest | null | undefined, {} | 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<google.iam.v1.Policy, google.iam.v1.SetIamPolicyRequest | null | undefined, {} | 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 .

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

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

testIamPermissions(request, options, callback)

testIamPermissions(request: IamProtos.google.iam.v1.TestIamPermissionsRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>): Promise<[IamProtos.google.iam.v1.TestIamPermissionsResponse]>;

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

Parameters
NameDescription
request IamProtos.google.iam.v1.TestIamPermissionsRequest

The request object that will be sent.

options CallOptions | Callback<google.iam.v1.TestIamPermissionsResponse, google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | 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<google.iam.v1.TestIamPermissionsResponse, google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | 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 .

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

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

updateRepository(request, options)

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

Updates a single 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.cloud.dataform.v1alpha2.IRepository, (protos.google.cloud.dataform.v1alpha2.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.
   */
  /**
   *  Optional. Specifies the fields to be updated in the repository. If left unset,
   *  all fields will be updated.
   */
  // const updateMask = {}
  /**
   *  Required. The repository to update.
   */
  // const repository = {}

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

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

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

  callUpdateRepository();

updateRepository(request, options, callback)

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

updateRepository(request, callback)

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

workflowInvocationPath(project, location, repository, workflowInvocation)

workflowInvocationPath(project: string, location: string, repository: string, workflowInvocation: string): string;

Return a fully-qualified workflowInvocation resource name string.

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

{string} Resource name string.

workspacePath(project, location, repository, workspace)

workspacePath(project: string, location: string, repository: string, workspace: string): string;

Return a fully-qualified workspace resource name string.

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

{string} Resource name string.

writeFile(request, options)

writeFile(request?: protos.google.cloud.dataform.v1alpha2.IWriteFileRequest, options?: CallOptions): Promise<[
        protos.google.cloud.dataform.v1alpha2.IWriteFileResponse,
        protos.google.cloud.dataform.v1alpha2.IWriteFileRequest | undefined,
        {} | undefined
    ]>;

Writes to a file (inside a Workspace).

Parameters
NameDescription
request IWriteFileRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.dataform.v1alpha2.IWriteFileResponse, protos.google.cloud.dataform.v1alpha2.IWriteFileRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing WriteFileResponse. 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 workspace's name.
   */
  // const workspace = 'abc123'
  /**
   *  Required. The file.
   */
  // const path = 'abc123'
  /**
   *  Required. The file's contents.
   */
  // const contents = Buffer.from('string')

  // Imports the Dataform library
  const {DataformClient} = require('@google-cloud/dataform').v1alpha2;

  // Instantiates a client
  const dataformClient = new DataformClient();

  async function callWriteFile() {
    // Construct request
    const request = {
      workspace,
      path,
      contents,
    };

    // Run request
    const response = await dataformClient.writeFile(request);
    console.log(response);
  }

  callWriteFile();

writeFile(request, options, callback)

writeFile(request: protos.google.cloud.dataform.v1alpha2.IWriteFileRequest, options: CallOptions, callback: Callback<protos.google.cloud.dataform.v1alpha2.IWriteFileResponse, protos.google.cloud.dataform.v1alpha2.IWriteFileRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IWriteFileRequest
options CallOptions
callback Callback<protos.google.cloud.dataform.v1alpha2.IWriteFileResponse, protos.google.cloud.dataform.v1alpha2.IWriteFileRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

writeFile(request, callback)

writeFile(request: protos.google.cloud.dataform.v1alpha2.IWriteFileRequest, callback: Callback<protos.google.cloud.dataform.v1alpha2.IWriteFileResponse, protos.google.cloud.dataform.v1alpha2.IWriteFileRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request IWriteFileRequest
callback Callback<protos.google.cloud.dataform.v1alpha2.IWriteFileResponse, protos.google.cloud.dataform.v1alpha2.IWriteFileRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void