AccessPolicy#

class AccessPolicy(display_name=None, description=None, client_name=None, identities=None, objects=None, role=None, created_time=None, last_updated_time=None, created_by=None, is_system_defined=True, access_policy_type=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)[source]#

Bases: ExternalizableAbstractModel

An access policy to define who can perform what operation on which object

Parameters:
  • display_name – (display_name) The display name for the access policy

  • description – (description) Description of the access policy

  • client_name – (client_name) Client that created the access policy

  • identities – (identities) The identities for which the access policy is created

  • objects – (objects) The objects being qualified by the access policy

  • role – (role) The role associated with the access policy

  • created_time – (created_time) The creation time of the access policy

  • last_updated_time – (last_updated_time) The time when the access policy was last updated

  • created_by – (created_by) User or service name that created the access policy

  • is_system_defined – (is_system_defined) Flag identifying if the access policy is system defined or not (Default True)

  • access_policy_type – (access_policy_type)

property access_policy_type#
Type:

AccessPolicyType

property client_name#

Client that created the access policy

Type:

str

property created_by#

User or service name that created the access policy

Type:

str

property created_time#

The creation time of the access policy

Type:

datetime

property description#

Description of the access policy

Type:

str

property display_name#

The display name for the access policy

Type:

str

property identities#

The identities for which the access policy is created

Type:

list[ Filter ]

property is_system_defined#

Flag identifying if the access policy is system defined or not

Type:

bool

property last_updated_time#

The time when the access policy was last updated

Type:

datetime

property objects#

The objects being qualified by the access policy

Type:

list[ Filter ]

property role#

The role associated with the access policy

Type:

str

to_dict()[source]#

Returns the model properties as a dictionary

to_str()[source]#

Returns the string representation of the model