Struct google_run2::api::ProjectMethods
source · 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>
impl<'a, S> ProjectMethods<'a, S>
sourcepub fn locations_jobs_executions_tasks_get(
&self,
name: &str
) -> ProjectLocationJobExecutionTaskGetCall<'a, S>
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}
sourcepub fn locations_jobs_executions_tasks_list(
&self,
parent: &str
) -> ProjectLocationJobExecutionTaskListCall<'a, S>
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}
sourcepub fn locations_jobs_executions_cancel(
&self,
request: GoogleCloudRunV2CancelExecutionRequest,
name: &str
) -> ProjectLocationJobExecutionCancelCall<'a, S>
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.
sourcepub fn locations_jobs_executions_delete(
&self,
name: &str
) -> ProjectLocationJobExecutionDeleteCall<'a, S>
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.
sourcepub fn locations_jobs_executions_get(
&self,
name: &str
) -> ProjectLocationJobExecutionGetCall<'a, S>
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.
sourcepub fn locations_jobs_executions_list(
&self,
parent: &str
) -> ProjectLocationJobExecutionListCall<'a, S>
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.
sourcepub fn locations_jobs_create(
&self,
request: GoogleCloudRunV2Job,
parent: &str
) -> ProjectLocationJobCreateCall<'a, S>
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.
sourcepub fn locations_jobs_delete(
&self,
name: &str
) -> ProjectLocationJobDeleteCall<'a, S>
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.
sourcepub fn locations_jobs_get(&self, name: &str) -> ProjectLocationJobGetCall<'a, S>
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.
sourcepub fn locations_jobs_get_iam_policy(
&self,
resource: &str
) -> ProjectLocationJobGetIamPolicyCall<'a, S>
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.
sourcepub fn locations_jobs_list(
&self,
parent: &str
) -> ProjectLocationJobListCall<'a, S>
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.
sourcepub fn locations_jobs_patch(
&self,
request: GoogleCloudRunV2Job,
name: &str
) -> ProjectLocationJobPatchCall<'a, S>
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}
sourcepub fn locations_jobs_run(
&self,
request: GoogleCloudRunV2RunJobRequest,
name: &str
) -> ProjectLocationJobRunCall<'a, S>
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.
sourcepub fn locations_jobs_set_iam_policy(
&self,
request: GoogleIamV1SetIamPolicyRequest,
resource: &str
) -> ProjectLocationJobSetIamPolicyCall<'a, S>
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.
sourcepub fn locations_jobs_test_iam_permissions(
&self,
request: GoogleIamV1TestIamPermissionsRequest,
resource: &str
) -> ProjectLocationJobTestIamPermissionCall<'a, S>
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.
sourcepub fn locations_operations_delete(
&self,
name: &str
) -> ProjectLocationOperationDeleteCall<'a, S>
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.
sourcepub fn locations_operations_get(
&self,
name: &str
) -> ProjectLocationOperationGetCall<'a, S>
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.
sourcepub fn locations_operations_list(
&self,
name: &str
) -> ProjectLocationOperationListCall<'a, S>
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.
sourcepub fn locations_operations_wait(
&self,
request: GoogleLongrunningWaitOperationRequest,
name: &str
) -> ProjectLocationOperationWaitCall<'a, S>
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.
sourcepub fn locations_services_revisions_delete(
&self,
name: &str
) -> ProjectLocationServiceRevisionDeleteCall<'a, S>
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}
sourcepub fn locations_services_revisions_get(
&self,
name: &str
) -> ProjectLocationServiceRevisionGetCall<'a, S>
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}
sourcepub fn locations_services_revisions_list(
&self,
parent: &str
) -> ProjectLocationServiceRevisionListCall<'a, S>
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}
sourcepub fn locations_services_create(
&self,
request: GoogleCloudRunV2Service,
parent: &str
) -> ProjectLocationServiceCreateCall<'a, S>
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.
sourcepub fn locations_services_delete(
&self,
name: &str
) -> ProjectLocationServiceDeleteCall<'a, S>
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.
sourcepub fn locations_services_get(
&self,
name: &str
) -> ProjectLocationServiceGetCall<'a, S>
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.
sourcepub fn locations_services_get_iam_policy(
&self,
resource: &str
) -> ProjectLocationServiceGetIamPolicyCall<'a, S>
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.
sourcepub fn locations_services_list(
&self,
parent: &str
) -> ProjectLocationServiceListCall<'a, S>
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.
sourcepub fn locations_services_patch(
&self,
request: GoogleCloudRunV2Service,
name: &str
) -> ProjectLocationServicePatchCall<'a, S>
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}
sourcepub fn locations_services_set_iam_policy(
&self,
request: GoogleIamV1SetIamPolicyRequest,
resource: &str
) -> ProjectLocationServiceSetIamPolicyCall<'a, S>
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.
sourcepub fn locations_services_test_iam_permissions(
&self,
request: GoogleIamV1TestIamPermissionsRequest,
resource: &str
) -> ProjectLocationServiceTestIamPermissionCall<'a, S>
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.