TablespaceStorageSize

class oci.database_management.models.TablespaceStorageSize(**kwargs)

Bases: object

Storage size.

Attributes:

UNIT_BYTES

A constant which can be used with the unit property of a TablespaceStorageSize.

UNIT_GIGABYTES

A constant which can be used with the unit property of a TablespaceStorageSize.

UNIT_KILOBYTES

A constant which can be used with the unit property of a TablespaceStorageSize.

UNIT_MEGABYTES

A constant which can be used with the unit property of a TablespaceStorageSize.

UNIT_TERABYTES

A constant which can be used with the unit property of a TablespaceStorageSize.

size

[Required] Gets the size of this TablespaceStorageSize.

unit

Gets the unit of this TablespaceStorageSize.

Methods:

__init__(**kwargs)

Initializes a new TablespaceStorageSize object with values from keyword arguments.

UNIT_BYTES = 'BYTES'

A constant which can be used with the unit property of a TablespaceStorageSize. This constant has a value of “BYTES”

UNIT_GIGABYTES = 'GIGABYTES'

A constant which can be used with the unit property of a TablespaceStorageSize. This constant has a value of “GIGABYTES”

UNIT_KILOBYTES = 'KILOBYTES'

A constant which can be used with the unit property of a TablespaceStorageSize. This constant has a value of “KILOBYTES”

UNIT_MEGABYTES = 'MEGABYTES'

A constant which can be used with the unit property of a TablespaceStorageSize. This constant has a value of “MEGABYTES”

UNIT_TERABYTES = 'TERABYTES'

A constant which can be used with the unit property of a TablespaceStorageSize. This constant has a value of “TERABYTES”

__init__(**kwargs)

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

Parameters
  • size (float) – The value to assign to the size property of this TablespaceStorageSize.

  • unit (str) – The value to assign to the unit property of this TablespaceStorageSize. Allowed values for this property are: “BYTES”, “KILOBYTES”, “MEGABYTES”, “GIGABYTES”, “TERABYTES”

property size

[Required] Gets the size of this TablespaceStorageSize. Storage size number in bytes, kilobytes, megabytes, gigabytes, or terabytes.

Returns

The size of this TablespaceStorageSize.

Return type

float

property unit

Gets the unit of this TablespaceStorageSize. Storage size unit: bytes, kilobytes, megabytes, gigabytes, or terabytes.

Allowed values for this property are: “BYTES”, “KILOBYTES”, “MEGABYTES”, “GIGABYTES”, “TERABYTES”

Returns

The unit of this TablespaceStorageSize.

Return type

str