-
Notifications
You must be signed in to change notification settings - Fork 2
/
model_desktop_pool_create_spec.go
1424 lines (1224 loc) · 52.9 KB
/
model_desktop_pool_create_spec.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
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
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
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"
)
// DesktopPoolCreateSpec Information required to create a desktop pool.
type DesktopPoolCreateSpec struct {
// Access groups can organize the entities such as desktop pools in the organization. They can also be used for delegated administration. <br> This property is required for all the pools except for RDS desktop pool, which will be inherited from the corresponding Farm.
AccessGroupId *string `json:"access_group_id,omitempty"`
// Applicable To: Dedicated manual and automated desktop pools with manual user assignment with default value as false.<br>Whether assignment of multiple users to a single machine is allowed.<br>If this is true then automatic_user_assignment should be false. <br>
AllowMultipleUserAssignments *bool `json:"allow_multiple_user_assignments,omitempty"`
// Applicable To: RDS desktop pools with default value as false.<br>Indicates whether multiple sessions are allowed per user for this pool.For other desktop pools, allow_multiple_sessions_per_user from session_settings will be applicable. <br>
AllowRdsPoolMultiSessionPerUser *bool `json:"allow_rds_pool_multi_session_per_user,omitempty"`
// Automatic assignment of a user the first time they access the machine.<br>This property is applicable if user_assignment is set to DEDICATED with default value as true.<br>
AutomaticUserAssignment *bool `json:"automatic_user_assignment,omitempty"`
// Name of the category folder in the user's OS containing a shortcut to the desktop pool.Will be unset if the desktop does not belong to a category.This property defines valid folder names with a max length of 64 characters and up to 4 subdirectory levels.The subdirectories can be specified using a backslash, e.g. (dir1\\dir2\\dir3\\dir4). Folder names can't start orend with a backslash nor can there be 2 or more backslashes together. Combinations such as(\\dir1, dir1\\dir2\\, dir1\\\\\\dir2, dir1\\\\\\\\\\dir2) are invalid. The windows reserved keywords(CON, PRN, NUL, AUX, COM1 - COM9, LPT1 - LPT9 etc.) are not allowed in subdirectory names.
CategoryFolderName *string `json:"category_folder_name,omitempty"`
// Indicates whether this desktop is assigned to a workspace in Horizon Cloud Services.<br>This can be set to true from cloud session only and only when cloud_managed is set to true.<br>Default value is false. <br>
CloudAssigned *bool `json:"cloud_assigned,omitempty"`
// Applicable To: RDS Desktop Pools with default value as false.
CloudBrokered *bool `json:"cloud_brokered,omitempty"`
// Indicates whether this desktop is managed by Horizon Cloud Services. This can be set to false only when cloud_assigned is set to false.<br>Default value is false. <br>This property cannot be set to true, if any of the conditions are satisfied: <br>user is provided.<br>enabled is false.<br>supported_session_type is not DESKTOP.<br>global_entitlement is set.<br>user_assignment is DEDICATED and automatic_user_assignment is false. <br>Local entitlements are configured. <br>Any of the machines in the pool have users assigned. <br>cs_restriction_tags is not set. <br>Desktop pool type is MANUAL.
CloudManaged *bool `json:"cloud_managed,omitempty"`
// List of Connection server restriction tags to which the access to the desktop pool is restricted. If this property is not set it indicates that desktop pool can be accessed from any connection server.
CsRestrictionTags *[]string `json:"cs_restriction_tags,omitempty"`
CustomizationSettings *DesktopPoolCustomizationSettingsCreateSpec `json:"customization_settings,omitempty"`
// Description of the desktop pool.
Description *string `json:"description,omitempty"`
// Applicable To: Dedicated desktop pools with default value as false.<br>Indicates whether users should see the hostname of the machine assigned to them instead of display_name when they connect using Horizon Client. If no machine is assigned to the user then \"display_name (No machine assigned)\" will be displayed in the client.<br>
DisplayAssignedMachineName *bool `json:"display_assigned_machine_name,omitempty"`
// Applicable To: Dedicated desktop pools with default value as false.<br> If no machine is assigned to the user then \"displayName No machine assigned)\" will be displayed in the Horizon client. If both display_assigned_machine_name and this property is set to true, machine alias of the assigned machine is displayed if the user has machine alias set. Otherwise hostname will be displayed.
DisplayMachineAlias *bool `json:"display_machine_alias,omitempty"`
// Display name of the desktop pool. If the display name is left blank, it defaults to name.
DisplayName *string `json:"display_name,omitempty"`
DisplayProtocolSettings *DesktopPoolDisplayProtocolSettingsCreateSpec `json:"display_protocol_settings,omitempty"`
// Client restrictions to be applied to the desktop pool.<br>Default value is false.
EnableClientRestrictions *bool `json:"enable_client_restrictions,omitempty"`
// Applicable To: Automated desktop pools with default value as true.<br>Indicates whether provisioning is enabled.<br>
EnableProvisioning *bool `json:"enable_provisioning,omitempty"`
// Indicates whether the desktop pool is enabled for brokering. Default value is true.
Enabled *bool `json:"enabled,omitempty"`
// Applicable To: RDS Desktop pool.<br>Farm is needed to create RDS desktop pool. This is required for RDS desktop pools.This Farm must not already be associated with another RDS desktop.
FarmId *string `json:"farm_id,omitempty"`
// Applicable To: Manual desktop pools. <br>List of machines to add to this desktop pool during creation.
Machines *[]string `json:"machines,omitempty"`
// Name of the desktop pool. This property must contain only alphanumerics, underscores and dashes.
Name string `json:"name"`
// Applicable To: Automated desktop pool.<br>Naming method for the desktop pool. This is required for Automated desktop pools. * SPECIFIED: List of specified names. All provisioning is done up-front. * PATTERN: Naming pattern.
NamingMethod *string `json:"naming_method,omitempty"`
// Network interface card settings for machines provisioned for this desktop.
Nics *[]DesktopPoolNetworkInterfaceCardSettingsCreateSpec `json:"nics,omitempty"`
PatternNamingSettings *DesktopPoolVirtualMachinePatternNamingSettingsCreateSpec `json:"pattern_naming_settings,omitempty"`
ProvisioningSettings *DesktopPoolProvisioningSettingsCreateSpec `json:"provisioning_settings,omitempty"`
SessionSettings *DesktopPoolSessionSettingsCreateSpec `json:"session_settings,omitempty"`
// Applicable To: Managed desktop pools with default value as DESKTOP.<br> Supported session types for this desktop pool. If this property is set to APPLICATION then this desktop pool can be used for application pool creation. This will be useful when the machines in the pool support application remoting. * DESKTOP: Only desktop sessions are supported. * APPLICATION: Only application sessions are supported. * DESKTOP_AND_APPLICATION: Both desktop and application sessions are supported.
SessionType *string `json:"session_type,omitempty"`
// Locations of the category folder in the user's OS containing a shortcut to the desktop pool. This is required if the category_folder_name is set.
ShortcutLocationsV2 *[]string `json:"shortcut_locations_v2,omitempty"`
// Applicable To: Manual and Automated desktop pools.<br>Source of the Machines in this Desktop Pool. This is required for Manual and Automated desktop pools.<br> * INSTANT_CLONE: The Desktop Pool uses instant clone technology for provisioning the machines. Applicable for AUTOMATED type desktop pools. * LINKED_CLONE: The Desktop Pool uses linked clone technology for provisioning the machines. Applicable for AUTOMATED type desktop pools. * VIRTUAL_CENTER: The Desktop Pool uses Virtual Center as source for provisioning the machines. Applicable for AUTOMATED and MANUAL type desktop pools. * RDS: The Desktop Pool is backed by Farm. The Farm used in this Desktop Pool can be of any Source. * UNMANAGED: The Desktop Pool holds the non-vCenter source machines that includes physical computers, blade PCs and non-vCenter servers. Applicable for MANUAL type desktop pools.
Source *string `json:"source,omitempty"`
SpecificNamingSettings *DesktopPoolVirtualMachineSpecifiedNamingSettingsCreateSpec `json:"specific_naming_settings,omitempty"`
// Applicable for Automated pools only with default value as true.
StopProvisioningOnError *bool `json:"stop_provisioning_on_error,omitempty"`
StorageSettings *DesktopPoolStorageSettingsCreateSpec `json:"storage_settings,omitempty"`
// Applicable To: Managed Manual and Automated desktop pools with default value as VM.<br>Transparent page sharing scope for this Desktop Pool. * VM: Inter-VM page sharing is not permitted. * DESKTOP_POOL: Inter-VM page sharing among VMs belonging to the same Desktop pool is permitted. * POD: Inter-VM page sharing among VMs belonging to the same Pod is permitted. * GLOBAL: Inter-VM page sharing among all VMs on the same host is permitted.
TransparentPageSharingScope *string `json:"transparent_page_sharing_scope,omitempty"`
// Type of the Desktop Pool. * AUTOMATED: Automated Desktop Pool. * MANUAL: Manual Desktop Pool. * RDS: RDS Desktop Pool.
Type string `json:"type"`
// Applicable To: Automated and Manual Desktop pools. User assignment scheme. This is required for Automated and Manual Desktop Pools.<br> * DEDICATED: With dedicated assignment, a user returns to the same machine at each session. * FLOATING: With floating assignment, a user may return to one of the available machines for the next session.
UserAssignment *string `json:"user_assignment,omitempty"`
// ID of the virtual center server. <br>This is required for all desktop pool except Unmanaged Manual and RDS desktop pool. <br>
VcenterId *string `json:"vcenter_id,omitempty"`
ViewStorageAcceleratorSettings *DesktopPoolViewStorageAcceleratorSettingsCreateSpec `json:"view_storage_accelerator_settings,omitempty"`
}
// NewDesktopPoolCreateSpec instantiates a new DesktopPoolCreateSpec 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 NewDesktopPoolCreateSpec(name string, type_ string) *DesktopPoolCreateSpec {
this := DesktopPoolCreateSpec{}
this.Name = name
this.Type = type_
return &this
}
// NewDesktopPoolCreateSpecWithDefaults instantiates a new DesktopPoolCreateSpec 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 NewDesktopPoolCreateSpecWithDefaults() *DesktopPoolCreateSpec {
this := DesktopPoolCreateSpec{}
return &this
}
// GetAccessGroupId returns the AccessGroupId field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetAccessGroupId() string {
if o == nil || o.AccessGroupId == nil {
var ret string
return ret
}
return *o.AccessGroupId
}
// GetAccessGroupIdOk returns a tuple with the AccessGroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetAccessGroupIdOk() (*string, bool) {
if o == nil || o.AccessGroupId == nil {
return nil, false
}
return o.AccessGroupId, true
}
// HasAccessGroupId returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasAccessGroupId() bool {
if o != nil && o.AccessGroupId != nil {
return true
}
return false
}
// SetAccessGroupId gets a reference to the given string and assigns it to the AccessGroupId field.
func (o *DesktopPoolCreateSpec) SetAccessGroupId(v string) {
o.AccessGroupId = &v
}
// GetAllowMultipleUserAssignments returns the AllowMultipleUserAssignments field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetAllowMultipleUserAssignments() bool {
if o == nil || o.AllowMultipleUserAssignments == nil {
var ret bool
return ret
}
return *o.AllowMultipleUserAssignments
}
// GetAllowMultipleUserAssignmentsOk returns a tuple with the AllowMultipleUserAssignments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetAllowMultipleUserAssignmentsOk() (*bool, bool) {
if o == nil || o.AllowMultipleUserAssignments == nil {
return nil, false
}
return o.AllowMultipleUserAssignments, true
}
// HasAllowMultipleUserAssignments returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasAllowMultipleUserAssignments() bool {
if o != nil && o.AllowMultipleUserAssignments != nil {
return true
}
return false
}
// SetAllowMultipleUserAssignments gets a reference to the given bool and assigns it to the AllowMultipleUserAssignments field.
func (o *DesktopPoolCreateSpec) SetAllowMultipleUserAssignments(v bool) {
o.AllowMultipleUserAssignments = &v
}
// GetAllowRdsPoolMultiSessionPerUser returns the AllowRdsPoolMultiSessionPerUser field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetAllowRdsPoolMultiSessionPerUser() bool {
if o == nil || o.AllowRdsPoolMultiSessionPerUser == nil {
var ret bool
return ret
}
return *o.AllowRdsPoolMultiSessionPerUser
}
// GetAllowRdsPoolMultiSessionPerUserOk returns a tuple with the AllowRdsPoolMultiSessionPerUser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetAllowRdsPoolMultiSessionPerUserOk() (*bool, bool) {
if o == nil || o.AllowRdsPoolMultiSessionPerUser == nil {
return nil, false
}
return o.AllowRdsPoolMultiSessionPerUser, true
}
// HasAllowRdsPoolMultiSessionPerUser returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasAllowRdsPoolMultiSessionPerUser() bool {
if o != nil && o.AllowRdsPoolMultiSessionPerUser != nil {
return true
}
return false
}
// SetAllowRdsPoolMultiSessionPerUser gets a reference to the given bool and assigns it to the AllowRdsPoolMultiSessionPerUser field.
func (o *DesktopPoolCreateSpec) SetAllowRdsPoolMultiSessionPerUser(v bool) {
o.AllowRdsPoolMultiSessionPerUser = &v
}
// GetAutomaticUserAssignment returns the AutomaticUserAssignment field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetAutomaticUserAssignment() bool {
if o == nil || o.AutomaticUserAssignment == nil {
var ret bool
return ret
}
return *o.AutomaticUserAssignment
}
// GetAutomaticUserAssignmentOk returns a tuple with the AutomaticUserAssignment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetAutomaticUserAssignmentOk() (*bool, bool) {
if o == nil || o.AutomaticUserAssignment == nil {
return nil, false
}
return o.AutomaticUserAssignment, true
}
// HasAutomaticUserAssignment returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasAutomaticUserAssignment() bool {
if o != nil && o.AutomaticUserAssignment != nil {
return true
}
return false
}
// SetAutomaticUserAssignment gets a reference to the given bool and assigns it to the AutomaticUserAssignment field.
func (o *DesktopPoolCreateSpec) SetAutomaticUserAssignment(v bool) {
o.AutomaticUserAssignment = &v
}
// GetCategoryFolderName returns the CategoryFolderName field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) SetCategoryFolderName(v string) {
o.CategoryFolderName = &v
}
// GetCloudAssigned returns the CloudAssigned field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetCloudAssigned() bool {
if o == nil || o.CloudAssigned == nil {
var ret bool
return ret
}
return *o.CloudAssigned
}
// GetCloudAssignedOk returns a tuple with the CloudAssigned field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetCloudAssignedOk() (*bool, bool) {
if o == nil || o.CloudAssigned == nil {
return nil, false
}
return o.CloudAssigned, true
}
// HasCloudAssigned returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasCloudAssigned() bool {
if o != nil && o.CloudAssigned != nil {
return true
}
return false
}
// SetCloudAssigned gets a reference to the given bool and assigns it to the CloudAssigned field.
func (o *DesktopPoolCreateSpec) SetCloudAssigned(v bool) {
o.CloudAssigned = &v
}
// GetCloudBrokered returns the CloudBrokered field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) SetCloudBrokered(v bool) {
o.CloudBrokered = &v
}
// GetCloudManaged returns the CloudManaged field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetCloudManaged() bool {
if o == nil || o.CloudManaged == nil {
var ret bool
return ret
}
return *o.CloudManaged
}
// GetCloudManagedOk returns a tuple with the CloudManaged field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetCloudManagedOk() (*bool, bool) {
if o == nil || o.CloudManaged == nil {
return nil, false
}
return o.CloudManaged, true
}
// HasCloudManaged returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasCloudManaged() bool {
if o != nil && o.CloudManaged != nil {
return true
}
return false
}
// SetCloudManaged gets a reference to the given bool and assigns it to the CloudManaged field.
func (o *DesktopPoolCreateSpec) SetCloudManaged(v bool) {
o.CloudManaged = &v
}
// GetCsRestrictionTags returns the CsRestrictionTags field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) SetCsRestrictionTags(v []string) {
o.CsRestrictionTags = &v
}
// GetCustomizationSettings returns the CustomizationSettings field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetCustomizationSettings() DesktopPoolCustomizationSettingsCreateSpec {
if o == nil || o.CustomizationSettings == nil {
var ret DesktopPoolCustomizationSettingsCreateSpec
return ret
}
return *o.CustomizationSettings
}
// GetCustomizationSettingsOk returns a tuple with the CustomizationSettings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetCustomizationSettingsOk() (*DesktopPoolCustomizationSettingsCreateSpec, bool) {
if o == nil || o.CustomizationSettings == nil {
return nil, false
}
return o.CustomizationSettings, true
}
// HasCustomizationSettings returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasCustomizationSettings() bool {
if o != nil && o.CustomizationSettings != nil {
return true
}
return false
}
// SetCustomizationSettings gets a reference to the given DesktopPoolCustomizationSettingsCreateSpec and assigns it to the CustomizationSettings field.
func (o *DesktopPoolCreateSpec) SetCustomizationSettings(v DesktopPoolCustomizationSettingsCreateSpec) {
o.CustomizationSettings = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) SetDescription(v string) {
o.Description = &v
}
// GetDisplayAssignedMachineName returns the DisplayAssignedMachineName field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetDisplayAssignedMachineName() bool {
if o == nil || o.DisplayAssignedMachineName == nil {
var ret bool
return ret
}
return *o.DisplayAssignedMachineName
}
// GetDisplayAssignedMachineNameOk returns a tuple with the DisplayAssignedMachineName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetDisplayAssignedMachineNameOk() (*bool, bool) {
if o == nil || o.DisplayAssignedMachineName == nil {
return nil, false
}
return o.DisplayAssignedMachineName, true
}
// HasDisplayAssignedMachineName returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasDisplayAssignedMachineName() bool {
if o != nil && o.DisplayAssignedMachineName != nil {
return true
}
return false
}
// SetDisplayAssignedMachineName gets a reference to the given bool and assigns it to the DisplayAssignedMachineName field.
func (o *DesktopPoolCreateSpec) SetDisplayAssignedMachineName(v bool) {
o.DisplayAssignedMachineName = &v
}
// GetDisplayMachineAlias returns the DisplayMachineAlias field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetDisplayMachineAlias() bool {
if o == nil || o.DisplayMachineAlias == nil {
var ret bool
return ret
}
return *o.DisplayMachineAlias
}
// GetDisplayMachineAliasOk returns a tuple with the DisplayMachineAlias field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetDisplayMachineAliasOk() (*bool, bool) {
if o == nil || o.DisplayMachineAlias == nil {
return nil, false
}
return o.DisplayMachineAlias, true
}
// HasDisplayMachineAlias returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasDisplayMachineAlias() bool {
if o != nil && o.DisplayMachineAlias != nil {
return true
}
return false
}
// SetDisplayMachineAlias gets a reference to the given bool and assigns it to the DisplayMachineAlias field.
func (o *DesktopPoolCreateSpec) SetDisplayMachineAlias(v bool) {
o.DisplayMachineAlias = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetDisplayProtocolSettings returns the DisplayProtocolSettings field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetDisplayProtocolSettings() DesktopPoolDisplayProtocolSettingsCreateSpec {
if o == nil || o.DisplayProtocolSettings == nil {
var ret DesktopPoolDisplayProtocolSettingsCreateSpec
return ret
}
return *o.DisplayProtocolSettings
}
// GetDisplayProtocolSettingsOk returns a tuple with the DisplayProtocolSettings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetDisplayProtocolSettingsOk() (*DesktopPoolDisplayProtocolSettingsCreateSpec, bool) {
if o == nil || o.DisplayProtocolSettings == nil {
return nil, false
}
return o.DisplayProtocolSettings, true
}
// HasDisplayProtocolSettings returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasDisplayProtocolSettings() bool {
if o != nil && o.DisplayProtocolSettings != nil {
return true
}
return false
}
// SetDisplayProtocolSettings gets a reference to the given DesktopPoolDisplayProtocolSettingsCreateSpec and assigns it to the DisplayProtocolSettings field.
func (o *DesktopPoolCreateSpec) SetDisplayProtocolSettings(v DesktopPoolDisplayProtocolSettingsCreateSpec) {
o.DisplayProtocolSettings = &v
}
// GetEnableClientRestrictions returns the EnableClientRestrictions field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) 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 *DesktopPoolCreateSpec) SetEnableClientRestrictions(v bool) {
o.EnableClientRestrictions = &v
}
// GetEnableProvisioning returns the EnableProvisioning field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetEnableProvisioning() bool {
if o == nil || o.EnableProvisioning == nil {
var ret bool
return ret
}
return *o.EnableProvisioning
}
// GetEnableProvisioningOk returns a tuple with the EnableProvisioning field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetEnableProvisioningOk() (*bool, bool) {
if o == nil || o.EnableProvisioning == nil {
return nil, false
}
return o.EnableProvisioning, true
}
// HasEnableProvisioning returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasEnableProvisioning() bool {
if o != nil && o.EnableProvisioning != nil {
return true
}
return false
}
// SetEnableProvisioning gets a reference to the given bool and assigns it to the EnableProvisioning field.
func (o *DesktopPoolCreateSpec) SetEnableProvisioning(v bool) {
o.EnableProvisioning = &v
}
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetEnabled() bool {
if o == nil || o.Enabled == nil {
var ret bool
return ret
}
return *o.Enabled
}
// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetEnabledOk() (*bool, bool) {
if o == nil || o.Enabled == nil {
return nil, false
}
return o.Enabled, true
}
// HasEnabled returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasEnabled() bool {
if o != nil && o.Enabled != nil {
return true
}
return false
}
// SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *DesktopPoolCreateSpec) SetEnabled(v bool) {
o.Enabled = &v
}
// GetFarmId returns the FarmId field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetFarmId() string {
if o == nil || o.FarmId == nil {
var ret string
return ret
}
return *o.FarmId
}
// GetFarmIdOk returns a tuple with the FarmId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetFarmIdOk() (*string, bool) {
if o == nil || o.FarmId == nil {
return nil, false
}
return o.FarmId, true
}
// HasFarmId returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasFarmId() bool {
if o != nil && o.FarmId != nil {
return true
}
return false
}
// SetFarmId gets a reference to the given string and assigns it to the FarmId field.
func (o *DesktopPoolCreateSpec) SetFarmId(v string) {
o.FarmId = &v
}
// GetMachines returns the Machines field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetMachines() []string {
if o == nil || o.Machines == nil {
var ret []string
return ret
}
return *o.Machines
}
// GetMachinesOk returns a tuple with the Machines field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetMachinesOk() (*[]string, bool) {
if o == nil || o.Machines == nil {
return nil, false
}
return o.Machines, true
}
// HasMachines returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasMachines() bool {
if o != nil && o.Machines != nil {
return true
}
return false
}
// SetMachines gets a reference to the given []string and assigns it to the Machines field.
func (o *DesktopPoolCreateSpec) SetMachines(v []string) {
o.Machines = &v
}
// GetName returns the Name field value
func (o *DesktopPoolCreateSpec) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *DesktopPoolCreateSpec) SetName(v string) {
o.Name = v
}
// GetNamingMethod returns the NamingMethod field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetNamingMethod() string {
if o == nil || o.NamingMethod == nil {
var ret string
return ret
}
return *o.NamingMethod
}
// GetNamingMethodOk returns a tuple with the NamingMethod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetNamingMethodOk() (*string, bool) {
if o == nil || o.NamingMethod == nil {
return nil, false
}
return o.NamingMethod, true
}
// HasNamingMethod returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasNamingMethod() bool {
if o != nil && o.NamingMethod != nil {
return true
}
return false
}
// SetNamingMethod gets a reference to the given string and assigns it to the NamingMethod field.
func (o *DesktopPoolCreateSpec) SetNamingMethod(v string) {
o.NamingMethod = &v
}
// GetNics returns the Nics field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetNics() []DesktopPoolNetworkInterfaceCardSettingsCreateSpec {
if o == nil || o.Nics == nil {
var ret []DesktopPoolNetworkInterfaceCardSettingsCreateSpec
return ret
}
return *o.Nics
}
// GetNicsOk returns a tuple with the Nics field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetNicsOk() (*[]DesktopPoolNetworkInterfaceCardSettingsCreateSpec, bool) {
if o == nil || o.Nics == nil {
return nil, false
}
return o.Nics, true
}
// HasNics returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasNics() bool {
if o != nil && o.Nics != nil {
return true
}
return false
}
// SetNics gets a reference to the given []DesktopPoolNetworkInterfaceCardSettingsCreateSpec and assigns it to the Nics field.
func (o *DesktopPoolCreateSpec) SetNics(v []DesktopPoolNetworkInterfaceCardSettingsCreateSpec) {
o.Nics = &v
}
// GetPatternNamingSettings returns the PatternNamingSettings field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetPatternNamingSettings() DesktopPoolVirtualMachinePatternNamingSettingsCreateSpec {
if o == nil || o.PatternNamingSettings == nil {
var ret DesktopPoolVirtualMachinePatternNamingSettingsCreateSpec
return ret
}
return *o.PatternNamingSettings
}
// GetPatternNamingSettingsOk returns a tuple with the PatternNamingSettings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetPatternNamingSettingsOk() (*DesktopPoolVirtualMachinePatternNamingSettingsCreateSpec, bool) {
if o == nil || o.PatternNamingSettings == nil {
return nil, false
}
return o.PatternNamingSettings, true
}
// HasPatternNamingSettings returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasPatternNamingSettings() bool {
if o != nil && o.PatternNamingSettings != nil {
return true
}
return false
}
// SetPatternNamingSettings gets a reference to the given DesktopPoolVirtualMachinePatternNamingSettingsCreateSpec and assigns it to the PatternNamingSettings field.
func (o *DesktopPoolCreateSpec) SetPatternNamingSettings(v DesktopPoolVirtualMachinePatternNamingSettingsCreateSpec) {
o.PatternNamingSettings = &v
}
// GetProvisioningSettings returns the ProvisioningSettings field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetProvisioningSettings() DesktopPoolProvisioningSettingsCreateSpec {
if o == nil || o.ProvisioningSettings == nil {
var ret DesktopPoolProvisioningSettingsCreateSpec
return ret
}
return *o.ProvisioningSettings
}
// GetProvisioningSettingsOk returns a tuple with the ProvisioningSettings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetProvisioningSettingsOk() (*DesktopPoolProvisioningSettingsCreateSpec, bool) {
if o == nil || o.ProvisioningSettings == nil {
return nil, false
}
return o.ProvisioningSettings, true
}
// HasProvisioningSettings returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasProvisioningSettings() bool {
if o != nil && o.ProvisioningSettings != nil {
return true
}
return false
}
// SetProvisioningSettings gets a reference to the given DesktopPoolProvisioningSettingsCreateSpec and assigns it to the ProvisioningSettings field.
func (o *DesktopPoolCreateSpec) SetProvisioningSettings(v DesktopPoolProvisioningSettingsCreateSpec) {
o.ProvisioningSettings = &v
}
// GetSessionSettings returns the SessionSettings field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetSessionSettings() DesktopPoolSessionSettingsCreateSpec {
if o == nil || o.SessionSettings == nil {
var ret DesktopPoolSessionSettingsCreateSpec
return ret
}
return *o.SessionSettings
}
// GetSessionSettingsOk returns a tuple with the SessionSettings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetSessionSettingsOk() (*DesktopPoolSessionSettingsCreateSpec, bool) {
if o == nil || o.SessionSettings == nil {
return nil, false
}
return o.SessionSettings, true
}
// HasSessionSettings returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasSessionSettings() bool {
if o != nil && o.SessionSettings != nil {
return true
}
return false
}
// SetSessionSettings gets a reference to the given DesktopPoolSessionSettingsCreateSpec and assigns it to the SessionSettings field.
func (o *DesktopPoolCreateSpec) SetSessionSettings(v DesktopPoolSessionSettingsCreateSpec) {
o.SessionSettings = &v
}
// GetSessionType returns the SessionType field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetSessionType() string {
if o == nil || o.SessionType == nil {
var ret string
return ret
}
return *o.SessionType
}
// GetSessionTypeOk returns a tuple with the SessionType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetSessionTypeOk() (*string, bool) {
if o == nil || o.SessionType == nil {
return nil, false
}
return o.SessionType, true
}
// HasSessionType returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasSessionType() bool {
if o != nil && o.SessionType != nil {
return true
}
return false
}
// SetSessionType gets a reference to the given string and assigns it to the SessionType field.
func (o *DesktopPoolCreateSpec) SetSessionType(v string) {
o.SessionType = &v
}
// GetShortcutLocationsV2 returns the ShortcutLocationsV2 field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetShortcutLocationsV2() []string {
if o == nil || o.ShortcutLocationsV2 == nil {
var ret []string
return ret
}
return *o.ShortcutLocationsV2
}
// GetShortcutLocationsV2Ok returns a tuple with the ShortcutLocationsV2 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DesktopPoolCreateSpec) GetShortcutLocationsV2Ok() (*[]string, bool) {
if o == nil || o.ShortcutLocationsV2 == nil {
return nil, false
}
return o.ShortcutLocationsV2, true
}
// HasShortcutLocationsV2 returns a boolean if a field has been set.
func (o *DesktopPoolCreateSpec) HasShortcutLocationsV2() bool {
if o != nil && o.ShortcutLocationsV2 != nil {
return true
}
return false
}
// SetShortcutLocationsV2 gets a reference to the given []string and assigns it to the ShortcutLocationsV2 field.
func (o *DesktopPoolCreateSpec) SetShortcutLocationsV2(v []string) {
o.ShortcutLocationsV2 = &v
}
// GetSource returns the Source field value if set, zero value otherwise.
func (o *DesktopPoolCreateSpec) GetSource() string {
if o == nil || o.Source == nil {
var ret string
return ret
}
return *o.Source