11# coding: utf-8
22
33"""
4- CRM Imports
4+ Imports
55
66 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
@@ -35,56 +35,53 @@ class ActionResponse(object):
3535 attribute_map (dict): The key is attribute name
3636 and the value is json key in definition.
3737 """
38- openapi_types = {"status " : "str " , "requested_at" : "datetime" , "started_at" : "datetime" , "completed_at " : "datetime " , "links " : "dict[ str, str] " }
38+ openapi_types = {"completed_at " : "datetime " , "requested_at" : "datetime" , "started_at" : "datetime" , "links " : "dict[str, str] " , "status " : "str" }
3939
40- attribute_map = {"status " : "status " , "requested_at" : "requestedAt" , "started_at" : "startedAt" , "completed_at " : "completedAt " , "links " : "links " }
40+ attribute_map = {"completed_at " : "completedAt " , "requested_at" : "requestedAt" , "started_at" : "startedAt" , "links " : "links " , "status " : "status " }
4141
42- def __init__ (self , status = None , requested_at = None , started_at = None , completed_at = None , links = None , local_vars_configuration = None ): # noqa: E501
42+ def __init__ (self , completed_at = None , requested_at = None , started_at = None , links = None , status = None , local_vars_configuration = None ): # noqa: E501
4343 """ActionResponse - a model defined in OpenAPI""" # noqa: E501
4444 if local_vars_configuration is None :
4545 local_vars_configuration = Configuration .get_default_copy ()
4646 self .local_vars_configuration = local_vars_configuration
4747
48- self ._status = None
48+ self ._completed_at = None
4949 self ._requested_at = None
5050 self ._started_at = None
51- self ._completed_at = None
5251 self ._links = None
52+ self ._status = None
5353 self .discriminator = None
5454
55- self .status = status
55+ self .completed_at = completed_at
5656 if requested_at is not None :
5757 self .requested_at = requested_at
5858 self .started_at = started_at
59- self .completed_at = completed_at
6059 if links is not None :
6160 self .links = links
61+ self .status = status
6262
6363 @property
64- def status (self ):
65- """Gets the status of this ActionResponse. # noqa: E501
64+ def completed_at (self ):
65+ """Gets the completed_at of this ActionResponse. # noqa: E501
6666
6767
68- :return: The status of this ActionResponse. # noqa: E501
69- :rtype: str
68+ :return: The completed_at of this ActionResponse. # noqa: E501
69+ :rtype: datetime
7070 """
71- return self ._status
71+ return self ._completed_at
7272
73- @status .setter
74- def status (self , status ):
75- """Sets the status of this ActionResponse.
73+ @completed_at .setter
74+ def completed_at (self , completed_at ):
75+ """Sets the completed_at of this ActionResponse.
7676
7777
78- :param status : The status of this ActionResponse. # noqa: E501
79- :type status: str
78+ :param completed_at : The completed_at of this ActionResponse. # noqa: E501
79+ :type completed_at: datetime
8080 """
81- if self .local_vars_configuration .client_side_validation and status is None : # noqa: E501
82- raise ValueError ("Invalid value for `status`, must not be `None`" ) # noqa: E501
83- allowed_values = ["PENDING" , "PROCESSING" , "CANCELED" , "COMPLETE" ] # noqa: E501
84- if self .local_vars_configuration .client_side_validation and status not in allowed_values : # noqa: E501
85- raise ValueError ("Invalid value for `status` ({0}), must be one of {1}" .format (status , allowed_values )) # noqa: E501
81+ if self .local_vars_configuration .client_side_validation and completed_at is None : # noqa: E501
82+ raise ValueError ("Invalid value for `completed_at`, must not be `None`" ) # noqa: E501
8683
87- self ._status = status
84+ self ._completed_at = completed_at
8885
8986 @property
9087 def requested_at (self ):
@@ -130,29 +127,6 @@ def started_at(self, started_at):
130127
131128 self ._started_at = started_at
132129
133- @property
134- def completed_at (self ):
135- """Gets the completed_at of this ActionResponse. # noqa: E501
136-
137-
138- :return: The completed_at of this ActionResponse. # noqa: E501
139- :rtype: datetime
140- """
141- return self ._completed_at
142-
143- @completed_at .setter
144- def completed_at (self , completed_at ):
145- """Sets the completed_at of this ActionResponse.
146-
147-
148- :param completed_at: The completed_at of this ActionResponse. # noqa: E501
149- :type completed_at: datetime
150- """
151- if self .local_vars_configuration .client_side_validation and completed_at is None : # noqa: E501
152- raise ValueError ("Invalid value for `completed_at`, must not be `None`" ) # noqa: E501
153-
154- self ._completed_at = completed_at
155-
156130 @property
157131 def links (self ):
158132 """Gets the links of this ActionResponse. # noqa: E501
@@ -174,6 +148,32 @@ def links(self, links):
174148
175149 self ._links = links
176150
151+ @property
152+ def status (self ):
153+ """Gets the status of this ActionResponse. # noqa: E501
154+
155+
156+ :return: The status of this ActionResponse. # noqa: E501
157+ :rtype: str
158+ """
159+ return self ._status
160+
161+ @status .setter
162+ def status (self , status ):
163+ """Sets the status of this ActionResponse.
164+
165+
166+ :param status: The status of this ActionResponse. # noqa: E501
167+ :type status: str
168+ """
169+ if self .local_vars_configuration .client_side_validation and status is None : # noqa: E501
170+ raise ValueError ("Invalid value for `status`, must not be `None`" ) # noqa: E501
171+ allowed_values = ["PENDING" , "PROCESSING" , "CANCELED" , "COMPLETE" ] # noqa: E501
172+ if self .local_vars_configuration .client_side_validation and status not in allowed_values : # noqa: E501
173+ raise ValueError ("Invalid value for `status` ({0}), must be one of {1}" .format (status , allowed_values )) # noqa: E501
174+
175+ self ._status = status
176+
177177 def to_dict (self , serialize = False ):
178178 """Returns the model properties as a dict"""
179179 result = {}
0 commit comments