pub struct ProjectMethods<'a, C>where
C: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the Datastream
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_datastream1 as datastream1;
use datastream1::{Datastream, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http1()
.build()
);
let mut hub = Datastream::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_connection_profiles_create(...)`, `locations_connection_profiles_delete(...)`, `locations_connection_profiles_discover(...)`, `locations_connection_profiles_get(...)`, `locations_connection_profiles_list(...)`, `locations_connection_profiles_patch(...)`, `locations_fetch_static_ips(...)`, `locations_get(...)`, `locations_list(...)`, `locations_operations_cancel(...)`, `locations_operations_delete(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_private_connections_create(...)`, `locations_private_connections_delete(...)`, `locations_private_connections_get(...)`, `locations_private_connections_list(...)`, `locations_private_connections_routes_create(...)`, `locations_private_connections_routes_delete(...)`, `locations_private_connections_routes_get(...)`, `locations_private_connections_routes_list(...)`, `locations_streams_create(...)`, `locations_streams_delete(...)`, `locations_streams_get(...)`, `locations_streams_list(...)`, `locations_streams_objects_get(...)`, `locations_streams_objects_list(...)`, `locations_streams_objects_lookup(...)`, `locations_streams_objects_start_backfill_job(...)`, `locations_streams_objects_stop_backfill_job(...)`, `locations_streams_patch(...)` and `locations_streams_run(...)`
// to build up your call.
let rb = hub.projects();
Implementations§
Source§impl<'a, C> ProjectMethods<'a, C>
impl<'a, C> ProjectMethods<'a, C>
Sourcepub fn locations_connection_profiles_create(
&self,
request: ConnectionProfile,
parent: &str,
) -> ProjectLocationConnectionProfileCreateCall<'a, C>
pub fn locations_connection_profiles_create( &self, request: ConnectionProfile, parent: &str, ) -> ProjectLocationConnectionProfileCreateCall<'a, C>
Create a builder to help you perform the following task:
Use this method to create a connection profile in a project and location.
§Arguments
request
- No description provided.parent
- Required. The parent that owns the collection of ConnectionProfiles.
Sourcepub fn locations_connection_profiles_delete(
&self,
name: &str,
) -> ProjectLocationConnectionProfileDeleteCall<'a, C>
pub fn locations_connection_profiles_delete( &self, name: &str, ) -> ProjectLocationConnectionProfileDeleteCall<'a, C>
Create a builder to help you perform the following task:
Use this method to delete a connection profile.
§Arguments
name
- Required. The name of the connection profile resource to delete.
Sourcepub fn locations_connection_profiles_discover(
&self,
request: DiscoverConnectionProfileRequest,
parent: &str,
) -> ProjectLocationConnectionProfileDiscoverCall<'a, C>
pub fn locations_connection_profiles_discover( &self, request: DiscoverConnectionProfileRequest, parent: &str, ) -> ProjectLocationConnectionProfileDiscoverCall<'a, C>
Create a builder to help you perform the following task:
Use this method to discover a connection profile. The discover API call exposes the data objects and metadata belonging to the profile. Typically, a request returns children data objects of a parent data object that’s optionally supplied in the request.
§Arguments
request
- No description provided.parent
- Required. The parent resource of the connection profile type. Must be in the formatprojects/*/locations/*
.
Sourcepub fn locations_connection_profiles_get(
&self,
name: &str,
) -> ProjectLocationConnectionProfileGetCall<'a, C>
pub fn locations_connection_profiles_get( &self, name: &str, ) -> ProjectLocationConnectionProfileGetCall<'a, C>
Create a builder to help you perform the following task:
Use this method to get details about a connection profile.
§Arguments
name
- Required. The name of the connection profile resource to get.
Sourcepub fn locations_connection_profiles_list(
&self,
parent: &str,
) -> ProjectLocationConnectionProfileListCall<'a, C>
pub fn locations_connection_profiles_list( &self, parent: &str, ) -> ProjectLocationConnectionProfileListCall<'a, C>
Create a builder to help you perform the following task:
Use this method to list connection profiles created in a project and location.
§Arguments
parent
- Required. The parent that owns the collection of connection profiles.
Sourcepub fn locations_connection_profiles_patch(
&self,
request: ConnectionProfile,
name: &str,
) -> ProjectLocationConnectionProfilePatchCall<'a, C>
pub fn locations_connection_profiles_patch( &self, request: ConnectionProfile, name: &str, ) -> ProjectLocationConnectionProfilePatchCall<'a, C>
Create a builder to help you perform the following task:
Use this method to update the parameters of a connection profile.
§Arguments
request
- No description provided.name
- Output only. The resource’s name.
Sourcepub fn locations_operations_cancel(
&self,
request: CancelOperationRequest,
name: &str,
) -> ProjectLocationOperationCancelCall<'a, C>
pub fn locations_operations_cancel( &self, request: CancelOperationRequest, name: &str, ) -> ProjectLocationOperationCancelCall<'a, C>
Create a builder to help you perform the following task:
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED
. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED
.
§Arguments
request
- No description provided.name
- The name of the operation resource to be cancelled.
Sourcepub fn locations_operations_delete(
&self,
name: &str,
) -> ProjectLocationOperationDeleteCall<'a, C>
pub fn locations_operations_delete( &self, name: &str, ) -> ProjectLocationOperationDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
§Arguments
name
- The name of the operation resource to be deleted.
Sourcepub fn locations_operations_get(
&self,
name: &str,
) -> ProjectLocationOperationGetCall<'a, C>
pub fn locations_operations_get( &self, name: &str, ) -> ProjectLocationOperationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
§Arguments
name
- The name of the operation resource.
Sourcepub fn locations_operations_list(
&self,
name: &str,
) -> ProjectLocationOperationListCall<'a, C>
pub fn locations_operations_list( &self, name: &str, ) -> ProjectLocationOperationListCall<'a, C>
Create a builder to help you perform the following task:
Lists operations that match the specified filter in the request. If the server doesn’t support this method, it returns UNIMPLEMENTED
.
§Arguments
name
- The name of the operation’s parent resource.
Sourcepub fn locations_private_connections_routes_create(
&self,
request: Route,
parent: &str,
) -> ProjectLocationPrivateConnectionRouteCreateCall<'a, C>
pub fn locations_private_connections_routes_create( &self, request: Route, parent: &str, ) -> ProjectLocationPrivateConnectionRouteCreateCall<'a, C>
Create a builder to help you perform the following task:
Use this method to create a route for a private connectivity configuration in a project and location.
§Arguments
request
- No description provided.parent
- Required. The parent that owns the collection of Routes.
Sourcepub fn locations_private_connections_routes_delete(
&self,
name: &str,
) -> ProjectLocationPrivateConnectionRouteDeleteCall<'a, C>
pub fn locations_private_connections_routes_delete( &self, name: &str, ) -> ProjectLocationPrivateConnectionRouteDeleteCall<'a, C>
Create a builder to help you perform the following task:
Use this method to delete a route.
§Arguments
name
- Required. The name of the Route resource to delete.
Sourcepub fn locations_private_connections_routes_get(
&self,
name: &str,
) -> ProjectLocationPrivateConnectionRouteGetCall<'a, C>
pub fn locations_private_connections_routes_get( &self, name: &str, ) -> ProjectLocationPrivateConnectionRouteGetCall<'a, C>
Create a builder to help you perform the following task:
Use this method to get details about a route.
§Arguments
name
- Required. The name of the Route resource to get.
Sourcepub fn locations_private_connections_routes_list(
&self,
parent: &str,
) -> ProjectLocationPrivateConnectionRouteListCall<'a, C>
pub fn locations_private_connections_routes_list( &self, parent: &str, ) -> ProjectLocationPrivateConnectionRouteListCall<'a, C>
Create a builder to help you perform the following task:
Use this method to list routes created for a private connectivity configuration in a project and location.
§Arguments
parent
- Required. The parent that owns the collection of Routess.
Sourcepub fn locations_private_connections_create(
&self,
request: PrivateConnection,
parent: &str,
) -> ProjectLocationPrivateConnectionCreateCall<'a, C>
pub fn locations_private_connections_create( &self, request: PrivateConnection, parent: &str, ) -> ProjectLocationPrivateConnectionCreateCall<'a, C>
Create a builder to help you perform the following task:
Use this method to create a private connectivity configuration.
§Arguments
request
- No description provided.parent
- Required. The parent that owns the collection of PrivateConnections.
Sourcepub fn locations_private_connections_delete(
&self,
name: &str,
) -> ProjectLocationPrivateConnectionDeleteCall<'a, C>
pub fn locations_private_connections_delete( &self, name: &str, ) -> ProjectLocationPrivateConnectionDeleteCall<'a, C>
Create a builder to help you perform the following task:
Use this method to delete a private connectivity configuration.
§Arguments
name
- Required. The name of the private connectivity configuration to delete.
Sourcepub fn locations_private_connections_get(
&self,
name: &str,
) -> ProjectLocationPrivateConnectionGetCall<'a, C>
pub fn locations_private_connections_get( &self, name: &str, ) -> ProjectLocationPrivateConnectionGetCall<'a, C>
Create a builder to help you perform the following task:
Use this method to get details about a private connectivity configuration.
§Arguments
name
- Required. The name of the private connectivity configuration to get.
Sourcepub fn locations_private_connections_list(
&self,
parent: &str,
) -> ProjectLocationPrivateConnectionListCall<'a, C>
pub fn locations_private_connections_list( &self, parent: &str, ) -> ProjectLocationPrivateConnectionListCall<'a, C>
Create a builder to help you perform the following task:
Use this method to list private connectivity configurations in a project and location.
§Arguments
parent
- Required. The parent that owns the collection of private connectivity configurations.
Sourcepub fn locations_streams_objects_get(
&self,
name: &str,
) -> ProjectLocationStreamObjectGetCall<'a, C>
pub fn locations_streams_objects_get( &self, name: &str, ) -> ProjectLocationStreamObjectGetCall<'a, C>
Create a builder to help you perform the following task:
Use this method to get details about a stream object.
§Arguments
name
- Required. The name of the stream object resource to get.
Sourcepub fn locations_streams_objects_list(
&self,
parent: &str,
) -> ProjectLocationStreamObjectListCall<'a, C>
pub fn locations_streams_objects_list( &self, parent: &str, ) -> ProjectLocationStreamObjectListCall<'a, C>
Create a builder to help you perform the following task:
Use this method to list the objects of a specific stream.
§Arguments
parent
- Required. The parent stream that owns the collection of objects.
Sourcepub fn locations_streams_objects_lookup(
&self,
request: LookupStreamObjectRequest,
parent: &str,
) -> ProjectLocationStreamObjectLookupCall<'a, C>
pub fn locations_streams_objects_lookup( &self, request: LookupStreamObjectRequest, parent: &str, ) -> ProjectLocationStreamObjectLookupCall<'a, C>
Create a builder to help you perform the following task:
Use this method to look up a stream object by its source object identifier.
§Arguments
request
- No description provided.parent
- Required. The parent stream that owns the collection of objects.
Sourcepub fn locations_streams_objects_start_backfill_job(
&self,
request: StartBackfillJobRequest,
object: &str,
) -> ProjectLocationStreamObjectStartBackfillJobCall<'a, C>
pub fn locations_streams_objects_start_backfill_job( &self, request: StartBackfillJobRequest, object: &str, ) -> ProjectLocationStreamObjectStartBackfillJobCall<'a, C>
Create a builder to help you perform the following task:
Use this method to start a backfill job for the specified stream object.
§Arguments
request
- No description provided.object
- Required. The name of the stream object resource to start a backfill job for.
Sourcepub fn locations_streams_objects_stop_backfill_job(
&self,
request: StopBackfillJobRequest,
object: &str,
) -> ProjectLocationStreamObjectStopBackfillJobCall<'a, C>
pub fn locations_streams_objects_stop_backfill_job( &self, request: StopBackfillJobRequest, object: &str, ) -> ProjectLocationStreamObjectStopBackfillJobCall<'a, C>
Create a builder to help you perform the following task:
Use this method to stop a backfill job for the specified stream object.
§Arguments
request
- No description provided.object
- Required. The name of the stream object resource to stop the backfill job for.
Sourcepub fn locations_streams_create(
&self,
request: Stream,
parent: &str,
) -> ProjectLocationStreamCreateCall<'a, C>
pub fn locations_streams_create( &self, request: Stream, parent: &str, ) -> ProjectLocationStreamCreateCall<'a, C>
Create a builder to help you perform the following task:
Use this method to create a stream.
§Arguments
request
- No description provided.parent
- Required. The parent that owns the collection of streams.
Sourcepub fn locations_streams_delete(
&self,
name: &str,
) -> ProjectLocationStreamDeleteCall<'a, C>
pub fn locations_streams_delete( &self, name: &str, ) -> ProjectLocationStreamDeleteCall<'a, C>
Create a builder to help you perform the following task:
Use this method to delete a stream.
§Arguments
name
- Required. The name of the stream resource to delete.
Sourcepub fn locations_streams_get(
&self,
name: &str,
) -> ProjectLocationStreamGetCall<'a, C>
pub fn locations_streams_get( &self, name: &str, ) -> ProjectLocationStreamGetCall<'a, C>
Create a builder to help you perform the following task:
Use this method to get details about a stream.
§Arguments
name
- Required. The name of the stream resource to get.
Sourcepub fn locations_streams_list(
&self,
parent: &str,
) -> ProjectLocationStreamListCall<'a, C>
pub fn locations_streams_list( &self, parent: &str, ) -> ProjectLocationStreamListCall<'a, C>
Create a builder to help you perform the following task:
Use this method to list streams in a project and location.
§Arguments
parent
- Required. The parent that owns the collection of streams.
Sourcepub fn locations_streams_patch(
&self,
request: Stream,
name: &str,
) -> ProjectLocationStreamPatchCall<'a, C>
pub fn locations_streams_patch( &self, request: Stream, name: &str, ) -> ProjectLocationStreamPatchCall<'a, C>
Create a builder to help you perform the following task:
Use this method to update the configuration of a stream.
§Arguments
request
- No description provided.name
- Output only. The stream’s name.
Sourcepub fn locations_streams_run(
&self,
request: RunStreamRequest,
name: &str,
) -> ProjectLocationStreamRunCall<'a, C>
pub fn locations_streams_run( &self, request: RunStreamRequest, name: &str, ) -> ProjectLocationStreamRunCall<'a, C>
Create a builder to help you perform the following task:
Use this method to start, resume or recover a stream with a non default CDC strategy. NOTE: This feature is currently experimental.
§Arguments
request
- No description provided.name
- Required. Name of the stream resource to start, in the format: projects/{project_id}/locations/{location}/streams/{stream_name}
Sourcepub fn locations_fetch_static_ips(
&self,
name: &str,
) -> ProjectLocationFetchStaticIpCall<'a, C>
pub fn locations_fetch_static_ips( &self, name: &str, ) -> ProjectLocationFetchStaticIpCall<'a, C>
Create a builder to help you perform the following task:
The FetchStaticIps API call exposes the static IP addresses used by Datastream.
§Arguments
name
- Required. The resource name for the location for which static IPs should be returned. Must be in the formatprojects/*/locations/*
.
Sourcepub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
pub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets information about a location.
§Arguments
name
- Resource name for the location.
Sourcepub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
pub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
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.
Trait Implementations§
impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for ProjectMethods<'a, C>
impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>
impl<'a, C> Send for ProjectMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for ProjectMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for ProjectMethods<'a, C>
impl<'a, C> !UnwindSafe for ProjectMethods<'a, C>
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
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>
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>
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