Struct google_iam1::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 Iam
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_iam1 as iam1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use iam1::Iam; 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 = Iam::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 `roles_create(...)`, `roles_delete(...)`, `roles_get(...)`, `roles_list(...)`, `roles_patch(...)`, `roles_undelete(...)`, `service_accounts_create(...)`, `service_accounts_delete(...)`, `service_accounts_get(...)`, `service_accounts_get_iam_policy(...)`, `service_accounts_keys_create(...)`, `service_accounts_keys_delete(...)`, `service_accounts_keys_get(...)`, `service_accounts_keys_list(...)`, `service_accounts_list(...)`, `service_accounts_set_iam_policy(...)`, `service_accounts_sign_blob(...)`, `service_accounts_sign_jwt(...)`, `service_accounts_test_iam_permissions(...)` and `service_accounts_update(...)` // to build up your call. let rb = hub.projects();
Methods
impl<'a, C, A> ProjectMethods<'a, C, A>
[src]
impl<'a, C, A> ProjectMethods<'a, C, A>
pub fn service_accounts_keys_delete(
&self,
name: &str
) -> ProjectServiceAccountKeyDeleteCall<'a, C, A>
[src]
pub fn service_accounts_keys_delete(
&self,
name: &str
) -> ProjectServiceAccountKeyDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes a ServiceAccountKey.
Arguments
name
- The resource name of the service account key in the following format:projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}
. Using-
as a wildcard for thePROJECT_ID
will infer the project from the account. TheACCOUNT
value can be theemail
address or theunique_id
of the service account.
pub fn roles_get(&self, name: &str) -> ProjectRoleGetCall<'a, C, A>
[src]
pub fn roles_get(&self, name: &str) -> ProjectRoleGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets a Role definition.
Arguments
name
- The resource name of the role in one of the following formats:roles/{ROLE_NAME}
organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}
projects/{PROJECT_ID}/roles/{ROLE_NAME}
pub fn service_accounts_get_iam_policy(
&self,
resource: &str
) -> ProjectServiceAccountGetIamPolicyCall<'a, C, A>
[src]
pub fn service_accounts_get_iam_policy(
&self,
resource: &str
) -> ProjectServiceAccountGetIamPolicyCall<'a, C, A>
Create a builder to help you perform the following task:
Returns the IAM access control policy for a ServiceAccount.
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 roles_undelete(
&self,
request: UndeleteRoleRequest,
name: &str
) -> ProjectRoleUndeleteCall<'a, C, A>
[src]
pub fn roles_undelete(
&self,
request: UndeleteRoleRequest,
name: &str
) -> ProjectRoleUndeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Undelete a Role, bringing it back in its previous state.
Arguments
request
- No description provided.name
- The resource name of the role in one of the following formats:organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}
projects/{PROJECT_ID}/roles/{ROLE_NAME}
pub fn roles_delete(&self, name: &str) -> ProjectRoleDeleteCall<'a, C, A>
[src]
pub fn roles_delete(&self, name: &str) -> ProjectRoleDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Soft deletes a role. The role is suspended and cannot be used to create new
IAM Policy Bindings.
The Role will not be included in ListRoles()
unless show_deleted
is set
in the ListRolesRequest
. The Role contains the deleted boolean set.
Existing Bindings remains, but are inactive. The Role can be undeleted
within 7 days. After 7 days the Role is deleted and all Bindings associated
with the role are removed.
Arguments
name
- The resource name of the role in one of the following formats:organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}
projects/{PROJECT_ID}/roles/{ROLE_NAME}
pub fn service_accounts_test_iam_permissions(
&self,
request: TestIamPermissionsRequest,
resource: &str
) -> ProjectServiceAccountTestIamPermissionCall<'a, C, A>
[src]
pub fn service_accounts_test_iam_permissions(
&self,
request: TestIamPermissionsRequest,
resource: &str
) -> ProjectServiceAccountTestIamPermissionCall<'a, C, A>
Create a builder to help you perform the following task:
Tests the specified permissions against the IAM access control policy for a ServiceAccount.
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 service_accounts_sign_blob(
&self,
request: SignBlobRequest,
name: &str
) -> ProjectServiceAccountSignBlobCall<'a, C, A>
[src]
pub fn service_accounts_sign_blob(
&self,
request: SignBlobRequest,
name: &str
) -> ProjectServiceAccountSignBlobCall<'a, C, A>
Create a builder to help you perform the following task:
Signs a blob using a service account's system-managed private key.
Arguments
request
- No description provided.name
- The resource name of the service account in the following format:projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
. Using-
as a wildcard for thePROJECT_ID
will infer the project from the account. TheACCOUNT
value can be theemail
address or theunique_id
of the service account.
pub fn service_accounts_set_iam_policy(
&self,
request: SetIamPolicyRequest,
resource: &str
) -> ProjectServiceAccountSetIamPolicyCall<'a, C, A>
[src]
pub fn service_accounts_set_iam_policy(
&self,
request: SetIamPolicyRequest,
resource: &str
) -> ProjectServiceAccountSetIamPolicyCall<'a, C, A>
Create a builder to help you perform the following task:
Sets the IAM access control policy for a ServiceAccount.
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 service_accounts_delete(
&self,
name: &str
) -> ProjectServiceAccountDeleteCall<'a, C, A>
[src]
pub fn service_accounts_delete(
&self,
name: &str
) -> ProjectServiceAccountDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes a ServiceAccount.
Arguments
name
- The resource name of the service account in the following format:projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
. Using-
as a wildcard for thePROJECT_ID
will infer the project from the account. TheACCOUNT
value can be theemail
address or theunique_id
of the service account.
pub fn service_accounts_create(
&self,
request: CreateServiceAccountRequest,
name: &str
) -> ProjectServiceAccountCreateCall<'a, C, A>
[src]
pub fn service_accounts_create(
&self,
request: CreateServiceAccountRequest,
name: &str
) -> ProjectServiceAccountCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a ServiceAccount and returns it.
Arguments
request
- No description provided.name
- Required. The resource name of the project associated with the service accounts, such asprojects/my-project-123
.
pub fn roles_patch(
&self,
request: Role,
name: &str
) -> ProjectRolePatchCall<'a, C, A>
[src]
pub fn roles_patch(
&self,
request: Role,
name: &str
) -> ProjectRolePatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a Role definition.
Arguments
request
- No description provided.name
- The resource name of the role in one of the following formats:roles/{ROLE_NAME}
organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}
projects/{PROJECT_ID}/roles/{ROLE_NAME}
pub fn roles_create(
&self,
request: CreateRoleRequest,
parent: &str
) -> ProjectRoleCreateCall<'a, C, A>
[src]
pub fn roles_create(
&self,
request: CreateRoleRequest,
parent: &str
) -> ProjectRoleCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a new Role.
Arguments
request
- No description provided.parent
- The resource name of the parent resource in one of the following formats:organizations/{ORGANIZATION_ID}
projects/{PROJECT_ID}
pub fn roles_list(&self, parent: &str) -> ProjectRoleListCall<'a, C, A>
[src]
pub fn roles_list(&self, parent: &str) -> ProjectRoleListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists the Roles defined on a resource.
Arguments
parent
- The resource name of the parent resource in one of the following formats: `` (empty string) -- this refers to curated roles.organizations/{ORGANIZATION_ID}
projects/{PROJECT_ID}
pub fn service_accounts_update(
&self,
request: ServiceAccount,
name: &str
) -> ProjectServiceAccountUpdateCall<'a, C, A>
[src]
pub fn service_accounts_update(
&self,
request: ServiceAccount,
name: &str
) -> ProjectServiceAccountUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a ServiceAccount.
Currently, only the following fields are updatable:
display_name
.
The etag
is mandatory.
Arguments
request
- No description provided.name
- The resource name of the service account in the following format:projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
. Requests using-
as a wildcard for thePROJECT_ID
will infer the project from theaccount
and theACCOUNT
value can be theemail
address or theunique_id
of the service account. In responses the resource name will always be in the formatprojects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
.
pub fn service_accounts_sign_jwt(
&self,
request: SignJwtRequest,
name: &str
) -> ProjectServiceAccountSignJwtCall<'a, C, A>
[src]
pub fn service_accounts_sign_jwt(
&self,
request: SignJwtRequest,
name: &str
) -> ProjectServiceAccountSignJwtCall<'a, C, A>
Create a builder to help you perform the following task:
Signs a JWT using a service account's system-managed private key.
If no expiry time (exp
) is provided in the SignJwtRequest
, IAM sets an
an expiry time of one hour by default. If you request an expiry time of
more than one hour, the request will fail.
Arguments
request
- No description provided.name
- The resource name of the service account in the following format:projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
. Using-
as a wildcard for thePROJECT_ID
will infer the project from the account. TheACCOUNT
value can be theemail
address or theunique_id
of the service account.
pub fn service_accounts_keys_list(
&self,
name: &str
) -> ProjectServiceAccountKeyListCall<'a, C, A>
[src]
pub fn service_accounts_keys_list(
&self,
name: &str
) -> ProjectServiceAccountKeyListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists ServiceAccountKeys.
Arguments
name
- The resource name of the service account in the following format:projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
. Using-
as a wildcard for thePROJECT_ID
, will infer the project from the account. TheACCOUNT
value can be theemail
address or theunique_id
of the service account.
pub fn service_accounts_keys_create(
&self,
request: CreateServiceAccountKeyRequest,
name: &str
) -> ProjectServiceAccountKeyCreateCall<'a, C, A>
[src]
pub fn service_accounts_keys_create(
&self,
request: CreateServiceAccountKeyRequest,
name: &str
) -> ProjectServiceAccountKeyCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a ServiceAccountKey and returns it.
Arguments
request
- No description provided.name
- The resource name of the service account in the following format:projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
. Using-
as a wildcard for thePROJECT_ID
will infer the project from the account. TheACCOUNT
value can be theemail
address or theunique_id
of the service account.
pub fn service_accounts_list(
&self,
name: &str
) -> ProjectServiceAccountListCall<'a, C, A>
[src]
pub fn service_accounts_list(
&self,
name: &str
) -> ProjectServiceAccountListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists ServiceAccounts for a project.
Arguments
name
- Required. The resource name of the project associated with the service accounts, such asprojects/my-project-123
.
pub fn service_accounts_keys_get(
&self,
name: &str
) -> ProjectServiceAccountKeyGetCall<'a, C, A>
[src]
pub fn service_accounts_keys_get(
&self,
name: &str
) -> ProjectServiceAccountKeyGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets the ServiceAccountKey by key id.
Arguments
name
- The resource name of the service account key in the following format:projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}
. Using-
as a wildcard for thePROJECT_ID
will infer the project from the account. TheACCOUNT
value can be theemail
address or theunique_id
of the service account.
pub fn service_accounts_get(
&self,
name: &str
) -> ProjectServiceAccountGetCall<'a, C, A>
[src]
pub fn service_accounts_get(
&self,
name: &str
) -> ProjectServiceAccountGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets a ServiceAccount.
Arguments
name
- The resource name of the service account in the following format:projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
. Using-
as a wildcard for thePROJECT_ID
will infer the project from the account. TheACCOUNT
value can be theemail
address or theunique_id
of the service account.
Trait Implementations
impl<'a, C, A> MethodsBuilder for ProjectMethods<'a, C, A>
[src]
impl<'a, C, A> MethodsBuilder for ProjectMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send 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> !Sync for ProjectMethods<'a, C, A>