6 This is the initial REST API for RIC subscription # noqa: E501
8 OpenAPI spec version: 0.0.4
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
15 import re # noqa: F401
19 from ricxappframe.subsclient.configuration import Configuration
22 class SubsequentAction(object):
23 """NOTE: This class is auto generated by the swagger code generator program.
25 Do not edit the class manually.
30 swagger_types (dict): The key is attribute name
31 and the value is attribute type.
32 attribute_map (dict): The key is attribute name
33 and the value is json key in definition.
36 'subsequent_action_type': 'str',
41 'subsequent_action_type': 'SubsequentActionType',
42 'time_to_wait': 'TimeToWait'
45 def __init__(self, subsequent_action_type=None, time_to_wait=None, _configuration=None): # noqa: E501
46 """SubsequentAction - a model defined in Swagger""" # noqa: E501
47 if _configuration is None:
48 _configuration = Configuration()
49 self._configuration = _configuration
51 self._subsequent_action_type = None
52 self._time_to_wait = None
53 self.discriminator = None
55 self.subsequent_action_type = subsequent_action_type
56 self.time_to_wait = time_to_wait
59 def subsequent_action_type(self):
60 """Gets the subsequent_action_type of this SubsequentAction. # noqa: E501
63 :return: The subsequent_action_type of this SubsequentAction. # noqa: E501
66 return self._subsequent_action_type
68 @subsequent_action_type.setter
69 def subsequent_action_type(self, subsequent_action_type):
70 """Sets the subsequent_action_type of this SubsequentAction.
73 :param subsequent_action_type: The subsequent_action_type of this SubsequentAction. # noqa: E501
76 if self._configuration.client_side_validation and subsequent_action_type is None:
77 raise ValueError("Invalid value for `subsequent_action_type`, must not be `None`") # noqa: E501
78 allowed_values = ["continue", "wait"] # noqa: E501
79 if (self._configuration.client_side_validation and
80 subsequent_action_type not in allowed_values):
82 "Invalid value for `subsequent_action_type` ({0}), must be one of {1}" # noqa: E501
83 .format(subsequent_action_type, allowed_values)
86 self._subsequent_action_type = subsequent_action_type
89 def time_to_wait(self):
90 """Gets the time_to_wait of this SubsequentAction. # noqa: E501
93 :return: The time_to_wait of this SubsequentAction. # noqa: E501
96 return self._time_to_wait
99 def time_to_wait(self, time_to_wait):
100 """Sets the time_to_wait of this SubsequentAction.
103 :param time_to_wait: The time_to_wait of this SubsequentAction. # noqa: E501
106 if self._configuration.client_side_validation and time_to_wait is None:
107 raise ValueError("Invalid value for `time_to_wait`, must not be `None`") # noqa: E501
108 allowed_values = ["zero", "w1ms", "w2ms", "w5ms", "w10ms", "w20ms", "w30ms", "w40ms", "w50ms", "w100ms", "w200ms", "w500ms", "w1s", "w2s", "w5s", "w10s", "w20s", "w60s"] # noqa: E501
109 if (self._configuration.client_side_validation and
110 time_to_wait not in allowed_values):
112 "Invalid value for `time_to_wait` ({0}), must be one of {1}" # noqa: E501
113 .format(time_to_wait, allowed_values)
116 self._time_to_wait = time_to_wait
119 """Returns the model properties as a dict"""
122 for attr, _ in six.iteritems(self.swagger_types):
123 value = getattr(self, attr)
124 if isinstance(value, list):
125 result[attr] = list(map(
126 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
129 elif hasattr(value, "to_dict"):
130 result[attr] = value.to_dict()
131 elif isinstance(value, dict):
132 result[attr] = dict(map(
133 lambda item: (item[0], item[1].to_dict())
134 if hasattr(item[1], "to_dict") else item,
139 if issubclass(SubsequentAction, dict):
140 for key, value in self.items():
146 """Returns the string representation of the model"""
147 return pprint.pformat(self.to_dict())
150 """For `print` and `pprint`"""
153 def __eq__(self, other):
154 """Returns true if both objects are equal"""
155 if not isinstance(other, SubsequentAction):
158 return self.to_dict() == other.to_dict()
160 def __ne__(self, other):
161 """Returns true if both objects are not equal"""
162 if not isinstance(other, SubsequentAction):
165 return self.to_dict() != other.to_dict()