DataTransferService¶
- class google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.DataTransferServiceAsyncClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.transports.base.DataTransferServiceTransport, typing.Callable[[...], google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.transports.base.DataTransferServiceTransport]]] = 'grpc_asyncio', client_options: typing.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>)[source]¶
This API allows users to manage their data transfers into BigQuery.
Instantiates the data transfer service async client.
- Parameters
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 (Optional[Union[str,DataTransferServiceTransport,Callable[..., DataTransferServiceTransport]]]) – The transport to use, or a Callable that constructs and returns a new transport to use. If a Callable is given, it will be called with the same set of initialization arguments as used in the DataTransferServiceTransport constructor. If set to None, a transport is chosen automatically.
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]) –
Custom options for the client.
1. The
api_endpoint
property can be used to override the default endpoint provided by the client whentransport
is not explicitly provided. Only if this property is not set andtransport
was not explicitly provided, the endpoint is determined by the GOOGLE_API_USE_MTLS_ENDPOINT environment variable, which have one of the following values: “always” (always use the default mTLS endpoint), “never” (always use the default regular endpoint) and “auto” (auto-switch to the default mTLS endpoint if client certificate is present; this is the default value).2. If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is “true”, then the
client_cert_source
property can be used to provide a client certificate for mTLS transport. If not provided, the default SSL client certificate will be used if present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is “false” or not set, no client certificate will be used.3. The
universe_domain
property can be used to override the default “googleapis.com” universe. Note thatapi_endpoint
property still takes precedence; anduniverse_domain
is currently not supported for mTLS.client_info (google.api_core.gapic_v1.client_info.ClientInfo) – The client info used to send a user-agent string along with API requests. If
None
, then default info will be used. Generally, you only need to set this if you’re developing your own client library.
- Raises
google.auth.exceptions.MutualTlsChannelError – If mutual TLS transport creation failed for any reason.
- property api_endpoint¶
Return the API endpoint used by the client instance.
- Returns
The API endpoint used by the client instance.
- Return type
- async check_valid_creds(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.CheckValidCredsRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.datatransfer.CheckValidCredsResponse [source]¶
Returns true if valid credentials exist for the given data source and requesting user.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_check_valid_creds(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.CheckValidCredsRequest( name="name_value", ) # Make the request response = await client.check_valid_creds(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.CheckValidCredsRequest, dict]]) – The request object. A request to determine whether the user has valid credentials. This method is used to limit the number of OAuth popups in the user interface. The user id is inferred from the API call context. If the data source has the Google+ authorization type, this method returns false, as it cannot be determined whether the credentials are already valid merely based on the user id.
name (
str
) –Required. The data source in the form:
projects/{project_id}/dataSources/{data_source_id}
orprojects/{project_id}/locations/{location_id}/dataSources/{data_source_id}
.This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
A response indicating whether the credentials exist and are valid.
- Return type
google.cloud.bigquery_datatransfer_v1.types.CheckValidCredsResponse
- static common_billing_account_path(billing_account: str) str ¶
Returns a fully-qualified billing_account string.
- static common_location_path(project: str, location: str) str ¶
Returns a fully-qualified location string.
- static common_organization_path(organization: str) str ¶
Returns a fully-qualified organization string.
- async create_transfer_config(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.CreateTransferConfigRequest, dict]] = None, *, parent: Optional[str] = None, transfer_config: Optional[google.cloud.bigquery_datatransfer_v1.types.transfer.TransferConfig] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.transfer.TransferConfig [source]¶
Creates a new data transfer configuration.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_create_transfer_config(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) transfer_config = bigquery_datatransfer_v1.TransferConfig() transfer_config.destination_dataset_id = "destination_dataset_id_value" request = bigquery_datatransfer_v1.CreateTransferConfigRequest( parent="parent_value", transfer_config=transfer_config, ) # Make the request response = await client.create_transfer_config(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.CreateTransferConfigRequest, dict]]) –
The request object. A request to create a data transfer configuration. If new credentials are needed for this transfer configuration, authorization info must be provided. If authorization info is provided, the transfer configuration will be associated with the user id corresponding to the authorization info. Otherwise, the transfer configuration will be associated with the calling user.
When using a cross project service account for creating a transfer config, you must enable cross project service account usage. For more information, see Disable attachment of service accounts to resources in other projects.
parent (
str
) –Required. The BigQuery project id where the transfer configuration should be created. Must be in the format projects/{project_id}/locations/{location_id} or projects/{project_id}. If specified location and location of the destination bigquery dataset do not match - the request will fail.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.transfer_config (
google.cloud.bigquery_datatransfer_v1.types.TransferConfig
) –Required. Data transfer configuration to create.
This corresponds to the
transfer_config
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
- Represents a data transfer configuration. A transfer configuration
contains all metadata needed to perform a data transfer. For example, destination_dataset_id specifies where data should be stored. When a new transfer configuration is created, the specified destination_dataset_id is created when needed and shared with the appropriate data source service account.
- Return type
- static data_source_path(project: str, data_source: str) str ¶
Returns a fully-qualified data_source string.
- async delete_transfer_config(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.DeleteTransferConfigRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a data transfer configuration, including any associated transfer runs and logs.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_delete_transfer_config(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.DeleteTransferConfigRequest( name="name_value", ) # Make the request await client.delete_transfer_config(request=request)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.DeleteTransferConfigRequest, dict]]) – The request object. A request to delete data transfer information. All associated transfer runs and log messages will be deleted as well.
name (
str
) –Required. The field will contain name of the resource requested, for example:
projects/{project_id}/transferConfigs/{config_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- async delete_transfer_run(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.DeleteTransferRunRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes the specified transfer run.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_delete_transfer_run(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.DeleteTransferRunRequest( name="name_value", ) # Make the request await client.delete_transfer_run(request=request)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.DeleteTransferRunRequest, dict]]) – The request object. A request to delete data transfer run information.
name (
str
) –Required. The field will contain name of the resource requested, for example:
projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- async enroll_data_sources(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.EnrollDataSourcesRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the BigQuery UI, and the documents can be found in the public guide for BigQuery Web UI and Data Transfer Service.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_enroll_data_sources(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.EnrollDataSourcesRequest( name="name_value", ) # Make the request await client.enroll_data_sources(request=request)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.EnrollDataSourcesRequest, dict]]) – The request object. A request to enroll a set of data sources so they are visible in the BigQuery UI’s
Transfer
tab.retry (google.api_core.retry_async.AsyncRetry) – 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.
- classmethod from_service_account_file(filename: str, *args, **kwargs)[source]¶
- Creates an instance of this client using the provided credentials
file.
- Parameters
filename (str) – The path to the service account private key json file.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- classmethod from_service_account_info(info: dict, *args, **kwargs)[source]¶
- Creates an instance of this client using the provided credentials
info.
- Parameters
info (dict) – The service account private key info.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- classmethod from_service_account_json(filename: str, *args, **kwargs)¶
- Creates an instance of this client using the provided credentials
file.
- Parameters
filename (str) – The path to the service account private key json file.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- async get_data_source(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.GetDataSourceRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.datatransfer.DataSource [source]¶
Retrieves a supported data source and returns its settings.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_get_data_source(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.GetDataSourceRequest( name="name_value", ) # Make the request response = await client.get_data_source(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.GetDataSourceRequest, dict]]) – The request object. A request to get data source info.
name (
str
) –Required. The field will contain name of the resource requested, for example:
projects/{project_id}/dataSources/{data_source_id}
orprojects/{project_id}/locations/{location_id}/dataSources/{data_source_id}
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
Defines the properties and custom parameters for a data source.
- Return type
- async get_location(request: Optional[google.cloud.location.locations_pb2.GetLocationRequest] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.location.locations_pb2.Location [source]¶
Gets information about a location.
- Parameters
request (
GetLocationRequest
) – The request object. Request message for GetLocation method.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
Location object.
- Return type
Location
- classmethod get_mtls_endpoint_and_cert_source(client_options: Optional[google.api_core.client_options.ClientOptions] = None)[source]¶
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 variable 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.
- Parameters
client_options (google.api_core.client_options.ClientOptions) – Custom options for the client. Only the api_endpoint and client_cert_source properties may be used in this method.
- Returns
- returns the API endpoint and the
client cert source to use.
- Return type
- Raises
google.auth.exceptions.MutualTLSChannelError – If any errors happen.
- async get_transfer_config(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.GetTransferConfigRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.transfer.TransferConfig [source]¶
Returns information about a data transfer config.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_get_transfer_config(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.GetTransferConfigRequest( name="name_value", ) # Make the request response = await client.get_transfer_config(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.GetTransferConfigRequest, dict]]) – The request object. A request to get data transfer information.
name (
str
) –Required. The field will contain name of the resource requested, for example:
projects/{project_id}/transferConfigs/{config_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
- Represents a data transfer configuration. A transfer configuration
contains all metadata needed to perform a data transfer. For example, destination_dataset_id specifies where data should be stored. When a new transfer configuration is created, the specified destination_dataset_id is created when needed and shared with the appropriate data source service account.
- Return type
- async get_transfer_run(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.GetTransferRunRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.transfer.TransferRun [source]¶
Returns information about the particular transfer run.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_get_transfer_run(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.GetTransferRunRequest( name="name_value", ) # Make the request response = await client.get_transfer_run(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.GetTransferRunRequest, dict]]) – The request object. A request to get data transfer run information.
name (
str
) –Required. The field will contain name of the resource requested, for example:
projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
Represents a data transfer run.
- Return type
- classmethod get_transport_class(label: Optional[str] = None) Type[google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.transports.base.DataTransferServiceTransport] ¶
Returns an appropriate transport class.
- Parameters
label – The name of the desired transport. If none is provided, then the first transport in the registry is used.
- Returns
The transport class to use.
- async list_data_sources(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListDataSourcesRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListDataSourcesAsyncPager [source]¶
Lists supported data sources and returns their settings.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_list_data_sources(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.ListDataSourcesRequest( parent="parent_value", ) # Make the request page_result = client.list_data_sources(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesRequest, dict]]) – The request object. Request to list supported data sources and their data transfer settings.
parent (
str
) –Required. The BigQuery project id for which data sources should be returned. Must be in the form:
projects/{project_id}
orprojects/{project_id}/locations/{location_id}
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
Returns list of supported data sources and their metadata. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_locations(request: Optional[google.cloud.location.locations_pb2.ListLocationsRequest] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.location.locations_pb2.ListLocationsResponse [source]¶
Lists information about the supported locations for this service.
- Parameters
request (
ListLocationsRequest
) – The request object. Request message for ListLocations method.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
Response message for
ListLocations
method.- Return type
ListLocationsResponse
- async list_transfer_configs(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferConfigsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferConfigsAsyncPager [source]¶
Returns information about all transfer configs owned by a project in the specified location.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_list_transfer_configs(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.ListTransferConfigsRequest( parent="parent_value", ) # Make the request page_result = client.list_transfer_configs(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsRequest, dict]]) – The request object. A request to list data transfers configured for a BigQuery project.
parent (
str
) –Required. The BigQuery project id for which transfer configs should be returned:
projects/{project_id}
orprojects/{project_id}/locations/{location_id}
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
The returned list of pipelines in the project. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_transfer_logs(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferLogsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferLogsAsyncPager [source]¶
Returns log messages for the transfer run.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_list_transfer_logs(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.ListTransferLogsRequest( parent="parent_value", ) # Make the request page_result = client.list_transfer_logs(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsRequest, dict]]) – The request object. A request to get user facing log messages associated with data transfer run.
parent (
str
) –Required. Transfer run name in the form:
projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
The returned list transfer run messages. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_transfer_runs(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferRunsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferRunsAsyncPager [source]¶
Returns information about running and completed transfer runs.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_list_transfer_runs(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.ListTransferRunsRequest( parent="parent_value", ) # Make the request page_result = client.list_transfer_runs(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsRequest, dict]]) – The request object. A request to list data transfer runs.
parent (
str
) –Required. Name of transfer configuration for which transfer runs should be retrieved. Format of transfer configuration resource name is:
projects/{project_id}/transferConfigs/{config_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
.This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
The returned list of pipelines in the project. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- static parse_common_billing_account_path(path: str) Dict[str, str] ¶
Parse a billing_account path into its component segments.
- static parse_common_folder_path(path: str) Dict[str, str] ¶
Parse a folder path into its component segments.
- static parse_common_location_path(path: str) Dict[str, str] ¶
Parse a location path into its component segments.
- static parse_common_organization_path(path: str) Dict[str, str] ¶
Parse a organization path into its component segments.
- static parse_common_project_path(path: str) Dict[str, str] ¶
Parse a project path into its component segments.
- static parse_data_source_path(path: str) Dict[str, str] ¶
Parses a data_source path into its component segments.
- static parse_transfer_config_path(path: str) Dict[str, str] ¶
Parses a transfer_config path into its component segments.
- static run_path(project: str, transfer_config: str, run: str) str ¶
Returns a fully-qualified run string.
- async schedule_transfer_runs(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ScheduleTransferRunsRequest, dict]] = None, *, parent: Optional[str] = None, start_time: Optional[google.protobuf.timestamp_pb2.Timestamp] = None, end_time: Optional[google.protobuf.timestamp_pb2.Timestamp] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.datatransfer.ScheduleTransferRunsResponse [source]¶
Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_schedule_transfer_runs(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.ScheduleTransferRunsRequest( parent="parent_value", ) # Make the request response = await client.schedule_transfer_runs(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.ScheduleTransferRunsRequest, dict]]) – The request object. A request to schedule transfer runs for a time range.
parent (
str
) –Required. Transfer configuration name in the form:
projects/{project_id}/transferConfigs/{config_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
.This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.start_time (
google.protobuf.timestamp_pb2.Timestamp
) –Required. Start time of the range of transfer runs. For example,
"2017-05-25T00:00:00+00:00"
.This corresponds to the
start_time
field on therequest
instance; ifrequest
is provided, this should not be set.end_time (
google.protobuf.timestamp_pb2.Timestamp
) –Required. End time of the range of transfer runs. For example,
"2017-05-30T00:00:00+00:00"
.This corresponds to the
end_time
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
A response to schedule transfer runs for a time range.
- Return type
google.cloud.bigquery_datatransfer_v1.types.ScheduleTransferRunsResponse
- async start_manual_transfer_runs(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.StartManualTransferRunsRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.datatransfer.StartManualTransferRunsResponse [source]¶
Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time (inclusive) and end_time (exclusive), or for a specific run_time.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_start_manual_transfer_runs(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.StartManualTransferRunsRequest( parent="parent_value", ) # Make the request response = await client.start_manual_transfer_runs(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.StartManualTransferRunsRequest, dict]]) – The request object. A request to start manual transfer runs.
retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
A response to start manual transfer runs.
- Return type
google.cloud.bigquery_datatransfer_v1.types.StartManualTransferRunsResponse
- static transfer_config_path(project: str, transfer_config: str) str ¶
Returns a fully-qualified transfer_config string.
- property transport: google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.transports.base.DataTransferServiceTransport¶
Returns the transport used by the client instance.
- Returns
The transport used by the client instance.
- Return type
DataTransferServiceTransport
- async unenroll_data_sources(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.UnenrollDataSourcesRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Unenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the ListDataSources RPC and will also no longer appear in the BigQuery UI. Data transfers configurations of unenrolled data sources will not be scheduled.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_unenroll_data_sources(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.UnenrollDataSourcesRequest( name="name_value", ) # Make the request await client.unenroll_data_sources(request=request)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.UnenrollDataSourcesRequest, dict]]) – The request object. A request to unenroll a set of data sources so they are no longer visible in the BigQuery UI’s
Transfer
tab.retry (google.api_core.retry_async.AsyncRetry) – 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.
- property universe_domain: str¶
Return the universe domain used by the client instance.
- Returns
- The universe domain used
by the client instance.
- Return type
- async update_transfer_config(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.UpdateTransferConfigRequest, dict]] = None, *, transfer_config: Optional[google.cloud.bigquery_datatransfer_v1.types.transfer.TransferConfig] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.transfer.TransferConfig [source]¶
Updates a data transfer configuration. All fields must be set, even if they are not updated.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 async def sample_update_transfer_config(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceAsyncClient() # Initialize request argument(s) transfer_config = bigquery_datatransfer_v1.TransferConfig() transfer_config.destination_dataset_id = "destination_dataset_id_value" request = bigquery_datatransfer_v1.UpdateTransferConfigRequest( transfer_config=transfer_config, ) # Make the request response = await client.update_transfer_config(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.UpdateTransferConfigRequest, dict]]) –
The request object. A request to update a transfer configuration. To update the user id of the transfer configuration, authorization info needs to be provided.
When using a cross project service account for updating a transfer config, you must enable cross project service account usage. For more information, see Disable attachment of service accounts to resources in other projects.
transfer_config (
google.cloud.bigquery_datatransfer_v1.types.TransferConfig
) –Required. Data transfer configuration to create.
This corresponds to the
transfer_config
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) –Required. Required list of fields to be updated in this request.
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – 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.
- Returns
- Represents a data transfer configuration. A transfer configuration
contains all metadata needed to perform a data transfer. For example, destination_dataset_id specifies where data should be stored. When a new transfer configuration is created, the specified destination_dataset_id is created when needed and shared with the appropriate data source service account.
- Return type
- class google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.DataTransferServiceClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.transports.base.DataTransferServiceTransport, typing.Callable[[...], google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.transports.base.DataTransferServiceTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)[source]¶
This API allows users to manage their data transfers into BigQuery.
Instantiates the data transfer service client.
- Parameters
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 (Optional[Union[str,DataTransferServiceTransport,Callable[..., DataTransferServiceTransport]]]) – The transport to use, or a Callable that constructs and returns a new transport. If a Callable is given, it will be called with the same set of initialization arguments as used in the DataTransferServiceTransport constructor. If set to None, a transport is chosen automatically.
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]) –
Custom options for the client.
1. The
api_endpoint
property can be used to override the default endpoint provided by the client whentransport
is not explicitly provided. Only if this property is not set andtransport
was not explicitly provided, the endpoint is determined by the GOOGLE_API_USE_MTLS_ENDPOINT environment variable, which have one of the following values: “always” (always use the default mTLS endpoint), “never” (always use the default regular endpoint) and “auto” (auto-switch to the default mTLS endpoint if client certificate is present; this is the default value).2. If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is “true”, then the
client_cert_source
property can be used to provide a client certificate for mTLS transport. If not provided, the default SSL client certificate will be used if present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is “false” or not set, no client certificate will be used.3. The
universe_domain
property can be used to override the default “googleapis.com” universe. Note that theapi_endpoint
property still takes precedence; anduniverse_domain
is currently not supported for mTLS.client_info (google.api_core.gapic_v1.client_info.ClientInfo) – The client info used to send a user-agent string along with API requests. If
None
, then default info will be used. Generally, you only need to set this if you’re developing your own client library.
- Raises
google.auth.exceptions.MutualTLSChannelError – If mutual TLS transport creation failed for any reason.
- __exit__(type, value, traceback)[source]¶
Releases underlying transport’s resources.
Warning
ONLY use as a context manager if the transport is NOT shared with other clients! Exiting the with block will CLOSE the transport and may cause errors in other clients!
- property api_endpoint¶
Return the API endpoint used by the client instance.
- Returns
The API endpoint used by the client instance.
- Return type
- check_valid_creds(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.CheckValidCredsRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.datatransfer.CheckValidCredsResponse [source]¶
Returns true if valid credentials exist for the given data source and requesting user.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_check_valid_creds(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.CheckValidCredsRequest( name="name_value", ) # Make the request response = client.check_valid_creds(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.CheckValidCredsRequest, dict]) – The request object. A request to determine whether the user has valid credentials. This method is used to limit the number of OAuth popups in the user interface. The user id is inferred from the API call context. If the data source has the Google+ authorization type, this method returns false, as it cannot be determined whether the credentials are already valid merely based on the user id.
name (str) –
Required. The data source in the form:
projects/{project_id}/dataSources/{data_source_id}
orprojects/{project_id}/locations/{location_id}/dataSources/{data_source_id}
.This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
A response indicating whether the credentials exist and are valid.
- Return type
google.cloud.bigquery_datatransfer_v1.types.CheckValidCredsResponse
- static common_billing_account_path(billing_account: str) str [source]¶
Returns a fully-qualified billing_account string.
- static common_location_path(project: str, location: str) str [source]¶
Returns a fully-qualified location string.
- static common_organization_path(organization: str) str [source]¶
Returns a fully-qualified organization string.
- create_transfer_config(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.CreateTransferConfigRequest, dict]] = None, *, parent: Optional[str] = None, transfer_config: Optional[google.cloud.bigquery_datatransfer_v1.types.transfer.TransferConfig] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.transfer.TransferConfig [source]¶
Creates a new data transfer configuration.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_create_transfer_config(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) transfer_config = bigquery_datatransfer_v1.TransferConfig() transfer_config.destination_dataset_id = "destination_dataset_id_value" request = bigquery_datatransfer_v1.CreateTransferConfigRequest( parent="parent_value", transfer_config=transfer_config, ) # Make the request response = client.create_transfer_config(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.CreateTransferConfigRequest, dict]) –
The request object. A request to create a data transfer configuration. If new credentials are needed for this transfer configuration, authorization info must be provided. If authorization info is provided, the transfer configuration will be associated with the user id corresponding to the authorization info. Otherwise, the transfer configuration will be associated with the calling user.
When using a cross project service account for creating a transfer config, you must enable cross project service account usage. For more information, see Disable attachment of service accounts to resources in other projects.
parent (str) –
Required. The BigQuery project id where the transfer configuration should be created. Must be in the format projects/{project_id}/locations/{location_id} or projects/{project_id}. If specified location and location of the destination bigquery dataset do not match - the request will fail.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.transfer_config (google.cloud.bigquery_datatransfer_v1.types.TransferConfig) –
Required. Data transfer configuration to create.
This corresponds to the
transfer_config
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
- Represents a data transfer configuration. A transfer configuration
contains all metadata needed to perform a data transfer. For example, destination_dataset_id specifies where data should be stored. When a new transfer configuration is created, the specified destination_dataset_id is created when needed and shared with the appropriate data source service account.
- Return type
- static data_source_path(project: str, data_source: str) str [source]¶
Returns a fully-qualified data_source string.
- delete_transfer_config(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.DeleteTransferConfigRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a data transfer configuration, including any associated transfer runs and logs.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_delete_transfer_config(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.DeleteTransferConfigRequest( name="name_value", ) # Make the request client.delete_transfer_config(request=request)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.DeleteTransferConfigRequest, dict]) – The request object. A request to delete data transfer information. All associated transfer runs and log messages will be deleted as well.
name (str) –
Required. The field will contain name of the resource requested, for example:
projects/{project_id}/transferConfigs/{config_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.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_transfer_run(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.DeleteTransferRunRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes the specified transfer run.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_delete_transfer_run(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.DeleteTransferRunRequest( name="name_value", ) # Make the request client.delete_transfer_run(request=request)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.DeleteTransferRunRequest, dict]) – The request object. A request to delete data transfer run information.
name (str) –
Required. The field will contain name of the resource requested, for example:
projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- enroll_data_sources(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.EnrollDataSourcesRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the BigQuery UI, and the documents can be found in the public guide for BigQuery Web UI and Data Transfer Service.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_enroll_data_sources(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.EnrollDataSourcesRequest( name="name_value", ) # Make the request client.enroll_data_sources(request=request)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.EnrollDataSourcesRequest, dict]) – The request object. A request to enroll a set of data sources so they are visible in the BigQuery UI’s
Transfer
tab.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.
- classmethod from_service_account_file(filename: str, *args, **kwargs)[source]¶
- Creates an instance of this client using the provided credentials
file.
- Parameters
filename (str) – The path to the service account private key json file.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- classmethod from_service_account_info(info: dict, *args, **kwargs)[source]¶
- Creates an instance of this client using the provided credentials
info.
- Parameters
info (dict) – The service account private key info.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- classmethod from_service_account_json(filename: str, *args, **kwargs)¶
- Creates an instance of this client using the provided credentials
file.
- Parameters
filename (str) – The path to the service account private key json file.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- get_data_source(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.GetDataSourceRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.datatransfer.DataSource [source]¶
Retrieves a supported data source and returns its settings.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_get_data_source(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.GetDataSourceRequest( name="name_value", ) # Make the request response = client.get_data_source(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.GetDataSourceRequest, dict]) – The request object. A request to get data source info.
name (str) –
Required. The field will contain name of the resource requested, for example:
projects/{project_id}/dataSources/{data_source_id}
orprojects/{project_id}/locations/{location_id}/dataSources/{data_source_id}
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
Defines the properties and custom parameters for a data source.
- Return type
- get_location(request: Optional[google.cloud.location.locations_pb2.GetLocationRequest] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.location.locations_pb2.Location [source]¶
Gets information about a location.
- Parameters
request (
GetLocationRequest
) – The request object. Request message for GetLocation method.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.
- Returns
Location object.
- Return type
Location
- classmethod get_mtls_endpoint_and_cert_source(client_options: Optional[google.api_core.client_options.ClientOptions] = None)[source]¶
Deprecated. 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 variable 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.
- Parameters
client_options (google.api_core.client_options.ClientOptions) – Custom options for the client. Only the api_endpoint and client_cert_source properties may be used in this method.
- Returns
- returns the API endpoint and the
client cert source to use.
- Return type
- Raises
google.auth.exceptions.MutualTLSChannelError – If any errors happen.
- get_transfer_config(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.GetTransferConfigRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.transfer.TransferConfig [source]¶
Returns information about a data transfer config.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_get_transfer_config(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.GetTransferConfigRequest( name="name_value", ) # Make the request response = client.get_transfer_config(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.GetTransferConfigRequest, dict]) – The request object. A request to get data transfer information.
name (str) –
Required. The field will contain name of the resource requested, for example:
projects/{project_id}/transferConfigs/{config_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
- Represents a data transfer configuration. A transfer configuration
contains all metadata needed to perform a data transfer. For example, destination_dataset_id specifies where data should be stored. When a new transfer configuration is created, the specified destination_dataset_id is created when needed and shared with the appropriate data source service account.
- Return type
- get_transfer_run(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.GetTransferRunRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.transfer.TransferRun [source]¶
Returns information about the particular transfer run.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_get_transfer_run(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.GetTransferRunRequest( name="name_value", ) # Make the request response = client.get_transfer_run(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.GetTransferRunRequest, dict]) – The request object. A request to get data transfer run information.
name (str) –
Required. The field will contain name of the resource requested, for example:
projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
Represents a data transfer run.
- Return type
- list_data_sources(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListDataSourcesRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListDataSourcesPager [source]¶
Lists supported data sources and returns their settings.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_list_data_sources(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.ListDataSourcesRequest( parent="parent_value", ) # Make the request page_result = client.list_data_sources(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesRequest, dict]) – The request object. Request to list supported data sources and their data transfer settings.
parent (str) –
Required. The BigQuery project id for which data sources should be returned. Must be in the form:
projects/{project_id}
orprojects/{project_id}/locations/{location_id}
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
Returns list of supported data sources and their metadata. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListDataSourcesPager
- list_locations(request: Optional[google.cloud.location.locations_pb2.ListLocationsRequest] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.location.locations_pb2.ListLocationsResponse [source]¶
Lists information about the supported locations for this service.
- Parameters
request (
ListLocationsRequest
) – The request object. Request message for ListLocations method.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.
- Returns
Response message for
ListLocations
method.- Return type
ListLocationsResponse
- list_transfer_configs(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferConfigsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferConfigsPager [source]¶
Returns information about all transfer configs owned by a project in the specified location.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_list_transfer_configs(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.ListTransferConfigsRequest( parent="parent_value", ) # Make the request page_result = client.list_transfer_configs(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsRequest, dict]) – The request object. A request to list data transfers configured for a BigQuery project.
parent (str) –
Required. The BigQuery project id for which transfer configs should be returned:
projects/{project_id}
orprojects/{project_id}/locations/{location_id}
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
The returned list of pipelines in the project. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferConfigsPager
- list_transfer_logs(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferLogsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferLogsPager [source]¶
Returns log messages for the transfer run.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_list_transfer_logs(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.ListTransferLogsRequest( parent="parent_value", ) # Make the request page_result = client.list_transfer_logs(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsRequest, dict]) – The request object. A request to get user facing log messages associated with data transfer run.
parent (str) –
Required. Transfer run name in the form:
projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
The returned list transfer run messages. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferLogsPager
- list_transfer_runs(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferRunsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferRunsPager [source]¶
Returns information about running and completed transfer runs.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_list_transfer_runs(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.ListTransferRunsRequest( parent="parent_value", ) # Make the request page_result = client.list_transfer_runs(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsRequest, dict]) – The request object. A request to list data transfer runs.
parent (str) –
Required. Name of transfer configuration for which transfer runs should be retrieved. Format of transfer configuration resource name is:
projects/{project_id}/transferConfigs/{config_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
.This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
The returned list of pipelines in the project. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferRunsPager
- static parse_common_billing_account_path(path: str) Dict[str, str] [source]¶
Parse a billing_account path into its component segments.
- static parse_common_folder_path(path: str) Dict[str, str] [source]¶
Parse a folder path into its component segments.
- static parse_common_location_path(path: str) Dict[str, str] [source]¶
Parse a location path into its component segments.
- static parse_common_organization_path(path: str) Dict[str, str] [source]¶
Parse a organization path into its component segments.
- static parse_common_project_path(path: str) Dict[str, str] [source]¶
Parse a project path into its component segments.
- static parse_data_source_path(path: str) Dict[str, str] [source]¶
Parses a data_source path into its component segments.
- static parse_run_path(path: str) Dict[str, str] [source]¶
Parses a run path into its component segments.
- static parse_transfer_config_path(path: str) Dict[str, str] [source]¶
Parses a transfer_config path into its component segments.
- static run_path(project: str, transfer_config: str, run: str) str [source]¶
Returns a fully-qualified run string.
- schedule_transfer_runs(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ScheduleTransferRunsRequest, dict]] = None, *, parent: Optional[str] = None, start_time: Optional[google.protobuf.timestamp_pb2.Timestamp] = None, end_time: Optional[google.protobuf.timestamp_pb2.Timestamp] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.datatransfer.ScheduleTransferRunsResponse [source]¶
Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_schedule_transfer_runs(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.ScheduleTransferRunsRequest( parent="parent_value", ) # Make the request response = client.schedule_transfer_runs(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.ScheduleTransferRunsRequest, dict]) – The request object. A request to schedule transfer runs for a time range.
parent (str) –
Required. Transfer configuration name in the form:
projects/{project_id}/transferConfigs/{config_id}
orprojects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
.This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.start_time (google.protobuf.timestamp_pb2.Timestamp) –
Required. Start time of the range of transfer runs. For example,
"2017-05-25T00:00:00+00:00"
.This corresponds to the
start_time
field on therequest
instance; ifrequest
is provided, this should not be set.end_time (google.protobuf.timestamp_pb2.Timestamp) –
Required. End time of the range of transfer runs. For example,
"2017-05-30T00:00:00+00:00"
.This corresponds to the
end_time
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
A response to schedule transfer runs for a time range.
- Return type
google.cloud.bigquery_datatransfer_v1.types.ScheduleTransferRunsResponse
- start_manual_transfer_runs(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.StartManualTransferRunsRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.datatransfer.StartManualTransferRunsResponse [source]¶
Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time (inclusive) and end_time (exclusive), or for a specific run_time.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_start_manual_transfer_runs(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.StartManualTransferRunsRequest( parent="parent_value", ) # Make the request response = client.start_manual_transfer_runs(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.StartManualTransferRunsRequest, dict]) – The request object. A request to start manual transfer runs.
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.
- Returns
A response to start manual transfer runs.
- Return type
google.cloud.bigquery_datatransfer_v1.types.StartManualTransferRunsResponse
- static transfer_config_path(project: str, transfer_config: str) str [source]¶
Returns a fully-qualified transfer_config string.
- property transport: google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.transports.base.DataTransferServiceTransport¶
Returns the transport used by the client instance.
- Returns
- The transport used by the client
instance.
- Return type
DataTransferServiceTransport
- unenroll_data_sources(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.UnenrollDataSourcesRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Unenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the ListDataSources RPC and will also no longer appear in the BigQuery UI. Data transfers configurations of unenrolled data sources will not be scheduled.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_unenroll_data_sources(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) request = bigquery_datatransfer_v1.UnenrollDataSourcesRequest( name="name_value", ) # Make the request client.unenroll_data_sources(request=request)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.UnenrollDataSourcesRequest, dict]) – The request object. A request to unenroll a set of data sources so they are no longer visible in the BigQuery UI’s
Transfer
tab.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.
- property universe_domain: str¶
Return the universe domain used by the client instance.
- Returns
The universe domain used by the client instance.
- Return type
- update_transfer_config(request: Optional[Union[google.cloud.bigquery_datatransfer_v1.types.datatransfer.UpdateTransferConfigRequest, dict]] = None, *, transfer_config: Optional[google.cloud.bigquery_datatransfer_v1.types.transfer.TransferConfig] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.bigquery_datatransfer_v1.types.transfer.TransferConfig [source]¶
Updates a data transfer configuration. All fields must be set, even if they are not updated.
# 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. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import bigquery_datatransfer_v1 def sample_update_transfer_config(): # Create a client client = bigquery_datatransfer_v1.DataTransferServiceClient() # Initialize request argument(s) transfer_config = bigquery_datatransfer_v1.TransferConfig() transfer_config.destination_dataset_id = "destination_dataset_id_value" request = bigquery_datatransfer_v1.UpdateTransferConfigRequest( transfer_config=transfer_config, ) # Make the request response = client.update_transfer_config(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.bigquery_datatransfer_v1.types.UpdateTransferConfigRequest, dict]) –
The request object. A request to update a transfer configuration. To update the user id of the transfer configuration, authorization info needs to be provided.
When using a cross project service account for updating a transfer config, you must enable cross project service account usage. For more information, see Disable attachment of service accounts to resources in other projects.
transfer_config (google.cloud.bigquery_datatransfer_v1.types.TransferConfig) –
Required. Data transfer configuration to create.
This corresponds to the
transfer_config
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) –
Required. Required list of fields to be updated in this request.
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.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.
- Returns
- Represents a data transfer configuration. A transfer configuration
contains all metadata needed to perform a data transfer. For example, destination_dataset_id specifies where data should be stored. When a new transfer configuration is created, the specified destination_dataset_id is created when needed and shared with the appropriate data source service account.
- Return type
- class google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListDataSourcesAsyncPager(method: Callable[[...], Awaitable[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListDataSourcesResponse]], request: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListDataSourcesRequest, response: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListDataSourcesResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_data_sources
requests.This class thinly wraps an initial
google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesResponse
object, and provides an__aiter__
method to iterate through itsdata_sources
field.If there are more pages, the
__aiter__
method will make additionalListDataSources
requests and continue to iterate through thedata_sources
field on the corresponding responses.All the usual
google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesRequest) – The initial request object.
response (google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – 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.
- class google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListDataSourcesPager(method: Callable[[...], google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListDataSourcesResponse], request: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListDataSourcesRequest, response: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListDataSourcesResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_data_sources
requests.This class thinly wraps an initial
google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesResponse
object, and provides an__iter__
method to iterate through itsdata_sources
field.If there are more pages, the
__iter__
method will make additionalListDataSources
requests and continue to iterate through thedata_sources
field on the corresponding responses.All the usual
google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesRequest) – The initial request object.
response (google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesResponse) – The initial response 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.
- class google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferConfigsAsyncPager(method: Callable[[...], Awaitable[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferConfigsResponse]], request: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferConfigsRequest, response: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferConfigsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_transfer_configs
requests.This class thinly wraps an initial
google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsResponse
object, and provides an__aiter__
method to iterate through itstransfer_configs
field.If there are more pages, the
__aiter__
method will make additionalListTransferConfigs
requests and continue to iterate through thetransfer_configs
field on the corresponding responses.All the usual
google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsRequest) – The initial request object.
response (google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – 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.
- class google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferConfigsPager(method: Callable[[...], google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferConfigsResponse], request: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferConfigsRequest, response: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferConfigsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_transfer_configs
requests.This class thinly wraps an initial
google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsResponse
object, and provides an__iter__
method to iterate through itstransfer_configs
field.If there are more pages, the
__iter__
method will make additionalListTransferConfigs
requests and continue to iterate through thetransfer_configs
field on the corresponding responses.All the usual
google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsRequest) – The initial request object.
response (google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsResponse) – The initial response 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.
- class google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferLogsAsyncPager(method: Callable[[...], Awaitable[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferLogsResponse]], request: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferLogsRequest, response: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferLogsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_transfer_logs
requests.This class thinly wraps an initial
google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsResponse
object, and provides an__aiter__
method to iterate through itstransfer_messages
field.If there are more pages, the
__aiter__
method will make additionalListTransferLogs
requests and continue to iterate through thetransfer_messages
field on the corresponding responses.All the usual
google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsRequest) – The initial request object.
response (google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – 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.
- class google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferLogsPager(method: Callable[[...], google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferLogsResponse], request: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferLogsRequest, response: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferLogsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_transfer_logs
requests.This class thinly wraps an initial
google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsResponse
object, and provides an__iter__
method to iterate through itstransfer_messages
field.If there are more pages, the
__iter__
method will make additionalListTransferLogs
requests and continue to iterate through thetransfer_messages
field on the corresponding responses.All the usual
google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsRequest) – The initial request object.
response (google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsResponse) – The initial response 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.
- class google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferRunsAsyncPager(method: Callable[[...], Awaitable[google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferRunsResponse]], request: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferRunsRequest, response: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferRunsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_transfer_runs
requests.This class thinly wraps an initial
google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsResponse
object, and provides an__aiter__
method to iterate through itstransfer_runs
field.If there are more pages, the
__aiter__
method will make additionalListTransferRuns
requests and continue to iterate through thetransfer_runs
field on the corresponding responses.All the usual
google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsRequest) – The initial request object.
response (google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – 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.
- class google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers.ListTransferRunsPager(method: Callable[[...], google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferRunsResponse], request: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferRunsRequest, response: google.cloud.bigquery_datatransfer_v1.types.datatransfer.ListTransferRunsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_transfer_runs
requests.This class thinly wraps an initial
google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsResponse
object, and provides an__iter__
method to iterate through itstransfer_runs
field.If there are more pages, the
__iter__
method will make additionalListTransferRuns
requests and continue to iterate through thetransfer_runs
field on the corresponding responses.All the usual
google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsRequest) – The initial request object.
response (google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsResponse) – The initial response 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.