Public Member Functions | Static Public Attributes | Private Attributes | List of all members
framework.infrastructure.gcp.iam.IamV1 Class Reference
Inheritance diagram for framework.infrastructure.gcp.iam.IamV1:
Inheritance graph
[legend]

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)
 

Detailed Description

Identity and Access Management (IAM) API.

https://cloud.google.com/iam/docs/reference/rest

Definition at line 180 of file iam.py.

Constructor & Destructor Documentation

◆ __init__()

def framework.infrastructure.gcp.iam.IamV1.__init__ (   self,
gcp.api.GcpApiManager  api_manager,
str  project 
)

Definition at line 194 of file iam.py.

Member Function Documentation

◆ add_service_account_iam_policy_binding()

None framework.infrastructure.gcp.iam.IamV1.add_service_account_iam_policy_binding (   self,
str  account,
str  role,
str  member 
)
Add an IAM policy binding to an IAM service account.

See for details on updating policy bindings:
https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts/setIamPolicy

Definition at line 255 of file iam.py.

◆ get_service_account()

ServiceAccount framework.infrastructure.gcp.iam.IamV1.get_service_account (   self,
str  account 
)

Definition at line 214 of file iam.py.

◆ get_service_account_iam_policy()

Policy framework.infrastructure.gcp.iam.IamV1.get_service_account_iam_policy (   self,
str  account 
)

Definition at line 222 of file iam.py.

◆ remove_service_account_iam_policy_binding()

None framework.infrastructure.gcp.iam.IamV1.remove_service_account_iam_policy_binding (   self,
str  account,
str  role,
str  member 
)
Remove an IAM policy binding from the IAM policy of a service
account.

See for details on updating policy bindings:
https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts/setIamPolicy

Definition at line 284 of file iam.py.

◆ service_account_resource_name()

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

Definition at line 199 of file iam.py.

◆ set_service_account_iam_policy()

Policy framework.infrastructure.gcp.iam.IamV1.set_service_account_iam_policy (   self,
str  account,
Policy  policy 
)
Sets the IAM policy that is attached to a service account.

https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts/setIamPolicy

Definition at line 232 of file iam.py.

Member Data Documentation

◆ _service_accounts

framework.infrastructure.gcp.iam.IamV1._service_accounts
private

Definition at line 197 of file iam.py.

◆ int

framework.infrastructure.gcp.iam.IamV1.int
static

Definition at line 192 of file iam.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:10