Skip to content

Commit d0146c7

Browse files
committed
models: add updated response model
1 parent 97700e5 commit d0146c7

1 file changed

Lines changed: 37 additions & 36 deletions

File tree

‎src/internal/models/getAllApiKeysResponse.ts‎

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,63 +5,64 @@
55
* Juno Public API Docs
66
*
77
* The version of the OpenAPI document: 1.0
8-
*
8+
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1111
* https://openapi-generator.tech
1212
* Do not edit the class manually.
1313
*/
1414

1515
import { mapValues } from '../runtime';
16+
import type { IssueApiKeyResponse } from './IssueApiKeyResponse';
17+
import {
18+
IssueApiKeyResponseFromJSON,
19+
IssueApiKeyResponseFromJSONTyped,
20+
IssueApiKeyResponseToJSON,
21+
} from './IssueApiKeyResponse';
22+
1623
/**
17-
*
24+
*
1825
* @export
1926
* @interface GetAllApiKeysResponse
2027
*/
2128
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>;
2835
}
2936

3037
/**
3138
* Check if a given object implements the GetAllApiKeysResponse interface.
3239
*/
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;
3843
}
3944

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);
4447
}
4548

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+
};
5657
}
5758

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+
};
6767
}
68+

0 commit comments

Comments
 (0)