File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/core/models/capacity_bin_preview.py
Back
# 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: 20160918 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 CapacityBinPreview(object): """ Total CPU and memory capacity for each capacity bucket. """ def __init__(self, **kwargs): """ Initializes a new CapacityBinPreview object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param capacity_index: The value to assign to the capacity_index property of this CapacityBinPreview. :type capacity_index: int :param total_ocpus: The value to assign to the total_ocpus property of this CapacityBinPreview. :type total_ocpus: float :param total_memory_in_gbs: The value to assign to the total_memory_in_gbs property of this CapacityBinPreview. :type total_memory_in_gbs: float :param supported_shapes: The value to assign to the supported_shapes property of this CapacityBinPreview. :type supported_shapes: list[str] """ self.swagger_types = { 'capacity_index': 'int', 'total_ocpus': 'float', 'total_memory_in_gbs': 'float', 'supported_shapes': 'list[str]' } self.attribute_map = { 'capacity_index': 'capacityIndex', 'total_ocpus': 'totalOcpus', 'total_memory_in_gbs': 'totalMemoryInGBs', 'supported_shapes': 'supportedShapes' } self._capacity_index = None self._total_ocpus = None self._total_memory_in_gbs = None self._supported_shapes = None @property def capacity_index(self): """ **[Required]** Gets the capacity_index of this CapacityBinPreview. Zero-based index for the corresponding capacity bucket. :return: The capacity_index of this CapacityBinPreview. :rtype: int """ return self._capacity_index @capacity_index.setter def capacity_index(self, capacity_index): """ Sets the capacity_index of this CapacityBinPreview. Zero-based index for the corresponding capacity bucket. :param capacity_index: The capacity_index of this CapacityBinPreview. :type: int """ self._capacity_index = capacity_index @property def total_ocpus(self): """ **[Required]** Gets the total_ocpus of this CapacityBinPreview. The total OCPUs of the capacity bucket. :return: The total_ocpus of this CapacityBinPreview. :rtype: float """ return self._total_ocpus @total_ocpus.setter def total_ocpus(self, total_ocpus): """ Sets the total_ocpus of this CapacityBinPreview. The total OCPUs of the capacity bucket. :param total_ocpus: The total_ocpus of this CapacityBinPreview. :type: float """ self._total_ocpus = total_ocpus @property def total_memory_in_gbs(self): """ **[Required]** Gets the total_memory_in_gbs of this CapacityBinPreview. The total memory of the capacity bucket, in GBs. :return: The total_memory_in_gbs of this CapacityBinPreview. :rtype: float """ return self._total_memory_in_gbs @total_memory_in_gbs.setter def total_memory_in_gbs(self, total_memory_in_gbs): """ Sets the total_memory_in_gbs of this CapacityBinPreview. The total memory of the capacity bucket, in GBs. :param total_memory_in_gbs: The total_memory_in_gbs of this CapacityBinPreview. :type: float """ self._total_memory_in_gbs = total_memory_in_gbs @property def supported_shapes(self): """ **[Required]** Gets the supported_shapes of this CapacityBinPreview. List of VMI shapes supported on each capacity bucket. :return: The supported_shapes of this CapacityBinPreview. :rtype: list[str] """ return self._supported_shapes @supported_shapes.setter def supported_shapes(self, supported_shapes): """ Sets the supported_shapes of this CapacityBinPreview. List of VMI shapes supported on each capacity bucket. :param supported_shapes: The supported_shapes of this CapacityBinPreview. :type: list[str] """ self._supported_shapes = supported_shapes 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
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings