OperatorControlAssignment

class oci.operator_access_control.models.OperatorControlAssignment(**kwargs)

Bases: object

An Operator Control Assignment identifies the target resource that is placed under the governance of an Operator Control. Creating an Operator Control Assignment Assignment with a time duration ensures that human accesses to the target resource will be governed by Operator Control for the duration specified.

Attributes

LIFECYCLE_STATE_APPLIED A constant which can be used with the lifecycle_state property of a OperatorControlAssignment.
LIFECYCLE_STATE_APPLYFAILED A constant which can be used with the lifecycle_state property of a OperatorControlAssignment.
LIFECYCLE_STATE_CREATED A constant which can be used with the lifecycle_state property of a OperatorControlAssignment.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a OperatorControlAssignment.
RESOURCE_TYPE_EXACC A constant which can be used with the resource_type property of a OperatorControlAssignment.
assigner_id Gets the assigner_id of this OperatorControlAssignment.
comment Gets the comment of this OperatorControlAssignment.
compartment_id Gets the compartment_id of this OperatorControlAssignment.
defined_tags Gets the defined_tags of this OperatorControlAssignment.
detachment_description Gets the detachment_description of this OperatorControlAssignment.
freeform_tags Gets the freeform_tags of this OperatorControlAssignment.
id [Required] Gets the id of this OperatorControlAssignment.
is_enforced_always Gets the is_enforced_always of this OperatorControlAssignment.
lifecycle_state Gets the lifecycle_state of this OperatorControlAssignment.
operator_control_id [Required] Gets the operator_control_id of this OperatorControlAssignment.
resource_compartment_id Gets the resource_compartment_id of this OperatorControlAssignment.
resource_id [Required] Gets the resource_id of this OperatorControlAssignment.
resource_name [Required] Gets the resource_name of this OperatorControlAssignment.
resource_type Gets the resource_type of this OperatorControlAssignment.
time_assignment_from Gets the time_assignment_from of this OperatorControlAssignment.
time_assignment_to Gets the time_assignment_to of this OperatorControlAssignment.
time_of_assignment Gets the time_of_assignment of this OperatorControlAssignment.
time_of_deletion Gets the time_of_deletion of this OperatorControlAssignment.
unassigner_id Gets the unassigner_id of this OperatorControlAssignment.

Methods

__init__(**kwargs) Initializes a new OperatorControlAssignment object with values from keyword arguments.
LIFECYCLE_STATE_APPLIED = 'APPLIED'

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

LIFECYCLE_STATE_APPLYFAILED = 'APPLYFAILED'

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

LIFECYCLE_STATE_CREATED = 'CREATED'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

RESOURCE_TYPE_EXACC = 'EXACC'

A constant which can be used with the resource_type property of a OperatorControlAssignment. This constant has a value of “EXACC”

__init__(**kwargs)

Initializes a new OperatorControlAssignment 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 OperatorControlAssignment.
  • operator_control_id (str) – The value to assign to the operator_control_id property of this OperatorControlAssignment.
  • resource_id (str) – The value to assign to the resource_id property of this OperatorControlAssignment.
  • resource_name (str) – The value to assign to the resource_name property of this OperatorControlAssignment.
  • resource_type (str) – The value to assign to the resource_type property of this OperatorControlAssignment. Allowed values for this property are: “EXACC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • resource_compartment_id (str) – The value to assign to the resource_compartment_id property of this OperatorControlAssignment.
  • compartment_id (str) – The value to assign to the compartment_id property of this OperatorControlAssignment.
  • time_assignment_from (datetime) – The value to assign to the time_assignment_from property of this OperatorControlAssignment.
  • time_assignment_to (datetime) – The value to assign to the time_assignment_to property of this OperatorControlAssignment.
  • is_enforced_always (bool) – The value to assign to the is_enforced_always property of this OperatorControlAssignment.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this OperatorControlAssignment. Allowed values for this property are: “CREATED”, “APPLIED”, “APPLYFAILED”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • assigner_id (str) – The value to assign to the assigner_id property of this OperatorControlAssignment.
  • time_of_assignment (datetime) – The value to assign to the time_of_assignment property of this OperatorControlAssignment.
  • comment (str) – The value to assign to the comment property of this OperatorControlAssignment.
  • unassigner_id (str) – The value to assign to the unassigner_id property of this OperatorControlAssignment.
  • time_of_deletion (datetime) – The value to assign to the time_of_deletion property of this OperatorControlAssignment.
  • detachment_description (str) – The value to assign to the detachment_description property of this OperatorControlAssignment.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this OperatorControlAssignment.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this OperatorControlAssignment.
