File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/limits_increase/models/limits_increase_question_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: 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 LimitsIncreaseQuestionSummary(object): """ A summary of properties for a question to be asked for a certain limit. Example questions include database version for some limits in Autonomous AI Database or email domain for some limits in Email Delivery. For more information, see `Creating a Limit Increase Request`__. __ https://docs.oracle.com/iaas/Content/General/service-limits/create-request.htm """ #: A constant which can be used with the question_type property of a LimitsIncreaseQuestionSummary. #: This constant has a value of "TEXT" QUESTION_TYPE_TEXT = "TEXT" #: A constant which can be used with the question_type property of a LimitsIncreaseQuestionSummary. #: This constant has a value of "NUMBER" QUESTION_TYPE_NUMBER = "NUMBER" #: A constant which can be used with the question_type property of a LimitsIncreaseQuestionSummary. #: This constant has a value of "RADIO" QUESTION_TYPE_RADIO = "RADIO" #: A constant which can be used with the question_type property of a LimitsIncreaseQuestionSummary. #: This constant has a value of "CHECKBOX" QUESTION_TYPE_CHECKBOX = "CHECKBOX" def __init__(self, **kwargs): """ Initializes a new LimitsIncreaseQuestionSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this LimitsIncreaseQuestionSummary. :type id: str :param service: The value to assign to the service property of this LimitsIncreaseQuestionSummary. :type service: str :param limit_name: The value to assign to the limit_name property of this LimitsIncreaseQuestionSummary. :type limit_name: str :param question_text: The value to assign to the question_text property of this LimitsIncreaseQuestionSummary. :type question_text: str :param question_type: The value to assign to the question_type property of this LimitsIncreaseQuestionSummary. Allowed values for this property are: "TEXT", "NUMBER", "RADIO", "CHECKBOX", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type question_type: str :param options: The value to assign to the options property of this LimitsIncreaseQuestionSummary. :type options: dict(str, str) :param is_required: The value to assign to the is_required property of this LimitsIncreaseQuestionSummary. :type is_required: bool """ self.swagger_types = { 'id': 'str', 'service': 'str', 'limit_name': 'str', 'question_text': 'str', 'question_type': 'str', 'options': 'dict(str, str)', 'is_required': 'bool' } self.attribute_map = { 'id': 'id', 'service': 'service', 'limit_name': 'limitName', 'question_text': 'questionText', 'question_type': 'questionType', 'options': 'options', 'is_required': 'isRequired' } self._id = None self._service = None self._limit_name = None self._question_text = None self._question_type = None self._options = None self._is_required = None @property def id(self): """ **[Required]** Gets the id of this LimitsIncreaseQuestionSummary. The `OCID`__ of the question. __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The id of this LimitsIncreaseQuestionSummary. :rtype: str """ return self._id @id.setter def id(self, id): """ Sets the id of this LimitsIncreaseQuestionSummary. The `OCID`__ of the question. __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param id: The id of this LimitsIncreaseQuestionSummary. :type: str """ self._id = id @property def service(self): """ **[Required]** Gets the service of this LimitsIncreaseQuestionSummary. The name of the service for the question. :return: The service of this LimitsIncreaseQuestionSummary. :rtype: str """ return self._service @service.setter def service(self, service): """ Sets the service of this LimitsIncreaseQuestionSummary. The name of the service for the question. :param service: The service of this LimitsIncreaseQuestionSummary. :type: str """ self._service = service @property def limit_name(self): """ Gets the limit_name of this LimitsIncreaseQuestionSummary. The name of the limit for the question (empty if the question is for the service). :return: The limit_name of this LimitsIncreaseQuestionSummary. :rtype: str """ return self._limit_name @limit_name.setter def limit_name(self, limit_name): """ Sets the limit_name of this LimitsIncreaseQuestionSummary. The name of the limit for the question (empty if the question is for the service). :param limit_name: The limit_name of this LimitsIncreaseQuestionSummary. :type: str """ self._limit_name = limit_name @property def question_text(self): """ **[Required]** Gets the question_text of this LimitsIncreaseQuestionSummary. The text for the question. :return: The question_text of this LimitsIncreaseQuestionSummary. :rtype: str """ return self._question_text @question_text.setter def question_text(self, question_text): """ Sets the question_text of this LimitsIncreaseQuestionSummary. The text for the question. :param question_text: The question_text of this LimitsIncreaseQuestionSummary. :type: str """ self._question_text = question_text @property def question_type(self): """ **[Required]** Gets the question_type of this LimitsIncreaseQuestionSummary. The type of question. Allowed values for this property are: "TEXT", "NUMBER", "RADIO", "CHECKBOX", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The question_type of this LimitsIncreaseQuestionSummary. :rtype: str """ return self._question_type @question_type.setter def question_type(self, question_type): """ Sets the question_type of this LimitsIncreaseQuestionSummary. The type of question. :param question_type: The question_type of this LimitsIncreaseQuestionSummary. :type: str """ allowed_values = ["TEXT", "NUMBER", "RADIO", "CHECKBOX"] if not value_allowed_none_or_none_sentinel(question_type, allowed_values): question_type = 'UNKNOWN_ENUM_VALUE' self._question_type = question_type @property def options(self): """ Gets the options of this LimitsIncreaseQuestionSummary. Set options for the question. Applies to questions that aren't free text. :return: The options of this LimitsIncreaseQuestionSummary. :rtype: dict(str, str) """ return self._options @options.setter def options(self, options): """ Sets the options of this LimitsIncreaseQuestionSummary. Set options for the question. Applies to questions that aren't free text. :param options: The options of this LimitsIncreaseQuestionSummary. :type: dict(str, str) """ self._options = options @property def is_required(self): """ **[Required]** Gets the is_required of this LimitsIncreaseQuestionSummary. When `true`, requires an answer to the question. :return: The is_required of this LimitsIncreaseQuestionSummary. :rtype: bool """ return self._is_required @is_required.setter def is_required(self, is_required): """ Sets the is_required of this LimitsIncreaseQuestionSummary. When `true`, requires an answer to the question. :param is_required: The is_required of this LimitsIncreaseQuestionSummary. :type: bool """ self._is_required = is_required 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