[][src]Struct google_run1::NamespaceMethods

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

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_run1 as run1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use run1::CloudRun;
 
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 = CloudRun::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 `authorizeddomains_list(...)`, `configurations_get(...)`, `configurations_list(...)`, `domainmappings_create(...)`, `domainmappings_delete(...)`, `domainmappings_get(...)`, `domainmappings_list(...)`, `revisions_delete(...)`, `revisions_get(...)`, `revisions_list(...)`, `routes_get(...)`, `routes_list(...)`, `services_create(...)`, `services_delete(...)`, `services_get(...)`, `services_list(...)` and `services_replace_service(...)`
// to build up your call.
let rb = hub.namespaces();

Implementations

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

pub fn routes_get(&self, name: &str) -> NamespaceRouteGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Get information about a route.

Arguments

  • name - The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn services_get(&self, name: &str) -> NamespaceServiceGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Get information about a service.

Arguments

  • name - The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn authorizeddomains_list(
    &self,
    parent: &str
) -> NamespaceAuthorizeddomainListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

List authorized domains.

Arguments

  • parent - Name of the parent Application resource. Example: apps/myapp.

pub fn services_replace_service(
    &self,
    request: Service,
    name: &str
) -> NamespaceServiceReplaceServiceCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Replace a service.

Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'.

May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.

Arguments

  • request - No description provided.
  • name - The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn domainmappings_list(
    &self,
    parent: &str
) -> NamespaceDomainmappingListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

List domain mappings.

Arguments

  • parent - The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn services_delete(
    &self,
    name: &str
) -> NamespaceServiceDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions.

Arguments

  • name - The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn domainmappings_delete(
    &self,
    name: &str
) -> NamespaceDomainmappingDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Delete a domain mapping.

Arguments

  • name - The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn services_list(&self, parent: &str) -> NamespaceServiceListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

List services.

Arguments

  • parent - The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn revisions_delete(
    &self,
    name: &str
) -> NamespaceRevisionDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Delete a revision.

Arguments

  • name - The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn configurations_list(
    &self,
    parent: &str
) -> NamespaceConfigurationListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

List configurations.

Arguments

  • parent - The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn services_create(
    &self,
    request: Service,
    parent: &str
) -> NamespaceServiceCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Create a service.

Arguments

  • request - No description provided.
  • parent - The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn configurations_get(
    &self,
    name: &str
) -> NamespaceConfigurationGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Get information about a configuration.

Arguments

  • name - The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn revisions_list(
    &self,
    parent: &str
) -> NamespaceRevisionListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

List revisions.

Arguments

  • parent - The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn domainmappings_create(
    &self,
    request: DomainMapping,
    parent: &str
) -> NamespaceDomainmappingCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Create a new domain mapping.

Arguments

  • request - No description provided.
  • parent - The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn routes_list(&self, parent: &str) -> NamespaceRouteListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

List routes.

Arguments

  • parent - The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn domainmappings_get(
    &self,
    name: &str
) -> NamespaceDomainmappingGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Get information about a domain mapping.

Arguments

  • name - The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

pub fn revisions_get(&self, name: &str) -> NamespaceRevisionGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Get information about a revision.

Arguments

  • name - The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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> Typeable for T where
    T: Any