CompartmentMetadata¶
- class oci.identity_data_plane.models.CompartmentMetadata(**kwargs)¶
Bases:
objectCompartmentMetadata model.
Attributes:
A constant which can be used with the access_level property of a CompartmentMetadata.
A constant which can be used with the access_level property of a CompartmentMetadata.
A constant which can be used with the access_level property of a CompartmentMetadata.
[Required] Gets the access_level of this CompartmentMetadata.
[Required] Gets the compartment_id of this CompartmentMetadata.
Methods:
__init__(**kwargs)Initializes a new CompartmentMetadata object with values from keyword arguments.
- ACCESS_LEVEL_ACCESSIBLE = 'accessible'¶
A constant which can be used with the access_level property of a CompartmentMetadata. This constant has a value of “accessible”
- ACCESS_LEVEL_INACCESSIBLE = 'inaccessible'¶
A constant which can be used with the access_level property of a CompartmentMetadata. This constant has a value of “inaccessible”
- ACCESS_LEVEL_VISIBLE = 'visible'¶
A constant which can be used with the access_level property of a CompartmentMetadata. This constant has a value of “visible”
- __init__(**kwargs)¶
Initializes a new CompartmentMetadata object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
compartment_id (str) – The value to assign to the compartment_id property of this CompartmentMetadata.
access_level (str) – The value to assign to the access_level property of this CompartmentMetadata. Allowed values for this property are: “accessible”, “visible”, “inaccessible”
- property access_level¶
[Required] Gets the access_level of this CompartmentMetadata. The access level.
Allowed values for this property are: “accessible”, “visible”, “inaccessible”
- Returns
The access_level of this CompartmentMetadata.
- Return type
str
- property compartment_id¶
[Required] Gets the compartment_id of this CompartmentMetadata. The compartment id.
- Returns
The compartment_id of this CompartmentMetadata.
- Return type
str