assigner_id

Gets the assigner_id of this OperatorControlAssignment. The OCID of the user who created this operator control assignment.

Returns:The assigner_id of this OperatorControlAssignment.
Return type:str
comment

Gets the comment of this OperatorControlAssignment. Comment about the assignment of the operator control to this target resource.

Returns:The comment of this OperatorControlAssignment.
Return type:str
compartment_id

Gets the compartment_id of this OperatorControlAssignment. The OCID of the comparment that contains the operator control assignment.

Returns:The compartment_id of this OperatorControlAssignment.
Return type:str
defined_tags

Gets the defined_tags of this OperatorControlAssignment. Defined tags for this resource. Each key is predefined and scoped to a namespace.

Returns:The defined_tags of this OperatorControlAssignment.
Return type:dict(str, dict(str, object))
detachment_description

Gets the detachment_description of this OperatorControlAssignment. description containing reason for releasing of OperatorControl.

Returns:The detachment_description of this OperatorControlAssignment.
Return type:str
freeform_tags

Gets the freeform_tags of this OperatorControlAssignment. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

Returns:The freeform_tags of this OperatorControlAssignment.
Return type:dict(str, str)
id

[Required] Gets the id of this OperatorControlAssignment. The OCID of the operator control assignment.

Returns:The id of this OperatorControlAssignment.
Return type:str
is_enforced_always

Gets the is_enforced_always of this OperatorControlAssignment. If set, then the target resource is always governed by the operator control.

Returns:The is_enforced_always of this OperatorControlAssignment.
Return type:bool
lifecycle_state

Gets the lifecycle_state of this OperatorControlAssignment. The current lifcycle state of the OperatorControl.

Allowed values for this property are: “CREATED”, “APPLIED”, “APPLYFAILED”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this OperatorControlAssignment.
Return type:str
operator_control_id

[Required] Gets the operator_control_id of this OperatorControlAssignment. The OCID of the operator control.

Returns:The operator_control_id of this OperatorControlAssignment.
Return type:str
resource_compartment_id

Gets the resource_compartment_id of this OperatorControlAssignment. The OCID of the compartment that contains the target resource.

Returns:The resource_compartment_id of this OperatorControlAssignment.
Return type:str
resource_id

[Required] Gets the resource_id of this OperatorControlAssignment. The OCID of the target resource.

Returns:The resource_id of this OperatorControlAssignment.
Return type:str
resource_name

[Required] Gets the resource_name of this OperatorControlAssignment. Name of the target resource.

Returns:The resource_name of this OperatorControlAssignment.
Return type:str
resource_type

Gets the resource_type of this OperatorControlAssignment. Type of the target resource.

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

Returns:The resource_type of this OperatorControlAssignment.
Return type:str
time_assignment_from

Gets the time_assignment_from of this OperatorControlAssignment. The time at which the target resource will be brought under the governance of the operator control expressed in `RFC 3339`__ timestamp format. Example: ‘2020-05-22T21:10:29.600Z’

Returns:The time_assignment_from of this OperatorControlAssignment.
Return type:datetime
time_assignment_to

Gets the time_assignment_to of this OperatorControlAssignment. The time at which the target resource will leave the governance of the operator control expressed in `RFC 3339`__ timestamp format. Example: ‘2020-05-22T21:10:29.600Z’

Returns:The time_assignment_to of this OperatorControlAssignment.
Return type:datetime
time_of_assignment

Gets the time_of_assignment of this OperatorControlAssignment. Time when the operator control assignment is created in `RFC 3339`__ timestamp format. Example: ‘2020-05-22T21:10:29.600Z’

Returns:The time_of_assignment of this OperatorControlAssignment.
Return type:datetime
time_of_deletion

Gets the time_of_deletion of this OperatorControlAssignment. Time on which the operator control assignment was deleted in `RFC 3339`__timestamp format.Example: ‘2020-05-22T21:10:29.600Z’

Returns:The time_of_deletion of this OperatorControlAssignment.
Return type:datetime
unassigner_id

Gets the unassigner_id of this OperatorControlAssignment. User id who released the operatorControl.

Returns:The unassigner_id of this OperatorControlAssignment.
Return type:str