Dataform is a service to develop, create, document, test, and update curated tables in BigQuery. v1alpha2
Package
@google-cloud/dataformConstructors
(constructor)(opts, gaxInstance)
constructor
(
opts
?:
ClientOptions
,
gaxInstance
?:
typeof
gax
|
typeof
gax
.
fallback
);
Construct an instance of DataformClient.
opts
ClientOptions
gaxInstance
typeof gax | typeof gax.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: 'rest'}, 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.
request
protos. google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
request
protos. google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest
callback
Callback
<protos. google.protobuf.IEmpty
, protos. google.cloud.dataform.v1alpha2.ICancelWorkflowInvocationRequest
| null | undefined, {} | null | undefined>
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.
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.
request
protos. google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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 = 'abc123'
// 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
;
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
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
;
request
protos. google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest
callback
Callback
<protos. google.protobuf.IEmpty
, protos. google.cloud.dataform.v1alpha2.ICommitWorkspaceChangesRequest
| null | undefined, {} | null | undefined>
void
compilationResultPath(project, location, repository, compilationResult)
compilationResultPath
(
project
:
string
,
location
:
string
,
repository
:
string
,
compilationResult
:
string
)
:
string
;
Return a fully-qualified compilationResult resource name string.
project
string
location
string
repository
string
compilationResult
string
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.
request
protos. google.cloud.dataform.v1alpha2.ICreateCompilationResultRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.ICreateRepositoryRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.ICreateWorkflowInvocationRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.ICreateWorkspaceRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
request
protos. google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest
callback
Callback
<protos. google.protobuf.IEmpty
, protos. google.cloud.dataform.v1alpha2.IDeleteRepositoryRequest
| null | undefined, {} | null | undefined>
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.
request
protos. google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
request
protos. google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest
callback
Callback
<protos. google.protobuf.IEmpty
, protos. google.cloud.dataform.v1alpha2.IDeleteWorkflowInvocationRequest
| null | undefined, {} | null | undefined>
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.
request
protos. google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
request
protos. google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest
callback
Callback
<protos. google.protobuf.IEmpty
, protos. google.cloud.dataform.v1alpha2.IDeleteWorkspaceRequest
| null | undefined, {} | null | undefined>
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.
request
protos. google.cloud.dataform.v1alpha2.IFetchFileDiffRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IFetchFileGitStatusesRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IFetchGitAheadBehindRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IFetchRemoteBranchesRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IGetCompilationResultRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
IamProtos. google.iam.v1.GetIamPolicyRequest
The request object that will be sent.
options
gax. CallOptions
| Callback
<IamProtos. google.iam.v1.Policy
, IamProtos. 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
<IamProtos. google.iam.v1.Policy
, IamProtos. 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 .
Promise
<IamProtos. 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.
request
LocationProtos. google.cloud.location.IGetLocationRequest
The request object that will be sent.
options
gax. CallOptions
| Callback
<LocationProtos. google.cloud.location.ILocation
, LocationProtos. google.cloud.location.IGetLocationRequest
| null | undefined, {} | null | undefined>
Call options. See CallOptions for more details.
callback
Callback
<LocationProtos. google.cloud.location.ILocation
, LocationProtos. google.cloud.location.IGetLocationRequest
| null | undefined, {} | null | undefined>
Promise
<LocationProtos. 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
const
[
response
]
=
await
client
.
getLocation
(
request
);
getProjectId()
getProjectId
()
:
Promise<string>
;
Promise
<string>
getProjectId(callback)
getProjectId
(
callback
:
Callback<string
,
undefined
,
undefined
> )
:
void
;
callback
Callback
<string, undefined, undefined>
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.
request
protos. google.cloud.dataform.v1alpha2.IGetRepositoryRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IGetWorkflowInvocationRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IGetWorkspaceRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
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).
request
protos. google.cloud.dataform.v1alpha2.IInstallNpmPackagesRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IListCompilationResultsRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IListCompilationResultsRequest
The request object that will be sent.
options
AsyncIterable
<protos. google.cloud.dataform.v1alpha2.ICompilationResult
>
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
/**
* 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.
request
protos. google.cloud.dataform.v1alpha2.IListCompilationResultsRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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.
request
LocationProtos. google.cloud.location.IListLocationsRequest
The request object that will be sent.
options
AsyncIterable
<LocationProtos. google.cloud.location.ILocation
>
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
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.
request
protos. google.cloud.dataform.v1alpha2.IListRepositoriesRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IListRepositoriesRequest
The request object that will be sent.
options
AsyncIterable
<protos. google.cloud.dataform.v1alpha2.IRepository
>
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
/**
* 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.
request
protos. google.cloud.dataform.v1alpha2.IListRepositoriesRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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.
request
protos. google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest
The request object that will be sent.
options
AsyncIterable
<protos. google.cloud.dataform.v1alpha2.IWorkflowInvocation
>
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
/**
* 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.
request
protos. google.cloud.dataform.v1alpha2.IListWorkflowInvocationsRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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.
request
protos. google.cloud.dataform.v1alpha2.IListWorkspacesRequest
The request object that will be sent.
options
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 . 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IListWorkspacesRequest
The request object that will be sent.
options
AsyncIterable
<protos. google.cloud.dataform.v1alpha2.IWorkspace
>
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
/**
* 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.
request
protos. google.cloud.dataform.v1alpha2.IListWorkspacesRequest
The request object that will be sent.
options
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 listWorkspacesAsync()
method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
locationPath(project, location)
locationPath
(
project
:
string
,
location
:
string
)
:
string
;
Return a fully-qualified location resource name string.
project
string
location
string
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.
request
protos. google.cloud.dataform.v1alpha2.IMakeDirectoryRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
matchCompilationResultFromCompilationResultName(compilationResultName)
matchCompilationResultFromCompilationResultName
(
compilationResultName
:
string
)
:
string
|
number
;
Parse the compilation_result from CompilationResult resource.
compilationResultName
string
A fully-qualified path representing CompilationResult resource.
string | number
{string} A string representing the compilation_result.
matchLocationFromCompilationResultName(compilationResultName)
matchLocationFromCompilationResultName
(
compilationResultName
:
string
)
:
string
|
number
;
Parse the location from CompilationResult resource.
compilationResultName
string
A fully-qualified path representing CompilationResult resource.
string | number
{string} A string representing the location.
matchLocationFromLocationName(locationName)
matchLocationFromLocationName
(
locationName
:
string
)
:
string
|
number
;
Parse the location from Location resource.
locationName
string
A fully-qualified path representing Location resource.
string | number
{string} A string representing the location.
matchLocationFromRepositoryName(repositoryName)
matchLocationFromRepositoryName
(
repositoryName
:
string
)
:
string
|
number
;
Parse the location from Repository resource.
repositoryName
string
A fully-qualified path representing Repository resource.
string | number
{string} A string representing the location.
matchLocationFromWorkflowInvocationName(workflowInvocationName)
matchLocationFromWorkflowInvocationName
(
workflowInvocationName
:
string
)
:
string
|
number
;
Parse the location from WorkflowInvocation resource.
workflowInvocationName
string
A fully-qualified path representing WorkflowInvocation resource.
string | number
{string} A string representing the location.
matchLocationFromWorkspaceName(workspaceName)
matchLocationFromWorkspaceName
(
workspaceName
:
string
)
:
string
|
number
;
Parse the location from Workspace resource.
workspaceName
string
A fully-qualified path representing Workspace resource.
string | number
{string} A string representing the location.
matchProjectFromCompilationResultName(compilationResultName)
matchProjectFromCompilationResultName
(
compilationResultName
:
string
)
:
string
|
number
;
Parse the project from CompilationResult resource.
compilationResultName
string
A fully-qualified path representing CompilationResult resource.
string | number
{string} A string representing the project.
matchProjectFromLocationName(locationName)
matchProjectFromLocationName
(
locationName
:
string
)
:
string
|
number
;
Parse the project from Location resource.
locationName
string
A fully-qualified path representing Location resource.
string | number
{string} A string representing the project.
matchProjectFromRepositoryName(repositoryName)
matchProjectFromRepositoryName
(
repositoryName
:
string
)
:
string
|
number
;
Parse the project from Repository resource.
repositoryName
string
A fully-qualified path representing Repository resource.
string | number
{string} A string representing the project.
matchProjectFromWorkflowInvocationName(workflowInvocationName)
matchProjectFromWorkflowInvocationName
(
workflowInvocationName
:
string
)
:
string
|
number
;
Parse the project from WorkflowInvocation resource.
workflowInvocationName
string
A fully-qualified path representing WorkflowInvocation resource.
string | number
{string} A string representing the project.
matchProjectFromWorkspaceName(workspaceName)
matchProjectFromWorkspaceName
(
workspaceName
:
string
)
:
string
|
number
;
Parse the project from Workspace resource.
workspaceName
string
A fully-qualified path representing Workspace resource.
string | number
{string} A string representing the project.
matchRepositoryFromCompilationResultName(compilationResultName)
matchRepositoryFromCompilationResultName
(
compilationResultName
:
string
)
:
string
|
number
;
Parse the repository from CompilationResult resource.
compilationResultName
string
A fully-qualified path representing CompilationResult resource.
string | number
{string} A string representing the repository.
matchRepositoryFromRepositoryName(repositoryName)
matchRepositoryFromRepositoryName
(
repositoryName
:
string
)
:
string
|
number
;
Parse the repository from Repository resource.
repositoryName
string
A fully-qualified path representing Repository resource.
string | number
{string} A string representing the repository.
matchRepositoryFromWorkflowInvocationName(workflowInvocationName)
matchRepositoryFromWorkflowInvocationName
(
workflowInvocationName
:
string
)
:
string
|
number
;
Parse the repository from WorkflowInvocation resource.
workflowInvocationName
string
A fully-qualified path representing WorkflowInvocation resource.
string | number
{string} A string representing the repository.
matchRepositoryFromWorkspaceName(workspaceName)
matchRepositoryFromWorkspaceName
(
workspaceName
:
string
)
:
string
|
number
;
Parse the repository from Workspace resource.
workspaceName
string
A fully-qualified path representing Workspace resource.
string | number
{string} A string representing the repository.
matchWorkflowInvocationFromWorkflowInvocationName(workflowInvocationName)
matchWorkflowInvocationFromWorkflowInvocationName
(
workflowInvocationName
:
string
)
:
string
|
number
;
Parse the workflow_invocation from WorkflowInvocation resource.
workflowInvocationName
string
A fully-qualified path representing WorkflowInvocation resource.
string | number
{string} A string representing the workflow_invocation.
matchWorkspaceFromWorkspaceName(workspaceName)
matchWorkspaceFromWorkspaceName
(
workspaceName
:
string
)
:
string
|
number
;
Parse the workspace from Workspace resource.
workspaceName
string
A fully-qualified path representing Workspace resource.
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.
request
protos. google.cloud.dataform.v1alpha2.IMoveDirectoryRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IMoveFileRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IPullGitCommitsRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
request
protos. google.cloud.dataform.v1alpha2.IPullGitCommitsRequest
callback
Callback
<protos. google.protobuf.IEmpty
, protos. google.cloud.dataform.v1alpha2.IPullGitCommitsRequest
| null | undefined, {} | null | undefined>
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.
request
protos. google.cloud.dataform.v1alpha2.IPushGitCommitsRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
request
protos. google.cloud.dataform.v1alpha2.IPushGitCommitsRequest
callback
Callback
<protos. google.protobuf.IEmpty
, protos. google.cloud.dataform.v1alpha2.IPushGitCommitsRequest
| null | undefined, {} | null | undefined>
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.
request
protos. google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest
The request object that will be sent.
options
AsyncIterable
<protos. google.cloud.dataform.v1alpha2.ICompilationResultAction
>
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
/**
* 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.
request
protos. google.cloud.dataform.v1alpha2.IQueryCompilationResultActionsRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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.
request
protos. google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest
The request object that will be sent.
options
AsyncIterable
<protos. google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.IDirectoryEntry
>
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
/**
* 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.
request
protos. google.cloud.dataform.v1alpha2.IQueryDirectoryContentsRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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.
request
protos. google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest
The request object that will be sent.
options
AsyncIterable
<protos. google.cloud.dataform.v1alpha2.IWorkflowInvocationAction
>
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
/**
* 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.
request
protos. google.cloud.dataform.v1alpha2.IQueryWorkflowInvocationActionsRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) 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).
request
protos. google.cloud.dataform.v1alpha2.IReadFileRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
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.
request
protos. google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
request
protos. google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest
callback
Callback
<protos. google.protobuf.IEmpty
, protos. google.cloud.dataform.v1alpha2.IRemoveDirectoryRequest
| null | undefined, {} | null | undefined>
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).
request
protos. google.cloud.dataform.v1alpha2.IRemoveFileRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
request
protos. google.cloud.dataform.v1alpha2.IRemoveFileRequest
callback
Callback
<protos. google.protobuf.IEmpty
, protos. google.cloud.dataform.v1alpha2.IRemoveFileRequest
| null | undefined, {} | null | undefined>
void
repositoryPath(project, location, repository)
repositoryPath
(
project
:
string
,
location
:
string
,
repository
:
string
)
:
string
;
Return a fully-qualified repository resource name string.
project
string
location
string
repository
string
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.
request
protos. google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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 = 'abc123'
/**
* 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
;
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
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
;
request
protos. google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest
callback
Callback
<protos. google.protobuf.IEmpty
, protos. google.cloud.dataform.v1alpha2.IResetWorkspaceChangesRequest
| null | undefined, {} | null | undefined>
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.
request
IamProtos. google.iam.v1.SetIamPolicyRequest
The request object that will be sent.
options
gax. CallOptions
| Callback
<IamProtos. google.iam.v1.Policy
, IamProtos. 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
<IamProtos. google.iam.v1.Policy
, IamProtos. 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 .
Promise
<IamProtos. 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.
request
IamProtos. google.iam.v1.TestIamPermissionsRequest
The request object that will be sent.
options
gax. CallOptions
| Callback
<IamProtos. google.iam.v1.TestIamPermissionsResponse
, IamProtos. 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
<IamProtos. google.iam.v1.TestIamPermissionsResponse
, IamProtos. 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 .
Promise
<IamProtos. 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.
request
protos. google.cloud.dataform.v1alpha2.IUpdateRepositoryRequest
The request object that will be sent.
options
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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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
workflowInvocationPath(project, location, repository, workflowInvocation)
workflowInvocationPath
(
project
:
string
,
location
:
string
,
repository
:
string
,
workflowInvocation
:
string
)
:
string
;
Return a fully-qualified workflowInvocation resource name string.
project
string
location
string
repository
string
workflowInvocation
string
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.
project
string
location
string
repository
string
workspace
string
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).
request
protos. google.cloud.dataform.v1alpha2.IWriteFileRequest
The request object that will be sent.
options
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 . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.
/**
* 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
;
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
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
;
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

