mux-python 3.9.0__py3-none-any.whl → 3.10.0__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.
mux_python/__init__.py CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  from __future__ import absolute_import
17
17
 
18
- __version__ = "3.9.0"
18
+ __version__ = "3.10.0"
19
19
 
20
20
  # import apis into sdk package
21
21
  from mux_python.api.assets_api import AssetsApi
@@ -32,6 +32,7 @@ from mux_python.api.monitoring_api import MonitoringApi
32
32
  from mux_python.api.playback_id_api import PlaybackIDApi
33
33
  from mux_python.api.playback_restrictions_api import PlaybackRestrictionsApi
34
34
  from mux_python.api.real_time_api import RealTimeApi
35
+ from mux_python.api.signing_keys_api import SigningKeysApi
35
36
  from mux_python.api.spaces_api import SpacesApi
36
37
  from mux_python.api.transcription_vocabularies_api import TranscriptionVocabulariesApi
37
38
  from mux_python.api.url_signing_keys_api import URLSigningKeysApi
@@ -17,6 +17,7 @@ from mux_python.api.monitoring_api import MonitoringApi
17
17
  from mux_python.api.playback_id_api import PlaybackIDApi
18
18
  from mux_python.api.playback_restrictions_api import PlaybackRestrictionsApi
19
19
  from mux_python.api.real_time_api import RealTimeApi
20
+ from mux_python.api.signing_keys_api import SigningKeysApi
20
21
  from mux_python.api.spaces_api import SpacesApi
21
22
  from mux_python.api.transcription_vocabularies_api import TranscriptionVocabulariesApi
22
23
  from mux_python.api.url_signing_keys_api import URLSigningKeysApi
@@ -450,7 +450,7 @@ class DirectUploadsApi(object):
450
450
  def list_direct_uploads(self, **kwargs): # noqa: E501
451
451
  """List direct uploads # noqa: E501
452
452
 
453
- Lists currently extant direct uploads in the current environment. # noqa: E501
453
+ Lists direct uploads in the current environment. # noqa: E501
454
454
  This method makes a synchronous HTTP request by default. To make an
455
455
  asynchronous HTTP request, please pass async_req=True
456
456
 
@@ -482,7 +482,7 @@ class DirectUploadsApi(object):
482
482
  def list_direct_uploads_with_http_info(self, **kwargs): # noqa: E501
483
483
  """List direct uploads # noqa: E501
484
484
 
485
- Lists currently extant direct uploads in the current environment. # noqa: E501
485
+ Lists direct uploads in the current environment. # noqa: E501
486
486
  This method makes a synchronous HTTP request by default. To make an
487
487
  asynchronous HTTP request, please pass async_req=True
488
488
 
@@ -365,6 +365,8 @@ class MonitoringApi(object):
365
365
  :type monitoring_metric_id: str
366
366
  :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
367
367
  :type filters: list[str]
368
+ :param timestamp: Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago.
369
+ :type timestamp: int
368
370
  :param async_req: Whether to execute the request asynchronously.
369
371
  :type async_req: bool, optional
370
372
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -397,6 +399,8 @@ class MonitoringApi(object):
397
399
  :type monitoring_metric_id: str
398
400
  :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
399
401
  :type filters: list[str]
402
+ :param timestamp: Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago.
403
+ :type timestamp: int
400
404
  :param async_req: Whether to execute the request asynchronously.
401
405
  :type async_req: bool, optional
402
406
  :param _return_http_data_only: response data without head status code
@@ -424,7 +428,8 @@ class MonitoringApi(object):
424
428
 
425
429
  all_params = [
426
430
  'monitoring_metric_id',
427
- 'filters'
431
+ 'filters',
432
+ 'timestamp'
428
433
  ]
