|
5 | 5 | * Juno Public API Docs |
6 | 6 | * |
7 | 7 | * The version of the OpenAPI document: 1.0 |
8 | | - * |
| 8 | + * |
9 | 9 | * |
10 | 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
11 | 11 | * https://openapi-generator.tech |
12 | 12 | * Do not edit the class manually. |
13 | 13 | */ |
14 | 14 |
|
15 | 15 | import { mapValues } from '../runtime'; |
| 16 | +import type { IssueApiKeyResponse } from './IssueApiKeyResponse'; |
| 17 | +import { |
| 18 | + IssueApiKeyResponseFromJSON, |
| 19 | + IssueApiKeyResponseFromJSONTyped, |
| 20 | + IssueApiKeyResponseToJSON, |
| 21 | +} from './IssueApiKeyResponse'; |
| 22 | + |
16 | 23 | /** |
17 | | - * |
| 24 | + * |
18 | 25 | * @export |
19 | 26 | * @interface GetAllApiKeysResponse |
20 | 27 | */ |
21 | 28 | export interface GetAllApiKeysResponse { |
22 | | - /** |
23 | | - * List of API keys belonging to a project |
24 | | - * @type {Array<object>} |
25 | | - * @memberof GetAllApiKeysResponse |
26 | | - */ |
27 | | - keys: Array<object>; |
| 29 | + /** |
| 30 | + * List of API keys belonging to a project |
| 31 | + * @type {Array<IssueApiKeyResponse>} |
| 32 | + * @memberof GetAllApiKeysResponse |
| 33 | + */ |
| 34 | + keys: Array<IssueApiKeyResponse>; |
28 | 35 | } |
29 | 36 |
|
30 | 37 | /** |
31 | 38 | * Check if a given object implements the GetAllApiKeysResponse interface. |
32 | 39 | */ |
33 | | -export function instanceOfGetAllApiKeysResponse( |
34 | | - value: object |
35 | | -): value is GetAllApiKeysResponse { |
36 | | - if (!('keys' in value) || value['keys'] === undefined) return false; |
37 | | - return true; |
| 40 | +export function instanceOfGetAllApiKeysResponse(value: object): value is GetAllApiKeysResponse { |
| 41 | + if (!('keys' in value) || value['keys'] === undefined) return false; |
| 42 | + return true; |
38 | 43 | } |
39 | 44 |
|
40 | | -export function GetAllApiKeysResponseFromJSON( |
41 | | - json: any |
42 | | -): GetAllApiKeysResponse { |
43 | | - return GetAllApiKeysResponseFromJSONTyped(json, false); |
| 45 | +export function GetAllApiKeysResponseFromJSON(json: any): GetAllApiKeysResponse { |
| 46 | + return GetAllApiKeysResponseFromJSONTyped(json, false); |
44 | 47 | } |
45 | 48 |
|
46 | | -export function GetAllApiKeysResponseFromJSONTyped( |
47 | | - json: any, |
48 | | - ignoreDiscriminator: boolean |
49 | | -): GetAllApiKeysResponse { |
50 | | - if (json == null) { |
51 | | - return json; |
52 | | - } |
53 | | - return { |
54 | | - keys: json['keys'], |
55 | | - }; |
| 49 | +export function GetAllApiKeysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllApiKeysResponse { |
| 50 | + if (json == null) { |
| 51 | + return json; |
| 52 | + } |
| 53 | + return { |
| 54 | + |
| 55 | + 'keys': ((json['keys'] as Array<any>).map(IssueApiKeyResponseFromJSON)), |
| 56 | + }; |
56 | 57 | } |
57 | 58 |
|
58 | | -export function GetAllApiKeysResponseToJSON( |
59 | | - value?: GetAllApiKeysResponse | null |
60 | | -): any { |
61 | | - if (value == null) { |
62 | | - return value; |
63 | | - } |
64 | | - return { |
65 | | - keys: value['keys'], |
66 | | - }; |
| 59 | +export function GetAllApiKeysResponseToJSON(value?: GetAllApiKeysResponse | null): any { |
| 60 | + if (value == null) { |
| 61 | + return value; |
| 62 | + } |
| 63 | + return { |
| 64 | + |
| 65 | + 'keys': ((value['keys'] as Array<any>).map(IssueApiKeyResponseToJSON)), |
| 66 | + }; |
67 | 67 | } |
| 68 | + |
0 commit comments