@@ -35,7 +35,7 @@ def __init__(self, api_client=None):
35
35
self .api_client = api_client
36
36
37
37
def create_mass_estimate (
38
- self , create_mass_estimate_request , ** kwargs
38
+ self , opts = {}, create_mass_estimate_request = {} , ** kwargs
39
39
): # noqa: E501
40
40
"""Create an estimate based on mass of CO2 # noqa: E501
41
41
@@ -47,6 +47,7 @@ def create_mass_estimate(
47
47
48
48
:param async_req bool: execute request asynchronously
49
49
:param CreateMassEstimateRequest create_mass_estimate_request: (required)
50
+ :param dict opts: dictionary holding the optional arguments for the query (optional)
50
51
:param _preload_content: if False, the urllib3.HTTPResponse object will
51
52
be returned without reading/decoding response
52
53
data. Default is True.
@@ -60,11 +61,11 @@ def create_mass_estimate(
60
61
"""
61
62
kwargs ["_return_http_data_only" ] = True
62
63
return self .create_mass_estimate_with_http_info (
63
- create_mass_estimate_request , ** kwargs
64
+ opts , create_mass_estimate_request , ** kwargs
64
65
) # noqa: E501
65
66
66
67
def create_mass_estimate_with_http_info (
67
- self , create_mass_estimate_request , ** kwargs
68
+ self , opts , create_mass_estimate_request , ** kwargs
68
69
): # noqa: E501
69
70
"""Create an estimate based on mass of CO2 # noqa: E501
70
71
@@ -76,6 +77,7 @@ def create_mass_estimate_with_http_info(
76
77
77
78
:param async_req bool: execute request asynchronously
78
79
:param CreateMassEstimateRequest create_mass_estimate_request: (required)
80
+ :param dict opts: dictionary holding the optional arguments for the query (required)
79
81
:param _return_http_data_only: response data without head status code
80
82
and headers
81
83
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -120,6 +122,8 @@ def create_mass_estimate_with_http_info(
120
122
path_params = {}
121
123
122
124
query_params = []
125
+ for key in opts :
126
+ query_params .append ([key , opts .get (key )])
123
127
124
128
header_params = {}
125
129
@@ -164,7 +168,7 @@ def create_mass_estimate_with_http_info(
164
168
collection_formats = collection_formats ,
165
169
)
166
170
167
- def retrieve_estimate (self , id , ** kwargs ): # noqa: E501
171
+ def retrieve_estimate (self , opts = {}, id = {} , ** kwargs ): # noqa: E501
168
172
"""Retrieves an estimate # noqa: E501
169
173
170
174
Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for. # noqa: E501
@@ -175,6 +179,7 @@ def retrieve_estimate(self, id, **kwargs): # noqa: E501
175
179
176
180
:param async_req bool: execute request asynchronously
177
181
:param str id: (required)
182
+ :param dict opts: dictionary holding the optional arguments for the query (optional)
178
183
:param _preload_content: if False, the urllib3.HTTPResponse object will
179
184
be returned without reading/decoding response
180
185
data. Default is True.
@@ -187,9 +192,9 @@ def retrieve_estimate(self, id, **kwargs): # noqa: E501
187
192
returns the request thread.
188
193
"""
189
194
kwargs ["_return_http_data_only" ] = True
190
- return self .retrieve_estimate_with_http_info (id , ** kwargs ) # noqa: E501
195
+ return self .retrieve_estimate_with_http_info (opts , id , ** kwargs ) # noqa: E501
191
196
192
- def retrieve_estimate_with_http_info (self , id , ** kwargs ): # noqa: E501
197
+ def retrieve_estimate_with_http_info (self , opts , id , ** kwargs ): # noqa: E501
193
198
"""Retrieves an estimate # noqa: E501
194
199
195
200
Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for. # noqa: E501
@@ -200,6 +205,7 @@ def retrieve_estimate_with_http_info(self, id, **kwargs): # noqa: E501
200
205
201
206
:param async_req bool: execute request asynchronously
202
207
:param str id: (required)
208
+ :param dict opts: dictionary holding the optional arguments for the query (required)
203
209
:param _return_http_data_only: response data without head status code
204
210
and headers
205
211
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -243,6 +249,8 @@ def retrieve_estimate_with_http_info(self, id, **kwargs): # noqa: E501
243
249
path_params ["id" ] = local_var_params ["id" ] # noqa: E501
244
250
245
251
query_params = []
252
+ for key in opts :
253
+ query_params .append ([key , opts .get (key )])
246
254
247
255
header_params = {}
248
256
@@ -278,7 +286,7 @@ def retrieve_estimate_with_http_info(self, id, **kwargs): # noqa: E501
278
286
collection_formats = collection_formats ,
279
287
)
280
288
281
- def retrieve_estimates (self , ** kwargs ): # noqa: E501
289
+ def retrieve_estimates (self , opts = {}, ** kwargs ): # noqa: E501
282
290
"""Retrieves a list of estimates # noqa: E501
283
291
284
292
Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for. # noqa: E501
@@ -289,6 +297,7 @@ def retrieve_estimates(self, **kwargs): # noqa: E501
289
297
290
298
:param async_req bool: execute request asynchronously
291
299
:param int page:
300
+ :param dict opts: dictionary holding the optional arguments for the query (optional)
292
301
:param _preload_content: if False, the urllib3.HTTPResponse object will
293
302
be returned without reading/decoding response
294
303
data. Default is True.
@@ -301,9 +310,9 @@ def retrieve_estimates(self, **kwargs): # noqa: E501
301
310
returns the request thread.
302
311
"""
303
312
kwargs ["_return_http_data_only" ] = True
304
- return self .retrieve_estimates_with_http_info (** kwargs ) # noqa: E501
313
+ return self .retrieve_estimates_with_http_info (opts , ** kwargs ) # noqa: E501
305
314
306
- def retrieve_estimates_with_http_info (self , ** kwargs ): # noqa: E501
315
+ def retrieve_estimates_with_http_info (self , opts , ** kwargs ): # noqa: E501
307
316
"""Retrieves a list of estimates # noqa: E501
308
317
309
318
Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for. # noqa: E501
@@ -314,6 +323,7 @@ def retrieve_estimates_with_http_info(self, **kwargs): # noqa: E501
314
323
315
324
:param async_req bool: execute request asynchronously
316
325
:param int page:
326
+ :param dict opts: dictionary holding the optional arguments for the query (required)
317
327
:param _return_http_data_only: response data without head status code
318
328
and headers
319
329
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -350,6 +360,8 @@ def retrieve_estimates_with_http_info(self, **kwargs): # noqa: E501
350
360
path_params = {}
351
361
352
362
query_params = []
363
+ for key in opts :
364
+ query_params .append ([key , opts .get (key )])
353
365
if "page" in local_var_params :
354
366
query_params .append (("page" , local_var_params ["page" ])) # noqa: E501
355
367
0 commit comments