429
434
  all_params.extend(
430
435
  [
@@ -459,6 +464,8 @@ class MonitoringApi(object):
459
464
  if 'filters' in local_var_params and local_var_params['filters'] is not None: # noqa: E501
460
465
  query_params.append(('filters[]', local_var_params['filters'])) # noqa: E501
461
466
  collection_formats['filters[]'] = 'multi' # noqa: E501
467
+ if 'timestamp' in local_var_params and local_var_params['timestamp'] is not None: # noqa: E501
468
+ query_params.append(('timestamp', local_var_params['timestamp'])) # noqa: E501
462
469
 
463
470
  header_params = {}
464
471
 
@@ -365,6 +365,8 @@ class RealTimeApi(object):
365
365
  :type realtime_metric_id: str
366
366
  :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
367
367
  :type filters: list[str]
368
+ :param timestamp: Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago.
369
+ :type timestamp: int
368
370
  :param async_req: Whether to execute the request asynchronously.
369
371
  :type async_req: bool, optional
370
372
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -397,6 +399,8 @@ class RealTimeApi(object):
397
399
  :type realtime_metric_id: str
398
400
  :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
399
401
  :type filters: list[str]
402
+ :param timestamp: Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago.
403
+ :type timestamp: int
400
404
  :param async_req: Whether to execute the request asynchronously.
401
405
  :type async_req: bool, optional
402
406
  :param _return_http_data_only: response data without head status code
@@ -424,7 +428,8 @@ class RealTimeApi(object):
424
428
 
425
429
  all_params = [
426
430
  'realtime_metric_id',
427
- 'filters'
431
+ 'filters',
432
+ 'timestamp'
428
433
  ]
429
434
  all_params.extend(
430
435
  [
@@ -459,6 +464,8 @@ class RealTimeApi(object):
459
464
  if 'filters' in local_var_params and local_var_params['filters'] is not None: # noqa: E501
460
465
  query_params.append(('filters[]', local_var_params['filters'])) # noqa: E501
461
466
  collection_formats['filters[]'] = 'multi' # noqa: E501
467
+ if 'timestamp' in local_var_params and local_var_params['timestamp'] is not None: # noqa: E501
468
+ query_params.append(('timestamp', local_var_params['timestamp'])) # noqa: E501
462
469
 
463
470
  header_params = {}
464
471
 
@@ -0,0 +1,564 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Mux API
5
+
6
+ Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. # noqa: E501
7
+
8
+ The version of the OpenAPI document: v1
9
+ Contact: devex@mux.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ from __future__ import absolute_import
15
+
16
+ import re # noqa: F401
17
+
18
+ # python 2 and python 3 compatibility library
19
+ import six
20
+
21
+ from mux_python.api_client import ApiClient
22
+ from mux_python.exceptions import ( # noqa: F401
23
+ ApiTypeError,
24
+ ApiValueError
25
+ )
26
+
27
+
28
+ class SigningKeysApi(object):
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None):
36
+ if api_client is None:
37
+ api_client = ApiClient()
38
+ self.api_client = api_client
39
+
40
+ def create_signing_key(self, **kwargs): # noqa: E501
41
+ """Create a signing key # noqa: E501
42
+
43
+ Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens. # noqa: E501
44
+ This method makes a synchronous HTTP request by default. To make an
45
+ asynchronous HTTP request, please pass async_req=True
46
+
47
+ >>> thread = api.create_signing_key(async_req=True)
48
+ >>> result = thread.get()
49
+
50
+ :param async_req: Whether to execute the request asynchronously.
51
+ :type async_req: bool, optional
52
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
53
+ be returned without reading/decoding response
54
+ data. Default is True.
55
+ :type _preload_content: bool, optional
56
+ :param _request_timeout: timeout setting for this request. If one
57
+ number provided, it will be total request
58
+ timeout. It can also be a pair (tuple) of
59
+ (connection, read) timeouts.
60
+ :return: Returns the result object.
61
+ If the method is called asynchronously,
62
+ returns the request thread.
63
+ :rtype: SigningKeyResponse
64
+ """
65
+ kwargs['_return_http_data_only'] = True
66
+ return self.create_signing_key_with_http_info(**kwargs) # noqa: E501
67
+
68
+ def create_signing_key_with_http_info(self, **kwargs): # noqa: E501
69
+ """Create a signing key # noqa: E501
70
+
71
+ Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens. # noqa: E501
72
+ This method makes a synchronous HTTP request by default. To make an
73
+ asynchronous HTTP request, please pass async_req=True
74
+
75
+ >>> thread = api.create_signing_key_with_http_info(async_req=True)
76
+ >>> result = thread.get()
77
+
78
+ :param async_req: Whether to execute the request asynchronously.
79
+ :type async_req: bool, optional
80
+ :param _return_http_data_only: response data without head status code
81
+ and headers
82
+ :type _return_http_data_only: bool, optional
83
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
84
+ be returned without reading/decoding response
85
+ data. Default is True.
86
+ :type _preload_content: bool, optional
87
+ :param _request_timeout: timeout setting for this request. If one
88
+ number provided, it will be total request
89
+ timeout. It can also be a pair (tuple) of
90
+ (connection, read) timeouts.
91
+ :param _request_auth: set to override the auth_settings for an a single
92
+ request; this effectively ignores the authentication
93
+ in the spec for a single request.
94
+ :type _request_auth: dict, optional
95
+ :return: Returns the result object.
96
+ If the method is called asynchronously,
97
+ returns the request thread.
98
+ :rtype: tuple(SigningKeyResponse, status_code(int), headers(HTTPHeaderDict))
99
+ """
100
+
101
+ local_var_params = locals()
102
+
103
+ all_params = [
104
+ ]
105
+ all_params.extend(
106
+ [
107
+ 'async_req',
108
+ '_return_http_data_only',
109
+ '_preload_content',
110
+ '_request_timeout',
111
+ '_request_auth'
112
+ ]
113
+ )
114
+
115
+ for key, val in six.iteritems(local_var_params['kwargs']):
116
+ if key not in all_params:
117
+ raise ApiTypeError(
118
+ "Got an unexpected keyword argument '%s'"
119
+ " to method create_signing_key" % key
120
+ )
121
+ local_var_params[key] = val
122
+ del local_var_params['kwargs']
123
+
124
+ collection_formats = {}
125
+
126
+ path_params = {}
127
+
128
+ query_params = []
129
+
130
+ header_params = {}
131
+
132
+ form_params = []
133
+ local_var_files = {}
134
+
135
+ body_params = None
136
+ # HTTP header `Accept`
137
+ header_params['Accept'] = self.api_client.select_header_accept(
138
+ ['application/json']) # noqa: E501
139
+
140
+ # Authentication setting
141
+ auth_settings = ['accessToken'] # noqa: E501
142
+
143
+ response_types_map = {
144
+ 201: "SigningKeyResponse",
145
+ }
146
+
147
+ return self.api_client.call_api(
148
+ '/system/v1/signing-keys', 'POST',
149
+ path_params,
150
+ query_params,
151
+ header_params,
152
+ body=body_params,
153
+ post_params=form_params,
154
+ files=local_var_files,
155
+ response_types_map=response_types_map,
156
+ auth_settings=auth_settings,
157
+ async_req=local_var_params.get('async_req'),
158
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
159
+ _preload_content=local_var_params.get('_preload_content', True),
160
+ _request_timeout=local_var_params.get('_request_timeout'),
161
+ collection_formats=collection_formats,
162
+ _request_auth=local_var_params.get('_request_auth'))
163
+
164
+ def delete_signing_key(self, signing_key_id, **kwargs): # noqa: E501
165
+ """Delete a signing key # noqa: E501
166
+
167
+ Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no JWTs can be signed using the key again. # noqa: E501
168
+ This method makes a synchronous HTTP request by default. To make an
169
+ asynchronous HTTP request, please pass async_req=True
170
+
171
+ >>> thread = api.delete_signing_key(signing_key_id, async_req=True)
172
+ >>> result = thread.get()
173
+
174
+ :param signing_key_id: The ID of the signing key. (required)
175
+ :type signing_key_id: str
176
+ :param async_req: Whether to execute the request asynchronously.
177
+ :type async_req: bool, optional
178
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
179
+ be returned without reading/decoding response
180
+ data. Default is True.
181
+ :type _preload_content: bool, optional
182
+ :param _request_timeout: timeout setting for this request. If one
183
+ number provided, it will be total request
184
+ timeout. It can also be a pair (tuple) of
185
+ (connection, read) timeouts.
186
+ :return: Returns the result object.
187
+ If the method is called asynchronously,
188
+ returns the request thread.
189
+ :rtype: None
190
+ """
191
+ kwargs['_return_http_data_only'] = True
192
+ return self.delete_signing_key_with_http_info(signing_key_id, **kwargs) # noqa: E501
193
+
194
+ def delete_signing_key_with_http_info(self, signing_key_id, **kwargs): # noqa: E501
195
+ """Delete a signing key # noqa: E501
196
+
197
+ Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no JWTs can be signed using the key again. # noqa: E501
198
+ This method makes a synchronous HTTP request by default. To make an
199
+ asynchronous HTTP request, please pass async_req=True
200
+
201
+ >>> thread = api.delete_signing_key_with_http_info(signing_key_id, async_req=True)
202
+ >>> result = thread.get()
203
+
204
+ :param signing_key_id: The ID of the signing key. (required)
205
+ :type signing_key_id: str
206
+ :param async_req: Whether to execute the request asynchronously.
207
+ :type async_req: bool, optional
208
+ :param _return_http_data_only: response data without head status code
209
+ and headers
210
+ :type _return_http_data_only: bool, optional
211
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
212
+ be returned without reading/decoding response
213
+ data. Default is True.
214
+ :type _preload_content: bool, optional
215
+ :param _request_timeout: timeout setting for this request. If one
216
+ number provided, it will be total request
217
+ timeout. It can also be a pair (tuple) of
218
+ (connection, read) timeouts.
219
+ :param _request_auth: set to override the auth_settings for an a single
220
+ request; this effectively ignores the authentication
221
+ in the spec for a single request.
222
+ :type _request_auth: dict, optional
223
+ :return: Returns the result object.
224
+ If the method is called asynchronously,
225
+ returns the request thread.
226
+ :rtype: None
227
+ """
228
+
229
+ local_var_params = locals()
230
+
231
+ all_params = [
232
+ 'signing_key_id'
233
+ ]
234
+ all_params.extend(
235
+ [
236
+ 'async_req',
237
+ '_return_http_data_only',
238
+ '_preload_content',
239
+ '_request_timeout',
240
+ '_request_auth'
241
+ ]
242
+ )
243
+
244
+ for key, val in six.iteritems(local_var_params['kwargs']):
245
+ if key not in all_params:
246
+ raise ApiTypeError(
247
+ "Got an unexpected keyword argument '%s'"
248
+ " to method delete_signing_key" % key
249
+ )
250
+ local_var_params[key] = val
251
+ del local_var_params['kwargs']
252
+ # verify the required parameter 'signing_key_id' is set
253
+ if self.api_client.client_side_validation and ('signing_key_id' not in local_var_params or # noqa: E501
254
+ local_var_params['signing_key_id'] is None): # noqa: E501
255
+ raise ApiValueError("Missing the required parameter `signing_key_id` when calling `delete_signing_key`") # noqa: E501
256
+
257
+ collection_formats = {}
258
+
259
+ path_params = {}
260
+ if 'signing_key_id' in local_var_params:
261
+ path_params['SIGNING_KEY_ID'] = local_var_params['signing_key_id'] # noqa: E501
262
+
263
+ query_params = []
264
+
265
+ header_params = {}
266
+
267
+ form_params = []
268
+ local_var_files = {}
269
+
270
+ body_params = None
271
+ # Authentication setting
272
+ auth_settings = ['accessToken'] # noqa: E501
273
+
274
+ response_types_map = {}
275
+
276
+ return self.api_client.call_api(
277
+ '/system/v1/signing-keys/{SIGNING_KEY_ID}', 'DELETE',
278
+ path_params,
279
+ query_params,
280
+ header_params,
281
+ body=body_params,
282
+ post_params=form_params,
283
+ files=local_var_files,
284
+ response_types_map=response_types_map,
285
+ auth_settings=auth_settings,
286
+ async_req=local_var_params.get('async_req'),
287
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
288
+ _preload_content=local_var_params.get('_preload_content', True),
289
+ _request_timeout=local_var_params.get('_request_timeout'),
290
+ collection_formats=collection_formats,
291
+ _request_auth=local_var_params.get('_request_auth'))
292
+
293
+ def get_signing_key(self, signing_key_id, **kwargs): # noqa: E501
294
+ """Retrieve a signing key # noqa: E501
295
+
296
+ Retrieves the details of a signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.** # noqa: E501
297
+ This method makes a synchronous HTTP request by default. To make an
298
+ asynchronous HTTP request, please pass async_req=True
299
+
300
+ >>> thread = api.get_signing_key(signing_key_id, async_req=True)
301
+ >>> result = thread.get()
302
+
303
+ :param signing_key_id: The ID of the signing key. (required)
304
+ :type signing_key_id: str
305
+ :param async_req: Whether to execute the request asynchronously.
306
+ :type async_req: bool, optional
307
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
308
+ be returned without reading/decoding response
309
+ data. Default is True.
310
+ :type _preload_content: bool, optional
311
+ :param _request_timeout: timeout setting for this request. If one
312
+ number provided, it will be total request
313
+ timeout. It can also be a pair (tuple) of
314
+ (connection, read) timeouts.
315
+ :return: Returns the result object.
316
+ If the method is called asynchronously,
317
+ returns the request thread.
318
+ :rtype: SigningKeyResponse
319
+ """
320
+ kwargs['_return_http_data_only'] = True
321
+ return self.get_signing_key_with_http_info(signing_key_id, **kwargs) # noqa: E501
322
+
323
+ def get_signing_key_with_http_info(self, signing_key_id, **kwargs): # noqa: E501
324
+ """Retrieve a signing key # noqa: E501
325
+
326
+ Retrieves the details of a signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.** # noqa: E501
327
+ This method makes a synchronous HTTP request by default. To make an
328
+ asynchronous HTTP request, please pass async_req=True
329
+
330
+ >>> thread = api.get_signing_key_with_http_info(signing_key_id, async_req=True)
331
+ >>> result = thread.get()
332
+
333
+ :param signing_key_id: The ID of the signing key. (required)
334
+ :type signing_key_id: str
335
+ :param async_req: Whether to execute the request asynchronously.
336
+ :type async_req: bool, optional
337
+ :param _return_http_data_only: response data without head status code
338
+ and headers
339
+ :type _return_http_data_only: bool, optional
340
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
341
+ be returned without reading/decoding response
342
+ data. Default is True.
343
+ :type _preload_content: bool, optional
344
+ :param _request_timeout: timeout setting for this request. If one
345
+ number provided, it will be total request
346
+ timeout. It can also be a pair (tuple) of
347
+ (connection, read) timeouts.
348
+ :param _request_auth: set to override the auth_settings for an a single
349
+ request; this effectively ignores the authentication
350
+ in the spec for a single request.
351
+ :type _request_auth: dict, optional
352
+ :return: Returns the result object.
353
+ If the method is called asynchronously,
354
+ returns the request thread.
355
+ :rtype: tuple(SigningKeyResponse, status_code(int), headers(HTTPHeaderDict))
356
+ """
357
+
358
+ local_var_params = locals()
359
+
360
+ all_params = [
361
+ 'signing_key_id'
362
+ ]
363
+ all_params.extend(
364
+ [
365
+ 'async_req',
366
+ '_return_http_data_only',
367
+ '_preload_content',
368
+ '_request_timeout',
369
+ '_request_auth'
370
+ ]
371
+ )
372
+
373
+ for key, val in six.iteritems(local_var_params['kwargs']):
374
+ if key not in all_params:
375
+ raise ApiTypeError(
376
+ "Got an unexpected keyword argument '%s'"
377
+ " to method get_signing_key" % key
378
+ )
379
+ local_var_params[key] = val
380
+ del local_var_params['kwargs']
381
+ # verify the required parameter 'signing_key_id' is set
382
+ if self.api_client.client_side_validation and ('signing_key_id' not in local_var_params or # noqa: E501
383
+ local_var_params['signing_key_id'] is None): # noqa: E501
384
+ raise ApiValueError("Missing the required parameter `signing_key_id` when calling `get_signing_key`") # noqa: E501
385
+
386
+ collection_formats = {}
387
+
388
+ path_params = {}
389
+ if 'signing_key_id' in local_var_params:
390
+ path_params['SIGNING_KEY_ID'] = local_var_params['signing_key_id'] # noqa: E501
391
+
392
+ query_params = []
393
+
394
+ header_params = {}
395
+
396
+ form_params = []
397
+ local_var_files = {}
398
+
399
+ body_params = None
400
+ # HTTP header `Accept`
401
+ header_params['Accept'] = self.api_client.select_header_accept(
402
+ ['application/json']) # noqa: E501
403
+
404
+ # Authentication setting
405
+ auth_settings = ['accessToken'] # noqa: E501
406
+
407
+ response_types_map = {
408
+ 200: "SigningKeyResponse",
409
+ }
410
+
411
+ return self.api_client.call_api(
412
+ '/system/v1/signing-keys/{SIGNING_KEY_ID}', 'GET',
413
+ path_params,
414
+ query_params,
415
+ header_params,
416
+ body=body_params,
417
+ post_params=form_params,
418
+ files=local_var_files,
419
+ response_types_map=response_types_map,
420
+ auth_settings=auth_settings,
421
+ async_req=local_var_params.get('async_req'),
422
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
423
+ _preload_content=local_var_params.get('_preload_content', True),
424
+ _request_timeout=local_var_params.get('_request_timeout'),
425
+ collection_formats=collection_formats,
426
+ _request_auth=local_var_params.get('_request_auth'))
427
+
428
+ def list_signing_keys(self, **kwargs): # noqa: E501
429
+ """List signing keys # noqa: E501
430
+
431
+ Returns a list of signing keys. # noqa: E501
432
+ This method makes a synchronous HTTP request by default. To make an
433
+ asynchronous HTTP request, please pass async_req=True
434
+
435
+ >>> thread = api.list_signing_keys(async_req=True)
436
+ >>> result = thread.get()
437
+
438
+ :param limit: Number of items to include in the response
439
+ :type limit: int
440
+ :param page: Offset by this many pages, of the size of `limit`
441
+ :type page: int
442
+ :param async_req: Whether to execute the request asynchronously.
443
+ :type async_req: bool, optional
444
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
445
+ be returned without reading/decoding response
446
+ data. Default is True.
447
+ :type _preload_content: bool, optional
448
+ :param _request_timeout: timeout setting for this request. If one
449
+ number provided, it will be total request
450
+ timeout. It can also be a pair (tuple) of
451
+ (connection, read) timeouts.
452
+ :return: Returns the result object.
453
+ If the method is called asynchronously,
454
+ returns the request thread.
455
+ :rtype: ListSigningKeysResponse
456
+ """
457
+ kwargs['_return_http_data_only'] = True
458
+ return self.list_signing_keys_with_http_info(**kwargs) # noqa: E501
459
+
460
+ def list_signing_keys_with_http_info(self, **kwargs): # noqa: E501
461
+ """List signing keys # noqa: E501
462
+
463
+ Returns a list of signing keys. # noqa: E501
464
+ This method makes a synchronous HTTP request by default. To make an
465
+ asynchronous HTTP request, please pass async_req=True
466
+
467
+ >>> thread = api.list_signing_keys_with_http_info(async_req=True)
468
+ >>> result = thread.get()
469
+
470
+ :param limit: Number of items to include in the response
471
+ :type limit: int
472
+ :param page: Offset by this many pages, of the size of `limit`
473
+ :type page: int
474
+ :param async_req: Whether to execute the request asynchronously.
475
+ :type async_req: bool, optional
476
+ :param _return_http_data_only: response data without head status code
477
+ and headers
478
+ :type _return_http_data_only: bool, optional
479
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
480
+ be returned without reading/decoding response
481
+ data. Default is True.
482
+ :type _preload_content: bool, optional
483
+ :param _request_timeout: timeout setting for this request. If one
484
+ number provided, it will be total request
485
+ timeout. It can also be a pair (tuple) of
486
+ (connection, read) timeouts.
487
+ :param _request_auth: set to override the auth_settings for an a single
488
+ request; this effectively ignores the authentication
489
+ in the spec for a single request.
490
+ :type _request_auth: dict, optional
491
+ :return: Returns the result object.
492
+ If the method is called asynchronously,
493
+ returns the request thread.
494
+ :rtype: tuple(ListSigningKeysResponse, status_code(int), headers(HTTPHeaderDict))
495
+ """
496
+
497
+ local_var_params = locals()
498
+
499
+ all_params = [
500
+ 'limit',
501
+ 'page'
502
+ ]
503
+ all_params.extend(
504
+ [
505
+ 'async_req',
506
+ '_return_http_data_only',
507
+ '_preload_content',
508
+ '_request_timeout',
509
+ '_request_auth'
510
+ ]
511
+ )
512
+
513
+ for key, val in six.iteritems(local_var_params['kwargs']):
514
+ if key not in all_params:
515
+ raise ApiTypeError(
516
+ "Got an unexpected keyword argument '%s'"
517
+ " to method list_signing_keys" % key
518
+ )
519
+ local_var_params[key] = val
520
+ del local_var_params['kwargs']
521
+
522
+ collection_formats = {}
523
+
524
+ path_params = {}
525
+
526
+ query_params = []
527
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
528
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
529
+ if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
530
+ query_params.append(('page', local_var_params['page'])) # noqa: E501
531
+
532
+ header_params = {}
533
+
534
+ form_params = []
535
+ local_var_files = {}
536
+
537
+ body_params = None
538
+ # HTTP header `Accept`
539
+ header_params['Accept'] = self.api_client.select_header_accept(
540
+ ['application/json']) # noqa: E501
541
+
542
+ # Authentication setting
543
+ auth_settings = ['accessToken'] # noqa: E501
544
+
545
+ response_types_map = {
546
+ 200: "ListSigningKeysResponse",
547
+ }
548
+
549
+ return self.api_client.call_api(
550
+ '/system/v1/signing-keys', 'GET',
551
+ path_params,
552
+ query_params,
553
+ header_params,
554
+ body=body_params,
555
+ post_params=form_params,
556
+ files=local_var_files,
557
+ response_types_map=response_types_map,
558
+ auth_settings=auth_settings,
559
+ async_req=local_var_params.get('async_req'),
560
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
561
+ _preload_content=local_var_params.get('_preload_content', True),
562
+ _request_timeout=local_var_params.get('_request_timeout'),
563
+ collection_formats=collection_formats,
564
+ _request_auth=local_var_params.get('_request_auth'))