ResourcePrincipalConfiguration¶
- class oci.bds.models.ResourcePrincipalConfiguration(**kwargs)¶
Bases:
objectResource Principal Session Token Details.
Attributes:
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration.
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration.
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration.
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration.
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration.
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration.
[Required] Gets the bds_instance_id of this ResourcePrincipalConfiguration.
[Required] Gets the display_name of this ResourcePrincipalConfiguration.
[Required] Gets the id of this ResourcePrincipalConfiguration.
[Required] Gets the lifecycle_state of this ResourcePrincipalConfiguration.
Gets the secret_id of this ResourcePrincipalConfiguration.
[Required] Gets the session_token_life_span_duration_in_hours of this ResourcePrincipalConfiguration.
[Required] Gets the time_created of this ResourcePrincipalConfiguration.
Gets the time_token_expiry of this ResourcePrincipalConfiguration.
Gets the time_token_refreshed of this ResourcePrincipalConfiguration.
[Required] Gets the time_updated of this ResourcePrincipalConfiguration.
Methods:
__init__(**kwargs)Initializes a new ResourcePrincipalConfiguration object with values from keyword arguments.
- LIFECYCLE_STATE_ACTIVE = 'ACTIVE'¶
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration. This constant has a value of “ACTIVE”
- LIFECYCLE_STATE_CREATING = 'CREATING'¶
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration. This constant has a value of “CREATING”
- LIFECYCLE_STATE_DELETED = 'DELETED'¶
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration. This constant has a value of “DELETED”
- LIFECYCLE_STATE_DELETING = 'DELETING'¶
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration. This constant has a value of “DELETING”
- LIFECYCLE_STATE_FAILED = 'FAILED'¶
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration. This constant has a value of “FAILED”
- LIFECYCLE_STATE_UPDATING = 'UPDATING'¶
A constant which can be used with the lifecycle_state property of a ResourcePrincipalConfiguration. This constant has a value of “UPDATING”
- __init__(**kwargs)¶
Initializes a new ResourcePrincipalConfiguration object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this ResourcePrincipalConfiguration.
bds_instance_id (str) – The value to assign to the bds_instance_id property of this ResourcePrincipalConfiguration.
display_name (str) – The value to assign to the display_name property of this ResourcePrincipalConfiguration.
secret_id (str) – The value to assign to the secret_id property of this ResourcePrincipalConfiguration.
session_token_life_span_duration_in_hours (int) – The value to assign to the session_token_life_span_duration_in_hours property of this ResourcePrincipalConfiguration.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this ResourcePrincipalConfiguration. Allowed values for this property are: “CREATING”, “ACTIVE”, “UPDATING”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
time_token_refreshed (datetime) – The value to assign to the time_token_refreshed property of this ResourcePrincipalConfiguration.
time_token_expiry (datetime) – The value to assign to the time_token_expiry property of this ResourcePrincipalConfiguration.
time_created (datetime) – The value to assign to the time_created property of this ResourcePrincipalConfiguration.
time_updated (datetime) – The value to assign to the time_updated property of this ResourcePrincipalConfiguration.
- property bds_instance_id¶
[Required] Gets the bds_instance_id of this ResourcePrincipalConfiguration. The OCID of the bdsInstance which is the parent resource id.
- Returns
The bds_instance_id of this ResourcePrincipalConfiguration.
- Return type
str
- property display_name¶
[Required] Gets the display_name of this ResourcePrincipalConfiguration. A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name does not have to be unique, and it may be changed. Avoid entering confidential information.
- Returns
The display_name of this ResourcePrincipalConfiguration.
- Return type
str
- property id¶
[Required] Gets the id of this ResourcePrincipalConfiguration. The id of the ResourcePrincipalConfiguration defined under BDS resources, not OCID.
- Returns
The id of this ResourcePrincipalConfiguration.
- Return type
str
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this ResourcePrincipalConfiguration. The state of the ResourcePrincipalConfiguration.
Allowed values for this property are: “CREATING”, “ACTIVE”, “UPDATING”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this ResourcePrincipalConfiguration.
- Return type
str
- property secret_id¶
Gets the secret_id of this ResourcePrincipalConfiguration. The secretId for the clusterAdminPassword.
- Returns
The secret_id of this ResourcePrincipalConfiguration.
- Return type
str
- property session_token_life_span_duration_in_hours¶
[Required] Gets the session_token_life_span_duration_in_hours of this ResourcePrincipalConfiguration. Life span in hours of each resource principal session token.
- Returns
The session_token_life_span_duration_in_hours of this ResourcePrincipalConfiguration.
- Return type
int
- property time_created¶
[Required] Gets the time_created of this ResourcePrincipalConfiguration. The time the ResourcePrincipalConfiguration was created, shown as an RFC 3339 formatted datetime string.
- Returns
The time_created of this ResourcePrincipalConfiguration.
- Return type
datetime
- property time_token_expiry¶
Gets the time_token_expiry of this ResourcePrincipalConfiguration. the time the resource principal session token will expired, shown as an rfc 3339 formatted datetime string.
- Returns
The time_token_expiry of this ResourcePrincipalConfiguration.
- Return type
datetime
- property time_token_refreshed¶
Gets the time_token_refreshed of this ResourcePrincipalConfiguration. the time the resource principal session token was refreshed, shown as an rfc 3339 formatted datetime string.
- Returns
The time_token_refreshed of this ResourcePrincipalConfiguration.
- Return type
datetime
- property time_updated¶
[Required] Gets the time_updated of this ResourcePrincipalConfiguration. The time the ResourcePrincipalConfiguration was updated, shown as an RFC 3339 formatted datetime string.
- Returns
The time_updated of this ResourcePrincipalConfiguration.
- Return type
datetime