File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/ocvp/models/byol_realm_allocation_summary.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: 20230701 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 ByolRealmAllocationSummary(object): """ Represents a BYOL allocation for a specific region """ def __init__(self, **kwargs): """ Initializes a new ByolRealmAllocationSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param byol_id: The value to assign to the byol_id property of this ByolRealmAllocationSummary. :type byol_id: str :param region: The value to assign to the region property of this ByolRealmAllocationSummary. :type region: str :param compartment_id: The value to assign to the compartment_id property of this ByolRealmAllocationSummary. :type compartment_id: str :param allocated_units: The value to assign to the allocated_units property of this ByolRealmAllocationSummary. :type allocated_units: int :param time_created: The value to assign to the time_created property of this ByolRealmAllocationSummary. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this ByolRealmAllocationSummary. :type time_updated: datetime """ self.swagger_types = { 'byol_id': 'str', 'region': 'str', 'compartment_id': 'str', 'allocated_units': 'int', 'time_created': 'datetime', 'time_updated': 'datetime' } self.attribute_map = { 'byol_id': 'byolId', 'region': 'region', 'compartment_id': 'compartmentId', 'allocated_units': 'allocatedUnits', 'time_created': 'timeCreated', 'time_updated': 'timeUpdated' } self._byol_id = None self._region = None self._compartment_id = None self._allocated_units = None self._time_created = None self._time_updated = None @property def byol_id(self): """ **[Required]** Gets the byol_id of this ByolRealmAllocationSummary. The `OCID`__ of the BYOL resource from which this BYOL Allocation is derived. __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The byol_id of this ByolRealmAllocationSummary. :rtype: str """ return self._byol_id @byol_id.setter def byol_id(self, byol_id): """ Sets the byol_id of this ByolRealmAllocationSummary. The `OCID`__ of the BYOL resource from which this BYOL Allocation is derived. __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param byol_id: The byol_id of this ByolRealmAllocationSummary. :type: str """ self._byol_id = byol_id @property def region(self): """ **[Required]** Gets the region of this ByolRealmAllocationSummary. The region name for this allocation, in the format defined by `Region Identifier`__. Example: `ap-sydney-1` __ https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm :return: The region of this ByolRealmAllocationSummary. :rtype: str """ return self._region @region.setter def region(self, region): """ Sets the region of this ByolRealmAllocationSummary. The region name for this allocation, in the format defined by `Region Identifier`__. Example: `ap-sydney-1` __ https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm :param region: The region of this ByolRealmAllocationSummary. :type: str """ self._region = region @property def compartment_id(self): """ **[Required]** Gets the compartment_id of this ByolRealmAllocationSummary. The `OCID`__ of the compartment that contains the BYOL Allocation. __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this ByolRealmAllocationSummary. :rtype: str """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ Sets the compartment_id of this ByolRealmAllocationSummary. The `OCID`__ of the compartment that contains the BYOL Allocation. __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this ByolRealmAllocationSummary. :type: str """ self._compartment_id = compartment_id @property def allocated_units(self): """ **[Required]** Gets the allocated_units of this ByolRealmAllocationSummary. The quantity of licensed units that allocated to this region. :return: The allocated_units of this ByolRealmAllocationSummary. :rtype: int """ return self._allocated_units @allocated_units.setter def allocated_units(self, allocated_units): """ Sets the allocated_units of this ByolRealmAllocationSummary. The quantity of licensed units that allocated to this region. :param allocated_units: The allocated_units of this ByolRealmAllocationSummary. :type: int """ self._allocated_units = allocated_units @property def time_created(self): """ **[Required]** Gets the time_created of this ByolRealmAllocationSummary. The date and time the BYOL Allocation was created, in the format defined by `RFC3339`__. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :return: The time_created of this ByolRealmAllocationSummary. :rtype: datetime """ return self._time_created @time_created.setter def time_created(self, time_created): """ Sets the time_created of this ByolRealmAllocationSummary. The date and time the BYOL Allocation was created, in the format defined by `RFC3339`__. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :param time_created: The time_created of this ByolRealmAllocationSummary. :type: datetime """ self._time_created = time_created @property def time_updated(self): """ **[Required]** Gets the time_updated of this ByolRealmAllocationSummary. The date and time the BYOL Allocation was updated, in the format defined by `RFC3339`__. __ https://tools.ietf.org/html/rfc3339 :return: The time_updated of this ByolRealmAllocationSummary. :rtype: datetime """ return self._time_updated @time_updated.setter def time_updated(self, time_updated): """ Sets the time_updated of this ByolRealmAllocationSummary. The date and time the BYOL Allocation was updated, in the format defined by `RFC3339`__. __ https://tools.ietf.org/html/rfc3339 :param time_updated: The time_updated of this ByolRealmAllocationSummary. :type: datetime """ self._time_updated = time_updated 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