TenancyAssociation

class oci.governance_rules_control_plane.models.TenancyAssociation(**kwargs)

Bases: oci.governance_rules_control_plane.models.association.Association

Tenancy association represents the tenancy id to which the governance rule will be applied.

Methods

__init__(**kwargs) Initializes a new TenancyAssociation object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

Attributes

tenancy_id [Required] Gets the tenancy_id of this TenancyAssociation.
type [Required] Gets the type of this Association.
__init__(**kwargs)

Initializes a new TenancyAssociation object with values from keyword arguments. The default value of the type attribute of this class is TENANCY and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • type (str) – The value to assign to the type property of this TenancyAssociation.
  • tenancy_id (str) – The value to assign to the tenancy_id property of this TenancyAssociation.
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

tenancy_id

[Required] Gets the tenancy_id of this TenancyAssociation. The Oracle ID (OCID) of the tenancy to which the governance rule will be applied as part of this tenancy inclusion criterion.

Returns:The tenancy_id of this TenancyAssociation.
Return type:str
type

[Required] Gets the type of this Association. Type of Association, can be one of TENANCY, ALL or TAG. We support only TENANCY for now.

Example: TENANCY

Returns:The type of this Association.
Return type:str