Struct google_bigquerydatatransfer1::api::ProjectMethods

source ·
pub struct ProjectMethods<'a, S>
where S: 'a,
{ /* private fields */ }
Expand description

A builder providing access to all methods supported on project resources. It is not used directly, but through the BigQueryDataTransfer hub.

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_bigquerydatatransfer1 as bigquerydatatransfer1;
 
use std::default::Default;
use bigquerydatatransfer1::{BigQueryDataTransfer, oauth2, hyper, hyper_rustls, chrono, FieldMask};
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
        secret,
        oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = BigQueryDataTransfer::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().unwrap().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `data_sources_check_valid_creds(...)`, `data_sources_get(...)`, `data_sources_list(...)`, `enroll_data_sources(...)`, `locations_data_sources_check_valid_creds(...)`, `locations_data_sources_get(...)`, `locations_data_sources_list(...)`, `locations_enroll_data_sources(...)`, `locations_get(...)`, `locations_list(...)`, `locations_transfer_configs_create(...)`, `locations_transfer_configs_delete(...)`, `locations_transfer_configs_get(...)`, `locations_transfer_configs_list(...)`, `locations_transfer_configs_patch(...)`, `locations_transfer_configs_runs_delete(...)`, `locations_transfer_configs_runs_get(...)`, `locations_transfer_configs_runs_list(...)`, `locations_transfer_configs_runs_transfer_logs_list(...)`, `locations_transfer_configs_schedule_runs(...)`, `locations_transfer_configs_start_manual_runs(...)`, `locations_unenroll_data_sources(...)`, `transfer_configs_create(...)`, `transfer_configs_delete(...)`, `transfer_configs_get(...)`, `transfer_configs_list(...)`, `transfer_configs_patch(...)`, `transfer_configs_runs_delete(...)`, `transfer_configs_runs_get(...)`, `transfer_configs_runs_list(...)`, `transfer_configs_runs_transfer_logs_list(...)`, `transfer_configs_schedule_runs(...)` and `transfer_configs_start_manual_runs(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

source§

impl<'a, S> ProjectMethods<'a, S>

source

pub fn data_sources_check_valid_creds( &self, request: CheckValidCredsRequest, name: &str, ) -> ProjectDataSourceCheckValidCredCall<'a, S>

Create a builder to help you perform the following task:

Returns true if valid credentials exist for the given data source and requesting user.

§Arguments
  • request - No description provided.
  • name - Required. The data source in the form: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}.
source

pub fn data_sources_get(&self, name: &str) -> ProjectDataSourceGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves a supported data source and returns its settings.

§Arguments
  • name - Required. The field will contain name of the resource requested, for example: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}
source

pub fn data_sources_list( &self, parent: &str, ) -> ProjectDataSourceListCall<'a, S>

Create a builder to help you perform the following task:

Lists supported data sources and returns their settings.

§Arguments
  • parent - Required. The BigQuery project id for which data sources should be returned. Must be in the form: projects/{project_id} or projects/{project_id}/locations/{location_id}
source

pub fn locations_data_sources_check_valid_creds( &self, request: CheckValidCredsRequest, name: &str, ) -> ProjectLocationDataSourceCheckValidCredCall<'a, S>

Create a builder to help you perform the following task:

Returns true if valid credentials exist for the given data source and requesting user.

§Arguments
  • request - No description provided.
  • name - Required. The data source in the form: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}.
source

pub fn locations_data_sources_get( &self, name: &str, ) -> ProjectLocationDataSourceGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves a supported data source and returns its settings.

§Arguments
  • name - Required. The field will contain name of the resource requested, for example: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}
source

pub fn locations_data_sources_list( &self, parent: &str, ) -> ProjectLocationDataSourceListCall<'a, S>

Create a builder to help you perform the following task:

Lists supported data sources and returns their settings.

§Arguments
  • parent - Required. The BigQuery project id for which data sources should be returned. Must be in the form: projects/{project_id} or projects/{project_id}/locations/{location_id}
source

pub fn locations_transfer_configs_runs_transfer_logs_list( &self, parent: &str, ) -> ProjectLocationTransferConfigRunTransferLogListCall<'a, S>

Create a builder to help you perform the following task:

Returns log messages for the transfer run.

§Arguments
  • parent - Required. Transfer run name in the form: projects/{project_id}/transferConfigs/{config_id}/runs/{run_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
source

pub fn locations_transfer_configs_runs_delete( &self, name: &str, ) -> ProjectLocationTransferConfigRunDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified transfer run.

§Arguments
  • name - Required. The field will contain name of the resource requested, for example: projects/{project_id}/transferConfigs/{config_id}/runs/{run_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
source

pub fn locations_transfer_configs_runs_get( &self, name: &str, ) -> ProjectLocationTransferConfigRunGetCall<'a, S>

Create a builder to help you perform the following task:

Returns information about the particular transfer run.

§Arguments
  • name - Required. The field will contain name of the resource requested, for example: projects/{project_id}/transferConfigs/{config_id}/runs/{run_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
source

pub fn locations_transfer_configs_runs_list( &self, parent: &str, ) -> ProjectLocationTransferConfigRunListCall<'a, S>

Create a builder to help you perform the following task:

Returns information about running and completed transfer runs.

§Arguments
  • parent - 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} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}.
source

pub fn locations_transfer_configs_create( &self, request: TransferConfig, parent: &str, ) -> ProjectLocationTransferConfigCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new data transfer configuration.

§Arguments
  • request - No description provided.
  • parent - 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.
source

pub fn locations_transfer_configs_delete( &self, name: &str, ) -> ProjectLocationTransferConfigDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a data transfer configuration, including any associated transfer runs and logs.

§Arguments
  • name - Required. The field will contain name of the resource requested, for example: projects/{project_id}/transferConfigs/{config_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
source

pub fn locations_transfer_configs_get( &self, name: &str, ) -> ProjectLocationTransferConfigGetCall<'a, S>

Create a builder to help you perform the following task:

Returns information about a data transfer config.

§Arguments
  • name - Required. The field will contain name of the resource requested, for example: projects/{project_id}/transferConfigs/{config_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
source

pub fn locations_transfer_configs_list( &self, parent: &str, ) -> ProjectLocationTransferConfigListCall<'a, S>

Create a builder to help you perform the following task:

Returns information about all transfer configs owned by a project in the specified location.

§Arguments
  • parent - Required. The BigQuery project id for which transfer configs should be returned: projects/{project_id} or projects/{project_id}/locations/{location_id}
source

pub fn locations_transfer_configs_patch( &self, request: TransferConfig, name: &str, ) -> ProjectLocationTransferConfigPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates a data transfer configuration. All fields must be set, even if they are not updated.

§Arguments
  • request - No description provided.
  • name - Identifier. The resource name of the transfer config. Transfer config names have the form either projects/{project_id}/locations/{region}/transferConfigs/{config_id} or projects/{project_id}/transferConfigs/{config_id}, where config_id is usually a UUID, even though it is not guaranteed or required. The name is ignored when creating a transfer config.
source

pub fn locations_transfer_configs_schedule_runs( &self, request: ScheduleTransferRunsRequest, parent: &str, ) -> ProjectLocationTransferConfigScheduleRunCall<'a, S>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • parent - Required. Transfer configuration name in the form: projects/{project_id}/transferConfigs/{config_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}.
source

pub fn locations_transfer_configs_start_manual_runs( &self, request: StartManualTransferRunsRequest, parent: &str, ) -> ProjectLocationTransferConfigStartManualRunCall<'a, S>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • parent - Required. Transfer configuration name in the form: projects/{project_id}/transferConfigs/{config_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}.
source

pub fn locations_enroll_data_sources( &self, request: EnrollDataSourcesRequest, name: &str, ) -> ProjectLocationEnrollDataSourceCall<'a, S>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • name - Required. The name of the project resource in the form: projects/{project_id}
source

pub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, S>

Create a builder to help you perform the following task:

Gets information about a location.

§Arguments
  • name - Resource name for the location.
source

pub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, S>

Create a builder to help you perform the following task:

Lists information about the supported locations for this service.

§Arguments
  • name - The resource that owns the locations collection, if applicable.
source

pub fn locations_unenroll_data_sources( &self, request: UnenrollDataSourcesRequest, name: &str, ) -> ProjectLocationUnenrollDataSourceCall<'a, S>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • name - Required. The name of the project resource in the form: projects/{project_id}
source

pub fn transfer_configs_runs_transfer_logs_list( &self, parent: &str, ) -> ProjectTransferConfigRunTransferLogListCall<'a, S>

Create a builder to help you perform the following task:

Returns log messages for the transfer run.

§Arguments
  • parent - Required. Transfer run name in the form: projects/{project_id}/transferConfigs/{config_id}/runs/{run_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
source

pub fn transfer_configs_runs_delete( &self, name: &str, ) -> ProjectTransferConfigRunDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified transfer run.

§Arguments
  • name - Required. The field will contain name of the resource requested, for example: projects/{project_id}/transferConfigs/{config_id}/runs/{run_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
source

pub fn transfer_configs_runs_get( &self, name: &str, ) -> ProjectTransferConfigRunGetCall<'a, S>

Create a builder to help you perform the following task:

Returns information about the particular transfer run.

§Arguments
  • name - Required. The field will contain name of the resource requested, for example: projects/{project_id}/transferConfigs/{config_id}/runs/{run_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}
source

pub fn transfer_configs_runs_list( &self, parent: &str, ) -> ProjectTransferConfigRunListCall<'a, S>

Create a builder to help you perform the following task:

Returns information about running and completed transfer runs.

§Arguments
  • parent - 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} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}.
source

pub fn transfer_configs_create( &self, request: TransferConfig, parent: &str, ) -> ProjectTransferConfigCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new data transfer configuration.

§Arguments
  • request - No description provided.
  • parent - 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.
source

pub fn transfer_configs_delete( &self, name: &str, ) -> ProjectTransferConfigDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a data transfer configuration, including any associated transfer runs and logs.

§Arguments
  • name - Required. The field will contain name of the resource requested, for example: projects/{project_id}/transferConfigs/{config_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
source

pub fn transfer_configs_get( &self, name: &str, ) -> ProjectTransferConfigGetCall<'a, S>

Create a builder to help you perform the following task:

Returns information about a data transfer config.

§Arguments
  • name - Required. The field will contain name of the resource requested, for example: projects/{project_id}/transferConfigs/{config_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}
source

pub fn transfer_configs_list( &self, parent: &str, ) -> ProjectTransferConfigListCall<'a, S>

Create a builder to help you perform the following task:

Returns information about all transfer configs owned by a project in the specified location.

§Arguments
  • parent - Required. The BigQuery project id for which transfer configs should be returned: projects/{project_id} or projects/{project_id}/locations/{location_id}
source

pub fn transfer_configs_patch( &self, request: TransferConfig, name: &str, ) -> ProjectTransferConfigPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates a data transfer configuration. All fields must be set, even if they are not updated.

§Arguments
  • request - No description provided.
  • name - Identifier. The resource name of the transfer config. Transfer config names have the form either projects/{project_id}/locations/{region}/transferConfigs/{config_id} or projects/{project_id}/transferConfigs/{config_id}, where config_id is usually a UUID, even though it is not guaranteed or required. The name is ignored when creating a transfer config.
source

pub fn transfer_configs_schedule_runs( &self, request: ScheduleTransferRunsRequest, parent: &str, ) -> ProjectTransferConfigScheduleRunCall<'a, S>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • parent - Required. Transfer configuration name in the form: projects/{project_id}/transferConfigs/{config_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}.
source

pub fn transfer_configs_start_manual_runs( &self, request: StartManualTransferRunsRequest, parent: &str, ) -> ProjectTransferConfigStartManualRunCall<'a, S>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • parent - Required. Transfer configuration name in the form: projects/{project_id}/transferConfigs/{config_id} or projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}.
source

pub fn enroll_data_sources( &self, request: EnrollDataSourcesRequest, name: &str, ) -> ProjectEnrollDataSourceCall<'a, S>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • name - Required. The name of the project resource in the form: projects/{project_id}

Trait Implementations§

source§

impl<'a, S> MethodsBuilder for ProjectMethods<'a, S>

Auto Trait Implementations§

§

impl<'a, S> Freeze for ProjectMethods<'a, S>

§

impl<'a, S> !RefUnwindSafe for ProjectMethods<'a, S>

§

impl<'a, S> Send for ProjectMethods<'a, S>
where S: Sync,

§

impl<'a, S> Sync for ProjectMethods<'a, S>
where S: Sync,

§

impl<'a, S> Unpin for ProjectMethods<'a, S>

§

impl<'a, S> !UnwindSafe for ProjectMethods<'a, S>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more