ResourceCount¶
-
class
oci.optimizer.models.
ResourceCount
(**kwargs)¶ Bases:
object
The count of resources in a category, grouped by status.
Attributes
STATUS_DISMISSED
A constant which can be used with the status property of a ResourceCount. STATUS_IMPLEMENTED
A constant which can be used with the status property of a ResourceCount. STATUS_PENDING
A constant which can be used with the status property of a ResourceCount. STATUS_POSTPONED
A constant which can be used with the status property of a ResourceCount. count
[Required] Gets the count of this ResourceCount. status
[Required] Gets the status of this ResourceCount. Methods
__init__
(**kwargs)Initializes a new ResourceCount object with values from keyword arguments. -
STATUS_DISMISSED
= 'DISMISSED'¶ A constant which can be used with the status property of a ResourceCount. This constant has a value of “DISMISSED”
-
STATUS_IMPLEMENTED
= 'IMPLEMENTED'¶ A constant which can be used with the status property of a ResourceCount. This constant has a value of “IMPLEMENTED”
-
STATUS_PENDING
= 'PENDING'¶ A constant which can be used with the status property of a ResourceCount. This constant has a value of “PENDING”
-
STATUS_POSTPONED
= 'POSTPONED'¶ A constant which can be used with the status property of a ResourceCount. This constant has a value of “POSTPONED”
-
__init__
(**kwargs)¶ Initializes a new ResourceCount object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - status (str) – The value to assign to the status property of this ResourceCount. Allowed values for this property are: “PENDING”, “DISMISSED”, “POSTPONED”, “IMPLEMENTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- count (int) – The value to assign to the count property of this ResourceCount.
-
count
¶ [Required] Gets the count of this ResourceCount. The count of resources.
Returns: The count of this ResourceCount. Return type: int
-
status
¶ [Required] Gets the status of this ResourceCount. The recommendation status of the resource.
Allowed values for this property are: “PENDING”, “DISMISSED”, “POSTPONED”, “IMPLEMENTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The status of this ResourceCount. Return type: str
-