19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_DATATRANSFER_V1_DATA_TRANSFER_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_DATATRANSFER_V1_DATA_TRANSFER_CLIENT_H
22#include "google/cloud/bigquery/datatransfer/v1/data_transfer_connection.h"
23#include "google/cloud/future.h"
24#include "google/cloud/options.h"
25#include "google/cloud/polling_policy.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/version.h"
33GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
81 return a.connection_ == b.connection_;
259 std::string
const& parent,
294 CreateTransferConfigRequest
const& request,
359 UpdateTransferConfigRequest
const& request,
414 DeleteTransferConfigRequest
const& request,
597 google::protobuf::Timestamp
const& start_time,
598 google::protobuf::Timestamp
const& end_time,
636 ScheduleTransferRunsRequest
const& request,
671 StartManualTransferRunsResponse>
673 StartManualTransferRunsRequest
const& request,
1061GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
This API allows users to manage their data transfers into BigQuery.
Definition: data_transfer_client.h:61
StreamRange< google::cloud::bigquery::datatransfer::v1::TransferConfig > ListTransferConfigs(google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest request, Options opts={})
Returns information about all transfer configs owned by a project in the specified location.
StreamRange< google::cloud::bigquery::datatransfer::v1::TransferConfig > ListTransferConfigs(std::string const &parent, Options opts={})
Returns information about all transfer configs owned by a project in the specified location.
StreamRange< google::cloud::bigquery::datatransfer::v1::TransferRun > ListTransferRuns(google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest request, Options opts={})
Returns information about running and completed transfer runs.
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferRun > GetTransferRun(std::string const &name, Options opts={})
Returns information about the particular transfer run.
StatusOr< google::cloud::bigquery::datatransfer::v1::DataSource > GetDataSource(std::string const &name, Options opts={})
Retrieves a supported data source and returns its settings.
StatusOr< google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsResponse > StartManualTransferRuns(google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &request, Options opts={})
Start manual transfer runs to be executed now with schedule_time equal to current time.
friend bool operator!=(DataTransferServiceClient const &a, DataTransferServiceClient const &b)
Definition: data_transfer_client.h:83
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferRun > GetTransferRun(google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &request, Options opts={})
Returns information about the particular transfer run.
StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse > ScheduleTransferRuns(std::string const &parent, google::protobuf::Timestamp const &start_time, google::protobuf::Timestamp const &end_time, Options opts={})
Creates transfer runs for a time range [start_time, end_time].
DataTransferServiceClient & operator=(DataTransferServiceClient &&)=default
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > UpdateTransferConfig(google::cloud::bigquery::datatransfer::v1::TransferConfig const &transfer_config, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates a data transfer configuration.
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > CreateTransferConfig(std::string const &parent, google::cloud::bigquery::datatransfer::v1::TransferConfig const &transfer_config, Options opts={})
Creates a new data transfer configuration.
StreamRange< google::cloud::bigquery::datatransfer::v1::TransferRun > ListTransferRuns(std::string const &parent, Options opts={})
Returns information about running and completed transfer runs.
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > GetTransferConfig(std::string const &name, Options opts={})
Returns information about a data transfer config.
Status EnrollDataSources(google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &request, Options opts={})
Enroll data sources in a user project.
~DataTransferServiceClient()
DataTransferServiceClient(DataTransferServiceClient const &)=default
friend bool operator==(DataTransferServiceClient const &a, DataTransferServiceClient const &b)
Definition: data_transfer_client.h:79
StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage > ListTransferLogs(google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest request, Options opts={})
Returns log messages for the transfer run.
StreamRange< google::cloud::bigquery::datatransfer::v1::DataSource > ListDataSources(std::string const &parent, Options opts={})
Lists supported data sources and returns their settings.
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > CreateTransferConfig(google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &request, Options opts={})
Creates a new data transfer configuration.
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > UpdateTransferConfig(google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &request, Options opts={})
Updates a data transfer configuration.
StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > GetTransferConfig(google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &request, Options opts={})
Returns information about a data transfer config.
Status DeleteTransferRun(std::string const &name, Options opts={})
Deletes the specified transfer run.
DataTransferServiceClient & operator=(DataTransferServiceClient const &)=default
StreamRange< google::cloud::bigquery::datatransfer::v1::DataSource > ListDataSources(google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest request, Options opts={})
Lists supported data sources and returns their settings.
StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage > ListTransferLogs(std::string const &parent, Options opts={})
Returns log messages for the transfer run.
Status DeleteTransferConfig(google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &request, Options opts={})
Deletes a data transfer configuration, including any associated transfer runs and logs.
StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse > CheckValidCreds(google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &request, Options opts={})
Returns true if valid credentials exist for the given data source and requesting user.
DataTransferServiceClient(DataTransferServiceClient &&)=default
StatusOr< google::cloud::bigquery::datatransfer::v1::DataSource > GetDataSource(google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &request, Options opts={})
Retrieves a supported data source and returns its settings.
StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse > CheckValidCreds(std::string const &name, Options opts={})
Returns true if valid credentials exist for the given data source and requesting user.
StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse > ScheduleTransferRuns(google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &request, Options opts={})
Creates transfer runs for a time range [start_time, end_time].
Status DeleteTransferConfig(std::string const &name, Options opts={})
Deletes a data transfer configuration, including any associated transfer runs and logs.
Status DeleteTransferRun(google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &request, Options opts={})
Deletes the specified transfer run.
DataTransferServiceClient(std::shared_ptr< DataTransferServiceConnection > connection, Options opts={})
The DataTransferServiceConnection object for DataTransferServiceClient.
Definition: data_transfer_connection.h:62
Definition: data_transfer_client.h:32
Definition: analytics_hub_client.h:30