ResourceSummary

class oci.usage.models.ResourceSummary(**kwargs)

Bases: object

The details of a resource under a service.

Attributes:

USAGE_DATA_TYPE_INTERVAL

A constant which can be used with the usage_data_type property of a ResourceSummary.

USAGE_DATA_TYPE_POINT_DATA

A constant which can be used with the usage_data_type property of a ResourceSummary.

child_resources

Gets the child_resources of this ResourceSummary.

daily_unit_display_name

Gets the daily_unit_display_name of this ResourceSummary.

description

Gets the description of this ResourceSummary.

hourly_unit_display_name

Gets the hourly_unit_display_name of this ResourceSummary.

instance_type

Gets the instance_type of this ResourceSummary.

is_purchased

Gets the is_purchased of this ResourceSummary.

name

Gets the name of this ResourceSummary.

raw_unit_display_name

Gets the raw_unit_display_name of this ResourceSummary.

servicename

Gets the servicename of this ResourceSummary.

skus

Gets the skus of this ResourceSummary.

usage_data_type

Gets the usage_data_type of this ResourceSummary.

Methods:

__init__(**kwargs)

Initializes a new ResourceSummary object with values from keyword arguments.

USAGE_DATA_TYPE_INTERVAL = 'INTERVAL'

A constant which can be used with the usage_data_type property of a ResourceSummary. This constant has a value of “INTERVAL”

USAGE_DATA_TYPE_POINT_DATA = 'POINT_DATA'

A constant which can be used with the usage_data_type property of a ResourceSummary. This constant has a value of “POINT_DATA”

__init__(**kwargs)

Initializes a new ResourceSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • daily_unit_display_name (str) – The value to assign to the daily_unit_display_name property of this ResourceSummary.

  • hourly_unit_display_name (str) – The value to assign to the hourly_unit_display_name property of this ResourceSummary.

  • raw_unit_display_name (str) – The value to assign to the raw_unit_display_name property of this ResourceSummary.

  • usage_data_type (str) – The value to assign to the usage_data_type property of this ResourceSummary. Allowed values for this property are: “INTERVAL”, “POINT_DATA”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • name (str) – The value to assign to the name property of this ResourceSummary.

  • servicename (str) – The value to assign to the servicename property of this ResourceSummary.

  • description (str) – The value to assign to the description property of this ResourceSummary.

  • instance_type (str) – The value to assign to the instance_type property of this ResourceSummary.

  • is_purchased (bool) – The value to assign to the is_purchased property of this ResourceSummary.

  • child_resources (list[str]) – The value to assign to the child_resources property of this ResourceSummary.

  • skus (list[oci.usage.models.SkuProducts]) – The value to assign to the skus property of this ResourceSummary.

property child_resources

Gets the child_resources of this ResourceSummary. The details of any child resources.

Returns

The child_resources of this ResourceSummary.

Return type

list[str]

property daily_unit_display_name

Gets the daily_unit_display_name of this ResourceSummary. Units to be used for daily aggregated data.

Returns

The daily_unit_display_name of this ResourceSummary.

Return type

str

property description

Gets the description of this ResourceSummary. Description of the resource.

Returns

The description of this ResourceSummary.

Return type

str

property hourly_unit_display_name

Gets the hourly_unit_display_name of this ResourceSummary. Units to be used for hourly aggregated data.

Returns

The hourly_unit_display_name of this ResourceSummary.

Return type

str

property instance_type

Gets the instance_type of this ResourceSummary. Instance type for the resource.

Returns

The instance_type of this ResourceSummary.

Return type

str

property is_purchased

Gets the is_purchased of this ResourceSummary. Indicates if the SKU was purchased

Returns

The is_purchased of this ResourceSummary.

Return type

bool

property name

Gets the name of this ResourceSummary. Name of the resource.

Returns

The name of this ResourceSummary.

Return type

str

property raw_unit_display_name

Gets the raw_unit_display_name of this ResourceSummary. Default units to use when unspecified.

Returns

The raw_unit_display_name of this ResourceSummary.

Return type

str

property servicename

Gets the servicename of this ResourceSummary. Name of the service.

Returns

The servicename of this ResourceSummary.

Return type

str

property skus

Gets the skus of this ResourceSummary. The details of resource Skus.

Returns

The skus of this ResourceSummary.

Return type

list[oci.usage.models.SkuProducts]

property usage_data_type

Gets the usage_data_type of this ResourceSummary. Usage data type of the resource.

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

Returns

The usage_data_type of this ResourceSummary.

Return type

str