
Public Member Functions | |
| def | __init__ (self, gcp.api.GcpApiManager api_manager, str project) |
| None | add_service_account_iam_policy_binding (self, str account, str role, str member) |
| ServiceAccount | get_service_account (self, str account) |
| Policy | get_service_account_iam_policy (self, str account) |
| None | remove_service_account_iam_policy_binding (self, str account, str role, str member) |
| str | service_account_resource_name (self, account) |
| Policy | set_service_account_iam_policy (self, str account, Policy policy) |
Public Member Functions inherited from framework.infrastructure.gcp.api.GcpProjectApiResource | |
| def | __init__ (self, discovery.Resource api, str project) |
| str | resource_pretty_format (self, dict body) |
Static Public Attributes | |
| int | |
Private Attributes | |
| _service_accounts | |
Additional Inherited Members | |
Static Public Member Functions inherited from framework.infrastructure.gcp.api.GcpProjectApiResource | |
| def | wait_for_operation (operation_request, test_success_fn, timeout_sec=_WAIT_FOR_OPERATION_SEC, wait_sec=_WAIT_FIXED_SEC) |
Identity and Access Management (IAM) API. https://cloud.google.com/iam/docs/reference/rest
| def framework.infrastructure.gcp.iam.IamV1.__init__ | ( | self, | |
| gcp.api.GcpApiManager | api_manager, | ||
| str | project | ||
| ) |
| None framework.infrastructure.gcp.iam.IamV1.add_service_account_iam_policy_binding | ( | self, | |
| str | account, | ||
| str | role, | ||
| str | member | ||
| ) |
| ServiceAccount framework.infrastructure.gcp.iam.IamV1.get_service_account | ( | self, | |
| str | account | ||
| ) |
| Policy framework.infrastructure.gcp.iam.IamV1.get_service_account_iam_policy | ( | self, | |
| str | account | ||
| ) |
| None framework.infrastructure.gcp.iam.IamV1.remove_service_account_iam_policy_binding | ( | self, | |
| str | account, | ||
| str | role, | ||
| str | member | ||
| ) |
| str framework.infrastructure.gcp.iam.IamV1.service_account_resource_name | ( | self, | |
| account | |||
| ) |
Returns full resource name of the service account.
The resource name of the service account in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.
The ACCOUNT value can be the email address or the uniqueId of the
service account.
Ref https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts/get
Args:
account: The ACCOUNT value
|
private |