-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_configurable_identity_provider_all_of.go
352 lines (300 loc) · 16.4 KB
/
model_configurable_identity_provider_all_of.go
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
/*
Appgate SDP Controller REST API
# About This specification documents the REST API calls for the Appgate SDP Controller. Please refer to the REST API chapter in the manual or contact Appgate support with any questions about this functionality. # Getting Started Requirements for API scripting: - Access to the Admin/API TLS Connection (default port 8443) of a Controller appliance. (https://sdphelp.appgate.com/adminguide/appliance-function-configure.html?anchor=admin-api) - An API user with relevant permissions. (https://sdphelp.appgate.com/adminguide/administrative-roles-configure.html) - In order to use the simple login API, Admin MFA must be disabled or the API user must be excluded. (https://sdphelp.appgate.com/adminguide/mfa-for-admins.html) # Base path HTTPS requests must be sent to the Admin Interface hostname and port, with **_/admin** path. For example: **https://appgate.company.com:8443/admin** All requests must have the **Accept** header as: **application/vnd.appgate.peer-v20+json** An exception is made for the **_/admin/version** endpoint which instead expects an **application/json** Accept header. # API Conventions API conventions are important to understand and follow strictly. - While updating objects (via PUT), entire object must be sent with all fields. - For example, in order to add a remedy method to the condition below: ``` { \"id\": \"12699e27-b584-464a-81ee-5b4784b6d425\", \"name\": \"Test\", \"notes\": \"Making a point\", \"tags\": [\"test\", \"tag\"], \"expression\": \"return true;\", \"remedyMethods\": [] } ``` - send the entire object with updated and non-updated fields: ``` { \"id\": \"12699e27-b584-464a-81ee-5b4784b6d425\", \"name\": \"Test\", \"notes\": \"Making a point\", \"tags\": [\"test\", \"tag\"], \"expression\": \"return true;\", \"remedyMethods\": [{\"type\": \"DisplayMessage\", \"message\": \"test message\"}] } ``` - In case Controller returns an error (non-2xx HTTP status code), response body is JSON. The \"message\" field contains information about the error. HTTP 422 \"Unprocessable Entity\" has extra `errors` field to list all the issues with specific fields. - Empty string (\"\") is considered a different value than \"null\" or field being omitted from JSON. Omitting the field is recommended if no value is intended. Empty string (\"\") will be almost always rejected as invalid value. - There are common pattern between many objects: - **Configuration Objects**: There are many objects with common fields, namely \"id\", \"name\", \"notes\", \"created\" and \"updated\". These entities are listed, queried, created, updated and deleted in a similar fashion. - **Distinguished Name**: Users and Devices are identified with what is called Distinguished Names, as used in LDAP. The distinguished format that identifies a device and a user combination is \"CN=\\<Device ID\\>,CN=\\<username\\>,OU=\\<Identity Provider Name\\>\". Some objects have the \"userDistinguishedName\" field, which does not include the CN for Device ID. This identifies a user on every device.
API version: API version 20.0
Contact: appgatesdp.support@appgate.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// ConfigurableIdentityProviderAllOf struct for ConfigurableIdentityProviderAllOf
type ConfigurableIdentityProviderAllOf struct {
// Whether the provider will be listed in the Admin UI or not.
AdminProvider *bool `json:"adminProvider,omitempty"`
OnBoarding2FA *ConfigurableIdentityProviderAllOfOnBoarding2FA `json:"onBoarding2FA,omitempty"`
// (Desktop) clients will sign out automatically after the user has been inactive on the device for the configured duration. Set it to 0 to disable.
InactivityTimeoutMinutes *int32 `json:"inactivityTimeoutMinutes,omitempty"`
// Whether or not to take network inactivity into account when measuring client inactivity timeout.
NetworkInactivityTimeoutEnabled *bool `json:"networkInactivityTimeoutEnabled,omitempty"`
// If enabled, Windows Client will configure the network profile as \"DomainAuthenticated\".
EnforceWindowsNetworkProfileAsDomain *bool `json:"enforceWindowsNetworkProfileAsDomain,omitempty"`
// Whether the Windows Client will block local DNS requests or not.
BlockLocalDnsRequests *bool `json:"blockLocalDnsRequests,omitempty"`
// The mapping of Identity Provider on demand attributes to claims.
OnDemandClaimMappings []OnDemandClaimMappingsInner `json:"onDemandClaimMappings,omitempty"`
}
// NewConfigurableIdentityProviderAllOf instantiates a new ConfigurableIdentityProviderAllOf object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewConfigurableIdentityProviderAllOf() *ConfigurableIdentityProviderAllOf {
this := ConfigurableIdentityProviderAllOf{}
var adminProvider bool = false
this.AdminProvider = &adminProvider
var inactivityTimeoutMinutes int32 = 0
this.InactivityTimeoutMinutes = &inactivityTimeoutMinutes
var networkInactivityTimeoutEnabled bool = false
this.NetworkInactivityTimeoutEnabled = &networkInactivityTimeoutEnabled
var blockLocalDnsRequests bool = false
this.BlockLocalDnsRequests = &blockLocalDnsRequests
return &this
}
// NewConfigurableIdentityProviderAllOfWithDefaults instantiates a new ConfigurableIdentityProviderAllOf object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewConfigurableIdentityProviderAllOfWithDefaults() *ConfigurableIdentityProviderAllOf {
this := ConfigurableIdentityProviderAllOf{}
var adminProvider bool = false
this.AdminProvider = &adminProvider
var inactivityTimeoutMinutes int32 = 0
this.InactivityTimeoutMinutes = &inactivityTimeoutMinutes
var networkInactivityTimeoutEnabled bool = false
this.NetworkInactivityTimeoutEnabled = &networkInactivityTimeoutEnabled
var blockLocalDnsRequests bool = false
this.BlockLocalDnsRequests = &blockLocalDnsRequests
return &this
}
// GetAdminProvider returns the AdminProvider field value if set, zero value otherwise.
func (o *ConfigurableIdentityProviderAllOf) GetAdminProvider() bool {
if o == nil || o.AdminProvider == nil {
var ret bool
return ret
}
return *o.AdminProvider
}
// GetAdminProviderOk returns a tuple with the AdminProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConfigurableIdentityProviderAllOf) GetAdminProviderOk() (*bool, bool) {
if o == nil || o.AdminProvider == nil {
return nil, false
}
return o.AdminProvider, true
}
// HasAdminProvider returns a boolean if a field has been set.
func (o *ConfigurableIdentityProviderAllOf) HasAdminProvider() bool {
if o != nil && o.AdminProvider != nil {
return true
}
return false
}
// SetAdminProvider gets a reference to the given bool and assigns it to the AdminProvider field.
func (o *ConfigurableIdentityProviderAllOf) SetAdminProvider(v bool) {
o.AdminProvider = &v
}
// GetOnBoarding2FA returns the OnBoarding2FA field value if set, zero value otherwise.
func (o *ConfigurableIdentityProviderAllOf) GetOnBoarding2FA() ConfigurableIdentityProviderAllOfOnBoarding2FA {
if o == nil || o.OnBoarding2FA == nil {
var ret ConfigurableIdentityProviderAllOfOnBoarding2FA
return ret
}
return *o.OnBoarding2FA
}
// GetOnBoarding2FAOk returns a tuple with the OnBoarding2FA field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConfigurableIdentityProviderAllOf) GetOnBoarding2FAOk() (*ConfigurableIdentityProviderAllOfOnBoarding2FA, bool) {
if o == nil || o.OnBoarding2FA == nil {
return nil, false
}
return o.OnBoarding2FA, true
}
// HasOnBoarding2FA returns a boolean if a field has been set.
func (o *ConfigurableIdentityProviderAllOf) HasOnBoarding2FA() bool {
if o != nil && o.OnBoarding2FA != nil {
return true
}
return false
}
// SetOnBoarding2FA gets a reference to the given ConfigurableIdentityProviderAllOfOnBoarding2FA and assigns it to the OnBoarding2FA field.
func (o *ConfigurableIdentityProviderAllOf) SetOnBoarding2FA(v ConfigurableIdentityProviderAllOfOnBoarding2FA) {
o.OnBoarding2FA = &v
}
// GetInactivityTimeoutMinutes returns the InactivityTimeoutMinutes field value if set, zero value otherwise.
func (o *ConfigurableIdentityProviderAllOf) GetInactivityTimeoutMinutes() int32 {
if o == nil || o.InactivityTimeoutMinutes == nil {
var ret int32
return ret
}
return *o.InactivityTimeoutMinutes
}
// GetInactivityTimeoutMinutesOk returns a tuple with the InactivityTimeoutMinutes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConfigurableIdentityProviderAllOf) GetInactivityTimeoutMinutesOk() (*int32, bool) {
if o == nil || o.InactivityTimeoutMinutes == nil {
return nil, false
}
return o.InactivityTimeoutMinutes, true
}
// HasInactivityTimeoutMinutes returns a boolean if a field has been set.
func (o *ConfigurableIdentityProviderAllOf) HasInactivityTimeoutMinutes() bool {
if o != nil && o.InactivityTimeoutMinutes != nil {
return true
}
return false
}
// SetInactivityTimeoutMinutes gets a reference to the given int32 and assigns it to the InactivityTimeoutMinutes field.
func (o *ConfigurableIdentityProviderAllOf) SetInactivityTimeoutMinutes(v int32) {
o.InactivityTimeoutMinutes = &v
}
// GetNetworkInactivityTimeoutEnabled returns the NetworkInactivityTimeoutEnabled field value if set, zero value otherwise.
func (o *ConfigurableIdentityProviderAllOf) GetNetworkInactivityTimeoutEnabled() bool {
if o == nil || o.NetworkInactivityTimeoutEnabled == nil {
var ret bool
return ret
}
return *o.NetworkInactivityTimeoutEnabled
}
// GetNetworkInactivityTimeoutEnabledOk returns a tuple with the NetworkInactivityTimeoutEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConfigurableIdentityProviderAllOf) GetNetworkInactivityTimeoutEnabledOk() (*bool, bool) {
if o == nil || o.NetworkInactivityTimeoutEnabled == nil {
return nil, false
}
return o.NetworkInactivityTimeoutEnabled, true
}
// HasNetworkInactivityTimeoutEnabled returns a boolean if a field has been set.
func (o *ConfigurableIdentityProviderAllOf) HasNetworkInactivityTimeoutEnabled() bool {
if o != nil && o.NetworkInactivityTimeoutEnabled != nil {
return true
}
return false
}
// SetNetworkInactivityTimeoutEnabled gets a reference to the given bool and assigns it to the NetworkInactivityTimeoutEnabled field.
func (o *ConfigurableIdentityProviderAllOf) SetNetworkInactivityTimeoutEnabled(v bool) {
o.NetworkInactivityTimeoutEnabled = &v
}
// GetEnforceWindowsNetworkProfileAsDomain returns the EnforceWindowsNetworkProfileAsDomain field value if set, zero value otherwise.
func (o *ConfigurableIdentityProviderAllOf) GetEnforceWindowsNetworkProfileAsDomain() bool {
if o == nil || o.EnforceWindowsNetworkProfileAsDomain == nil {
var ret bool
return ret
}
return *o.EnforceWindowsNetworkProfileAsDomain
}
// GetEnforceWindowsNetworkProfileAsDomainOk returns a tuple with the EnforceWindowsNetworkProfileAsDomain field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConfigurableIdentityProviderAllOf) GetEnforceWindowsNetworkProfileAsDomainOk() (*bool, bool) {
if o == nil || o.EnforceWindowsNetworkProfileAsDomain == nil {
return nil, false
}
return o.EnforceWindowsNetworkProfileAsDomain, true
}
// HasEnforceWindowsNetworkProfileAsDomain returns a boolean if a field has been set.
func (o *ConfigurableIdentityProviderAllOf) HasEnforceWindowsNetworkProfileAsDomain() bool {
if o != nil && o.EnforceWindowsNetworkProfileAsDomain != nil {
return true
}
return false
}
// SetEnforceWindowsNetworkProfileAsDomain gets a reference to the given bool and assigns it to the EnforceWindowsNetworkProfileAsDomain field.
func (o *ConfigurableIdentityProviderAllOf) SetEnforceWindowsNetworkProfileAsDomain(v bool) {
o.EnforceWindowsNetworkProfileAsDomain = &v
}
// GetBlockLocalDnsRequests returns the BlockLocalDnsRequests field value if set, zero value otherwise.
func (o *ConfigurableIdentityProviderAllOf) GetBlockLocalDnsRequests() bool {
if o == nil || o.BlockLocalDnsRequests == nil {
var ret bool
return ret
}
return *o.BlockLocalDnsRequests
}
// GetBlockLocalDnsRequestsOk returns a tuple with the BlockLocalDnsRequests field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConfigurableIdentityProviderAllOf) GetBlockLocalDnsRequestsOk() (*bool, bool) {
if o == nil || o.BlockLocalDnsRequests == nil {
return nil, false
}
return o.BlockLocalDnsRequests, true
}
// HasBlockLocalDnsRequests returns a boolean if a field has been set.
func (o *ConfigurableIdentityProviderAllOf) HasBlockLocalDnsRequests() bool {
if o != nil && o.BlockLocalDnsRequests != nil {
return true
}
return false
}
// SetBlockLocalDnsRequests gets a reference to the given bool and assigns it to the BlockLocalDnsRequests field.
func (o *ConfigurableIdentityProviderAllOf) SetBlockLocalDnsRequests(v bool) {
o.BlockLocalDnsRequests = &v
}
// GetOnDemandClaimMappings returns the OnDemandClaimMappings field value if set, zero value otherwise.
func (o *ConfigurableIdentityProviderAllOf) GetOnDemandClaimMappings() []OnDemandClaimMappingsInner {
if o == nil || o.OnDemandClaimMappings == nil {
var ret []OnDemandClaimMappingsInner
return ret
}
return o.OnDemandClaimMappings
}
// GetOnDemandClaimMappingsOk returns a tuple with the OnDemandClaimMappings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConfigurableIdentityProviderAllOf) GetOnDemandClaimMappingsOk() ([]OnDemandClaimMappingsInner, bool) {
if o == nil || o.OnDemandClaimMappings == nil {
return nil, false
}
return o.OnDemandClaimMappings, true
}
// HasOnDemandClaimMappings returns a boolean if a field has been set.
func (o *ConfigurableIdentityProviderAllOf) HasOnDemandClaimMappings() bool {
if o != nil && o.OnDemandClaimMappings != nil {
return true
}
return false
}
// SetOnDemandClaimMappings gets a reference to the given []OnDemandClaimMappingsInner and assigns it to the OnDemandClaimMappings field.
func (o *ConfigurableIdentityProviderAllOf) SetOnDemandClaimMappings(v []OnDemandClaimMappingsInner) {
o.OnDemandClaimMappings = v
}
func (o ConfigurableIdentityProviderAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AdminProvider != nil {
toSerialize["adminProvider"] = o.AdminProvider
}
if o.OnBoarding2FA != nil {
toSerialize["onBoarding2FA"] = o.OnBoarding2FA
}
if o.InactivityTimeoutMinutes != nil {
toSerialize["inactivityTimeoutMinutes"] = o.InactivityTimeoutMinutes
}
if o.NetworkInactivityTimeoutEnabled != nil {
toSerialize["networkInactivityTimeoutEnabled"] = o.NetworkInactivityTimeoutEnabled
}
if o.EnforceWindowsNetworkProfileAsDomain != nil {
toSerialize["enforceWindowsNetworkProfileAsDomain"] = o.EnforceWindowsNetworkProfileAsDomain
}
if o.BlockLocalDnsRequests != nil {
toSerialize["blockLocalDnsRequests"] = o.BlockLocalDnsRequests
}
if o.OnDemandClaimMappings != nil {
toSerialize["onDemandClaimMappings"] = o.OnDemandClaimMappings
}
return json.Marshal(toSerialize)
}
type NullableConfigurableIdentityProviderAllOf struct {
value *ConfigurableIdentityProviderAllOf
isSet bool
}
func (v NullableConfigurableIdentityProviderAllOf) Get() *ConfigurableIdentityProviderAllOf {
return v.value
}
func (v *NullableConfigurableIdentityProviderAllOf) Set(val *ConfigurableIdentityProviderAllOf) {
v.value = val
v.isSet = true
}
func (v NullableConfigurableIdentityProviderAllOf) IsSet() bool {
return v.isSet
}
func (v *NullableConfigurableIdentityProviderAllOf) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableConfigurableIdentityProviderAllOf(val *ConfigurableIdentityProviderAllOf) *NullableConfigurableIdentityProviderAllOf {
return &NullableConfigurableIdentityProviderAllOf{value: val, isSet: true}
}
func (v NullableConfigurableIdentityProviderAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableConfigurableIdentityProviderAllOf) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}