Struct google_cloudresourcemanager1_beta1::ProjectMethods [] [src]

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 CloudResourceManager hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_cloudresourcemanager1_beta1 as cloudresourcemanager1_beta1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use cloudresourcemanager1_beta1::CloudResourceManager;
 
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 = CloudResourceManager::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 `create(...)`, `delete(...)`, `get(...)`, `get_ancestry(...)`, `get_iam_policy(...)`, `list(...)`, `set_iam_policy(...)`, `test_iam_permissions(...)`, `undelete(...)` and `update(...)`
// to build up your call.
let rb = hub.projects();

Methods

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

[src]

Create a builder to help you perform the following task:

Returns permissions that a caller has on the specified Project.

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.

[src]

Create a builder to help you perform the following task:

Restores the Project identified by the specified project_id (for example, my-project-123). You can only use this method for a Project that has a lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot be restored.

The caller must have modify permissions for this Project.

Arguments

  • request - No description provided.
  • projectId - The project ID (for example, foo-bar-123). Required.

[src]

Create a builder to help you perform the following task:

Creates a Project resource.

Initially, the Project resource is owned by its creator exclusively. The creator can later grant permission to others to read or update the Project.

Several APIs are activated automatically for the Project, including Google Cloud Storage.

Arguments

  • request - No description provided.

[src]

Create a builder to help you perform the following task:

Sets the IAM access control policy for the specified Project. Replaces any existing policy.

The following constraints apply when using setIamPolicy():

  • Project does not support allUsers and allAuthenticatedUsers as members in a Binding of a Policy.

  • The owner role can be granted only to user and serviceAccount.

  • Service accounts can be made owners of a project directly without any restrictions. However, to be added as an owner, a user must be invited via Cloud Platform console and must accept the invitation.

  • A user cannot be granted the owner role using setIamPolicy(). The user must be granted the owner role using the Cloud Platform Console and must explicitly accept the invitation.

  • Invitations to grant the owner role cannot be sent using setIamPolicy(); they must be sent only using the Cloud Platform Console.

  • Membership changes that leave the project without any owners that have accepted the Terms of Service (ToS) will be rejected.

  • There must be at least one owner who has accepted the Terms of Service (ToS) agreement in the policy. Calling setIamPolicy() to remove the last ToS-accepted owner from the policy will fail. This restriction also applies to legacy projects that no longer have owners who have accepted the ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting owner is rectified.

  • Calling this method requires enabling the App Engine Admin API.

Note: Removing service accounts from policies or changing their roles can render services completely inoperable. It is important to understand how the service account is being used before removing or updating its roles.

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.

[src]

Create a builder to help you perform the following task:

Retrieves the Project identified by the specified project_id (for example, my-project-123).

The caller must have read permissions for this Project.

Arguments

  • projectId - The Project ID (for example, my-project-123). Required.

[src]

Create a builder to help you perform the following task:

Gets a list of ancestors in the resource hierarchy for the Project identified by the specified project_id (for example, my-project-123).

The caller must have read permissions for this Project.

Arguments

  • request - No description provided.
  • projectId - The Project ID (for example, my-project-123). Required.

[src]

Create a builder to help you perform the following task:

Updates the attributes of the Project identified by the specified project_id (for example, my-project-123).

The caller must have modify permissions for this Project.

Arguments

  • request - No description provided.
  • projectId - The project ID (for example, my-project-123). Required.

[src]

Create a builder to help you perform the following task:

Returns the IAM access control policy for the specified Project. Permission is denied if the policy or the resource does not exist.

Arguments

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

[src]

Create a builder to help you perform the following task:

Marks the Project identified by the specified project_id (for example, my-project-123) for deletion. This method will only affect the Project if the following criteria are met:

  • The Project does not have a billing account associated with it.
  • The Project has a lifecycle state of ACTIVE.

This method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts at an unspecified time, at which point the project is no longer accessible.

Until the deletion completes, you can check the lifecycle state checked by retrieving the Project with GetProject, and the Project remains visible to ListProjects. However, you cannot update the project.

After the deletion completes, the Project is not retrievable by the GetProject and ListProjects methods.

The caller must have modify permissions for this Project.

Arguments

  • projectId - The Project ID (for example, foo-bar-123). Required.

[src]

Create a builder to help you perform the following task:

Lists Projects that are visible to the user and satisfy the specified filter. This method returns Projects in an unspecified order. New Projects do not necessarily appear at the end of the list.

Trait Implementations

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