ResourceBundle¶
-
class
oci.marketplace_publisher.models.
ResourceBundle
(**kwargs)¶ Bases:
object
Resource Bundle associated with an Offer
Attributes
TYPE_LISTING
A constant which can be used with the type property of a ResourceBundle. UNIT_OF_MEASUREMENT_CREDITS
A constant which can be used with the unit_of_measurement property of a ResourceBundle. UNIT_OF_MEASUREMENT_INSTANCES
A constant which can be used with the unit_of_measurement property of a ResourceBundle. UNIT_OF_MEASUREMENT_INSTANCE_PER_HOUR
A constant which can be used with the unit_of_measurement property of a ResourceBundle. UNIT_OF_MEASUREMENT_NODES
A constant which can be used with the unit_of_measurement property of a ResourceBundle. UNIT_OF_MEASUREMENT_OCPU_PER_HOUR
A constant which can be used with the unit_of_measurement property of a ResourceBundle. quantity
Gets the quantity of this ResourceBundle. resource_ids
Gets the resource_ids of this ResourceBundle. type
Gets the type of this ResourceBundle. unit_of_measurement
Gets the unit_of_measurement of this ResourceBundle. Methods
__init__
(**kwargs)Initializes a new ResourceBundle object with values from keyword arguments. -
TYPE_LISTING
= 'LISTING'¶ A constant which can be used with the type property of a ResourceBundle. This constant has a value of “LISTING”
-
UNIT_OF_MEASUREMENT_CREDITS
= 'CREDITS'¶ A constant which can be used with the unit_of_measurement property of a ResourceBundle. This constant has a value of “CREDITS”
-
UNIT_OF_MEASUREMENT_INSTANCES
= 'INSTANCES'¶ A constant which can be used with the unit_of_measurement property of a ResourceBundle. This constant has a value of “INSTANCES”
-
UNIT_OF_MEASUREMENT_INSTANCE_PER_HOUR
= 'INSTANCE_PER_HOUR'¶ A constant which can be used with the unit_of_measurement property of a ResourceBundle. This constant has a value of “INSTANCE_PER_HOUR”
-
UNIT_OF_MEASUREMENT_NODES
= 'NODES'¶ A constant which can be used with the unit_of_measurement property of a ResourceBundle. This constant has a value of “NODES”
-
UNIT_OF_MEASUREMENT_OCPU_PER_HOUR
= 'OCPU_PER_HOUR'¶ A constant which can be used with the unit_of_measurement property of a ResourceBundle. This constant has a value of “OCPU_PER_HOUR”
-
__init__
(**kwargs)¶ Initializes a new ResourceBundle object with values from keyword arguments. 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 ResourceBundle. Allowed values for this property are: “LISTING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- quantity (int) – The value to assign to the quantity property of this ResourceBundle.
- unit_of_measurement (str) – The value to assign to the unit_of_measurement property of this ResourceBundle. Allowed values for this property are: “OCPU_PER_HOUR”, “INSTANCE_PER_HOUR”, “CREDITS”, “INSTANCES”, “NODES”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- resource_ids (list[str]) – The value to assign to the resource_ids property of this ResourceBundle.
-
quantity
¶ Gets the quantity of this ResourceBundle. The quantity of a resources associated with the bundle
Returns: The quantity of this ResourceBundle. Return type: int
-
resource_ids
¶ Gets the resource_ids of this ResourceBundle. the ids of the resources in the Offer
Returns: The resource_ids of this ResourceBundle. Return type: list[str]
-
type
¶ Gets the type of this ResourceBundle. The type of resources in the bundle
Allowed values for this property are: “LISTING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this ResourceBundle. Return type: str
-
unit_of_measurement
¶ Gets the unit_of_measurement of this ResourceBundle. The unit of measurement for the resource bundle
Allowed values for this property are: “OCPU_PER_HOUR”, “INSTANCE_PER_HOUR”, “CREDITS”, “INSTANCES”, “NODES”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The unit_of_measurement of this ResourceBundle. Return type: str
-