anyscale 0.26.22__py3-none-any.whl → 0.26.24__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/_private/anyscale_client/anyscale_client.py +1 -1
- anyscale/_private/anyscale_client/common.py +1 -1
- anyscale/_private/docgen/__main__.py +0 -8
- anyscale/_private/docgen/models.md +41 -184
- anyscale/_private/workload/workload_config.py +1 -1
- anyscale/client/README.md +2 -35
- anyscale/client/openapi_client/__init__.py +2 -21
- anyscale/client/openapi_client/api/default_api.py +275 -1868
- anyscale/client/openapi_client/models/__init__.py +2 -21
- anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
- anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
- anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
- anyscale/client/openapi_client/models/cloud_providers.py +2 -1
- anyscale/client/openapi_client/models/compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
- anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
- anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/decorated_session.py +31 -3
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
- anyscale/cluster_compute.py +4 -4
- anyscale/commands/anyscale_api/sessions_commands.py +1 -70
- anyscale/commands/cloud_commands.py +5 -4
- anyscale/commands/image_commands.py +2 -2
- anyscale/commands/job_commands.py +1 -1
- anyscale/commands/service_commands.py +1 -1
- anyscale/commands/workspace_commands_v2.py +1 -1
- anyscale/connect_utils/prepare_cluster.py +1 -3
- anyscale/controllers/cloud_controller.py +12 -6
- anyscale/controllers/cloud_functional_verification_controller.py +2 -2
- anyscale/image/commands.py +1 -1
- anyscale/sdk/anyscale_client/__init__.py +2 -15
- anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
- anyscale/sdk/anyscale_client/models/__init__.py +2 -15
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
- anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
- anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
- anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
- anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
- anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
- anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
- anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
- anyscale/sdk/anyscale_client/models/session.py +31 -3
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/models.py +1 -1
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/METADATA +1 -1
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/RECORD +58 -90
- anyscale/client/openapi_client/models/bank_account_information.py +0 -239
- anyscale/client/openapi_client/models/billing_information.py +0 -181
- anyscale/client/openapi_client/models/credit_card_information.py +0 -268
- anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
- anyscale/client/openapi_client/models/invoice.py +0 -413
- anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
- anyscale/client/openapi_client/models/invoice_status.py +0 -102
- anyscale/client/openapi_client/models/invoices_query.py +0 -150
- anyscale/client/openapi_client/models/log_stream.py +0 -151
- anyscale/client/openapi_client/models/logstream_response.py +0 -121
- anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
- anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
- anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
- anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
- anyscale/client/openapi_client/models/product_type.py +0 -100
- anyscale/client/openapi_client/models/service_usage.py +0 -353
- anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
- anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
- anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
- anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
- anyscale/client/openapi_client/models/write_session.py +0 -147
- anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
- anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
- anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
- anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/create_build.py +0 -263
- anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
- anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
- anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
- anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
- anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
- anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
- anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
- anyscale/sdk/anyscale_client/models/update_session.py +0 -150
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/LICENSE +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/NOTICE +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/WHEEL +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/top_level.txt +0 -0
@@ -1,121 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Managed Ray API
|
5
|
-
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: 0.1.0
|
9
|
-
Generated by: https://openapi-generator.tech
|
10
|
-
"""
|
11
|
-
|
12
|
-
|
13
|
-
import pprint
|
14
|
-
import re # noqa: F401
|
15
|
-
|
16
|
-
import six
|
17
|
-
|
18
|
-
from openapi_client.configuration import Configuration
|
19
|
-
|
20
|
-
|
21
|
-
class DecoratedunifiedjobResponse(object):
|
22
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
-
Ref: https://openapi-generator.tech
|
24
|
-
|
25
|
-
Do not edit the class manually.
|
26
|
-
"""
|
27
|
-
|
28
|
-
"""
|
29
|
-
Attributes:
|
30
|
-
openapi_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.
|
34
|
-
"""
|
35
|
-
openapi_types = {
|
36
|
-
'result': 'DecoratedUnifiedJob'
|
37
|
-
}
|
38
|
-
|
39
|
-
attribute_map = {
|
40
|
-
'result': 'result'
|
41
|
-
}
|
42
|
-
|
43
|
-
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""DecoratedunifiedjobResponse - a model defined in OpenAPI""" # noqa: E501
|
45
|
-
if local_vars_configuration is None:
|
46
|
-
local_vars_configuration = Configuration()
|
47
|
-
self.local_vars_configuration = local_vars_configuration
|
48
|
-
|
49
|
-
self._result = None
|
50
|
-
self.discriminator = None
|
51
|
-
|
52
|
-
self.result = result
|
53
|
-
|
54
|
-
@property
|
55
|
-
def result(self):
|
56
|
-
"""Gets the result of this DecoratedunifiedjobResponse. # noqa: E501
|
57
|
-
|
58
|
-
|
59
|
-
:return: The result of this DecoratedunifiedjobResponse. # noqa: E501
|
60
|
-
:rtype: DecoratedUnifiedJob
|
61
|
-
"""
|
62
|
-
return self._result
|
63
|
-
|
64
|
-
@result.setter
|
65
|
-
def result(self, result):
|
66
|
-
"""Sets the result of this DecoratedunifiedjobResponse.
|
67
|
-
|
68
|
-
|
69
|
-
:param result: The result of this DecoratedunifiedjobResponse. # noqa: E501
|
70
|
-
:type: DecoratedUnifiedJob
|
71
|
-
"""
|
72
|
-
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
73
|
-
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
74
|
-
|
75
|
-
self._result = result
|
76
|
-
|
77
|
-
def to_dict(self):
|
78
|
-
"""Returns the model properties as a dict"""
|
79
|
-
result = {}
|
80
|
-
|
81
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
82
|
-
value = getattr(self, attr)
|
83
|
-
if isinstance(value, list):
|
84
|
-
result[attr] = list(map(
|
85
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
86
|
-
value
|
87
|
-
))
|
88
|
-
elif hasattr(value, "to_dict"):
|
89
|
-
result[attr] = value.to_dict()
|
90
|
-
elif isinstance(value, dict):
|
91
|
-
result[attr] = dict(map(
|
92
|
-
lambda item: (item[0], item[1].to_dict())
|
93
|
-
if hasattr(item[1], "to_dict") else item,
|
94
|
-
value.items()
|
95
|
-
))
|
96
|
-
else:
|
97
|
-
result[attr] = value
|
98
|
-
|
99
|
-
return result
|
100
|
-
|
101
|
-
def to_str(self):
|
102
|
-
"""Returns the string representation of the model"""
|
103
|
-
return pprint.pformat(self.to_dict())
|
104
|
-
|
105
|
-
def __repr__(self):
|
106
|
-
"""For `print` and `pprint`"""
|
107
|
-
return self.to_str()
|
108
|
-
|
109
|
-
def __eq__(self, other):
|
110
|
-
"""Returns true if both objects are equal"""
|
111
|
-
if not isinstance(other, DecoratedunifiedjobResponse):
|
112
|
-
return False
|
113
|
-
|
114
|
-
return self.to_dict() == other.to_dict()
|
115
|
-
|
116
|
-
def __ne__(self, other):
|
117
|
-
"""Returns true if both objects are not equal"""
|
118
|
-
if not isinstance(other, DecoratedunifiedjobResponse):
|
119
|
-
return True
|
120
|
-
|
121
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,413 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Managed Ray API
|
5
|
-
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: 0.1.0
|
9
|
-
Generated by: https://openapi-generator.tech
|
10
|
-
"""
|
11
|
-
|
12
|
-
|
13
|
-
import pprint
|
14
|
-
import re # noqa: F401
|
15
|
-
|
16
|
-
import six
|
17
|
-
|
18
|
-
from openapi_client.configuration import Configuration
|
19
|
-
|
20
|
-
|
21
|
-
class Invoice(object):
|
22
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
-
Ref: https://openapi-generator.tech
|
24
|
-
|
25
|
-
Do not edit the class manually.
|
26
|
-
"""
|
27
|
-
|
28
|
-
"""
|
29
|
-
Attributes:
|
30
|
-
openapi_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.
|
34
|
-
"""
|
35
|
-
openapi_types = {
|
36
|
-
'id': 'str',
|
37
|
-
'payment_url': 'str',
|
38
|
-
'pdf_url': 'str',
|
39
|
-
'due_date': 'datetime',
|
40
|
-
'status': 'InvoiceStatus',
|
41
|
-
'show_payment_link': 'bool',
|
42
|
-
'outstanding_due_amount': 'int',
|
43
|
-
'total_amount': 'int',
|
44
|
-
'product_type': 'ProductType',
|
45
|
-
'period_start_date': 'datetime',
|
46
|
-
'period_end_date': 'datetime'
|
47
|
-
}
|
48
|
-
|
49
|
-
attribute_map = {
|
50
|
-
'id': 'id',
|
51
|
-
'payment_url': 'payment_url',
|
52
|
-
'pdf_url': 'pdf_url',
|
53
|
-
'due_date': 'due_date',
|
54
|
-
'status': 'status',
|
55
|
-
'show_payment_link': 'show_payment_link',
|
56
|
-
'outstanding_due_amount': 'outstanding_due_amount',
|
57
|
-
'total_amount': 'total_amount',
|
58
|
-
'product_type': 'product_type',
|
59
|
-
'period_start_date': 'period_start_date',
|
60
|
-
'period_end_date': 'period_end_date'
|
61
|
-
}
|
62
|
-
|
63
|
-
def __init__(self, id=None, payment_url=None, pdf_url=None, due_date=None, status=None, show_payment_link=None, outstanding_due_amount=None, total_amount=None, product_type=None, period_start_date=None, period_end_date=None, local_vars_configuration=None): # noqa: E501
|
64
|
-
"""Invoice - a model defined in OpenAPI""" # noqa: E501
|
65
|
-
if local_vars_configuration is None:
|
66
|
-
local_vars_configuration = Configuration()
|
67
|
-
self.local_vars_configuration = local_vars_configuration
|
68
|
-
|
69
|
-
self._id = None
|
70
|
-
self._payment_url = None
|
71
|
-
self._pdf_url = None
|
72
|
-
self._due_date = None
|
73
|
-
self._status = None
|
74
|
-
self._show_payment_link = None
|
75
|
-
self._outstanding_due_amount = None
|
76
|
-
self._total_amount = None
|
77
|
-
self._product_type = None
|
78
|
-
self._period_start_date = None
|
79
|
-
self._period_end_date = None
|
80
|
-
self.discriminator = None
|
81
|
-
|
82
|
-
self.id = id
|
83
|
-
self.payment_url = payment_url
|
84
|
-
self.pdf_url = pdf_url
|
85
|
-
self.due_date = due_date
|
86
|
-
self.status = status
|
87
|
-
self.show_payment_link = show_payment_link
|
88
|
-
self.outstanding_due_amount = outstanding_due_amount
|
89
|
-
self.total_amount = total_amount
|
90
|
-
self.product_type = product_type
|
91
|
-
self.period_start_date = period_start_date
|
92
|
-
self.period_end_date = period_end_date
|
93
|
-
|
94
|
-
@property
|
95
|
-
def id(self):
|
96
|
-
"""Gets the id of this Invoice. # noqa: E501
|
97
|
-
|
98
|
-
ID of invoice from Chargify. # noqa: E501
|
99
|
-
|
100
|
-
:return: The id of this Invoice. # noqa: E501
|
101
|
-
:rtype: str
|
102
|
-
"""
|
103
|
-
return self._id
|
104
|
-
|
105
|
-
@id.setter
|
106
|
-
def id(self, id):
|
107
|
-
"""Sets the id of this Invoice.
|
108
|
-
|
109
|
-
ID of invoice from Chargify. # noqa: E501
|
110
|
-
|
111
|
-
:param id: The id of this Invoice. # noqa: E501
|
112
|
-
:type: str
|
113
|
-
"""
|
114
|
-
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
115
|
-
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
116
|
-
|
117
|
-
self._id = id
|
118
|
-
|
119
|
-
@property
|
120
|
-
def payment_url(self):
|
121
|
-
"""Gets the payment_url of this Invoice. # noqa: E501
|
122
|
-
|
123
|
-
URL to pay invoice. # noqa: E501
|
124
|
-
|
125
|
-
:return: The payment_url of this Invoice. # noqa: E501
|
126
|
-
:rtype: str
|
127
|
-
"""
|
128
|
-
return self._payment_url
|
129
|
-
|
130
|
-
@payment_url.setter
|
131
|
-
def payment_url(self, payment_url):
|
132
|
-
"""Sets the payment_url of this Invoice.
|
133
|
-
|
134
|
-
URL to pay invoice. # noqa: E501
|
135
|
-
|
136
|
-
:param payment_url: The payment_url of this Invoice. # noqa: E501
|
137
|
-
:type: str
|
138
|
-
"""
|
139
|
-
if self.local_vars_configuration.client_side_validation and payment_url is None: # noqa: E501
|
140
|
-
raise ValueError("Invalid value for `payment_url`, must not be `None`") # noqa: E501
|
141
|
-
|
142
|
-
self._payment_url = payment_url
|
143
|
-
|
144
|
-
@property
|
145
|
-
def pdf_url(self):
|
146
|
-
"""Gets the pdf_url of this Invoice. # noqa: E501
|
147
|
-
|
148
|
-
URL to view pdf of invoice. # noqa: E501
|
149
|
-
|
150
|
-
:return: The pdf_url of this Invoice. # noqa: E501
|
151
|
-
:rtype: str
|
152
|
-
"""
|
153
|
-
return self._pdf_url
|
154
|
-
|
155
|
-
@pdf_url.setter
|
156
|
-
def pdf_url(self, pdf_url):
|
157
|
-
"""Sets the pdf_url of this Invoice.
|
158
|
-
|
159
|
-
URL to view pdf of invoice. # noqa: E501
|
160
|
-
|
161
|
-
:param pdf_url: The pdf_url of this Invoice. # noqa: E501
|
162
|
-
:type: str
|
163
|
-
"""
|
164
|
-
if self.local_vars_configuration.client_side_validation and pdf_url is None: # noqa: E501
|
165
|
-
raise ValueError("Invalid value for `pdf_url`, must not be `None`") # noqa: E501
|
166
|
-
|
167
|
-
self._pdf_url = pdf_url
|
168
|
-
|
169
|
-
@property
|
170
|
-
def due_date(self):
|
171
|
-
"""Gets the due_date of this Invoice. # noqa: E501
|
172
|
-
|
173
|
-
Date invoice is due. # noqa: E501
|
174
|
-
|
175
|
-
:return: The due_date of this Invoice. # noqa: E501
|
176
|
-
:rtype: datetime
|
177
|
-
"""
|
178
|
-
return self._due_date
|
179
|
-
|
180
|
-
@due_date.setter
|
181
|
-
def due_date(self, due_date):
|
182
|
-
"""Sets the due_date of this Invoice.
|
183
|
-
|
184
|
-
Date invoice is due. # noqa: E501
|
185
|
-
|
186
|
-
:param due_date: The due_date of this Invoice. # noqa: E501
|
187
|
-
:type: datetime
|
188
|
-
"""
|
189
|
-
if self.local_vars_configuration.client_side_validation and due_date is None: # noqa: E501
|
190
|
-
raise ValueError("Invalid value for `due_date`, must not be `None`") # noqa: E501
|
191
|
-
|
192
|
-
self._due_date = due_date
|
193
|
-
|
194
|
-
@property
|
195
|
-
def status(self):
|
196
|
-
"""Gets the status of this Invoice. # noqa: E501
|
197
|
-
|
198
|
-
Status of invoice payment. # noqa: E501
|
199
|
-
|
200
|
-
:return: The status of this Invoice. # noqa: E501
|
201
|
-
:rtype: InvoiceStatus
|
202
|
-
"""
|
203
|
-
return self._status
|
204
|
-
|
205
|
-
@status.setter
|
206
|
-
def status(self, status):
|
207
|
-
"""Sets the status of this Invoice.
|
208
|
-
|
209
|
-
Status of invoice payment. # noqa: E501
|
210
|
-
|
211
|
-
:param status: The status of this Invoice. # noqa: E501
|
212
|
-
:type: InvoiceStatus
|
213
|
-
"""
|
214
|
-
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
|
215
|
-
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
216
|
-
|
217
|
-
self._status = status
|
218
|
-
|
219
|
-
@property
|
220
|
-
def show_payment_link(self):
|
221
|
-
"""Gets the show_payment_link of this Invoice. # noqa: E501
|
222
|
-
|
223
|
-
Show link to pay invoice if invoice is open and payment information is already provided. # noqa: E501
|
224
|
-
|
225
|
-
:return: The show_payment_link of this Invoice. # noqa: E501
|
226
|
-
:rtype: bool
|
227
|
-
"""
|
228
|
-
return self._show_payment_link
|
229
|
-
|
230
|
-
@show_payment_link.setter
|
231
|
-
def show_payment_link(self, show_payment_link):
|
232
|
-
"""Sets the show_payment_link of this Invoice.
|
233
|
-
|
234
|
-
Show link to pay invoice if invoice is open and payment information is already provided. # noqa: E501
|
235
|
-
|
236
|
-
:param show_payment_link: The show_payment_link of this Invoice. # noqa: E501
|
237
|
-
:type: bool
|
238
|
-
"""
|
239
|
-
if self.local_vars_configuration.client_side_validation and show_payment_link is None: # noqa: E501
|
240
|
-
raise ValueError("Invalid value for `show_payment_link`, must not be `None`") # noqa: E501
|
241
|
-
|
242
|
-
self._show_payment_link = show_payment_link
|
243
|
-
|
244
|
-
@property
|
245
|
-
def outstanding_due_amount(self):
|
246
|
-
"""Gets the outstanding_due_amount of this Invoice. # noqa: E501
|
247
|
-
|
248
|
-
Amount that still needs to be paid on the invoice in cents. # noqa: E501
|
249
|
-
|
250
|
-
:return: The outstanding_due_amount of this Invoice. # noqa: E501
|
251
|
-
:rtype: int
|
252
|
-
"""
|
253
|
-
return self._outstanding_due_amount
|
254
|
-
|
255
|
-
@outstanding_due_amount.setter
|
256
|
-
def outstanding_due_amount(self, outstanding_due_amount):
|
257
|
-
"""Sets the outstanding_due_amount of this Invoice.
|
258
|
-
|
259
|
-
Amount that still needs to be paid on the invoice in cents. # noqa: E501
|
260
|
-
|
261
|
-
:param outstanding_due_amount: The outstanding_due_amount of this Invoice. # noqa: E501
|
262
|
-
:type: int
|
263
|
-
"""
|
264
|
-
if self.local_vars_configuration.client_side_validation and outstanding_due_amount is None: # noqa: E501
|
265
|
-
raise ValueError("Invalid value for `outstanding_due_amount`, must not be `None`") # noqa: E501
|
266
|
-
|
267
|
-
self._outstanding_due_amount = outstanding_due_amount
|
268
|
-
|
269
|
-
@property
|
270
|
-
def total_amount(self):
|
271
|
-
"""Gets the total_amount of this Invoice. # noqa: E501
|
272
|
-
|
273
|
-
Original invoice total amount due in cents. # noqa: E501
|
274
|
-
|
275
|
-
:return: The total_amount of this Invoice. # noqa: E501
|
276
|
-
:rtype: int
|
277
|
-
"""
|
278
|
-
return self._total_amount
|
279
|
-
|
280
|
-
@total_amount.setter
|
281
|
-
def total_amount(self, total_amount):
|
282
|
-
"""Sets the total_amount of this Invoice.
|
283
|
-
|
284
|
-
Original invoice total amount due in cents. # noqa: E501
|
285
|
-
|
286
|
-
:param total_amount: The total_amount of this Invoice. # noqa: E501
|
287
|
-
:type: int
|
288
|
-
"""
|
289
|
-
if self.local_vars_configuration.client_side_validation and total_amount is None: # noqa: E501
|
290
|
-
raise ValueError("Invalid value for `total_amount`, must not be `None`") # noqa: E501
|
291
|
-
|
292
|
-
self._total_amount = total_amount
|
293
|
-
|
294
|
-
@property
|
295
|
-
def product_type(self):
|
296
|
-
"""Gets the product_type of this Invoice. # noqa: E501
|
297
|
-
|
298
|
-
Type of product this invoice is for. # noqa: E501
|
299
|
-
|
300
|
-
:return: The product_type of this Invoice. # noqa: E501
|
301
|
-
:rtype: ProductType
|
302
|
-
"""
|
303
|
-
return self._product_type
|
304
|
-
|
305
|
-
@product_type.setter
|
306
|
-
def product_type(self, product_type):
|
307
|
-
"""Sets the product_type of this Invoice.
|
308
|
-
|
309
|
-
Type of product this invoice is for. # noqa: E501
|
310
|
-
|
311
|
-
:param product_type: The product_type of this Invoice. # noqa: E501
|
312
|
-
:type: ProductType
|
313
|
-
"""
|
314
|
-
if self.local_vars_configuration.client_side_validation and product_type is None: # noqa: E501
|
315
|
-
raise ValueError("Invalid value for `product_type`, must not be `None`") # noqa: E501
|
316
|
-
|
317
|
-
self._product_type = product_type
|
318
|
-
|
319
|
-
@property
|
320
|
-
def period_start_date(self):
|
321
|
-
"""Gets the period_start_date of this Invoice. # noqa: E501
|
322
|
-
|
323
|
-
Start date for the invoice. # noqa: E501
|
324
|
-
|
325
|
-
:return: The period_start_date of this Invoice. # noqa: E501
|
326
|
-
:rtype: datetime
|
327
|
-
"""
|
328
|
-
return self._period_start_date
|
329
|
-
|
330
|
-
@period_start_date.setter
|
331
|
-
def period_start_date(self, period_start_date):
|
332
|
-
"""Sets the period_start_date of this Invoice.
|
333
|
-
|
334
|
-
Start date for the invoice. # noqa: E501
|
335
|
-
|
336
|
-
:param period_start_date: The period_start_date of this Invoice. # noqa: E501
|
337
|
-
:type: datetime
|
338
|
-
"""
|
339
|
-
if self.local_vars_configuration.client_side_validation and period_start_date is None: # noqa: E501
|
340
|
-
raise ValueError("Invalid value for `period_start_date`, must not be `None`") # noqa: E501
|
341
|
-
|
342
|
-
self._period_start_date = period_start_date
|
343
|
-
|
344
|
-
@property
|
345
|
-
def period_end_date(self):
|
346
|
-
"""Gets the period_end_date of this Invoice. # noqa: E501
|
347
|
-
|
348
|
-
End date for the invoice. # noqa: E501
|
349
|
-
|
350
|
-
:return: The period_end_date of this Invoice. # noqa: E501
|
351
|
-
:rtype: datetime
|
352
|
-
"""
|
353
|
-
return self._period_end_date
|
354
|
-
|
355
|
-
@period_end_date.setter
|
356
|
-
def period_end_date(self, period_end_date):
|
357
|
-
"""Sets the period_end_date of this Invoice.
|
358
|
-
|
359
|
-
End date for the invoice. # noqa: E501
|
360
|
-
|
361
|
-
:param period_end_date: The period_end_date of this Invoice. # noqa: E501
|
362
|
-
:type: datetime
|
363
|
-
"""
|
364
|
-
if self.local_vars_configuration.client_side_validation and period_end_date is None: # noqa: E501
|
365
|
-
raise ValueError("Invalid value for `period_end_date`, must not be `None`") # noqa: E501
|
366
|
-
|
367
|
-
self._period_end_date = period_end_date
|
368
|
-
|
369
|
-
def to_dict(self):
|
370
|
-
"""Returns the model properties as a dict"""
|
371
|
-
result = {}
|
372
|
-
|
373
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
374
|
-
value = getattr(self, attr)
|
375
|
-
if isinstance(value, list):
|
376
|
-
result[attr] = list(map(
|
377
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
378
|
-
value
|
379
|
-
))
|
380
|
-
elif hasattr(value, "to_dict"):
|
381
|
-
result[attr] = value.to_dict()
|
382
|
-
elif isinstance(value, dict):
|
383
|
-
result[attr] = dict(map(
|
384
|
-
lambda item: (item[0], item[1].to_dict())
|
385
|
-
if hasattr(item[1], "to_dict") else item,
|
386
|
-
value.items()
|
387
|
-
))
|
388
|
-
else:
|
389
|
-
result[attr] = value
|
390
|
-
|
391
|
-
return result
|
392
|
-
|
393
|
-
def to_str(self):
|
394
|
-
"""Returns the string representation of the model"""
|
395
|
-
return pprint.pformat(self.to_dict())
|
396
|
-
|
397
|
-
def __repr__(self):
|
398
|
-
"""For `print` and `pprint`"""
|
399
|
-
return self.to_str()
|
400
|
-
|
401
|
-
def __eq__(self, other):
|
402
|
-
"""Returns true if both objects are equal"""
|
403
|
-
if not isinstance(other, Invoice):
|
404
|
-
return False
|
405
|
-
|
406
|
-
return self.to_dict() == other.to_dict()
|
407
|
-
|
408
|
-
def __ne__(self, other):
|
409
|
-
"""Returns true if both objects are not equal"""
|
410
|
-
if not isinstance(other, Invoice):
|
411
|
-
return True
|
412
|
-
|
413
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,147 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Managed Ray API
|
5
|
-
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: 0.1.0
|
9
|
-
Generated by: https://openapi-generator.tech
|
10
|
-
"""
|
11
|
-
|
12
|
-
|
13
|
-
import pprint
|
14
|
-
import re # noqa: F401
|
15
|
-
|
16
|
-
import six
|
17
|
-
|
18
|
-
from openapi_client.configuration import Configuration
|
19
|
-
|
20
|
-
|
21
|
-
class InvoiceListResponse(object):
|
22
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
-
Ref: https://openapi-generator.tech
|
24
|
-
|
25
|
-
Do not edit the class manually.
|
26
|
-
"""
|
27
|
-
|
28
|
-
"""
|
29
|
-
Attributes:
|
30
|
-
openapi_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.
|
34
|
-
"""
|
35
|
-
openapi_types = {
|
36
|
-
'results': 'list[Invoice]',
|
37
|
-
'metadata': 'ListResponseMetadata'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'results': 'results',
|
42
|
-
'metadata': 'metadata'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""InvoiceListResponse - a model defined in OpenAPI""" # noqa: E501
|
47
|
-
if local_vars_configuration is None:
|
48
|
-
local_vars_configuration = Configuration()
|
49
|
-
self.local_vars_configuration = local_vars_configuration
|
50
|
-
|
51
|
-
self._results = None
|
52
|
-
self._metadata = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.results = results
|
56
|
-
if metadata is not None:
|
57
|
-
self.metadata = metadata
|
58
|
-
|
59
|
-
@property
|
60
|
-
def results(self):
|
61
|
-
"""Gets the results of this InvoiceListResponse. # noqa: E501
|
62
|
-
|
63
|
-
|
64
|
-
:return: The results of this InvoiceListResponse. # noqa: E501
|
65
|
-
:rtype: list[Invoice]
|
66
|
-
"""
|
67
|
-
return self._results
|
68
|
-
|
69
|
-
@results.setter
|
70
|
-
def results(self, results):
|
71
|
-
"""Sets the results of this InvoiceListResponse.
|
72
|
-
|
73
|
-
|
74
|
-
:param results: The results of this InvoiceListResponse. # noqa: E501
|
75
|
-
:type: list[Invoice]
|
76
|
-
"""
|
77
|
-
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
78
|
-
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
79
|
-
|
80
|
-
self._results = results
|
81
|
-
|
82
|
-
@property
|
83
|
-
def metadata(self):
|
84
|
-
"""Gets the metadata of this InvoiceListResponse. # noqa: E501
|
85
|
-
|
86
|
-
|
87
|
-
:return: The metadata of this InvoiceListResponse. # noqa: E501
|
88
|
-
:rtype: ListResponseMetadata
|
89
|
-
"""
|
90
|
-
return self._metadata
|
91
|
-
|
92
|
-
@metadata.setter
|
93
|
-
def metadata(self, metadata):
|
94
|
-
"""Sets the metadata of this InvoiceListResponse.
|
95
|
-
|
96
|
-
|
97
|
-
:param metadata: The metadata of this InvoiceListResponse. # noqa: E501
|
98
|
-
:type: ListResponseMetadata
|
99
|
-
"""
|
100
|
-
|
101
|
-
self._metadata = metadata
|
102
|
-
|
103
|
-
def to_dict(self):
|
104
|
-
"""Returns the model properties as a dict"""
|
105
|
-
result = {}
|
106
|
-
|
107
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
108
|
-
value = getattr(self, attr)
|
109
|
-
if isinstance(value, list):
|
110
|
-
result[attr] = list(map(
|
111
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
112
|
-
value
|
113
|
-
))
|
114
|
-
elif hasattr(value, "to_dict"):
|
115
|
-
result[attr] = value.to_dict()
|
116
|
-
elif isinstance(value, dict):
|
117
|
-
result[attr] = dict(map(
|
118
|
-
lambda item: (item[0], item[1].to_dict())
|
119
|
-
if hasattr(item[1], "to_dict") else item,
|
120
|
-
value.items()
|
121
|
-
))
|
122
|
-
else:
|
123
|
-
result[attr] = value
|
124
|
-
|
125
|
-
return result
|
126
|
-
|
127
|
-
def to_str(self):
|
128
|
-
"""Returns the string representation of the model"""
|
129
|
-
return pprint.pformat(self.to_dict())
|
130
|
-
|
131
|
-
def __repr__(self):
|
132
|
-
"""For `print` and `pprint`"""
|
133
|
-
return self.to_str()
|
134
|
-
|
135
|
-
def __eq__(self, other):
|
136
|
-
"""Returns true if both objects are equal"""
|
137
|
-
if not isinstance(other, InvoiceListResponse):
|
138
|
-
return False
|
139
|
-
|
140
|
-
return self.to_dict() == other.to_dict()
|
141
|
-
|
142
|
-
def __ne__(self, other):
|
143
|
-
"""Returns true if both objects are not equal"""
|
144
|
-
if not isinstance(other, InvoiceListResponse):
|
145
|
-
return True
|
146
|
-
|
147
|
-
return self.to_dict() != other.to_dict()
|