pub struct NamespaceMethods<'a, S>
where S: 'a,
{ /* private fields */ }
Expand description

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 google_run1 as run1;
 
use std::default::Default;
use run1::{CloudRun, oauth2, hyper, hyper_rustls, chrono, FieldMask};
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
        secret,
        oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = CloudRun::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), 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(...)`, `executions_cancel(...)`, `executions_delete(...)`, `executions_get(...)`, `executions_list(...)`, `jobs_create(...)`, `jobs_delete(...)`, `jobs_get(...)`, `jobs_list(...)`, `jobs_replace_job(...)`, `jobs_run(...)`, `revisions_delete(...)`, `revisions_get(...)`, `revisions_list(...)`, `routes_get(...)`, `routes_list(...)`, `services_create(...)`, `services_delete(...)`, `services_get(...)`, `services_list(...)`, `services_replace_service(...)`, `tasks_get(...)` and `tasks_list(...)`
// to build up your call.
let rb = hub.namespaces();

Implementations§

source§

impl<'a, S> NamespaceMethods<'a, S>

source

pub fn authorizeddomains_list( &self, parent: &str ) -> NamespaceAuthorizeddomainListCall<'a, S>

Create a builder to help you perform the following task:

List authorized domains.

§Arguments
  • parent - Name of the parent Project resource. Example: projects/myproject.
source

pub fn configurations_get( &self, name: &str ) -> NamespaceConfigurationGetCall<'a, S>

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, replace {namespace_id} with the project ID or number.
source

pub fn configurations_list( &self, parent: &str ) -> NamespaceConfigurationListCall<'a, S>

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, replace {namespace_id} with the project ID or number.
source

pub fn domainmappings_create( &self, request: DomainMapping, parent: &str ) -> NamespaceDomainmappingCreateCall<'a, S>

Create a builder to help you perform the following task:

Create a new domain mapping.

§Arguments
  • request - No description provided.
  • parent - Required. The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn domainmappings_delete( &self, name: &str ) -> NamespaceDomainmappingDeleteCall<'a, S>

Create a builder to help you perform the following task:

Delete a domain mapping.

§Arguments
  • name - Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn domainmappings_get( &self, name: &str ) -> NamespaceDomainmappingGetCall<'a, S>

Create a builder to help you perform the following task:

Get information about a domain mapping.

§Arguments
  • name - Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn domainmappings_list( &self, parent: &str ) -> NamespaceDomainmappingListCall<'a, S>

Create a builder to help you perform the following task:

List all domain mappings.

§Arguments
  • parent - Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn executions_cancel( &self, request: CancelExecutionRequest, name: &str ) -> NamespaceExecutionCancelCall<'a, S>

Create a builder to help you perform the following task:

Cancel an execution.

§Arguments
  • request - No description provided.
  • name - Required. The name of the execution to cancel. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn executions_delete( &self, name: &str ) -> NamespaceExecutionDeleteCall<'a, S>

Create a builder to help you perform the following task:

Delete an execution.

§Arguments
  • name - Required. The name of the execution to delete. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn executions_get(&self, name: &str) -> NamespaceExecutionGetCall<'a, S>

Create a builder to help you perform the following task:

Get information about an execution.

§Arguments
  • name - Required. The name of the execution to retrieve. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn executions_list(&self, parent: &str) -> NamespaceExecutionListCall<'a, S>

Create a builder to help you perform the following task:

List executions.

§Arguments
  • parent - Required. The namespace from which the executions should be listed. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn jobs_create( &self, request: Job, parent: &str ) -> NamespaceJobCreateCall<'a, S>

Create a builder to help you perform the following task:

Create a job.

§Arguments
  • request - No description provided.
  • parent - Required. The namespace in which the job should be created. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn jobs_delete(&self, name: &str) -> NamespaceJobDeleteCall<'a, S>

Create a builder to help you perform the following task:

Delete a job.

§Arguments
  • name - Required. The name of the job to delete. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn jobs_get(&self, name: &str) -> NamespaceJobGetCall<'a, S>

Create a builder to help you perform the following task:

Get information about a job.

§Arguments
  • name - Required. The name of the job to retrieve. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn jobs_list(&self, parent: &str) -> NamespaceJobListCall<'a, S>

Create a builder to help you perform the following task:

List jobs.

§Arguments
  • parent - Required. The namespace from which the jobs should be listed. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn jobs_replace_job( &self, request: Job, name: &str ) -> NamespaceJobReplaceJobCall<'a, S>

Create a builder to help you perform the following task:

Replace a job. Only the spec and metadata labels and annotations are modifiable. After the Replace 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 - Required. The name of the job being replaced. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn jobs_run( &self, request: RunJobRequest, name: &str ) -> NamespaceJobRunCall<'a, S>

Create a builder to help you perform the following task:

Trigger creation of a new execution of this job.

§Arguments
  • request - No description provided.
  • name - Required. The name of the job to run. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn revisions_delete(&self, name: &str) -> NamespaceRevisionDeleteCall<'a, S>

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} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn revisions_get(&self, name: &str) -> NamespaceRevisionGetCall<'a, S>

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} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn revisions_list(&self, parent: &str) -> NamespaceRevisionListCall<'a, S>

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} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn routes_get(&self, name: &str) -> NamespaceRouteGetCall<'a, S>

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} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn routes_list(&self, parent: &str) -> NamespaceRouteListCall<'a, S>

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} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn services_create( &self, request: Service, parent: &str ) -> NamespaceServiceCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new Service. Service creation will trigger a new deployment. Use GetService, and check service.status to determine if the Service is ready.

§Arguments
  • request - No description provided.
  • parent - Required. The resource’s parent. In Cloud Run, it may be one of the following: * {project_id_or_number} * namespaces/{project_id_or_number} * namespaces/{project_id_or_number}/services * projects/{project_id_or_number}/locations/{region} * projects/{project_id_or_number}/regions/{region}
source

pub fn services_delete(&self, name: &str) -> NamespaceServiceDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the provided service. This will cause the Service to stop serving traffic and will delete all associated Revisions.

§Arguments
  • name - Required. The fully qualified name of the service to delete. It can be any of the following forms: * namespaces/{project_id_or_number}/services/{service_name} (only when the endpoint is regional) * projects/{project_id_or_number}/locations/{region}/services/{service_name} * projects/{project_id_or_number}/regions/{region}/services/{service_name}
source

pub fn services_get(&self, name: &str) -> NamespaceServiceGetCall<'a, S>

Create a builder to help you perform the following task:

Gets information about a service.

§Arguments
  • name - Required. The fully qualified name of the service to retrieve. It can be any of the following forms: * namespaces/{project_id_or_number}/services/{service_name} (only when the endpoint is regional) * projects/{project_id_or_number}/locations/{region}/services/{service_name} * projects/{project_id_or_number}/regions/{region}/services/{service_name}
source

pub fn services_list(&self, parent: &str) -> NamespaceServiceListCall<'a, S>

Create a builder to help you perform the following task:

Lists services for the given project and region.

§Arguments
  • parent - Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the following: * {project_id_or_number} * namespaces/{project_id_or_number} * namespaces/{project_id_or_number}/services * projects/{project_id_or_number}/locations/{region} * projects/{project_id_or_number}/regions/{region}
source

pub fn services_replace_service( &self, request: Service, name: &str ) -> NamespaceServiceReplaceServiceCall<'a, S>

Create a builder to help you perform the following task:

Replaces 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 - Required. The fully qualified name of the service to replace. It can be any of the following forms: * namespaces/{project_id_or_number}/services/{service_name} (only when the endpoint is regional) * projects/{project_id_or_number}/locations/{region}/services/{service_name} * projects/{project_id_or_number}/regions/{region}/services/{service_name}
source

pub fn tasks_get(&self, name: &str) -> NamespaceTaskGetCall<'a, S>

Create a builder to help you perform the following task:

Get information about a task.

§Arguments
  • name - Required. The name of the task to retrieve. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID
source

pub fn tasks_list(&self, parent: &str) -> NamespaceTaskListCall<'a, S>

Create a builder to help you perform the following task:

List tasks.

§Arguments
  • parent - Required. The namespace from which the tasks should be listed. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID

Trait Implementations§

Auto Trait Implementations§

§

impl<'a, S> !RefUnwindSafe for NamespaceMethods<'a, S>

§

impl<'a, S> Send for NamespaceMethods<'a, S>
where S: Sync,

§

impl<'a, S> Sync for NamespaceMethods<'a, S>
where S: Sync,

§

impl<'a, S> Unpin for NamespaceMethods<'a, S>

§

impl<'a, S> !UnwindSafe for NamespaceMethods<'a, S>

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, U> TryFrom<U> for T
where U: Into<T>,

§

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

§

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