[][src]Struct google_run1::ProjectMethods

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

A builder providing access to all methods supported on project 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 `locations_authorizeddomains_list(...)`, `locations_configurations_get(...)`, `locations_configurations_list(...)`, `locations_domainmappings_create(...)`, `locations_domainmappings_delete(...)`, `locations_domainmappings_get(...)`, `locations_domainmappings_list(...)`, `locations_list(...)`, `locations_namespaces_get(...)`, `locations_namespaces_patch(...)`, `locations_revisions_delete(...)`, `locations_revisions_get(...)`, `locations_revisions_list(...)`, `locations_routes_get(...)`, `locations_routes_list(...)`, `locations_secrets_create(...)`, `locations_secrets_get(...)`, `locations_secrets_replace_secret(...)`, `locations_services_create(...)`, `locations_services_delete(...)`, `locations_services_get(...)`, `locations_services_get_iam_policy(...)`, `locations_services_list(...)`, `locations_services_replace_service(...)`, `locations_services_set_iam_policy(...)` and `locations_services_test_iam_permissions(...)`
// to build up your call.
let rb = hub.projects();

Methods

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

pub fn locations_services_replace_service(
    &self,
    request: Service,
    name: &str
) -> ProjectLocationServiceReplaceServiceCall<'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 locations_services_list(
    &self,
    parent: &str
) -> ProjectLocationServiceListCall<'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 locations_domainmappings_delete(
    &self,
    name: &str
) -> ProjectLocationDomainmappingDeleteCall<'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 locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C, A>[src]

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.

pub fn locations_routes_list(
    &self,
    parent: &str
) -> ProjectLocationRouteListCall<'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 locations_domainmappings_create(
    &self,
    request: DomainMapping,
    parent: &str
) -> ProjectLocationDomainmappingCreateCall<'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 locations_domainmappings_list(
    &self,
    parent: &str
) -> ProjectLocationDomainmappingListCall<'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 locations_secrets_create(
    &self,
    request: Secret,
    parent: &str
) -> ProjectLocationSecretCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates a new secret.

Arguments

  • request - No description provided.
  • parent - Required. The project ID or project number in which this secret should be created.

pub fn locations_authorizeddomains_list(
    &self,
    parent: &str
) -> ProjectLocationAuthorizeddomainListCall<'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 locations_namespaces_patch(
    &self,
    request: Namespace,
    name: &str
) -> ProjectLocationNamespacePatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Rpc to update a namespace.

Arguments

  • request - No description provided.
  • name - Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID.

pub fn locations_services_test_iam_permissions(
    &self,
    request: TestIamPermissionsRequest,
    resource: &str
) -> ProjectLocationServiceTestIamPermissionCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Returns permissions that a caller has on the specified Project.

There are no permissions required for making this API call.

Arguments

  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.

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

Create a builder to help you perform the following task:

Rpc to get information about a secret.

Arguments

  • name - Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID.

pub fn locations_services_get(
    &self,
    name: &str
) -> ProjectLocationServiceGetCall<'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 locations_namespaces_get(
    &self,
    name: &str
) -> ProjectLocationNamespaceGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Rpc to get information about a namespace.

Arguments

  • name - Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID.

pub fn locations_revisions_get(
    &self,
    name: &str
) -> ProjectLocationRevisionGetCall<'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.

pub fn locations_domainmappings_get(
    &self,
    name: &str
) -> ProjectLocationDomainmappingGetCall<'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 locations_configurations_get(
    &self,
    name: &str
) -> ProjectLocationConfigurationGetCall<'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 locations_services_create(
    &self,
    request: Service,
    parent: &str
) -> ProjectLocationServiceCreateCall<'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 locations_routes_get(
    &self,
    name: &str
) -> ProjectLocationRouteGetCall<'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 locations_services_set_iam_policy(
    &self,
    request: SetIamPolicyRequest,
    resource: &str
) -> ProjectLocationServiceSetIamPolicyCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Sets the IAM Access control policy for the specified Service. Overwrites any existing policy.

Arguments

  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.

pub fn locations_revisions_delete(
    &self,
    name: &str
) -> ProjectLocationRevisionDeleteCall<'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 locations_services_get_iam_policy(
    &self,
    resource: &str
) -> ProjectLocationServiceGetIamPolicyCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Get the IAM Access Control policy currently in effect for the given Cloud Run service. This result does not include any inherited policies.

Arguments

  • resource - REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

pub fn locations_revisions_list(
    &self,
    parent: &str
) -> ProjectLocationRevisionListCall<'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 locations_secrets_replace_secret(
    &self,
    request: Secret,
    name: &str
) -> ProjectLocationSecretReplaceSecretCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Rpc to replace a secret.

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 name of the secret being retrieved. If needed, replace {namespace_id} with the project ID.

pub fn locations_configurations_list(
    &self,
    parent: &str
) -> ProjectLocationConfigurationListCall<'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 locations_services_delete(
    &self,
    name: &str
) -> ProjectLocationServiceDeleteCall<'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.

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

impl<'a, C, A> !UnwindSafe for ProjectMethods<'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