OccCapacityRequestComputeDetails

class oci.capacity_management.models.OccCapacityRequestComputeDetails(**kwargs)

Bases: oci.capacity_management.models.occ_capacity_request_base_details.OccCapacityRequestBaseDetails

The details about the compute servers required for creating a capacity request.

Attributes

RESOURCE_TYPE_SERVER_HW str(object=’’) -> str
actual_handover_quantity Gets the actual_handover_quantity of this OccCapacityRequestBaseDetails.
date_actual_handover Gets the date_actual_handover of this OccCapacityRequestBaseDetails.
date_expected_handover Gets the date_expected_handover of this OccCapacityRequestBaseDetails.
demand_quantity [Required] Gets the demand_quantity of this OccCapacityRequestComputeDetails.
expected_handover_quantity Gets the expected_handover_quantity of this OccCapacityRequestBaseDetails.
resource_name [Required] Gets the resource_name of this OccCapacityRequestComputeDetails.
resource_type [Required] Gets the resource_type of this OccCapacityRequestBaseDetails.
workload_type [Required] Gets the workload_type of this OccCapacityRequestBaseDetails.

Methods

__init__(**kwargs) Initializes a new OccCapacityRequestComputeDetails 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.
RESOURCE_TYPE_SERVER_HW = 'SERVER_HW'
__init__(**kwargs)

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

Parameters:
  • resource_type (str) – The value to assign to the resource_type property of this OccCapacityRequestComputeDetails. Allowed values for this property are: “SERVER_HW”
  • workload_type (str) – The value to assign to the workload_type property of this OccCapacityRequestComputeDetails.
  • expected_handover_quantity (int) – The value to assign to the expected_handover_quantity property of this OccCapacityRequestComputeDetails.
  • date_expected_handover (datetime) – The value to assign to the date_expected_handover property of this OccCapacityRequestComputeDetails.
  • actual_handover_quantity (int) – The value to assign to the actual_handover_quantity property of this OccCapacityRequestComputeDetails.
  • date_actual_handover (datetime) – The value to assign to the date_actual_handover property of this OccCapacityRequestComputeDetails.
  • resource_name (str) – The value to assign to the resource_name property of this OccCapacityRequestComputeDetails.
  • demand_quantity (int) – The value to assign to the demand_quantity property of this OccCapacityRequestComputeDetails.
actual_handover_quantity

Gets the actual_handover_quantity of this OccCapacityRequestBaseDetails. The actual handed over quantity of resources at the time of request resolution.

Returns:The actual_handover_quantity of this OccCapacityRequestBaseDetails.
Return type:int
date_actual_handover

Gets the date_actual_handover of this OccCapacityRequestBaseDetails. The date on which the actual handover quantity of resources is delivered.

Returns:The date_actual_handover of this OccCapacityRequestBaseDetails.
Return type:datetime
date_expected_handover

Gets the date_expected_handover of this OccCapacityRequestBaseDetails. The date on which the latest increment to supplied quantity of resources was delivered.

Returns:The date_expected_handover of this OccCapacityRequestBaseDetails.
Return type:datetime
demand_quantity

[Required] Gets the demand_quantity of this OccCapacityRequestComputeDetails. The number of compute server’s with name <resourceName> required by the user.

Returns:The demand_quantity of this OccCapacityRequestComputeDetails.
Return type:int
expected_handover_quantity

Gets the expected_handover_quantity of this OccCapacityRequestBaseDetails. The incremental quantity of resources supplied as the provisioning is underway.

Returns:The expected_handover_quantity of this OccCapacityRequestBaseDetails.
Return type:int
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.

resource_name

[Required] Gets the resource_name of this OccCapacityRequestComputeDetails. The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.

Returns:The resource_name of this OccCapacityRequestComputeDetails.
Return type:str
resource_type

[Required] Gets the resource_type of this OccCapacityRequestBaseDetails. The type of the resource against which the user wants to place a capacity request.

Allowed values for this property are: “SERVER_HW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The resource_type of this OccCapacityRequestBaseDetails.
Return type:str
workload_type

[Required] Gets the workload_type of this OccCapacityRequestBaseDetails. The type of the workload (Generic/ROW).

Returns:The workload_type of this OccCapacityRequestBaseDetails.
Return type:str