-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathPatchedApplicationRequest.ts
More file actions
164 lines (156 loc) · 4.69 KB
/
PatchedApplicationRequest.ts
File metadata and controls
164 lines (156 loc) · 4.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/* tslint:disable */
/* eslint-disable */
/**
* authentik
* Making authentication simple.
*
* The version of the OpenAPI document: 2026.5.0-rc1
* Contact: hello@goauthentik.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { PolicyEngineMode } from "./PolicyEngineMode";
import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON } from "./PolicyEngineMode";
/**
* Application Serializer
* @export
* @interface PatchedApplicationRequest
*/
export interface PatchedApplicationRequest {
/**
* Application's display Name.
* @type {string}
* @memberof PatchedApplicationRequest
*/
name?: string;
/**
* Internal application name, used in URLs.
* @type {string}
* @memberof PatchedApplicationRequest
*/
slug?: string;
/**
*
* @type {number}
* @memberof PatchedApplicationRequest
*/
provider?: number | null;
/**
*
* @type {Array<number>}
* @memberof PatchedApplicationRequest
*/
backchannelProviders?: Array<number>;
/**
* Open launch URL in a new browser tab or window.
* @type {boolean}
* @memberof PatchedApplicationRequest
*/
openInNewTab?: boolean;
/**
*
* @type {string}
* @memberof PatchedApplicationRequest
*/
metaLaunchUrl?: string;
/**
*
* @type {string}
* @memberof PatchedApplicationRequest
*/
metaIcon?: string;
/**
*
* @type {string}
* @memberof PatchedApplicationRequest
*/
metaDescription?: string;
/**
*
* @type {string}
* @memberof PatchedApplicationRequest
*/
metaPublisher?: string;
/**
*
* @type {PolicyEngineMode}
* @memberof PatchedApplicationRequest
*/
policyEngineMode?: PolicyEngineMode;
/**
*
* @type {string}
* @memberof PatchedApplicationRequest
*/
group?: string;
/**
* Hide this application from the user dashboard.
* @type {boolean}
* @memberof PatchedApplicationRequest
*/
metaHide?: boolean;
}
/**
* Check if a given object implements the PatchedApplicationRequest interface.
*/
export function instanceOfPatchedApplicationRequest(
value: object,
): value is PatchedApplicationRequest {
return true;
}
export function PatchedApplicationRequestFromJSON(json: any): PatchedApplicationRequest {
return PatchedApplicationRequestFromJSONTyped(json, false);
}
export function PatchedApplicationRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): PatchedApplicationRequest {
if (json == null) {
return json;
}
return {
name: json["name"] == null ? undefined : json["name"],
slug: json["slug"] == null ? undefined : json["slug"],
provider: json["provider"] == null ? undefined : json["provider"],
backchannelProviders:
json["backchannel_providers"] == null ? undefined : json["backchannel_providers"],
openInNewTab: json["open_in_new_tab"] == null ? undefined : json["open_in_new_tab"],
metaLaunchUrl: json["meta_launch_url"] == null ? undefined : json["meta_launch_url"],
metaIcon: json["meta_icon"] == null ? undefined : json["meta_icon"],
metaDescription: json["meta_description"] == null ? undefined : json["meta_description"],
metaPublisher: json["meta_publisher"] == null ? undefined : json["meta_publisher"],
policyEngineMode:
json["policy_engine_mode"] == null
? undefined
: PolicyEngineModeFromJSON(json["policy_engine_mode"]),
group: json["group"] == null ? undefined : json["group"],
metaHide: json["meta_hide"] == null ? undefined : json["meta_hide"],
};
}
export function PatchedApplicationRequestToJSON(json: any): PatchedApplicationRequest {
return PatchedApplicationRequestToJSONTyped(json, false);
}
export function PatchedApplicationRequestToJSONTyped(
value?: PatchedApplicationRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
name: value["name"],
slug: value["slug"],
provider: value["provider"],
backchannel_providers: value["backchannelProviders"],
open_in_new_tab: value["openInNewTab"],
meta_launch_url: value["metaLaunchUrl"],
meta_icon: value["metaIcon"],
meta_description: value["metaDescription"],
meta_publisher: value["metaPublisher"],
policy_engine_mode: PolicyEngineModeToJSON(value["policyEngineMode"]),
group: value["group"],
meta_hide: value["metaHide"],
};
}