ComputeResourceConfiguration¶
-
class
oci.demand_signal.models.ComputeResourceConfiguration(**kwargs)¶ Bases:
oci.demand_signal.models.base_resource_configuration.BaseResourceConfigurationConfiguration for COMPUTE
Attributes
RESOURCE_COMPUTEstr(object=’’) -> str RESOURCE_EXADATAstr(object=’’) -> str RESOURCE_NETWORKstr(object=’’) -> str RESOURCE_STORAGEstr(object=’’) -> str compute_hw_generationGets the compute_hw_generation of this ComputeResourceConfiguration. resource[Required] Gets the resource of this BaseResourceConfiguration. shape[Required] Gets the shape of this ComputeResourceConfiguration. usage_type[Required] Gets the usage_type of this ComputeResourceConfiguration. Methods
__init__(**kwargs)Initializes a new ComputeResourceConfiguration 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_COMPUTE= 'COMPUTE'¶
-
RESOURCE_EXADATA= 'EXADATA'¶
-
RESOURCE_NETWORK= 'NETWORK'¶
-
RESOURCE_STORAGE= 'STORAGE'¶
-
__init__(**kwargs)¶ Initializes a new ComputeResourceConfiguration object with values from keyword arguments. The default value of the
resourceattribute of this class isCOMPUTEand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - resource (str) – The value to assign to the resource property of this ComputeResourceConfiguration. Allowed values for this property are: “COMPUTE”, “EXADATA”, “STORAGE”, “NETWORK”
- shape (str) – The value to assign to the shape property of this ComputeResourceConfiguration.
- compute_hw_generation (str) – The value to assign to the compute_hw_generation property of this ComputeResourceConfiguration.
- usage_type (str) – The value to assign to the usage_type property of this ComputeResourceConfiguration.
-
compute_hw_generation¶ Gets the compute_hw_generation of this ComputeResourceConfiguration. The hardware generation of the compute resource.
Returns: The compute_hw_generation of this ComputeResourceConfiguration. 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.
-
resource¶ [Required] Gets the resource of this BaseResourceConfiguration. Resources like COMPUTE, STORAGE, EXADATA etc.
Allowed values for this property are: “COMPUTE”, “EXADATA”, “STORAGE”, “NETWORK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The resource of this BaseResourceConfiguration. Return type: str
-
shape¶ [Required] Gets the shape of this ComputeResourceConfiguration. The shape of the compute instance.
Returns: The shape of this ComputeResourceConfiguration. Return type: str
-
usage_type¶ [Required] Gets the usage_type of this ComputeResourceConfiguration. The type of usage for the resource.
Returns: The usage_type of this ComputeResourceConfiguration. Return type: str
-