[][src]Struct google_serviceregistryalpha::EndpointMethods

pub struct EndpointMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_serviceregistryalpha as serviceregistryalpha;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use serviceregistryalpha::ServiceRegistry;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = ServiceRegistry::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)`
// to build up your call.
let rb = hub.endpoints();

Methods

impl<'a, C, A> EndpointMethods<'a, C, A>[src]

pub fn insert(
    &self,
    request: Endpoint,
    project: &str
) -> EndpointInsertCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates an endpoint.

Arguments

  • request - No description provided.
  • project - The project ID for this request.

pub fn delete(
    &self,
    project: &str,
    endpoint: &str
) -> EndpointDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes an endpoint.

Arguments

  • project - The project ID for this request.
  • endpoint - The name of the endpoint for this request.

pub fn update(
    &self,
    request: Endpoint,
    project: &str,
    endpoint: &str
) -> EndpointUpdateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates an endpoint.

Arguments

  • request - No description provided.
  • project - The project ID for this request.
  • endpoint - The name of the endpoint for this request.

pub fn patch(
    &self,
    request: Endpoint,
    project: &str,
    endpoint: &str
) -> EndpointPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates an endpoint. This method supports patch semantics.

Arguments

  • request - No description provided.
  • project - The project ID for this request.
  • endpoint - The name of the endpoint for this request.

pub fn list(&self, project: &str) -> EndpointListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Lists endpoints for a project.

Arguments

  • project - The project ID for this request.

pub fn get(&self, project: &str, endpoint: &str) -> EndpointGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Gets an endpoint.

Arguments

  • project - The project ID for this request.
  • endpoint - The name of the endpoint for this request.

Trait Implementations

impl<'a, C, A> MethodsBuilder for EndpointMethods<'a, C, A>[src]

Auto Trait Implementations

impl<'a, C, A> !Send for EndpointMethods<'a, C, A>

impl<'a, C, A> Unpin for EndpointMethods<'a, C, A>

impl<'a, C, A> !Sync for EndpointMethods<'a, C, A>

impl<'a, C, A> !UnwindSafe for EndpointMethods<'a, C, A>

impl<'a, C, A> !RefUnwindSafe for EndpointMethods<'a, C, A>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.