Struct gcp_bigquery_client::Client
source · pub struct Client { /* private fields */ }
Expand description
An asynchronous BigQuery client.
Implementations§
source§impl Client
impl Client
pub fn from_authenticator(auth: Arc<dyn Authenticator>) -> Self
sourcepub async fn from_service_account_key_file(
sa_key_file: &str
) -> Result<Self, BQError>
pub async fn from_service_account_key_file( sa_key_file: &str ) -> Result<Self, BQError>
sourcepub async fn from_service_account_key(
sa_key: ServiceAccountKey,
readonly: bool
) -> Result<Self, BQError>
pub async fn from_service_account_key( sa_key: ServiceAccountKey, readonly: bool ) -> Result<Self, BQError>
Constructs a new BigQuery client from a ServiceAccountKey
.
§Argument
sa_key
- A GCP Service Account Keyyup-oauth2
object.readonly
- A boolean setting whether the acquired token scope should be readonly.
pub async fn with_workload_identity(readonly: bool) -> Result<Self, BQError>
pub async fn from_installed_flow_authenticator<S: AsRef<[u8]>, P: Into<PathBuf>>( secret: S, persistant_file_path: P ) -> Result<Self, BQError>
pub async fn from_installed_flow_authenticator_from_secret_file<P: Into<PathBuf>>( secret_file: &str, persistant_file_path: P ) -> Result<Self, BQError>
pub async fn from_application_default_credentials() -> Result<Self, BQError>
sourcepub fn dataset(&self) -> &DatasetApi
pub fn dataset(&self) -> &DatasetApi
Returns a dataset API handler.
sourcepub fn tabledata(&self) -> &TableDataApi
pub fn tabledata(&self) -> &TableDataApi
Returns a table data API handler.
sourcepub fn routine(&self) -> &RoutineApi
pub fn routine(&self) -> &RoutineApi
Returns a routine API handler.
sourcepub fn project(&self) -> &ProjectApi
pub fn project(&self) -> &ProjectApi
Returns a project API handler.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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