Struct ProjectMethods

Source
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>

Source

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.
Source

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.
Source

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 format projects/*/locations/*.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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.
Source

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}
Source

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 format projects/*/locations/*.
Source

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.
Source

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§

Source§

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> 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>,

Source§

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>,

Source§

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
Source§

impl<T> ErasedDestructor for T
where T: 'static,