# coding: utf-8
# Copyright (c) 2016, 2026, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20251101


from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class DiskGroupCapacityDetails(object):
    """
    Capacity details of the storage disk group.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new DiskGroupCapacityDetails object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param storage_type:
            The value to assign to the storage_type property of this DiskGroupCapacityDetails.
        :type storage_type: str

        :param total_space_in_gbs:
            The value to assign to the total_space_in_gbs property of this DiskGroupCapacityDetails.
        :type total_space_in_gbs: float

        :param reserved_space_in_gbs:
            The value to assign to the reserved_space_in_gbs property of this DiskGroupCapacityDetails.
        :type reserved_space_in_gbs: float

        :param free_space_in_gbs:
            The value to assign to the free_space_in_gbs property of this DiskGroupCapacityDetails.
        :type free_space_in_gbs: float

        """
        self.swagger_types = {
            'storage_type': 'str',
            'total_space_in_gbs': 'float',
            'reserved_space_in_gbs': 'float',
            'free_space_in_gbs': 'float'
        }
        self.attribute_map = {
            'storage_type': 'storageType',
            'total_space_in_gbs': 'totalSpaceInGbs',
            'reserved_space_in_gbs': 'reservedSpaceInGbs',
            'free_space_in_gbs': 'freeSpaceInGbs'
        }
        self._storage_type = None
        self._total_space_in_gbs = None
        self._reserved_space_in_gbs = None
        self._free_space_in_gbs = None

    @property
    def storage_type(self):
        """
        Gets the storage_type of this DiskGroupCapacityDetails.
        The storage type for the Cloud Database Infrastructure.


        :return: The storage_type of this DiskGroupCapacityDetails.
        :rtype: str
        """
        return self._storage_type

    @storage_type.setter
    def storage_type(self, storage_type):
        """
        Sets the storage_type of this DiskGroupCapacityDetails.
        The storage type for the Cloud Database Infrastructure.


        :param storage_type: The storage_type of this DiskGroupCapacityDetails.
        :type: str
        """
        self._storage_type = storage_type

    @property
    def total_space_in_gbs(self):
        """
        Gets the total_space_in_gbs of this DiskGroupCapacityDetails.
        The total amount of logical disk space available, in gigabytes (GB).


        :return: The total_space_in_gbs of this DiskGroupCapacityDetails.
        :rtype: float
        """
        return self._total_space_in_gbs

    @total_space_in_gbs.setter
    def total_space_in_gbs(self, total_space_in_gbs):
        """
        Sets the total_space_in_gbs of this DiskGroupCapacityDetails.
        The total amount of logical disk space available, in gigabytes (GB).


        :param total_space_in_gbs: The total_space_in_gbs of this DiskGroupCapacityDetails.
        :type: float
        """
        self._total_space_in_gbs = total_space_in_gbs

    @property
    def reserved_space_in_gbs(self):
        """
        Gets the reserved_space_in_gbs of this DiskGroupCapacityDetails.
        The total amount of logical disk space that is reserved for system use, in gigabytes (GB).


        :return: The reserved_space_in_gbs of this DiskGroupCapacityDetails.
        :rtype: float
        """
        return self._reserved_space_in_gbs

    @reserved_space_in_gbs.setter
    def reserved_space_in_gbs(self, reserved_space_in_gbs):
        """
        Sets the reserved_space_in_gbs of this DiskGroupCapacityDetails.
        The total amount of logical disk space that is reserved for system use, in gigabytes (GB).


        :param reserved_space_in_gbs: The reserved_space_in_gbs of this DiskGroupCapacityDetails.
        :type: float
        """
        self._reserved_space_in_gbs = reserved_space_in_gbs

    @property
    def free_space_in_gbs(self):
        """
        Gets the free_space_in_gbs of this DiskGroupCapacityDetails.
        The total amount of logical disk space that is currently available for use, in gigabytes (GB).


        :return: The free_space_in_gbs of this DiskGroupCapacityDetails.
        :rtype: float
        """
        return self._free_space_in_gbs

    @free_space_in_gbs.setter
    def free_space_in_gbs(self, free_space_in_gbs):
        """
        Sets the free_space_in_gbs of this DiskGroupCapacityDetails.
        The total amount of logical disk space that is currently available for use, in gigabytes (GB).


        :param free_space_in_gbs: The free_space_in_gbs of this DiskGroupCapacityDetails.
        :type: float
        """
        self._free_space_in_gbs = free_space_in_gbs

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other
