Principal¶
- class oci.identity_data_plane.models.Principal(**kwargs)¶
Bases:
objectPrincipal model.
Methods:
__init__(**kwargs)Initializes a new Principal object with values from keyword arguments.
Attributes:
[Required] Gets the claims of this Principal.
[Required] Gets the subject_id of this Principal.
[Required] Gets the tenant_id of this Principal.
- __init__(**kwargs)¶
Initializes a new Principal object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
subject_id (str) – The value to assign to the subject_id property of this Principal.
tenant_id (str) – The value to assign to the tenant_id property of this Principal.
claims (list[oci.identity_data_plane.models.Claim]) – The value to assign to the claims property of this Principal.
- property claims¶
[Required] Gets the claims of this Principal. The set of claims for this principal.
- Returns
The claims of this Principal.
- Return type
- property subject_id¶
[Required] Gets the subject_id of this Principal. The user’s OCID.
- Returns
The subject_id of this Principal.
- Return type
str
- property tenant_id¶
[Required] Gets the tenant_id of this Principal. The tenancy OCID.
- Returns
The tenant_id of this Principal.
- Return type
str