MfaTotpDeviceSummary

class oci.identity.models.MfaTotpDeviceSummary(**kwargs)

Bases: object

As the name suggests, a MfaTotpDeviceSummary object contains information about a MfaTotpDevice.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a MfaTotpDeviceSummary.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a MfaTotpDeviceSummary.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a MfaTotpDeviceSummary.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a MfaTotpDeviceSummary.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a MfaTotpDeviceSummary.
id [Required] Gets the id of this MfaTotpDeviceSummary.
inactive_status Gets the inactive_status of this MfaTotpDeviceSummary.
is_activated [Required] Gets the is_activated of this MfaTotpDeviceSummary.
lifecycle_state [Required] Gets the lifecycle_state of this MfaTotpDeviceSummary.
time_created [Required] Gets the time_created of this MfaTotpDeviceSummary.
time_expires Gets the time_expires of this MfaTotpDeviceSummary.
user_id [Required] Gets the user_id of this MfaTotpDeviceSummary.

Methods

__init__(**kwargs) Initializes a new MfaTotpDeviceSummary object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a MfaTotpDeviceSummary. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a MfaTotpDeviceSummary. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a MfaTotpDeviceSummary. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a MfaTotpDeviceSummary. This constant has a value of “DELETING”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a MfaTotpDeviceSummary. This constant has a value of “INACTIVE”

__init__(**kwargs)

Initializes a new MfaTotpDeviceSummary 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 MfaTotpDeviceSummary.
  • user_id (str) – The value to assign to the user_id property of this MfaTotpDeviceSummary.
  • time_created (datetime) – The value to assign to the time_created property of this MfaTotpDeviceSummary.
  • time_expires (datetime) – The value to assign to the time_expires property of this MfaTotpDeviceSummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this MfaTotpDeviceSummary. Allowed values for this property are: “CREATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • inactive_status (int) – The value to assign to the inactive_status property of this MfaTotpDeviceSummary.
  • is_activated (bool) – The value to assign to the is_activated property of this MfaTotpDeviceSummary.
id

[Required] Gets the id of this MfaTotpDeviceSummary. The OCID of the MFA TOTP Device.

Returns:The id of this MfaTotpDeviceSummary.
Return type:str
inactive_status

Gets the inactive_status of this MfaTotpDeviceSummary. The detailed status of INACTIVE lifecycleState. Allowed values are:

  • 1 - SUSPENDED
  • 2 - DISABLED
  • 4 - BLOCKED
  • 8 - LOCKED
Returns:The inactive_status of this MfaTotpDeviceSummary.
Return type:int
is_activated

[Required] Gets the is_activated of this MfaTotpDeviceSummary. Flag to indicate if the MFA TOTP device has been activated

Returns:The is_activated of this MfaTotpDeviceSummary.
Return type:bool
lifecycle_state

[Required] Gets the lifecycle_state of this MfaTotpDeviceSummary. The MFA TOTP device’s current state.

Allowed values for this property are: “CREATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this MfaTotpDeviceSummary.
Return type:str
time_created

[Required] Gets the time_created of this MfaTotpDeviceSummary. Date and time the MfaTotpDevice object was created, in the format defined by RFC3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this MfaTotpDeviceSummary.
Return type:datetime
time_expires

Gets the time_expires of this MfaTotpDeviceSummary. Date and time when this MFA TOTP device will expire, in the format defined by RFC3339. Null if it never expires.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_expires of this MfaTotpDeviceSummary.
Return type:datetime
user_id

[Required] Gets the user_id of this MfaTotpDeviceSummary. The OCID of the user the MFA TOTP device belongs to.

Returns:The user_id of this MfaTotpDeviceSummary.
Return type:str