DedicatedCapacitySource¶
-
class
oci.core.models.DedicatedCapacitySource(**kwargs)¶ Bases:
oci.core.models.capacity_source.CapacitySourceA capacity source of bare metal hosts that is dedicated to a user.
Attributes
CAPACITY_TYPE_DEDICATEDstr(object=’’) -> str capacity_type[Required] Gets the capacity_type of this CapacitySource. compartment_idGets the compartment_id of this DedicatedCapacitySource. Methods
__init__(**kwargs)Initializes a new DedicatedCapacitySource 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. -
CAPACITY_TYPE_DEDICATED= 'DEDICATED'¶
-
__init__(**kwargs)¶ Initializes a new DedicatedCapacitySource object with values from keyword arguments. The default value of the
capacity_typeattribute of this class isDEDICATEDand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - capacity_type (str) – The value to assign to the capacity_type property of this DedicatedCapacitySource. Allowed values for this property are: “DEDICATED”
- compartment_id (str) – The value to assign to the compartment_id property of this DedicatedCapacitySource.
-
capacity_type¶ [Required] Gets the capacity_type of this CapacitySource. The capacity type of bare metal hosts.
Allowed values for this property are: “DEDICATED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The capacity_type of this CapacitySource. Return type: str
-
compartment_id¶ Gets the compartment_id of this DedicatedCapacitySource. The OCID of the compartment of this capacity source.
Returns: The compartment_id of this DedicatedCapacitySource. Return type: str
-
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.
-