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

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 google_run2 as run2;
 
use std::default::Default;
use run2::{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 `locations_jobs_create(...)`, `locations_jobs_delete(...)`, `locations_jobs_executions_cancel(...)`, `locations_jobs_executions_delete(...)`, `locations_jobs_executions_get(...)`, `locations_jobs_executions_list(...)`, `locations_jobs_executions_tasks_get(...)`, `locations_jobs_executions_tasks_list(...)`, `locations_jobs_get(...)`, `locations_jobs_get_iam_policy(...)`, `locations_jobs_list(...)`, `locations_jobs_patch(...)`, `locations_jobs_run(...)`, `locations_jobs_set_iam_policy(...)`, `locations_jobs_test_iam_permissions(...)`, `locations_operations_delete(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_operations_wait(...)`, `locations_services_create(...)`, `locations_services_delete(...)`, `locations_services_get(...)`, `locations_services_get_iam_policy(...)`, `locations_services_list(...)`, `locations_services_patch(...)`, `locations_services_revisions_delete(...)`, `locations_services_revisions_get(...)`, `locations_services_revisions_list(...)`, `locations_services_set_iam_policy(...)` and `locations_services_test_iam_permissions(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

source§

impl<'a, S> ProjectMethods<'a, S>

source

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

Create a builder to help you perform the following task:

Gets information about a Task.

§Arguments
  • name - Required. The full name of the Task. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
source

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

Create a builder to help you perform the following task:

Lists Tasks from an Execution of a Job.

§Arguments
  • parent - Required. The Execution from which the Tasks should be listed. To list all Tasks across Executions of a Job, use “-” instead of Execution name. To list all Tasks across Jobs, use “-” instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
source

pub fn locations_jobs_executions_cancel( &self, request: GoogleCloudRunV2CancelExecutionRequest, name: &str ) -> ProjectLocationJobExecutionCancelCall<'a, S>

Create a builder to help you perform the following task:

Cancels an Execution.

§Arguments
  • request - No description provided.
  • name - Required. The name of the Execution to cancel. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}, where {project} can be project id or number.
source

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

Create a builder to help you perform the following task:

Deletes an Execution.

§Arguments
  • name - Required. The name of the Execution to delete. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}, where {project} can be project id or number.
source

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

Create a builder to help you perform the following task:

Gets information about an Execution.

§Arguments
  • name - Required. The full name of the Execution. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}, where {project} can be project id or number.
source

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

Create a builder to help you perform the following task:

Lists Executions from a Job.

§Arguments
  • parent - Required. The Execution from which the Executions should be listed. To list all Executions across Jobs, use “-” instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
source

pub fn locations_jobs_create( &self, request: GoogleCloudRunV2Job, parent: &str ) -> ProjectLocationJobCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a Job.

§Arguments
  • request - No description provided.
  • parent - Required. The location and project in which this Job should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
source

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

Create a builder to help you perform the following task:

Deletes a Job.

§Arguments
  • name - Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
source

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

Create a builder to help you perform the following task:

Gets information about a Job.

§Arguments
  • name - Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
source

pub fn locations_jobs_get_iam_policy( &self, resource: &str ) -> ProjectLocationJobGetIamPolicyCall<'a, S>

Create a builder to help you perform the following task:

Gets the IAM Access Control policy currently in effect for the given Job. This result does not include any inherited policies.

§Arguments
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
source

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

Create a builder to help you perform the following task:

Lists Jobs.

§Arguments
  • parent - Required. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
source

pub fn locations_jobs_patch( &self, request: GoogleCloudRunV2Job, name: &str ) -> ProjectLocationJobPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates a Job.

§Arguments
  • request - No description provided.
  • name - The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job}
source

pub fn locations_jobs_run( &self, request: GoogleCloudRunV2RunJobRequest, name: &str ) -> ProjectLocationJobRunCall<'a, S>

Create a builder to help you perform the following task:

Triggers creation of a new Execution of this Job.

§Arguments
  • request - No description provided.
  • name - Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
source

pub fn locations_jobs_set_iam_policy( &self, request: GoogleIamV1SetIamPolicyRequest, resource: &str ) -> ProjectLocationJobSetIamPolicyCall<'a, S>

Create a builder to help you perform the following task:

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

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
source

pub fn locations_jobs_test_iam_permissions( &self, request: GoogleIamV1TestIamPermissionsRequest, resource: &str ) -> ProjectLocationJobTestIamPermissionCall<'a, S>

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 Resource names for the appropriate value for this field.
source

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

Create a builder to help you perform the following task:

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED.

§Arguments
  • name - The name of the operation resource to be deleted.
source

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

Create a builder to help you perform the following task:

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

§Arguments
  • name - The name of the operation resource.
source

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

Create a builder to help you perform the following task:

Lists operations that match the specified filter in the request. If the server doesn’t support this method, it returns UNIMPLEMENTED.

§Arguments
  • name - Required. To query for all of the operations for a project.
source

pub fn locations_operations_wait( &self, request: GoogleLongrunningWaitOperationRequest, name: &str ) -> ProjectLocationOperationWaitCall<'a, S>

Create a builder to help you perform the following task:

Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns google.rpc.Code.UNIMPLEMENTED. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.

§Arguments
  • request - No description provided.
  • name - The name of the operation resource to wait on.
source

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

Create a builder to help you perform the following task:

Deletes a Revision.

§Arguments
  • name - Required. The name of the Revision to delete. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision}
source

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

Create a builder to help you perform the following task:

Gets information about a Revision.

§Arguments
  • name - Required. The full name of the Revision. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision}
source

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

Create a builder to help you perform the following task:

Lists Revisions from a given Service, or from a given location.

§Arguments
  • parent - Required. The Service from which the Revisions should be listed. To list all Revisions across Services, use “-” instead of Service name. Format: projects/{project}/locations/{location}/services/{service}
source

pub fn locations_services_create( &self, request: GoogleCloudRunV2Service, parent: &str ) -> ProjectLocationServiceCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new Service in a given project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The location and project in which this service should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number. Only lowercase characters, digits, and hyphens.
source

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

Create a builder to help you perform the following task:

Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions.

§Arguments
  • name - Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}, where {project} can be project id or number.
source

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

Create a builder to help you perform the following task:

Gets information about a Service.

§Arguments
  • name - Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}, where {project} can be project id or number.
source

pub fn locations_services_get_iam_policy( &self, resource: &str ) -> ProjectLocationServiceGetIamPolicyCall<'a, S>

Create a builder to help you perform the following task:

Gets 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 Resource names for the appropriate value for this field.
source

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

Create a builder to help you perform the following task:

Lists Services.

§Arguments
  • parent - Required. The location and project to list resources on. Location must be a valid Google Cloud region, and cannot be the “-” wildcard. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
source

pub fn locations_services_patch( &self, request: GoogleCloudRunV2Service, name: &str ) -> ProjectLocationServicePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates a Service.

§Arguments
  • request - No description provided.
  • name - The fully qualified name of this Service. In CreateServiceRequest, this field is ignored, and instead composed from CreateServiceRequest.parent and CreateServiceRequest.service_id. Format: projects/{project}/locations/{location}/services/{service_id}
source

pub fn locations_services_set_iam_policy( &self, request: GoogleIamV1SetIamPolicyRequest, resource: &str ) -> ProjectLocationServiceSetIamPolicyCall<'a, S>

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 Resource names for the appropriate value for this field.
source

pub fn locations_services_test_iam_permissions( &self, request: GoogleIamV1TestIamPermissionsRequest, resource: &str ) -> ProjectLocationServiceTestIamPermissionCall<'a, S>

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 Resource names for the appropriate value for this field.

Trait Implementations§

source§

impl<'a, S> MethodsBuilder for ProjectMethods<'a, S>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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