DataformAsyncClient(*, credentials: Optional[google.auth.credentials.Credentials] = None, transport: Union[str, google.cloud.dataform_v1beta1.services.dataform.transports.base.DataformTransport] = 'grpc_asyncio', client_options: Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)
Dataform is a service to develop, create, document, test, and update curated tables in BigQuery.
Inheritance
builtins.object > DataformAsyncClientProperties
transport
Returns the transport used by the client instance.
Type | Description |
DataformTransport | The transport used by the client instance. |
Methods
DataformAsyncClient
DataformAsyncClient(*, credentials: Optional[google.auth.credentials.Credentials] = None, transport: Union[str, google.cloud.dataform_v1beta1.services.dataform.transports.base.DataformTransport] = 'grpc_asyncio', client_options: Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)
Instantiates the dataform client.
Name | Description |
credentials |
Optional[google.auth.credentials.Credentials]
The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment. |
transport |
Union[str, `.DataformTransport`]
The transport to use. If set to None, a transport is chosen automatically. |
client_options |
ClientOptions
Custom options for the client. It won't take effect if a |
Type | Description |
google.auth.exceptions.MutualTlsChannelError | If mutual TLS transport creation failed for any reason. |
cancel_workflow_invocation
cancel_workflow_invocation(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.CancelWorkflowInvocationRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Requests cancellation of a running WorkflowInvocation.
from google.cloud import dataform_v1beta1
async def sample_cancel_workflow_invocation():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.CancelWorkflowInvocationRequest(
name="name_value",
)
# Make the request
await client.cancel_workflow_invocation(request=request)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.CancelWorkflowInvocationRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
commit_workspace_changes
commit_workspace_changes(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.CommitWorkspaceChangesRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Applies a Git commit for uncommitted files in a Workspace.
from google.cloud import dataform_v1beta1
async def sample_commit_workspace_changes():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
author = dataform_v1beta1.CommitAuthor()
author.name = "name_value"
author.email_address = "email_address_value"
request = dataform_v1beta1.CommitWorkspaceChangesRequest(
name="name_value",
author=author,
)
# Make the request
await client.commit_workspace_changes(request=request)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.CommitWorkspaceChangesRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
common_billing_account_path
common_billing_account_path(billing_account: str)
Returns a fully-qualified billing_account string.
common_folder_path
common_folder_path(folder: str)
Returns a fully-qualified folder string.
common_location_path
common_location_path(project: str, location: str)
Returns a fully-qualified location string.
common_organization_path
common_organization_path(organization: str)
Returns a fully-qualified organization string.
common_project_path
common_project_path(project: str)
Returns a fully-qualified project string.
compilation_result_path
compilation_result_path(
project: str, location: str, repository: str, compilation_result: str
)
Returns a fully-qualified compilation_result string.
create_compilation_result
create_compilation_result(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.CreateCompilationResultRequest, dict]] = None, *, parent: Optional[str] = None, compilation_result: Optional[google.cloud.dataform_v1beta1.types.dataform.CompilationResult] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Creates a new CompilationResult in a given project and location.
from google.cloud import dataform_v1beta1
async def sample_create_compilation_result():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
compilation_result = dataform_v1beta1.CompilationResult()
compilation_result.git_commitish = "git_commitish_value"
request = dataform_v1beta1.CreateCompilationResultRequest(
parent="parent_value",
compilation_result=compilation_result,
)
# Make the request
response = await client.create_compilation_result(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.CreateCompilationResultRequest, dict]
The request object. |
parent |
`str`
Required. The repository in which to create the compilation result. Must be in the format |
compilation_result |
CompilationResult
Required. The compilation result to create. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.CompilationResult | Represents the result of compiling a Dataform project. |
create_repository
create_repository(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.CreateRepositoryRequest, dict]] = None, *, parent: Optional[str] = None, repository: Optional[google.cloud.dataform_v1beta1.types.dataform.Repository] = None, repository_id: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Creates a new Repository in a given project and location.
from google.cloud import dataform_v1beta1
async def sample_create_repository():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.CreateRepositoryRequest(
parent="parent_value",
repository_id="repository_id_value",
)
# Make the request
response = await client.create_repository(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.CreateRepositoryRequest, dict]
The request object. |
parent |
`str`
Required. The location in which to create the repository. Must be in the format |
repository |
Repository
Required. The repository to create. This corresponds to the |
repository_id |
`str`
Required. The ID to use for the repository, which will become the final component of the repository's resource name. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.Repository | Represents a Dataform Git repository. |
create_workflow_invocation
create_workflow_invocation(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.CreateWorkflowInvocationRequest, dict]] = None, *, parent: Optional[str] = None, workflow_invocation: Optional[google.cloud.dataform_v1beta1.types.dataform.WorkflowInvocation] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Creates a new WorkflowInvocation in a given Repository.
from google.cloud import dataform_v1beta1
async def sample_create_workflow_invocation():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.CreateWorkflowInvocationRequest(
parent="parent_value",
)
# Make the request
response = await client.create_workflow_invocation(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.CreateWorkflowInvocationRequest, dict]
The request object. |
parent |
`str`
Required. The repository in which to create the workflow invocation. Must be in the format |
workflow_invocation |
WorkflowInvocation
Required. The workflow invocation resource to create. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.WorkflowInvocation | Represents a single invocation of a compilation result. |
create_workspace
create_workspace(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.CreateWorkspaceRequest, dict]] = None, *, parent: Optional[str] = None, workspace: Optional[google.cloud.dataform_v1beta1.types.dataform.Workspace] = None, workspace_id: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Creates a new Workspace in a given Repository.
from google.cloud import dataform_v1beta1
async def sample_create_workspace():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.CreateWorkspaceRequest(
parent="parent_value",
workspace_id="workspace_id_value",
)
# Make the request
response = await client.create_workspace(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.CreateWorkspaceRequest, dict]
The request object. |
parent |
`str`
Required. The repository in which to create the workspace. Must be in the format |
workspace |
Workspace
Required. The workspace to create. This corresponds to the |
workspace_id |
`str`
Required. The ID to use for the workspace, which will become the final component of the workspace's resource name. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.Workspace | Represents a Dataform Git workspace. |
delete_repository
delete_repository(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.DeleteRepositoryRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes a single Repository.
from google.cloud import dataform_v1beta1
async def sample_delete_repository():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.DeleteRepositoryRequest(
name="name_value",
)
# Make the request
await client.delete_repository(request=request)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.DeleteRepositoryRequest, dict]
The request object. |
name |
`str`
Required. The repository's name. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
delete_workflow_invocation
delete_workflow_invocation(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.DeleteWorkflowInvocationRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes a single WorkflowInvocation.
from google.cloud import dataform_v1beta1
async def sample_delete_workflow_invocation():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.DeleteWorkflowInvocationRequest(
name="name_value",
)
# Make the request
await client.delete_workflow_invocation(request=request)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.DeleteWorkflowInvocationRequest, dict]
The request object. |
name |
`str`
Required. The workflow invocation resource's name. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
delete_workspace
delete_workspace(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.DeleteWorkspaceRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes a single Workspace.
from google.cloud import dataform_v1beta1
async def sample_delete_workspace():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.DeleteWorkspaceRequest(
name="name_value",
)
# Make the request
await client.delete_workspace(request=request)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.DeleteWorkspaceRequest, dict]
The request object. |
name |
`str`
Required. The workspace resource's name. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
fetch_file_diff
fetch_file_diff(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.FetchFileDiffRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Fetches Git diff for an uncommitted file in a Workspace.
from google.cloud import dataform_v1beta1
async def sample_fetch_file_diff():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.FetchFileDiffRequest(
workspace="workspace_value",
path="path_value",
)
# Make the request
response = await client.fetch_file_diff(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.FetchFileDiffRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.FetchFileDiffResponse | FetchFileDiff response message. |
fetch_file_git_statuses
fetch_file_git_statuses(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.FetchFileGitStatusesRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Fetches Git statuses for the files in a Workspace.
from google.cloud import dataform_v1beta1
async def sample_fetch_file_git_statuses():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.FetchFileGitStatusesRequest(
name="name_value",
)
# Make the request
response = await client.fetch_file_git_statuses(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.FetchFileGitStatusesRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.FetchFileGitStatusesResponse | FetchFileGitStatuses response message. |
fetch_git_ahead_behind
fetch_git_ahead_behind(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.FetchGitAheadBehindRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Fetches Git ahead/behind against a remote branch.
from google.cloud import dataform_v1beta1
async def sample_fetch_git_ahead_behind():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.FetchGitAheadBehindRequest(
name="name_value",
)
# Make the request
response = await client.fetch_git_ahead_behind(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.FetchGitAheadBehindRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.FetchGitAheadBehindResponse | FetchGitAheadBehind response message. |
fetch_remote_branches
fetch_remote_branches(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.FetchRemoteBranchesRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Fetches a Repository's remote branches.
from google.cloud import dataform_v1beta1
async def sample_fetch_remote_branches():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.FetchRemoteBranchesRequest(
name="name_value",
)
# Make the request
response = await client.fetch_remote_branches(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.FetchRemoteBranchesRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.FetchRemoteBranchesResponse | FetchRemoteBranches response message. |
from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
Name | Description |
filename |
str
The path to the service account private key json file. |
Type | Description |
DataformAsyncClient | The constructed client. |
from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
Name | Description |
info |
dict
The service account private key info. |
Type | Description |
DataformAsyncClient | The constructed client. |
from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
Name | Description |
filename |
str
The path to the service account private key json file. |
Type | Description |
DataformAsyncClient | The constructed client. |
get_compilation_result
get_compilation_result(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.GetCompilationResultRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Fetches a single CompilationResult.
from google.cloud import dataform_v1beta1
async def sample_get_compilation_result():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.GetCompilationResultRequest(
name="name_value",
)
# Make the request
response = await client.get_compilation_result(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.GetCompilationResultRequest, dict]
The request object. |
name |
`str`
Required. The compilation result's name. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.CompilationResult | Represents the result of compiling a Dataform project. |
get_location
get_location(request: Optional[google.cloud.location.locations_pb2.GetLocationRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Gets information about a location.
Name | Description |
request |
`.location_pb2.GetLocationRequest`
The request object. Request message for |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
`.location_pb2.Location` | Location object. |
get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: Optional[google.api_core.client_options.ClientOptions] = None,
)
Return the API endpoint and client cert source for mutual TLS.
The client cert source is determined in the following order:
(1) if GOOGLE_API_USE_CLIENT_CERTIFICATE
environment variable is not "true", the
client cert source is None.
(2) if client_options.client_cert_source
is provided, use the provided one; if the
default client cert source exists, use the default one; otherwise the client cert
source is None.
The API endpoint is determined in the following order:
(1) if client_options.api_endpoint
if provided, use the provided one.
(2) if GOOGLE_API_USE_CLIENT_CERTIFICATE
environment variable is "always", use the
default mTLS endpoint; if the environment variabel is "never", use the default API
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
use the default API endpoint.
More details can be found at https://google.aip.dev/auth/4114.
Name | Description |
client_options |
google.api_core.client_options.ClientOptions
Custom options for the client. Only the |
Type | Description |
google.auth.exceptions.MutualTLSChannelError | If any errors happen. |
Type | Description |
Tuple[str, Callable[[], Tuple[bytes, bytes]]] | returns the API endpoint and the client cert source to use. |
get_repository
get_repository(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.GetRepositoryRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Fetches a single Repository.
from google.cloud import dataform_v1beta1
async def sample_get_repository():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.GetRepositoryRequest(
name="name_value",
)
# Make the request
response = await client.get_repository(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.GetRepositoryRequest, dict]
The request object. |
name |
`str`
Required. The repository's name. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.Repository | Represents a Dataform Git repository. |
get_transport_class
get_transport_class()
Returns an appropriate transport class.
get_workflow_invocation
get_workflow_invocation(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.GetWorkflowInvocationRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Fetches a single WorkflowInvocation.
from google.cloud import dataform_v1beta1
async def sample_get_workflow_invocation():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.GetWorkflowInvocationRequest(
name="name_value",
)
# Make the request
response = await client.get_workflow_invocation(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.GetWorkflowInvocationRequest, dict]
The request object. |
name |
`str`
Required. The workflow invocation resource's name. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.WorkflowInvocation | Represents a single invocation of a compilation result. |
get_workspace
get_workspace(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.GetWorkspaceRequest, dict]] = None, *, name: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Fetches a single Workspace.
from google.cloud import dataform_v1beta1
async def sample_get_workspace():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.GetWorkspaceRequest(
name="name_value",
)
# Make the request
response = await client.get_workspace(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.GetWorkspaceRequest, dict]
The request object. |
name |
`str`
Required. The workspace's name. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.Workspace | Represents a Dataform Git workspace. |
install_npm_packages
install_npm_packages(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.InstallNpmPackagesRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Installs dependency NPM packages (inside a Workspace).
from google.cloud import dataform_v1beta1
async def sample_install_npm_packages():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.InstallNpmPackagesRequest(
workspace="workspace_value",
)
# Make the request
response = await client.install_npm_packages(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.InstallNpmPackagesRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.InstallNpmPackagesResponse | InstallNpmPackages response message. |
list_compilation_results
list_compilation_results(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.ListCompilationResultsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists CompilationResults in a given Repository.
from google.cloud import dataform_v1beta1
async def sample_list_compilation_results():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.ListCompilationResultsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_compilation_results(request=request)
# Handle the response
async for response in page_result:
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.ListCompilationResultsRequest, dict]
The request object. |
parent |
`str`
Required. The repository in which to list compilation results. Must be in the format |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.services.dataform.pagers.ListCompilationResultsAsyncPager | ListCompilationResults response message. Iterating over this object will yield results and resolve additional pages automatically. |
list_locations
list_locations(request: Optional[google.cloud.location.locations_pb2.ListLocationsRequest] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists information about the supported locations for this service.
Name | Description |
request |
`.location_pb2.ListLocationsRequest`
The request object. Request message for |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
`.location_pb2.ListLocationsResponse` | Response message for ``ListLocations`` method. |
list_repositories
list_repositories(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.ListRepositoriesRequest, dict]] = None, *, parent: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists Repositories in a given project and location.
from google.cloud import dataform_v1beta1
async def sample_list_repositories():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.ListRepositoriesRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_repositories(request=request)
# Handle the response
async for response in page_result:
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.ListRepositoriesRequest, dict]
The request object. |
parent |
`str`
Required. The location in which to list repositories. Must be in the format |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.services.dataform.pagers.ListRepositoriesAsyncPager | ListRepositories response message. Iterating over this object will yield results and resolve additional pages automatically. |
list_workflow_invocations
list_workflow_invocations(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.ListWorkflowInvocationsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists WorkflowInvocations in a given Repository.
from google.cloud import dataform_v1beta1
async def sample_list_workflow_invocations():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.ListWorkflowInvocationsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_workflow_invocations(request=request)
# Handle the response
async for response in page_result:
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.ListWorkflowInvocationsRequest, dict]
The request object. |
parent |
`str`
Required. The parent resource of the WorkflowInvocation type. Must be in the format |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.services.dataform.pagers.ListWorkflowInvocationsAsyncPager | ListWorkflowInvocations response message. Iterating over this object will yield results and resolve additional pages automatically. |
list_workspaces
list_workspaces(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.ListWorkspacesRequest, dict]] = None, *, parent: Optional[str] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists Workspaces in a given Repository.
from google.cloud import dataform_v1beta1
async def sample_list_workspaces():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.ListWorkspacesRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_workspaces(request=request)
# Handle the response
async for response in page_result:
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.ListWorkspacesRequest, dict]
The request object. |
parent |
`str`
Required. The repository in which to list workspaces. Must be in the format |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.services.dataform.pagers.ListWorkspacesAsyncPager | ListWorkspaces response message. Iterating over this object will yield results and resolve additional pages automatically. |
make_directory
make_directory(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.MakeDirectoryRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Creates a directory inside a Workspace.
from google.cloud import dataform_v1beta1
async def sample_make_directory():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.MakeDirectoryRequest(
workspace="workspace_value",
path="path_value",
)
# Make the request
response = await client.make_directory(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.MakeDirectoryRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.MakeDirectoryResponse | MakeDirectory response message. |
move_directory
move_directory(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.MoveDirectoryRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Moves a directory (inside a Workspace), and all of its contents, to a new location.
from google.cloud import dataform_v1beta1
async def sample_move_directory():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.MoveDirectoryRequest(
workspace="workspace_value",
path="path_value",
new_path="new_path_value",
)
# Make the request
response = await client.move_directory(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.MoveDirectoryRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.MoveDirectoryResponse | MoveDirectory response message. |
move_file
move_file(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.MoveFileRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Moves a file (inside a Workspace) to a new location.
from google.cloud import dataform_v1beta1
async def sample_move_file():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.MoveFileRequest(
workspace="workspace_value",
path="path_value",
new_path="new_path_value",
)
# Make the request
response = await client.move_file(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.MoveFileRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.MoveFileResponse | MoveFile response message. |
parse_common_billing_account_path
parse_common_billing_account_path(path: str)
Parse a billing_account path into its component segments.
parse_common_folder_path
parse_common_folder_path(path: str)
Parse a folder path into its component segments.
parse_common_location_path
parse_common_location_path(path: str)
Parse a location path into its component segments.
parse_common_organization_path
parse_common_organization_path(path: str)
Parse a organization path into its component segments.
parse_common_project_path
parse_common_project_path(path: str)
Parse a project path into its component segments.
parse_compilation_result_path
parse_compilation_result_path(path: str)
Parses a compilation_result path into its component segments.
parse_repository_path
parse_repository_path(path: str)
Parses a repository path into its component segments.
parse_secret_version_path
parse_secret_version_path(path: str)
Parses a secret_version path into its component segments.
parse_workflow_invocation_path
parse_workflow_invocation_path(path: str)
Parses a workflow_invocation path into its component segments.
parse_workspace_path
parse_workspace_path(path: str)
Parses a workspace path into its component segments.
pull_git_commits
pull_git_commits(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.PullGitCommitsRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Pulls Git commits from the Repository's remote into a Workspace.
from google.cloud import dataform_v1beta1
async def sample_pull_git_commits():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
author = dataform_v1beta1.CommitAuthor()
author.name = "name_value"
author.email_address = "email_address_value"
request = dataform_v1beta1.PullGitCommitsRequest(
name="name_value",
author=author,
)
# Make the request
await client.pull_git_commits(request=request)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.PullGitCommitsRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
push_git_commits
push_git_commits(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.PushGitCommitsRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Pushes Git commits from a Workspace to the Repository's remote.
from google.cloud import dataform_v1beta1
async def sample_push_git_commits():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.PushGitCommitsRequest(
name="name_value",
)
# Make the request
await client.push_git_commits(request=request)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.PushGitCommitsRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
query_compilation_result_actions
query_compilation_result_actions(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.QueryCompilationResultActionsRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Returns CompilationResultActions in a given CompilationResult.
from google.cloud import dataform_v1beta1
async def sample_query_compilation_result_actions():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.QueryCompilationResultActionsRequest(
name="name_value",
)
# Make the request
page_result = client.query_compilation_result_actions(request=request)
# Handle the response
async for response in page_result:
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.QueryCompilationResultActionsRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.services.dataform.pagers.QueryCompilationResultActionsAsyncPager | QueryCompilationResultActions response message. Iterating over this object will yield results and resolve additional pages automatically. |
query_directory_contents
query_directory_contents(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.QueryDirectoryContentsRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Returns the contents of a given Workspace directory.
from google.cloud import dataform_v1beta1
async def sample_query_directory_contents():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.QueryDirectoryContentsRequest(
workspace="workspace_value",
)
# Make the request
page_result = client.query_directory_contents(request=request)
# Handle the response
async for response in page_result:
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.QueryDirectoryContentsRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.services.dataform.pagers.QueryDirectoryContentsAsyncPager | QueryDirectoryContents response message. Iterating over this object will yield results and resolve additional pages automatically. |
query_workflow_invocation_actions
query_workflow_invocation_actions(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.QueryWorkflowInvocationActionsRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Returns WorkflowInvocationActions in a given WorkflowInvocation.
from google.cloud import dataform_v1beta1
async def sample_query_workflow_invocation_actions():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.QueryWorkflowInvocationActionsRequest(
name="name_value",
)
# Make the request
page_result = client.query_workflow_invocation_actions(request=request)
# Handle the response
async for response in page_result:
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.QueryWorkflowInvocationActionsRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.services.dataform.pagers.QueryWorkflowInvocationActionsAsyncPager | QueryWorkflowInvocationActions response message. Iterating over this object will yield results and resolve additional pages automatically. |
read_file
read_file(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.ReadFileRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Returns the contents of a file (inside a Workspace).
from google.cloud import dataform_v1beta1
async def sample_read_file():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.ReadFileRequest(
workspace="workspace_value",
path="path_value",
)
# Make the request
response = await client.read_file(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.ReadFileRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.ReadFileResponse | ReadFile response message. |
remove_directory
remove_directory(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.RemoveDirectoryRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes a directory (inside a Workspace) and all of its contents.
from google.cloud import dataform_v1beta1
async def sample_remove_directory():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.RemoveDirectoryRequest(
workspace="workspace_value",
path="path_value",
)
# Make the request
await client.remove_directory(request=request)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.RemoveDirectoryRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
remove_file
remove_file(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.RemoveFileRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes a file (inside a Workspace).
from google.cloud import dataform_v1beta1
async def sample_remove_file():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.RemoveFileRequest(
workspace="workspace_value",
path="path_value",
)
# Make the request
await client.remove_file(request=request)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.RemoveFileRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
repository_path
repository_path(project: str, location: str, repository: str)
Returns a fully-qualified repository string.
reset_workspace_changes
reset_workspace_changes(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.ResetWorkspaceChangesRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Performs a Git reset for uncommitted files in a Workspace.
from google.cloud import dataform_v1beta1
async def sample_reset_workspace_changes():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.ResetWorkspaceChangesRequest(
name="name_value",
)
# Make the request
await client.reset_workspace_changes(request=request)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.ResetWorkspaceChangesRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
secret_version_path
secret_version_path(project: str, secret: str, version: str)
Returns a fully-qualified secret_version string.
update_repository
update_repository(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.UpdateRepositoryRequest, dict]] = None, *, repository: Optional[google.cloud.dataform_v1beta1.types.dataform.Repository] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Updates a single Repository.
from google.cloud import dataform_v1beta1
async def sample_update_repository():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.UpdateRepositoryRequest(
)
# Make the request
response = await client.update_repository(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.UpdateRepositoryRequest, dict]
The request object. |
repository |
Repository
Required. The repository to update. This corresponds to the |
update_mask |
`google.protobuf.field_mask_pb2.FieldMask`
Optional. Specifies the fields to be updated in the repository. If left unset, all fields will be updated. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.Repository | Represents a Dataform Git repository. |
workflow_invocation_path
workflow_invocation_path(
project: str, location: str, repository: str, workflow_invocation: str
)
Returns a fully-qualified workflow_invocation string.
workspace_path
workspace_path(project: str, location: str, repository: str, workspace: str)
Returns a fully-qualified workspace string.
write_file
write_file(request: Optional[Union[google.cloud.dataform_v1beta1.types.dataform.WriteFileRequest, dict]] = None, *, retry: Union[google.api_core.retry.Retry, google.api_core.gapic_v1.method._MethodDefault] = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Writes to a file (inside a Workspace).
from google.cloud import dataform_v1beta1
async def sample_write_file():
# Create a client
client = dataform_v1beta1.DataformAsyncClient()
# Initialize request argument(s)
request = dataform_v1beta1.WriteFileRequest(
workspace="workspace_value",
path="path_value",
contents=b'contents_blob',
)
# Make the request
response = await client.write_file(request=request)
# Handle the response
print(response)
Name | Description |
request |
Union[google.cloud.dataform_v1beta1.types.WriteFileRequest, dict]
The request object. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
google.cloud.dataform_v1beta1.types.WriteFileResponse | WriteFile response message. |