-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmodel_application_pool_update_spec_v2.go
More file actions
720 lines (616 loc) · 24.2 KB
/
model_application_pool_update_spec_v2.go
File metadata and controls
720 lines (616 loc) · 24.2 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
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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
/*
Horizon Server API
Welcome to the Horizon Server API Reference documentation. This API reference provides comprehensive information about status of all Horizon Server components and resources. <br> Choose Latest spec from dropdown to view API reference on latest version available.
API version: 2111
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package gohorizon
import (
"encoding/json"
)
// ApplicationPoolUpdateSpecV2 Information required to update an application pool.
type ApplicationPoolUpdateSpecV2 struct {
AntiAffinityData *ApplicationAntiAffinityData `json:"anti_affinity_data,omitempty"`
// Name of the category folder in the user's OS containing a shortcut to the application. Unset if the application does not belong to a category.
CategoryFolderName *string `json:"category_folder_name,omitempty"`
// Indicates whether the application pool is cloud brokered. Default value is false.<br>
CloudBrokered *bool `json:"cloud_brokered,omitempty"`
// Connection server restrictions. Application pool can be accessed from only those connection server instances that have a matching tag in this list. Null or empty list means that the application pool can be accessed from any connection server.
CsRestrictionTags *[]string `json:"cs_restriction_tags,omitempty"`
// Notes about the application pool.
Description *string `json:"description,omitempty"`
// The display name is the name that users will see in Horizon client. If the display name is left blank, it defaults to name.
DisplayName *string `json:"display_name,omitempty"`
// Indicates whether client restrictions are to be applied to application pool. Currently it is valid for application pool created from farm. Default value is false.
EnableClientRestrictions *bool `json:"enable_client_restrictions,omitempty"`
// Whether to pre-launch the application.
EnablePreLaunch bool `json:"enable_pre_launch"`
// Indicates whether the application pool is enabled.
Enabled bool `json:"enabled"`
// Path to application executable.
ExecutablePath string `json:"executable_path"`
// Maximum number of multi-sessions a user can have in this application pool. This property is required if multi-session mode is set to \"ENABLED_DEFAULT_OFF\", \"ENABLED_DEFAULT_ON\", or \"ENABLED_ENFORCED\"Default value is 1.
MaxMultiSessions *int32 `json:"max_multi_sessions,omitempty"`
// Multi-session mode for the application pool. An application launched in multi-session mode does not support reconnect behavior when user logs in from a different client instance. Multi-session mode should be disabled when pre-launch is enabled.Default value is \"DISABLED\" * DISABLED: Multi-session is not supported for this application. * ENABLED_DEFAULT_OFF: Multi-session is supported for this application but is disabled by default. The client would need to explicitly request multi-session launch, if wanted. If a legacy client is used, this will always result in a single-session application launch. * ENABLED_DEFAULT_ON: Multi-session mode is supported for this application and is enabled by default. The client can request explicitly for single-session launch, if wanted. If a legacy client is used, this will always result in a multi-session application launch. * ENABLED_ENFORCED: Multi-session is supported for this application and it is enforced. The client can not select to launch this application as a single-session application.
MultiSessionMode *string `json:"multi_session_mode,omitempty"`
// Parameters to pass to application when launching.
Parameters *string `json:"parameters,omitempty"`
// Application publisher
Publisher *string `json:"publisher,omitempty"`
// Locations of the category folder in the user's OS containing a shortcut to the application. The value must be set if category folder name is provided.
ShortcutLocations *[]string `json:"shortcut_locations,omitempty"`
// Starting folder for application
StartFolder *string `json:"start_folder,omitempty"`
SupportedFileTypesData *ApplicationSupportedFileTypesData `json:"supported_file_types_data,omitempty"`
// Application version.
Version *string `json:"version,omitempty"`
}
// NewApplicationPoolUpdateSpecV2 instantiates a new ApplicationPoolUpdateSpecV2 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 NewApplicationPoolUpdateSpecV2(enablePreLaunch bool, enabled bool, executablePath string) *ApplicationPoolUpdateSpecV2 {
this := ApplicationPoolUpdateSpecV2{}
this.EnablePreLaunch = enablePreLaunch
this.Enabled = enabled
this.ExecutablePath = executablePath
return &this
}
// NewApplicationPoolUpdateSpecV2WithDefaults instantiates a new ApplicationPoolUpdateSpecV2 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 NewApplicationPoolUpdateSpecV2WithDefaults() *ApplicationPoolUpdateSpecV2 {
this := ApplicationPoolUpdateSpecV2{}
return &this
}
// GetAntiAffinityData returns the AntiAffinityData field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetAntiAffinityData() ApplicationAntiAffinityData {
if o == nil || o.AntiAffinityData == nil {
var ret ApplicationAntiAffinityData
return ret
}
return *o.AntiAffinityData
}
// GetAntiAffinityDataOk returns a tuple with the AntiAffinityData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetAntiAffinityDataOk() (*ApplicationAntiAffinityData, bool) {
if o == nil || o.AntiAffinityData == nil {
return nil, false
}
return o.AntiAffinityData, true
}
// HasAntiAffinityData returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasAntiAffinityData() bool {
if o != nil && o.AntiAffinityData != nil {
return true
}
return false
}
// SetAntiAffinityData gets a reference to the given ApplicationAntiAffinityData and assigns it to the AntiAffinityData field.
func (o *ApplicationPoolUpdateSpecV2) SetAntiAffinityData(v ApplicationAntiAffinityData) {
o.AntiAffinityData = &v
}
// GetCategoryFolderName returns the CategoryFolderName field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetCategoryFolderName() string {
if o == nil || o.CategoryFolderName == nil {
var ret string
return ret
}
return *o.CategoryFolderName
}
// GetCategoryFolderNameOk returns a tuple with the CategoryFolderName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetCategoryFolderNameOk() (*string, bool) {
if o == nil || o.CategoryFolderName == nil {
return nil, false
}
return o.CategoryFolderName, true
}
// HasCategoryFolderName returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasCategoryFolderName() bool {
if o != nil && o.CategoryFolderName != nil {
return true
}
return false
}
// SetCategoryFolderName gets a reference to the given string and assigns it to the CategoryFolderName field.
func (o *ApplicationPoolUpdateSpecV2) SetCategoryFolderName(v string) {
o.CategoryFolderName = &v
}
// GetCloudBrokered returns the CloudBrokered field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetCloudBrokered() bool {
if o == nil || o.CloudBrokered == nil {
var ret bool
return ret
}
return *o.CloudBrokered
}
// GetCloudBrokeredOk returns a tuple with the CloudBrokered field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetCloudBrokeredOk() (*bool, bool) {
if o == nil || o.CloudBrokered == nil {
return nil, false
}
return o.CloudBrokered, true
}
// HasCloudBrokered returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasCloudBrokered() bool {
if o != nil && o.CloudBrokered != nil {
return true
}
return false
}
// SetCloudBrokered gets a reference to the given bool and assigns it to the CloudBrokered field.
func (o *ApplicationPoolUpdateSpecV2) SetCloudBrokered(v bool) {
o.CloudBrokered = &v
}
// GetCsRestrictionTags returns the CsRestrictionTags field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetCsRestrictionTags() []string {
if o == nil || o.CsRestrictionTags == nil {
var ret []string
return ret
}
return *o.CsRestrictionTags
}
// GetCsRestrictionTagsOk returns a tuple with the CsRestrictionTags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetCsRestrictionTagsOk() (*[]string, bool) {
if o == nil || o.CsRestrictionTags == nil {
return nil, false
}
return o.CsRestrictionTags, true
}
// HasCsRestrictionTags returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasCsRestrictionTags() bool {
if o != nil && o.CsRestrictionTags != nil {
return true
}
return false
}
// SetCsRestrictionTags gets a reference to the given []string and assigns it to the CsRestrictionTags field.
func (o *ApplicationPoolUpdateSpecV2) SetCsRestrictionTags(v []string) {
o.CsRestrictionTags = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetDescription() string {
if o == nil || o.Description == nil {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetDescriptionOk() (*string, bool) {
if o == nil || o.Description == nil {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasDescription() bool {
if o != nil && o.Description != nil {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *ApplicationPoolUpdateSpecV2) SetDescription(v string) {
o.Description = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetDisplayName() string {
if o == nil || o.DisplayName == nil {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetDisplayNameOk() (*string, bool) {
if o == nil || o.DisplayName == nil {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasDisplayName() bool {
if o != nil && o.DisplayName != nil {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *ApplicationPoolUpdateSpecV2) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetEnableClientRestrictions returns the EnableClientRestrictions field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetEnableClientRestrictions() bool {
if o == nil || o.EnableClientRestrictions == nil {
var ret bool
return ret
}
return *o.EnableClientRestrictions
}
// GetEnableClientRestrictionsOk returns a tuple with the EnableClientRestrictions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetEnableClientRestrictionsOk() (*bool, bool) {
if o == nil || o.EnableClientRestrictions == nil {
return nil, false
}
return o.EnableClientRestrictions, true
}
// HasEnableClientRestrictions returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasEnableClientRestrictions() bool {
if o != nil && o.EnableClientRestrictions != nil {
return true
}
return false
}
// SetEnableClientRestrictions gets a reference to the given bool and assigns it to the EnableClientRestrictions field.
func (o *ApplicationPoolUpdateSpecV2) SetEnableClientRestrictions(v bool) {
o.EnableClientRestrictions = &v
}
// GetEnablePreLaunch returns the EnablePreLaunch field value
func (o *ApplicationPoolUpdateSpecV2) GetEnablePreLaunch() bool {
if o == nil {
var ret bool
return ret
}
return o.EnablePreLaunch
}
// GetEnablePreLaunchOk returns a tuple with the EnablePreLaunch field value
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetEnablePreLaunchOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.EnablePreLaunch, true
}
// SetEnablePreLaunch sets field value
func (o *ApplicationPoolUpdateSpecV2) SetEnablePreLaunch(v bool) {
o.EnablePreLaunch = v
}
// GetEnabled returns the Enabled field value
func (o *ApplicationPoolUpdateSpecV2) GetEnabled() bool {
if o == nil {
var ret bool
return ret
}
return o.Enabled
}
// GetEnabledOk returns a tuple with the Enabled field value
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetEnabledOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.Enabled, true
}
// SetEnabled sets field value
func (o *ApplicationPoolUpdateSpecV2) SetEnabled(v bool) {
o.Enabled = v
}
// GetExecutablePath returns the ExecutablePath field value
func (o *ApplicationPoolUpdateSpecV2) GetExecutablePath() string {
if o == nil {
var ret string
return ret
}
return o.ExecutablePath
}
// GetExecutablePathOk returns a tuple with the ExecutablePath field value
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetExecutablePathOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ExecutablePath, true
}
// SetExecutablePath sets field value
func (o *ApplicationPoolUpdateSpecV2) SetExecutablePath(v string) {
o.ExecutablePath = v
}
// GetMaxMultiSessions returns the MaxMultiSessions field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetMaxMultiSessions() int32 {
if o == nil || o.MaxMultiSessions == nil {
var ret int32
return ret
}
return *o.MaxMultiSessions
}
// GetMaxMultiSessionsOk returns a tuple with the MaxMultiSessions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetMaxMultiSessionsOk() (*int32, bool) {
if o == nil || o.MaxMultiSessions == nil {
return nil, false
}
return o.MaxMultiSessions, true
}
// HasMaxMultiSessions returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasMaxMultiSessions() bool {
if o != nil && o.MaxMultiSessions != nil {
return true
}
return false
}
// SetMaxMultiSessions gets a reference to the given int32 and assigns it to the MaxMultiSessions field.
func (o *ApplicationPoolUpdateSpecV2) SetMaxMultiSessions(v int32) {
o.MaxMultiSessions = &v
}
// GetMultiSessionMode returns the MultiSessionMode field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetMultiSessionMode() string {
if o == nil || o.MultiSessionMode == nil {
var ret string
return ret
}
return *o.MultiSessionMode
}
// GetMultiSessionModeOk returns a tuple with the MultiSessionMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetMultiSessionModeOk() (*string, bool) {
if o == nil || o.MultiSessionMode == nil {
return nil, false
}
return o.MultiSessionMode, true
}
// HasMultiSessionMode returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasMultiSessionMode() bool {
if o != nil && o.MultiSessionMode != nil {
return true
}
return false
}
// SetMultiSessionMode gets a reference to the given string and assigns it to the MultiSessionMode field.
func (o *ApplicationPoolUpdateSpecV2) SetMultiSessionMode(v string) {
o.MultiSessionMode = &v
}
// GetParameters returns the Parameters field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetParameters() string {
if o == nil || o.Parameters == nil {
var ret string
return ret
}
return *o.Parameters
}
// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetParametersOk() (*string, bool) {
if o == nil || o.Parameters == nil {
return nil, false
}
return o.Parameters, true
}
// HasParameters returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasParameters() bool {
if o != nil && o.Parameters != nil {
return true
}
return false
}
// SetParameters gets a reference to the given string and assigns it to the Parameters field.
func (o *ApplicationPoolUpdateSpecV2) SetParameters(v string) {
o.Parameters = &v
}
// GetPublisher returns the Publisher field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetPublisher() string {
if o == nil || o.Publisher == nil {
var ret string
return ret
}
return *o.Publisher
}
// GetPublisherOk returns a tuple with the Publisher field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetPublisherOk() (*string, bool) {
if o == nil || o.Publisher == nil {
return nil, false
}
return o.Publisher, true
}
// HasPublisher returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasPublisher() bool {
if o != nil && o.Publisher != nil {
return true
}
return false
}
// SetPublisher gets a reference to the given string and assigns it to the Publisher field.
func (o *ApplicationPoolUpdateSpecV2) SetPublisher(v string) {
o.Publisher = &v
}
// GetShortcutLocations returns the ShortcutLocations field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetShortcutLocations() []string {
if o == nil || o.ShortcutLocations == nil {
var ret []string
return ret
}
return *o.ShortcutLocations
}
// GetShortcutLocationsOk returns a tuple with the ShortcutLocations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetShortcutLocationsOk() (*[]string, bool) {
if o == nil || o.ShortcutLocations == nil {
return nil, false
}
return o.ShortcutLocations, true
}
// HasShortcutLocations returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasShortcutLocations() bool {
if o != nil && o.ShortcutLocations != nil {
return true
}
return false
}
// SetShortcutLocations gets a reference to the given []string and assigns it to the ShortcutLocations field.
func (o *ApplicationPoolUpdateSpecV2) SetShortcutLocations(v []string) {
o.ShortcutLocations = &v
}
// GetStartFolder returns the StartFolder field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetStartFolder() string {
if o == nil || o.StartFolder == nil {
var ret string
return ret
}
return *o.StartFolder
}
// GetStartFolderOk returns a tuple with the StartFolder field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetStartFolderOk() (*string, bool) {
if o == nil || o.StartFolder == nil {
return nil, false
}
return o.StartFolder, true
}
// HasStartFolder returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasStartFolder() bool {
if o != nil && o.StartFolder != nil {
return true
}
return false
}
// SetStartFolder gets a reference to the given string and assigns it to the StartFolder field.
func (o *ApplicationPoolUpdateSpecV2) SetStartFolder(v string) {
o.StartFolder = &v
}
// GetSupportedFileTypesData returns the SupportedFileTypesData field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetSupportedFileTypesData() ApplicationSupportedFileTypesData {
if o == nil || o.SupportedFileTypesData == nil {
var ret ApplicationSupportedFileTypesData
return ret
}
return *o.SupportedFileTypesData
}
// GetSupportedFileTypesDataOk returns a tuple with the SupportedFileTypesData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetSupportedFileTypesDataOk() (*ApplicationSupportedFileTypesData, bool) {
if o == nil || o.SupportedFileTypesData == nil {
return nil, false
}
return o.SupportedFileTypesData, true
}
// HasSupportedFileTypesData returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasSupportedFileTypesData() bool {
if o != nil && o.SupportedFileTypesData != nil {
return true
}
return false
}
// SetSupportedFileTypesData gets a reference to the given ApplicationSupportedFileTypesData and assigns it to the SupportedFileTypesData field.
func (o *ApplicationPoolUpdateSpecV2) SetSupportedFileTypesData(v ApplicationSupportedFileTypesData) {
o.SupportedFileTypesData = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *ApplicationPoolUpdateSpecV2) GetVersion() string {
if o == nil || o.Version == nil {
var ret string
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationPoolUpdateSpecV2) GetVersionOk() (*string, bool) {
if o == nil || o.Version == nil {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *ApplicationPoolUpdateSpecV2) HasVersion() bool {
if o != nil && o.Version != nil {
return true
}
return false
}
// SetVersion gets a reference to the given string and assigns it to the Version field.
func (o *ApplicationPoolUpdateSpecV2) SetVersion(v string) {
o.Version = &v
}
func (o ApplicationPoolUpdateSpecV2) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AntiAffinityData != nil {
toSerialize["anti_affinity_data"] = o.AntiAffinityData
}
if o.CategoryFolderName != nil {
toSerialize["category_folder_name"] = o.CategoryFolderName
}
if o.CloudBrokered != nil {
toSerialize["cloud_brokered"] = o.CloudBrokered
}
if o.CsRestrictionTags != nil {
toSerialize["cs_restriction_tags"] = o.CsRestrictionTags
}
if o.Description != nil {
toSerialize["description"] = o.Description
}
if o.DisplayName != nil {
toSerialize["display_name"] = o.DisplayName
}
if o.EnableClientRestrictions != nil {
toSerialize["enable_client_restrictions"] = o.EnableClientRestrictions
}
if true {
toSerialize["enable_pre_launch"] = o.EnablePreLaunch
}
if true {
toSerialize["enabled"] = o.Enabled
}
if true {
toSerialize["executable_path"] = o.ExecutablePath
}
if o.MaxMultiSessions != nil {
toSerialize["max_multi_sessions"] = o.MaxMultiSessions
}
if o.MultiSessionMode != nil {
toSerialize["multi_session_mode"] = o.MultiSessionMode
}
if o.Parameters != nil {
toSerialize["parameters"] = o.Parameters
}
if o.Publisher != nil {
toSerialize["publisher"] = o.Publisher
}
if o.ShortcutLocations != nil {
toSerialize["shortcut_locations"] = o.ShortcutLocations
}
if o.StartFolder != nil {
toSerialize["start_folder"] = o.StartFolder
}
if o.SupportedFileTypesData != nil {
toSerialize["supported_file_types_data"] = o.SupportedFileTypesData
}
if o.Version != nil {
toSerialize["version"] = o.Version
}
return json.Marshal(toSerialize)
}
type NullableApplicationPoolUpdateSpecV2 struct {
value *ApplicationPoolUpdateSpecV2
isSet bool
}
func (v NullableApplicationPoolUpdateSpecV2) Get() *ApplicationPoolUpdateSpecV2 {
return v.value
}
func (v *NullableApplicationPoolUpdateSpecV2) Set(val *ApplicationPoolUpdateSpecV2) {
v.value = val
v.isSet = true
}
func (v NullableApplicationPoolUpdateSpecV2) IsSet() bool {
return v.isSet
}
func (v *NullableApplicationPoolUpdateSpecV2) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableApplicationPoolUpdateSpecV2(val *ApplicationPoolUpdateSpecV2) *NullableApplicationPoolUpdateSpecV2 {
return &NullableApplicationPoolUpdateSpecV2{value: val, isSet: true}
}
func (v NullableApplicationPoolUpdateSpecV2) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableApplicationPoolUpdateSpecV2) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}