hyperstack 1.43.0a0__py3-none-any.whl → 1.46.1a0__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.
- hyperstack/__init__.py +7 -2
- hyperstack/api/__init__.py +2 -1
- hyperstack/api/alive_api.py +10 -10
- hyperstack/api/api_key_api.py +7 -7
- hyperstack/api/auth_api.py +69 -69
- hyperstack/api/beta_access_api.py +50 -50
- hyperstack/api/billing_api.py +1659 -1659
- hyperstack/api/calculate_api.py +7 -7
- hyperstack/api/callbacks_api.py +21 -21
- hyperstack/api/cluster_events_api.py +7 -7
- hyperstack/api/clusters_api.py +669 -370
- hyperstack/api/compliance_api.py +21 -21
- hyperstack/api/credit_api.py +7 -7
- hyperstack/api/customer_contract_api.py +139 -139
- hyperstack/api/dashboard_api.py +7 -7
- hyperstack/api/deployment_api.py +7 -7
- hyperstack/api/environment_api.py +107 -107
- hyperstack/api/{admin_api.py → fip_exclusions_api.py} +44 -28
- hyperstack/api/firewall_attachment_api.py +7 -7
- hyperstack/api/firewalls_api.py +145 -145
- hyperstack/api/floating_ip_api.py +14 -14
- hyperstack/api/image_api.py +14 -14
- hyperstack/api/payment_api.py +102 -102
- hyperstack/api/profile_api.py +56 -56
- hyperstack/api/snapshot_events_api.py +7 -7
- hyperstack/api/snapshots_api.py +167 -167
- hyperstack/api/stock_api.py +7 -7
- hyperstack/api/template_api.py +76 -76
- hyperstack/api/user_api.py +76 -76
- hyperstack/api/user_detail_choice_api.py +10 -10
- hyperstack/api/virtual_machine_api.py +799 -782
- hyperstack/api/virtual_machine_events_api.py +7 -7
- hyperstack/api/vnc_url_api.py +53 -53
- hyperstack/api/volume_api.py +77 -77
- hyperstack/api/volume_attachment_api.py +21 -21
- hyperstack/api/vouchers_api.py +326 -0
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +1 -1
- hyperstack/models/__init__.py +4 -0
- hyperstack/models/delete_cluster_nodes_fields.py +87 -0
- hyperstack/models/redeem_voucher_payload.py +87 -0
- hyperstack/models/voucher.py +91 -0
- hyperstack/models/voucher_redeem_response_schema.py +95 -0
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/METADATA +1 -1
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/RECORD +47 -42
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/WHEEL +0 -0
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/top_level.txt +0 -0
|
@@ -42,10 +42,11 @@ class CustomerContractApi:
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
@validate_call
|
|
45
|
-
def
|
|
45
|
+
def get_contract_gpu_allocation_graph(
|
|
46
46
|
self,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
contract_id: StrictInt,
|
|
48
|
+
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
49
|
+
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
49
50
|
_request_timeout: Union[
|
|
50
51
|
None,
|
|
51
52
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -58,15 +59,17 @@ class CustomerContractApi:
|
|
|
58
59
|
_content_type: Optional[StrictStr] = None,
|
|
59
60
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
61
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
-
) ->
|
|
62
|
-
"""
|
|
62
|
+
) -> ContractGPUAllocationGraphResponse:
|
|
63
|
+
"""Retrieve GPU Allocation Graph for Contract
|
|
63
64
|
|
|
64
|
-
|
|
65
|
+
Retrieve GPU allocation count graph for a specific contract by providing the contract ID in the path. The endpoint returns the GPU allocation count graph for the contract within the specified date range.
|
|
65
66
|
|
|
66
|
-
:param
|
|
67
|
-
:type
|
|
68
|
-
:param
|
|
69
|
-
:type
|
|
67
|
+
:param contract_id: (required)
|
|
68
|
+
:type contract_id: int
|
|
69
|
+
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
70
|
+
:type start_date: str
|
|
71
|
+
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
72
|
+
:type end_date: str
|
|
70
73
|
:param _request_timeout: timeout setting for this request. If one
|
|
71
74
|
number provided, it will be total request
|
|
72
75
|
timeout. It can also be a pair (tuple) of
|
|
@@ -89,9 +92,10 @@ class CustomerContractApi:
|
|
|
89
92
|
:return: Returns the result object.
|
|
90
93
|
""" # noqa: E501
|
|
91
94
|
|
|
92
|
-
_param = self.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
_param = self._get_contract_gpu_allocation_graph_serialize(
|
|
96
|
+
contract_id=contract_id,
|
|
97
|
+
start_date=start_date,
|
|
98
|
+
end_date=end_date,
|
|
95
99
|
_request_auth=_request_auth,
|
|
96
100
|
_content_type=_content_type,
|
|
97
101
|
_headers=_headers,
|
|
@@ -99,9 +103,10 @@ class CustomerContractApi:
|
|
|
99
103
|
)
|
|
100
104
|
|
|
101
105
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
102
|
-
'200': "
|
|
106
|
+
'200': "ContractGPUAllocationGraphResponse",
|
|
103
107
|
'400': "ErrorResponseModel",
|
|
104
108
|
'401': "ErrorResponseModel",
|
|
109
|
+
'404': "ErrorResponseModel",
|
|
105
110
|
'405': "ErrorResponseModel",
|
|
106
111
|
'500': None,
|
|
107
112
|
}
|
|
@@ -117,10 +122,11 @@ class CustomerContractApi:
|
|
|
117
122
|
|
|
118
123
|
|
|
119
124
|
@validate_call
|
|
120
|
-
def
|
|
125
|
+
def get_contract_gpu_allocation_graph_with_http_info(
|
|
121
126
|
self,
|
|
122
|
-
|
|
123
|
-
|
|
127
|
+
contract_id: StrictInt,
|
|
128
|
+
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
129
|
+
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
124
130
|
_request_timeout: Union[
|
|
125
131
|
None,
|
|
126
132
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -133,15 +139,17 @@ class CustomerContractApi:
|
|
|
133
139
|
_content_type: Optional[StrictStr] = None,
|
|
134
140
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
135
141
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
136
|
-
) -> ApiResponse[
|
|
137
|
-
"""
|
|
142
|
+
) -> ApiResponse[ContractGPUAllocationGraphResponse]:
|
|
143
|
+
"""Retrieve GPU Allocation Graph for Contract
|
|
138
144
|
|
|
139
|
-
|
|
145
|
+
Retrieve GPU allocation count graph for a specific contract by providing the contract ID in the path. The endpoint returns the GPU allocation count graph for the contract within the specified date range.
|
|
140
146
|
|
|
141
|
-
:param
|
|
142
|
-
:type
|
|
143
|
-
:param
|
|
144
|
-
:type
|
|
147
|
+
:param contract_id: (required)
|
|
148
|
+
:type contract_id: int
|
|
149
|
+
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
150
|
+
:type start_date: str
|
|
151
|
+
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
152
|
+
:type end_date: str
|
|
145
153
|
:param _request_timeout: timeout setting for this request. If one
|
|
146
154
|
number provided, it will be total request
|
|
147
155
|
timeout. It can also be a pair (tuple) of
|
|
@@ -164,9 +172,10 @@ class CustomerContractApi:
|
|
|
164
172
|
:return: Returns the result object.
|
|
165
173
|
""" # noqa: E501
|
|
166
174
|
|
|
167
|
-
_param = self.
|
|
168
|
-
|
|
169
|
-
|
|
175
|
+
_param = self._get_contract_gpu_allocation_graph_serialize(
|
|
176
|
+
contract_id=contract_id,
|
|
177
|
+
start_date=start_date,
|
|
178
|
+
end_date=end_date,
|
|
170
179
|
_request_auth=_request_auth,
|
|
171
180
|
_content_type=_content_type,
|
|
172
181
|
_headers=_headers,
|
|
@@ -174,9 +183,10 @@ class CustomerContractApi:
|
|
|
174
183
|
)
|
|
175
184
|
|
|
176
185
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
177
|
-
'200': "
|
|
186
|
+
'200': "ContractGPUAllocationGraphResponse",
|
|
178
187
|
'400': "ErrorResponseModel",
|
|
179
188
|
'401': "ErrorResponseModel",
|
|
189
|
+
'404': "ErrorResponseModel",
|
|
180
190
|
'405': "ErrorResponseModel",
|
|
181
191
|
'500': None,
|
|
182
192
|
}
|
|
@@ -192,10 +202,11 @@ class CustomerContractApi:
|
|
|
192
202
|
|
|
193
203
|
|
|
194
204
|
@validate_call
|
|
195
|
-
def
|
|
205
|
+
def get_contract_gpu_allocation_graph_without_preload_content(
|
|
196
206
|
self,
|
|
197
|
-
|
|
198
|
-
|
|
207
|
+
contract_id: StrictInt,
|
|
208
|
+
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
209
|
+
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
199
210
|
_request_timeout: Union[
|
|
200
211
|
None,
|
|
201
212
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -209,14 +220,16 @@ class CustomerContractApi:
|
|
|
209
220
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
210
221
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
211
222
|
) -> RESTResponseType:
|
|
212
|
-
"""
|
|
223
|
+
"""Retrieve GPU Allocation Graph for Contract
|
|
213
224
|
|
|
214
|
-
|
|
225
|
+
Retrieve GPU allocation count graph for a specific contract by providing the contract ID in the path. The endpoint returns the GPU allocation count graph for the contract within the specified date range.
|
|
215
226
|
|
|
216
|
-
:param
|
|
217
|
-
:type
|
|
218
|
-
:param
|
|
219
|
-
:type
|
|
227
|
+
:param contract_id: (required)
|
|
228
|
+
:type contract_id: int
|
|
229
|
+
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
230
|
+
:type start_date: str
|
|
231
|
+
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
232
|
+
:type end_date: str
|
|
220
233
|
:param _request_timeout: timeout setting for this request. If one
|
|
221
234
|
number provided, it will be total request
|
|
222
235
|
timeout. It can also be a pair (tuple) of
|
|
@@ -239,9 +252,10 @@ class CustomerContractApi:
|
|
|
239
252
|
:return: Returns the result object.
|
|
240
253
|
""" # noqa: E501
|
|
241
254
|
|
|
242
|
-
_param = self.
|
|
243
|
-
|
|
244
|
-
|
|
255
|
+
_param = self._get_contract_gpu_allocation_graph_serialize(
|
|
256
|
+
contract_id=contract_id,
|
|
257
|
+
start_date=start_date,
|
|
258
|
+
end_date=end_date,
|
|
245
259
|
_request_auth=_request_auth,
|
|
246
260
|
_content_type=_content_type,
|
|
247
261
|
_headers=_headers,
|
|
@@ -249,9 +263,10 @@ class CustomerContractApi:
|
|
|
249
263
|
)
|
|
250
264
|
|
|
251
265
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
252
|
-
'200': "
|
|
266
|
+
'200': "ContractGPUAllocationGraphResponse",
|
|
253
267
|
'400': "ErrorResponseModel",
|
|
254
268
|
'401': "ErrorResponseModel",
|
|
269
|
+
'404': "ErrorResponseModel",
|
|
255
270
|
'405': "ErrorResponseModel",
|
|
256
271
|
'500': None,
|
|
257
272
|
}
|
|
@@ -262,10 +277,11 @@ class CustomerContractApi:
|
|
|
262
277
|
return response_data.response
|
|
263
278
|
|
|
264
279
|
|
|
265
|
-
def
|
|
280
|
+
def _get_contract_gpu_allocation_graph_serialize(
|
|
266
281
|
self,
|
|
267
|
-
|
|
268
|
-
|
|
282
|
+
contract_id,
|
|
283
|
+
start_date,
|
|
284
|
+
end_date,
|
|
269
285
|
_request_auth,
|
|
270
286
|
_content_type,
|
|
271
287
|
_headers,
|
|
@@ -287,14 +303,16 @@ class CustomerContractApi:
|
|
|
287
303
|
_body_params: Optional[bytes] = None
|
|
288
304
|
|
|
289
305
|
# process the path parameters
|
|
306
|
+
if contract_id is not None:
|
|
307
|
+
_path_params['contract_id'] = contract_id
|
|
290
308
|
# process the query parameters
|
|
291
|
-
if
|
|
309
|
+
if start_date is not None:
|
|
292
310
|
|
|
293
|
-
_query_params.append(('
|
|
311
|
+
_query_params.append(('start_date', start_date))
|
|
294
312
|
|
|
295
|
-
if
|
|
313
|
+
if end_date is not None:
|
|
296
314
|
|
|
297
|
-
_query_params.append(('
|
|
315
|
+
_query_params.append(('end_date', end_date))
|
|
298
316
|
|
|
299
317
|
# process the header parameters
|
|
300
318
|
# process the form parameters
|
|
@@ -317,7 +335,7 @@ class CustomerContractApi:
|
|
|
317
335
|
|
|
318
336
|
return self.api_client.param_serialize(
|
|
319
337
|
method='GET',
|
|
320
|
-
resource_path='/pricebook/contracts',
|
|
338
|
+
resource_path='/pricebook/contracts/{contract_id}/gpu_allocation_graph',
|
|
321
339
|
path_params=_path_params,
|
|
322
340
|
query_params=_query_params,
|
|
323
341
|
header_params=_header_params,
|
|
@@ -334,9 +352,10 @@ class CustomerContractApi:
|
|
|
334
352
|
|
|
335
353
|
|
|
336
354
|
@validate_call
|
|
337
|
-
def
|
|
355
|
+
def list_customer_contracts(
|
|
338
356
|
self,
|
|
339
|
-
|
|
357
|
+
page: Optional[StrictInt] = None,
|
|
358
|
+
per_page: Optional[StrictInt] = None,
|
|
340
359
|
_request_timeout: Union[
|
|
341
360
|
None,
|
|
342
361
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -349,13 +368,15 @@ class CustomerContractApi:
|
|
|
349
368
|
_content_type: Optional[StrictStr] = None,
|
|
350
369
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
351
370
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
352
|
-
) ->
|
|
353
|
-
"""
|
|
371
|
+
) -> GetCustomerContractsListResponseModel:
|
|
372
|
+
"""List Contracts
|
|
354
373
|
|
|
355
|
-
|
|
374
|
+
Retrieves a list of contracts and their details, including the terms of each contract and the discounts applied to all resources under each contract. Pagination can be controlled using the `page` and `per_page` query parameters. For additional information about contracts, click [**here**](None/docs/billing-and-payment/contracts).
|
|
356
375
|
|
|
357
|
-
:param
|
|
358
|
-
:type
|
|
376
|
+
:param page:
|
|
377
|
+
:type page: int
|
|
378
|
+
:param per_page:
|
|
379
|
+
:type per_page: int
|
|
359
380
|
:param _request_timeout: timeout setting for this request. If one
|
|
360
381
|
number provided, it will be total request
|
|
361
382
|
timeout. It can also be a pair (tuple) of
|
|
@@ -378,8 +399,9 @@ class CustomerContractApi:
|
|
|
378
399
|
:return: Returns the result object.
|
|
379
400
|
""" # noqa: E501
|
|
380
401
|
|
|
381
|
-
_param = self.
|
|
382
|
-
|
|
402
|
+
_param = self._list_customer_contracts_serialize(
|
|
403
|
+
page=page,
|
|
404
|
+
per_page=per_page,
|
|
383
405
|
_request_auth=_request_auth,
|
|
384
406
|
_content_type=_content_type,
|
|
385
407
|
_headers=_headers,
|
|
@@ -387,10 +409,9 @@ class CustomerContractApi:
|
|
|
387
409
|
)
|
|
388
410
|
|
|
389
411
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
390
|
-
'200': "
|
|
412
|
+
'200': "GetCustomerContractsListResponseModel",
|
|
391
413
|
'400': "ErrorResponseModel",
|
|
392
414
|
'401': "ErrorResponseModel",
|
|
393
|
-
'404': "ErrorResponseModel",
|
|
394
415
|
'405': "ErrorResponseModel",
|
|
395
416
|
'500': None,
|
|
396
417
|
}
|
|
@@ -406,9 +427,10 @@ class CustomerContractApi:
|
|
|
406
427
|
|
|
407
428
|
|
|
408
429
|
@validate_call
|
|
409
|
-
def
|
|
430
|
+
def list_customer_contracts_with_http_info(
|
|
410
431
|
self,
|
|
411
|
-
|
|
432
|
+
page: Optional[StrictInt] = None,
|
|
433
|
+
per_page: Optional[StrictInt] = None,
|
|
412
434
|
_request_timeout: Union[
|
|
413
435
|
None,
|
|
414
436
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -421,13 +443,15 @@ class CustomerContractApi:
|
|
|
421
443
|
_content_type: Optional[StrictStr] = None,
|
|
422
444
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
423
445
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
424
|
-
) -> ApiResponse[
|
|
425
|
-
"""
|
|
446
|
+
) -> ApiResponse[GetCustomerContractsListResponseModel]:
|
|
447
|
+
"""List Contracts
|
|
426
448
|
|
|
427
|
-
|
|
449
|
+
Retrieves a list of contracts and their details, including the terms of each contract and the discounts applied to all resources under each contract. Pagination can be controlled using the `page` and `per_page` query parameters. For additional information about contracts, click [**here**](None/docs/billing-and-payment/contracts).
|
|
428
450
|
|
|
429
|
-
:param
|
|
430
|
-
:type
|
|
451
|
+
:param page:
|
|
452
|
+
:type page: int
|
|
453
|
+
:param per_page:
|
|
454
|
+
:type per_page: int
|
|
431
455
|
:param _request_timeout: timeout setting for this request. If one
|
|
432
456
|
number provided, it will be total request
|
|
433
457
|
timeout. It can also be a pair (tuple) of
|
|
@@ -450,8 +474,9 @@ class CustomerContractApi:
|
|
|
450
474
|
:return: Returns the result object.
|
|
451
475
|
""" # noqa: E501
|
|
452
476
|
|
|
453
|
-
_param = self.
|
|
454
|
-
|
|
477
|
+
_param = self._list_customer_contracts_serialize(
|
|
478
|
+
page=page,
|
|
479
|
+
per_page=per_page,
|
|
455
480
|
_request_auth=_request_auth,
|
|
456
481
|
_content_type=_content_type,
|
|
457
482
|
_headers=_headers,
|
|
@@ -459,10 +484,9 @@ class CustomerContractApi:
|
|
|
459
484
|
)
|
|
460
485
|
|
|
461
486
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
462
|
-
'200': "
|
|
487
|
+
'200': "GetCustomerContractsListResponseModel",
|
|
463
488
|
'400': "ErrorResponseModel",
|
|
464
489
|
'401': "ErrorResponseModel",
|
|
465
|
-
'404': "ErrorResponseModel",
|
|
466
490
|
'405': "ErrorResponseModel",
|
|
467
491
|
'500': None,
|
|
468
492
|
}
|
|
@@ -478,9 +502,10 @@ class CustomerContractApi:
|
|
|
478
502
|
|
|
479
503
|
|
|
480
504
|
@validate_call
|
|
481
|
-
def
|
|
505
|
+
def list_customer_contracts_without_preload_content(
|
|
482
506
|
self,
|
|
483
|
-
|
|
507
|
+
page: Optional[StrictInt] = None,
|
|
508
|
+
per_page: Optional[StrictInt] = None,
|
|
484
509
|
_request_timeout: Union[
|
|
485
510
|
None,
|
|
486
511
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -494,12 +519,14 @@ class CustomerContractApi:
|
|
|
494
519
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
495
520
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
496
521
|
) -> RESTResponseType:
|
|
497
|
-
"""
|
|
522
|
+
"""List Contracts
|
|
498
523
|
|
|
499
|
-
|
|
524
|
+
Retrieves a list of contracts and their details, including the terms of each contract and the discounts applied to all resources under each contract. Pagination can be controlled using the `page` and `per_page` query parameters. For additional information about contracts, click [**here**](None/docs/billing-and-payment/contracts).
|
|
500
525
|
|
|
501
|
-
:param
|
|
502
|
-
:type
|
|
526
|
+
:param page:
|
|
527
|
+
:type page: int
|
|
528
|
+
:param per_page:
|
|
529
|
+
:type per_page: int
|
|
503
530
|
:param _request_timeout: timeout setting for this request. If one
|
|
504
531
|
number provided, it will be total request
|
|
505
532
|
timeout. It can also be a pair (tuple) of
|
|
@@ -522,8 +549,9 @@ class CustomerContractApi:
|
|
|
522
549
|
:return: Returns the result object.
|
|
523
550
|
""" # noqa: E501
|
|
524
551
|
|
|
525
|
-
_param = self.
|
|
526
|
-
|
|
552
|
+
_param = self._list_customer_contracts_serialize(
|
|
553
|
+
page=page,
|
|
554
|
+
per_page=per_page,
|
|
527
555
|
_request_auth=_request_auth,
|
|
528
556
|
_content_type=_content_type,
|
|
529
557
|
_headers=_headers,
|
|
@@ -531,10 +559,9 @@ class CustomerContractApi:
|
|
|
531
559
|
)
|
|
532
560
|
|
|
533
561
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
534
|
-
'200': "
|
|
562
|
+
'200': "GetCustomerContractsListResponseModel",
|
|
535
563
|
'400': "ErrorResponseModel",
|
|
536
564
|
'401': "ErrorResponseModel",
|
|
537
|
-
'404': "ErrorResponseModel",
|
|
538
565
|
'405': "ErrorResponseModel",
|
|
539
566
|
'500': None,
|
|
540
567
|
}
|
|
@@ -545,9 +572,10 @@ class CustomerContractApi:
|
|
|
545
572
|
return response_data.response
|
|
546
573
|
|
|
547
574
|
|
|
548
|
-
def
|
|
575
|
+
def _list_customer_contracts_serialize(
|
|
549
576
|
self,
|
|
550
|
-
|
|
577
|
+
page,
|
|
578
|
+
per_page,
|
|
551
579
|
_request_auth,
|
|
552
580
|
_content_type,
|
|
553
581
|
_headers,
|
|
@@ -569,9 +597,15 @@ class CustomerContractApi:
|
|
|
569
597
|
_body_params: Optional[bytes] = None
|
|
570
598
|
|
|
571
599
|
# process the path parameters
|
|
572
|
-
if contract_id is not None:
|
|
573
|
-
_path_params['contract_id'] = contract_id
|
|
574
600
|
# process the query parameters
|
|
601
|
+
if page is not None:
|
|
602
|
+
|
|
603
|
+
_query_params.append(('page', page))
|
|
604
|
+
|
|
605
|
+
if per_page is not None:
|
|
606
|
+
|
|
607
|
+
_query_params.append(('per_page', per_page))
|
|
608
|
+
|
|
575
609
|
# process the header parameters
|
|
576
610
|
# process the form parameters
|
|
577
611
|
# process the body parameter
|
|
@@ -593,7 +627,7 @@ class CustomerContractApi:
|
|
|
593
627
|
|
|
594
628
|
return self.api_client.param_serialize(
|
|
595
629
|
method='GET',
|
|
596
|
-
resource_path='/pricebook/contracts
|
|
630
|
+
resource_path='/pricebook/contracts',
|
|
597
631
|
path_params=_path_params,
|
|
598
632
|
query_params=_query_params,
|
|
599
633
|
header_params=_header_params,
|
|
@@ -610,11 +644,9 @@ class CustomerContractApi:
|
|
|
610
644
|
|
|
611
645
|
|
|
612
646
|
@validate_call
|
|
613
|
-
def
|
|
647
|
+
def retrieve_contract(
|
|
614
648
|
self,
|
|
615
649
|
contract_id: StrictInt,
|
|
616
|
-
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
617
|
-
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
618
650
|
_request_timeout: Union[
|
|
619
651
|
None,
|
|
620
652
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -627,17 +659,13 @@ class CustomerContractApi:
|
|
|
627
659
|
_content_type: Optional[StrictStr] = None,
|
|
628
660
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
629
661
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
630
|
-
) ->
|
|
631
|
-
"""Retrieve
|
|
662
|
+
) -> CustomerContractDetailResponseModel:
|
|
663
|
+
"""Retrieve Contract Details
|
|
632
664
|
|
|
633
|
-
Retrieve
|
|
665
|
+
Retrieve details of a specific contract by providing the contract ID in the path. The endpoint returns the contract object along with its associated discount plans. For more information, [**click here**](None/docs/api-reference/pricebook-resources/retrieve-contract-details).
|
|
634
666
|
|
|
635
667
|
:param contract_id: (required)
|
|
636
668
|
:type contract_id: int
|
|
637
|
-
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
638
|
-
:type start_date: str
|
|
639
|
-
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
640
|
-
:type end_date: str
|
|
641
669
|
:param _request_timeout: timeout setting for this request. If one
|
|
642
670
|
number provided, it will be total request
|
|
643
671
|
timeout. It can also be a pair (tuple) of
|
|
@@ -660,10 +688,8 @@ class CustomerContractApi:
|
|
|
660
688
|
:return: Returns the result object.
|
|
661
689
|
""" # noqa: E501
|
|
662
690
|
|
|
663
|
-
_param = self.
|
|
691
|
+
_param = self._retrieve_contract_serialize(
|
|
664
692
|
contract_id=contract_id,
|
|
665
|
-
start_date=start_date,
|
|
666
|
-
end_date=end_date,
|
|
667
693
|
_request_auth=_request_auth,
|
|
668
694
|
_content_type=_content_type,
|
|
669
695
|
_headers=_headers,
|
|
@@ -671,7 +697,7 @@ class CustomerContractApi:
|
|
|
671
697
|
)
|
|
672
698
|
|
|
673
699
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
674
|
-
'200': "
|
|
700
|
+
'200': "CustomerContractDetailResponseModel",
|
|
675
701
|
'400': "ErrorResponseModel",
|
|
676
702
|
'401': "ErrorResponseModel",
|
|
677
703
|
'404': "ErrorResponseModel",
|
|
@@ -690,11 +716,9 @@ class CustomerContractApi:
|
|
|
690
716
|
|
|
691
717
|
|
|
692
718
|
@validate_call
|
|
693
|
-
def
|
|
719
|
+
def retrieve_contract_with_http_info(
|
|
694
720
|
self,
|
|
695
721
|
contract_id: StrictInt,
|
|
696
|
-
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
697
|
-
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
698
722
|
_request_timeout: Union[
|
|
699
723
|
None,
|
|
700
724
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -707,17 +731,13 @@ class CustomerContractApi:
|
|
|
707
731
|
_content_type: Optional[StrictStr] = None,
|
|
708
732
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
709
733
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
710
|
-
) -> ApiResponse[
|
|
711
|
-
"""Retrieve
|
|
734
|
+
) -> ApiResponse[CustomerContractDetailResponseModel]:
|
|
735
|
+
"""Retrieve Contract Details
|
|
712
736
|
|
|
713
|
-
Retrieve
|
|
737
|
+
Retrieve details of a specific contract by providing the contract ID in the path. The endpoint returns the contract object along with its associated discount plans. For more information, [**click here**](None/docs/api-reference/pricebook-resources/retrieve-contract-details).
|
|
714
738
|
|
|
715
739
|
:param contract_id: (required)
|
|
716
740
|
:type contract_id: int
|
|
717
|
-
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
718
|
-
:type start_date: str
|
|
719
|
-
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
720
|
-
:type end_date: str
|
|
721
741
|
:param _request_timeout: timeout setting for this request. If one
|
|
722
742
|
number provided, it will be total request
|
|
723
743
|
timeout. It can also be a pair (tuple) of
|
|
@@ -740,10 +760,8 @@ class CustomerContractApi:
|
|
|
740
760
|
:return: Returns the result object.
|
|
741
761
|
""" # noqa: E501
|
|
742
762
|
|
|
743
|
-
_param = self.
|
|
763
|
+
_param = self._retrieve_contract_serialize(
|
|
744
764
|
contract_id=contract_id,
|
|
745
|
-
start_date=start_date,
|
|
746
|
-
end_date=end_date,
|
|
747
765
|
_request_auth=_request_auth,
|
|
748
766
|
_content_type=_content_type,
|
|
749
767
|
_headers=_headers,
|
|
@@ -751,7 +769,7 @@ class CustomerContractApi:
|
|
|
751
769
|
)
|
|
752
770
|
|
|
753
771
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
754
|
-
'200': "
|
|
772
|
+
'200': "CustomerContractDetailResponseModel",
|
|
755
773
|
'400': "ErrorResponseModel",
|
|
756
774
|
'401': "ErrorResponseModel",
|
|
757
775
|
'404': "ErrorResponseModel",
|
|
@@ -770,11 +788,9 @@ class CustomerContractApi:
|
|
|
770
788
|
|
|
771
789
|
|
|
772
790
|
@validate_call
|
|
773
|
-
def
|
|
791
|
+
def retrieve_contract_without_preload_content(
|
|
774
792
|
self,
|
|
775
793
|
contract_id: StrictInt,
|
|
776
|
-
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
777
|
-
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
|
|
778
794
|
_request_timeout: Union[
|
|
779
795
|
None,
|
|
780
796
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -788,16 +804,12 @@ class CustomerContractApi:
|
|
|
788
804
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
789
805
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
790
806
|
) -> RESTResponseType:
|
|
791
|
-
"""Retrieve
|
|
807
|
+
"""Retrieve Contract Details
|
|
792
808
|
|
|
793
|
-
Retrieve
|
|
809
|
+
Retrieve details of a specific contract by providing the contract ID in the path. The endpoint returns the contract object along with its associated discount plans. For more information, [**click here**](None/docs/api-reference/pricebook-resources/retrieve-contract-details).
|
|
794
810
|
|
|
795
811
|
:param contract_id: (required)
|
|
796
812
|
:type contract_id: int
|
|
797
|
-
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
798
|
-
:type start_date: str
|
|
799
|
-
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
800
|
-
:type end_date: str
|
|
801
813
|
:param _request_timeout: timeout setting for this request. If one
|
|
802
814
|
number provided, it will be total request
|
|
803
815
|
timeout. It can also be a pair (tuple) of
|
|
@@ -820,10 +832,8 @@ class CustomerContractApi:
|
|
|
820
832
|
:return: Returns the result object.
|
|
821
833
|
""" # noqa: E501
|
|
822
834
|
|
|
823
|
-
_param = self.
|
|
835
|
+
_param = self._retrieve_contract_serialize(
|
|
824
836
|
contract_id=contract_id,
|
|
825
|
-
start_date=start_date,
|
|
826
|
-
end_date=end_date,
|
|
827
837
|
_request_auth=_request_auth,
|
|
828
838
|
_content_type=_content_type,
|
|
829
839
|
_headers=_headers,
|
|
@@ -831,7 +841,7 @@ class CustomerContractApi:
|
|
|
831
841
|
)
|
|
832
842
|
|
|
833
843
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
834
|
-
'200': "
|
|
844
|
+
'200': "CustomerContractDetailResponseModel",
|
|
835
845
|
'400': "ErrorResponseModel",
|
|
836
846
|
'401': "ErrorResponseModel",
|
|
837
847
|
'404': "ErrorResponseModel",
|
|
@@ -845,11 +855,9 @@ class CustomerContractApi:
|
|
|
845
855
|
return response_data.response
|
|
846
856
|
|
|
847
857
|
|
|
848
|
-
def
|
|
858
|
+
def _retrieve_contract_serialize(
|
|
849
859
|
self,
|
|
850
860
|
contract_id,
|
|
851
|
-
start_date,
|
|
852
|
-
end_date,
|
|
853
861
|
_request_auth,
|
|
854
862
|
_content_type,
|
|
855
863
|
_headers,
|
|
@@ -874,14 +882,6 @@ class CustomerContractApi:
|
|
|
874
882
|
if contract_id is not None:
|
|
875
883
|
_path_params['contract_id'] = contract_id
|
|
876
884
|
# process the query parameters
|
|
877
|
-
if start_date is not None:
|
|
878
|
-
|
|
879
|
-
_query_params.append(('start_date', start_date))
|
|
880
|
-
|
|
881
|
-
if end_date is not None:
|
|
882
|
-
|
|
883
|
-
_query_params.append(('end_date', end_date))
|
|
884
|
-
|
|
885
885
|
# process the header parameters
|
|
886
886
|
# process the form parameters
|
|
887
887
|
# process the body parameter
|
|
@@ -903,7 +903,7 @@ class CustomerContractApi:
|
|
|
903
903
|
|
|
904
904
|
return self.api_client.param_serialize(
|
|
905
905
|
method='GET',
|
|
906
|
-
resource_path='/pricebook/contracts/{contract_id}
|
|
906
|
+
resource_path='/pricebook/contracts/{contract_id}',
|
|
907
907
|
path_params=_path_params,
|
|
908
908
|
query_params=_query_params,
|
|
909
909
|
header_params=_header_params,
|