TenancyAttachment¶
-
class
oci.resource_analytics.models.
TenancyAttachment
(**kwargs)¶ Bases:
object
A TenancyAttachment is a customers’ tenancy attached to a ResourceAnalyticsInstance. Attached tenancies will be included in analytics collection.
To use any of the API operations, you must be authorized in an IAM policy. If you’re not authorized, talk to an administrator. If you’re an administrator who needs to write policies to give users access, see Getting Started with Policies.
Attributes
LIFECYCLE_STATE_ACTIVE
A constant which can be used with the lifecycle_state property of a TenancyAttachment. LIFECYCLE_STATE_CREATING
A constant which can be used with the lifecycle_state property of a TenancyAttachment. LIFECYCLE_STATE_DELETED
A constant which can be used with the lifecycle_state property of a TenancyAttachment. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a TenancyAttachment. LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a TenancyAttachment. LIFECYCLE_STATE_NEEDS_ATTENTION
A constant which can be used with the lifecycle_state property of a TenancyAttachment. LIFECYCLE_STATE_UPDATING
A constant which can be used with the lifecycle_state property of a TenancyAttachment. description
Gets the description of this TenancyAttachment. id
[Required] Gets the id of this TenancyAttachment. is_reporting_tenancy
[Required] Gets the is_reporting_tenancy of this TenancyAttachment. lifecycle_details
Gets the lifecycle_details of this TenancyAttachment. lifecycle_state
[Required] Gets the lifecycle_state of this TenancyAttachment. resource_analytics_instance_id
[Required] Gets the resource_analytics_instance_id of this TenancyAttachment. system_tags
Gets the system_tags of this TenancyAttachment. tenancy_id
[Required] Gets the tenancy_id of this TenancyAttachment. time_created
[Required] Gets the time_created of this TenancyAttachment. time_updated
Gets the time_updated of this TenancyAttachment. Methods
__init__
(**kwargs)Initializes a new TenancyAttachment object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE
= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING
= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_NEEDS_ATTENTION
= 'NEEDS_ATTENTION'¶ A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “NEEDS_ATTENTION”
-
LIFECYCLE_STATE_UPDATING
= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “UPDATING”
-
__init__
(**kwargs)¶ Initializes a new TenancyAttachment 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 TenancyAttachment.
- description (str) – The value to assign to the description property of this TenancyAttachment.
- resource_analytics_instance_id (str) – The value to assign to the resource_analytics_instance_id property of this TenancyAttachment.
- tenancy_id (str) – The value to assign to the tenancy_id property of this TenancyAttachment.
- is_reporting_tenancy (bool) – The value to assign to the is_reporting_tenancy property of this TenancyAttachment.
- time_created (datetime) – The value to assign to the time_created property of this TenancyAttachment.
- time_updated (datetime) – The value to assign to the time_updated property of this TenancyAttachment.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this TenancyAttachment. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “NEEDS_ATTENTION”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- lifecycle_details (str) – The value to assign to the lifecycle_details property of this TenancyAttachment.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this TenancyAttachment.
-
description
¶ Gets the description of this TenancyAttachment. A description of the tenancy.
Returns: The description of this TenancyAttachment. Return type: str
-
id
¶ [Required] Gets the id of this TenancyAttachment. The OCID of the TenancyAttachment.
Returns: The id of this TenancyAttachment. Return type: str
-
is_reporting_tenancy
¶ [Required] Gets the is_reporting_tenancy of this TenancyAttachment. Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
Returns: The is_reporting_tenancy of this TenancyAttachment. Return type: bool
-
lifecycle_details
¶ Gets the lifecycle_details of this TenancyAttachment. A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
Returns: The lifecycle_details of this TenancyAttachment. Return type: str
-
lifecycle_state
¶ [Required] Gets the lifecycle_state of this TenancyAttachment. The current state of the TenancyAttachment.
Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “NEEDS_ATTENTION”, “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 TenancyAttachment. Return type: str
-
resource_analytics_instance_id
¶ [Required] Gets the resource_analytics_instance_id of this TenancyAttachment. The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
Returns: The resource_analytics_instance_id of this TenancyAttachment. Return type: str
Gets the system_tags of this TenancyAttachment. 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 TenancyAttachment. Return type: dict(str, dict(str, object))
-
tenancy_id
¶ [Required] Gets the tenancy_id of this TenancyAttachment. The OCID of the tenancy associated with this TenancyAttachment.
Returns: The tenancy_id of this TenancyAttachment. Return type: str
-