File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/governance_rules_control_plane/models/allowed_regions_template.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: 20220504 from .template import Template 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 AllowedRegionsTemplate(Template): """ Template for governance rules of type allowed regions (ALLOWED_REGIONS). """ def __init__(self, **kwargs): """ Initializes a new AllowedRegionsTemplate object with values from keyword arguments. The default value of the :py:attr:`~oci.governance_rules_control_plane.models.AllowedRegionsTemplate.type` attribute of this class is ``ALLOWED_REGIONS`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this AllowedRegionsTemplate. Allowed values for this property are: "QUOTA", "TAG", "ALLOWED_REGIONS" :type type: str :param display_name: The value to assign to the display_name property of this AllowedRegionsTemplate. :type display_name: str :param description: The value to assign to the description property of this AllowedRegionsTemplate. :type description: str :param regions: The value to assign to the regions property of this AllowedRegionsTemplate. :type regions: list[str] """ self.swagger_types = { 'type': 'str', 'display_name': 'str', 'description': 'str', 'regions': 'list[str]' } self.attribute_map = { 'type': 'type', 'display_name': 'displayName', 'description': 'description', 'regions': 'regions' } self._type = None self._display_name = None self._description = None self._regions = None self._type = 'ALLOWED_REGIONS' @property def display_name(self): """ **[Required]** Gets the display_name of this AllowedRegionsTemplate. Display name of the allowed region resource. :return: The display_name of this AllowedRegionsTemplate. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): """ Sets the display_name of this AllowedRegionsTemplate. Display name of the allowed region resource. :param display_name: The display_name of this AllowedRegionsTemplate. :type: str """ self._display_name = display_name @property def description(self): """ Gets the description of this AllowedRegionsTemplate. Description of the allowed region resource. :return: The description of this AllowedRegionsTemplate. :rtype: str """ return self._description @description.setter def description(self, description): """ Sets the description of this AllowedRegionsTemplate. Description of the allowed region resource. :param description: The description of this AllowedRegionsTemplate. :type: str """ self._description = description @property def regions(self): """ **[Required]** Gets the regions of this AllowedRegionsTemplate. List of allowed regions. :return: The regions of this AllowedRegionsTemplate. :rtype: list[str] """ return self._regions @regions.setter def regions(self, regions): """ Sets the regions of this AllowedRegionsTemplate. List of allowed regions. :param regions: The regions of this AllowedRegionsTemplate. :type: list[str] """ self._regions = regions 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