SecurityAttributeNamespace¶
-
class
oci.security_attribute.models.
SecurityAttributeNamespace
(**kwargs)¶ Bases:
object
A managed container for security attributes. A security attribute namespace is unique in a tenancy. For more information, see Managing Security Attributes Namespaces.
Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Attributes
LIFECYCLE_STATE_ACTIVE
A constant which can be used with the lifecycle_state property of a SecurityAttributeNamespace. LIFECYCLE_STATE_DELETED
A constant which can be used with the lifecycle_state property of a SecurityAttributeNamespace. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a SecurityAttributeNamespace. LIFECYCLE_STATE_INACTIVE
A constant which can be used with the lifecycle_state property of a SecurityAttributeNamespace. compartment_id
[Required] Gets the compartment_id of this SecurityAttributeNamespace. defined_tags
Gets the defined_tags of this SecurityAttributeNamespace. description
[Required] Gets the description of this SecurityAttributeNamespace. freeform_tags
Gets the freeform_tags of this SecurityAttributeNamespace. id
[Required] Gets the id of this SecurityAttributeNamespace. is_retired
[Required] Gets the is_retired of this SecurityAttributeNamespace. lifecycle_state
Gets the lifecycle_state of this SecurityAttributeNamespace. mode
Gets the mode of this SecurityAttributeNamespace. name
[Required] Gets the name of this SecurityAttributeNamespace. system_tags
Gets the system_tags of this SecurityAttributeNamespace. time_created
[Required] Gets the time_created of this SecurityAttributeNamespace. Methods
__init__
(**kwargs)Initializes a new SecurityAttributeNamespace object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE
= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a SecurityAttributeNamespace. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a SecurityAttributeNamespace. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a SecurityAttributeNamespace. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_INACTIVE
= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a SecurityAttributeNamespace. This constant has a value of “INACTIVE”
-
__init__
(**kwargs)¶ Initializes a new SecurityAttributeNamespace 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 SecurityAttributeNamespace.
- compartment_id (str) – The value to assign to the compartment_id property of this SecurityAttributeNamespace.
- name (str) – The value to assign to the name property of this SecurityAttributeNamespace.
- description (str) – The value to assign to the description property of this SecurityAttributeNamespace.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this SecurityAttributeNamespace.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this SecurityAttributeNamespace.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this SecurityAttributeNamespace.
- is_retired (bool) – The value to assign to the is_retired property of this SecurityAttributeNamespace.
- mode (list[str]) – The value to assign to the mode property of this SecurityAttributeNamespace.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this SecurityAttributeNamespace. Allowed values for this property are: “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_created (datetime) – The value to assign to the time_created property of this SecurityAttributeNamespace.
-
compartment_id
¶ [Required] Gets the compartment_id of this SecurityAttributeNamespace. The OCID of the compartment that contains the namespace.
Returns: The compartment_id of this SecurityAttributeNamespace. Return type: str
Gets the defined_tags of this SecurityAttributeNamespace. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
Returns: The defined_tags of this SecurityAttributeNamespace. Return type: dict(str, dict(str, object))
-
description
¶ [Required] Gets the description of this SecurityAttributeNamespace. The description you assign to the security attribute namespace.
Returns: The description of this SecurityAttributeNamespace. Return type: str
Gets the freeform_tags of this SecurityAttributeNamespace. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
Returns: The freeform_tags of this SecurityAttributeNamespace. Return type: dict(str, str)
-
id
¶ [Required] Gets the id of this SecurityAttributeNamespace. The OCID of the security attribute namespace.
Returns: The id of this SecurityAttributeNamespace. Return type: str
-
is_retired
¶ [Required] Gets the is_retired of this SecurityAttributeNamespace. Indicates whether the security attribute namespace is retired. See Managing Security Attribute Namespaces.
Returns: The is_retired of this SecurityAttributeNamespace. Return type: bool
-
lifecycle_state
¶ Gets the lifecycle_state of this SecurityAttributeNamespace. The security attribute namespace’s current state. After creating a security attribute namespace, make sure its lifecycleState is ACTIVE before using it. After retiring a security attribute namespace, make sure its lifecycleState is INACTIVE.
Allowed values for this property are: “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 SecurityAttributeNamespace. Return type: str
-
mode
¶ Gets the mode of this SecurityAttributeNamespace. Indicates possible modes the security attributes in this namespace can be set to. This is not accepted from the user. Currently the supported values are enforce and audit.
Returns: The mode of this SecurityAttributeNamespace. Return type: list[str]
-
name
¶ [Required] Gets the name of this SecurityAttributeNamespace. The name of the namespace. It must be unique across all namespaces in the tenancy and cannot be changed.
Returns: The name of this SecurityAttributeNamespace. Return type: str
Gets the system_tags of this SecurityAttributeNamespace. System tags for this resource. Each key is predefined and scoped to a namespace.
Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
Returns: The system_tags of this SecurityAttributeNamespace. Return type: dict(str, dict(str, object))
-
time_created
¶ [Required] Gets the time_created of this SecurityAttributeNamespace. Date and time the security attribute namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
Returns: The time_created of this SecurityAttributeNamespace. Return type: datetime
-