Struct google_run1::api::NamespaceMethods
source · 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>
impl<'a, S> NamespaceMethods<'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
.
sourcepub fn configurations_get(
&self,
name: &str
) -> NamespaceConfigurationGetCall<'a, S>
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.
sourcepub fn configurations_list(
&self,
parent: &str
) -> NamespaceConfigurationListCall<'a, S>
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.
sourcepub fn domainmappings_create(
&self,
request: DomainMapping,
parent: &str
) -> NamespaceDomainmappingCreateCall<'a, S>
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
sourcepub fn domainmappings_delete(
&self,
name: &str
) -> NamespaceDomainmappingDeleteCall<'a, S>
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
sourcepub fn domainmappings_get(
&self,
name: &str
) -> NamespaceDomainmappingGetCall<'a, S>
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
sourcepub fn domainmappings_list(
&self,
parent: &str
) -> NamespaceDomainmappingListCall<'a, S>
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
sourcepub fn executions_cancel(
&self,
request: CancelExecutionRequest,
name: &str
) -> NamespaceExecutionCancelCall<'a, S>
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
sourcepub fn executions_delete(
&self,
name: &str
) -> NamespaceExecutionDeleteCall<'a, S>
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
sourcepub fn executions_get(&self, name: &str) -> NamespaceExecutionGetCall<'a, S>
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
sourcepub fn executions_list(&self, parent: &str) -> NamespaceExecutionListCall<'a, S>
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
sourcepub fn jobs_create(
&self,
request: Job,
parent: &str
) -> NamespaceJobCreateCall<'a, S>
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
sourcepub fn jobs_delete(&self, name: &str) -> NamespaceJobDeleteCall<'a, S>
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
sourcepub fn jobs_get(&self, name: &str) -> NamespaceJobGetCall<'a, S>
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
sourcepub fn jobs_list(&self, parent: &str) -> NamespaceJobListCall<'a, S>
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
sourcepub fn jobs_replace_job(
&self,
request: Job,
name: &str
) -> NamespaceJobReplaceJobCall<'a, S>
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
sourcepub fn jobs_run(
&self,
request: RunJobRequest,
name: &str
) -> NamespaceJobRunCall<'a, S>
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
sourcepub fn revisions_delete(&self, name: &str) -> NamespaceRevisionDeleteCall<'a, S>
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
sourcepub fn revisions_get(&self, name: &str) -> NamespaceRevisionGetCall<'a, S>
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
sourcepub fn revisions_list(&self, parent: &str) -> NamespaceRevisionListCall<'a, S>
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
sourcepub fn routes_get(&self, name: &str) -> NamespaceRouteGetCall<'a, S>
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
sourcepub fn routes_list(&self, parent: &str) -> NamespaceRouteListCall<'a, S>
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
sourcepub fn services_create(
&self,
request: Service,
parent: &str
) -> NamespaceServiceCreateCall<'a, S>
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}
sourcepub fn services_delete(&self, name: &str) -> NamespaceServiceDeleteCall<'a, S>
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 theendpoint
is regional) *projects/{project_id_or_number}/locations/{region}/services/{service_name}
*projects/{project_id_or_number}/regions/{region}/services/{service_name}
sourcepub fn services_get(&self, name: &str) -> NamespaceServiceGetCall<'a, S>
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 theendpoint
is regional) *projects/{project_id_or_number}/locations/{region}/services/{service_name}
*projects/{project_id_or_number}/regions/{region}/services/{service_name}
sourcepub fn services_list(&self, parent: &str) -> NamespaceServiceListCall<'a, S>
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}
sourcepub fn services_replace_service(
&self,
request: Service,
name: &str
) -> NamespaceServiceReplaceServiceCall<'a, S>
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 theendpoint
is regional) *projects/{project_id_or_number}/locations/{region}/services/{service_name}
*projects/{project_id_or_number}/regions/{region}/services/{service_name}
sourcepub fn tasks_get(&self, name: &str) -> NamespaceTaskGetCall<'a, S>
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
sourcepub fn tasks_list(&self, parent: &str) -> NamespaceTaskListCall<'a, S>
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