-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_hypervisor_connection_detail_request_model.go
1667 lines (1436 loc) · 60.6 KB
/
model_hypervisor_connection_detail_request_model.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
/*
Citrix Virtual Apps and Desktops Rest API for Developer Portal
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: devportal-onprem-ga
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package citrixorchestration
import (
"encoding/json"
)
// checks if the HypervisorConnectionDetailRequestModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &HypervisorConnectionDetailRequestModel{}
// HypervisorConnectionDetailRequestModel Hypervisor connection details.
type HypervisorConnectionDetailRequestModel struct {
// Name of the hypervisor to create. Required.
Name string `json:"Name"`
ConnectionType HypervisorConnectionType `json:"ConnectionType"`
// Administrative scopes which the newly created hypervisor will be a part of.
Scopes []string `json:"Scopes,omitempty"`
// Tenant(s) to associate the hypervisor with.
Tenants []string `json:"Tenants,omitempty"`
// Maximum number of actions that can execute in parallel on the hypervisor. Optional; if not specified, an appropriate default is selected based on the ConnectionType.
MaxAbsoluteActiveActions NullableInt32 `json:"MaxAbsoluteActiveActions,omitempty"`
// Maximum number of actions that can be started on the hypervisor per-minute. Optional; if not specified, an appropriate default is selected based on the ConnectionType.
MaxAbsoluteNewActionsPerMinute NullableInt32 `json:"MaxAbsoluteNewActionsPerMinute,omitempty"`
// Maximum percentage of machines on the hypervisor which can have their power state changed simultaneously. Optional; if not specified, an appropriate default is selected based on the ConnectionType.
MaxPowerActionsPercentageOfMachines NullableInt32 `json:"MaxPowerActionsPercentageOfMachines,omitempty"`
// Connection options to use for the hypervisor. Optional.
ConnectionOptions NullableString `json:"ConnectionOptions,omitempty"`
// Zone the hypervisor is associated with. Optional. If not specified, the hypervisor is associated with the primary zone. See PrimaryZone.
Zone NullableString `json:"Zone,omitempty"`
// Metadata to use for the hypervisor. Optional.
Metadata []NameValueStringPairModel `json:"Metadata,omitempty"`
// The API key used to authenticate with the AWS APIs. Required.
ApiKey *string `json:"ApiKey,omitempty"`
// The secret key used to authenticate with the AWS APIs. Required. Must be specified in the format indicated by SecretKeyFormat.
SecretKey *string `json:"SecretKey,omitempty"`
SecretKeyFormat *IdentityPasswordFormat `json:"SecretKeyFormat,omitempty"`
// AWS region to connect to. Optional. If not specified, will connect to the global AWS APIs. This can be used to discover the regions available within AWS. Access to all other AWS resources requires the region to be set explicitly.
Region NullableString `json:"Region,omitempty"`
// Application ID of the service principal used to access the Azure APIs. Required.
ApplicationId *string `json:"ApplicationId,omitempty"`
// The Application Secret of the service principal used to access the Azure APIs. Required. Must be specified in the format indicated by ApplicationSecretFormat.
ApplicationSecret *string `json:"ApplicationSecret,omitempty"`
ApplicationSecretFormat *IdentityPasswordFormat `json:"ApplicationSecretFormat,omitempty"`
// Azure subscription ID. Required.
SubscriptionId *string `json:"SubscriptionId,omitempty"`
// Azure active directory ID. Required.
ActiveDirectoryId *string `json:"ActiveDirectoryId,omitempty"`
Environment *AzureEnvironment `json:"Environment,omitempty"`
// Azure management endpoint. Required if Environment is Custom. Optional otherwise.
ManagementEndpoint NullableString `json:"ManagementEndpoint,omitempty"`
// Azure authentication authority. Required if Environment is Custom. Optional otherwise.
AuthenticationAuthority NullableString `json:"AuthenticationAuthority,omitempty"`
// Azure storage suffix. Required if Environment is Custom. Optional otherwise.
StorageSuffix NullableString `json:"StorageSuffix,omitempty"`
// The properties of host connection that are specific to the target hosting infrastructure.
CustomProperties NullableString `json:"CustomProperties,omitempty"`
// The service account ID used to access the Google Cloud APIs. Required.
ServiceAccountId *string `json:"ServiceAccountId,omitempty"`
// the JSON-encoded service account credentials used to access the Google Cloud APIs. Required. Must be specified in the format indicated by ServiceAccountCredentialsFormat.
ServiceAccountCredentials *string `json:"ServiceAccountCredentials,omitempty"`
ServiceAccountCredentialsFormat *IdentityPasswordFormat `json:"ServiceAccountCredentialsFormat,omitempty"`
// Hypervisor user name. Required.
UserName *string `json:"UserName,omitempty"`
// Hypervisor password. Required. Must be specified in the format indicated by PasswordFormat.
Password *string `json:"Password,omitempty"`
PasswordFormat *IdentityPasswordFormat `json:"PasswordFormat,omitempty"`
// Hypervisor address(es). At least one is required.
Addresses []string `json:"Addresses,omitempty"`
// Custom hypervisor plugin ID. Required if the ConnectionType is Custom. Otherwise must not be specified.
PluginId NullableString `json:"PluginId,omitempty"`
// SSL certificate thumbprints to consider acceptable for this connection. Optional. If not specified, and the hypervisor uses SSL for its connection, the SSL certificate's root certification authority and any intermediate certificates must be trusted.
SslThumbprints []string `json:"SslThumbprints,omitempty"`
// Indicates whether Microsoft System Center Configuration Manager 2012 SP1 Wake-up Proxy is used for power management. Optional; default is `false`.
SccmWakeUpProxy NullableBool `json:"SccmWakeUpProxy,omitempty"`
WakeOnLanPackets *WakeOnLanTransmission `json:"WakeOnLanPackets,omitempty"`
// Oracle Cloud Infrastructure tenancy to connect to. Required.
TenancyOcid *string `json:"TenancyOcid,omitempty"`
// The private key string to access the Oracle Cloud Infrastructure APIs. Required. Must be specified in the format indicated by ServiceAccountCredentialFormat.
ServiceAccountCredential *string `json:"ServiceAccountCredential,omitempty"`
ServiceAccountCredentialFormat *IdentityPasswordFormat `json:"ServiceAccountCredentialFormat,omitempty"`
// The fingerprint of the public key associate with the ServiceAccountCredential.
ServiceAccountFingerprint *string `json:"ServiceAccountFingerprint,omitempty"`
OciEnvironment *OciEnvironment `json:"OciEnvironment,omitempty"`
}
// NewHypervisorConnectionDetailRequestModel instantiates a new HypervisorConnectionDetailRequestModel 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 NewHypervisorConnectionDetailRequestModel(name string, connectionType HypervisorConnectionType) *HypervisorConnectionDetailRequestModel {
this := HypervisorConnectionDetailRequestModel{}
this.Name = name
this.ConnectionType = connectionType
return &this
}
// NewHypervisorConnectionDetailRequestModelWithDefaults instantiates a new HypervisorConnectionDetailRequestModel 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 NewHypervisorConnectionDetailRequestModelWithDefaults() *HypervisorConnectionDetailRequestModel {
this := HypervisorConnectionDetailRequestModel{}
return &this
}
// GetName returns the Name field value
func (o *HypervisorConnectionDetailRequestModel) 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 *HypervisorConnectionDetailRequestModel) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *HypervisorConnectionDetailRequestModel) SetName(v string) {
o.Name = v
}
// GetConnectionType returns the ConnectionType field value
func (o *HypervisorConnectionDetailRequestModel) GetConnectionType() HypervisorConnectionType {
if o == nil {
var ret HypervisorConnectionType
return ret
}
return o.ConnectionType
}
// GetConnectionTypeOk returns a tuple with the ConnectionType field value
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetConnectionTypeOk() (*HypervisorConnectionType, bool) {
if o == nil {
return nil, false
}
return &o.ConnectionType, true
}
// SetConnectionType sets field value
func (o *HypervisorConnectionDetailRequestModel) SetConnectionType(v HypervisorConnectionType) {
o.ConnectionType = v
}
// GetScopes returns the Scopes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetScopes() []string {
if o == nil {
var ret []string
return ret
}
return o.Scopes
}
// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetScopesOk() ([]string, bool) {
if o == nil || IsNil(o.Scopes) {
return nil, false
}
return o.Scopes, true
}
// HasScopes returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasScopes() bool {
if o != nil && IsNil(o.Scopes) {
return true
}
return false
}
// SetScopes gets a reference to the given []string and assigns it to the Scopes field.
func (o *HypervisorConnectionDetailRequestModel) SetScopes(v []string) {
o.Scopes = v
}
// GetTenants returns the Tenants field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetTenants() []string {
if o == nil {
var ret []string
return ret
}
return o.Tenants
}
// GetTenantsOk returns a tuple with the Tenants field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetTenantsOk() ([]string, bool) {
if o == nil || IsNil(o.Tenants) {
return nil, false
}
return o.Tenants, true
}
// HasTenants returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasTenants() bool {
if o != nil && IsNil(o.Tenants) {
return true
}
return false
}
// SetTenants gets a reference to the given []string and assigns it to the Tenants field.
func (o *HypervisorConnectionDetailRequestModel) SetTenants(v []string) {
o.Tenants = v
}
// GetMaxAbsoluteActiveActions returns the MaxAbsoluteActiveActions field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetMaxAbsoluteActiveActions() int32 {
if o == nil || IsNil(o.MaxAbsoluteActiveActions.Get()) {
var ret int32
return ret
}
return *o.MaxAbsoluteActiveActions.Get()
}
// GetMaxAbsoluteActiveActionsOk returns a tuple with the MaxAbsoluteActiveActions field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetMaxAbsoluteActiveActionsOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxAbsoluteActiveActions.Get(), o.MaxAbsoluteActiveActions.IsSet()
}
// HasMaxAbsoluteActiveActions returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasMaxAbsoluteActiveActions() bool {
if o != nil && o.MaxAbsoluteActiveActions.IsSet() {
return true
}
return false
}
// SetMaxAbsoluteActiveActions gets a reference to the given NullableInt32 and assigns it to the MaxAbsoluteActiveActions field.
func (o *HypervisorConnectionDetailRequestModel) SetMaxAbsoluteActiveActions(v int32) {
o.MaxAbsoluteActiveActions.Set(&v)
}
// SetMaxAbsoluteActiveActionsNil sets the value for MaxAbsoluteActiveActions to be an explicit nil
func (o *HypervisorConnectionDetailRequestModel) SetMaxAbsoluteActiveActionsNil() {
o.MaxAbsoluteActiveActions.Set(nil)
}
// UnsetMaxAbsoluteActiveActions ensures that no value is present for MaxAbsoluteActiveActions, not even an explicit nil
func (o *HypervisorConnectionDetailRequestModel) UnsetMaxAbsoluteActiveActions() {
o.MaxAbsoluteActiveActions.Unset()
}
// GetMaxAbsoluteNewActionsPerMinute returns the MaxAbsoluteNewActionsPerMinute field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetMaxAbsoluteNewActionsPerMinute() int32 {
if o == nil || IsNil(o.MaxAbsoluteNewActionsPerMinute.Get()) {
var ret int32
return ret
}
return *o.MaxAbsoluteNewActionsPerMinute.Get()
}
// GetMaxAbsoluteNewActionsPerMinuteOk returns a tuple with the MaxAbsoluteNewActionsPerMinute field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetMaxAbsoluteNewActionsPerMinuteOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxAbsoluteNewActionsPerMinute.Get(), o.MaxAbsoluteNewActionsPerMinute.IsSet()
}
// HasMaxAbsoluteNewActionsPerMinute returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasMaxAbsoluteNewActionsPerMinute() bool {
if o != nil && o.MaxAbsoluteNewActionsPerMinute.IsSet() {
return true
}
return false
}
// SetMaxAbsoluteNewActionsPerMinute gets a reference to the given NullableInt32 and assigns it to the MaxAbsoluteNewActionsPerMinute field.
func (o *HypervisorConnectionDetailRequestModel) SetMaxAbsoluteNewActionsPerMinute(v int32) {
o.MaxAbsoluteNewActionsPerMinute.Set(&v)
}
// SetMaxAbsoluteNewActionsPerMinuteNil sets the value for MaxAbsoluteNewActionsPerMinute to be an explicit nil
func (o *HypervisorConnectionDetailRequestModel) SetMaxAbsoluteNewActionsPerMinuteNil() {
o.MaxAbsoluteNewActionsPerMinute.Set(nil)
}
// UnsetMaxAbsoluteNewActionsPerMinute ensures that no value is present for MaxAbsoluteNewActionsPerMinute, not even an explicit nil
func (o *HypervisorConnectionDetailRequestModel) UnsetMaxAbsoluteNewActionsPerMinute() {
o.MaxAbsoluteNewActionsPerMinute.Unset()
}
// GetMaxPowerActionsPercentageOfMachines returns the MaxPowerActionsPercentageOfMachines field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetMaxPowerActionsPercentageOfMachines() int32 {
if o == nil || IsNil(o.MaxPowerActionsPercentageOfMachines.Get()) {
var ret int32
return ret
}
return *o.MaxPowerActionsPercentageOfMachines.Get()
}
// GetMaxPowerActionsPercentageOfMachinesOk returns a tuple with the MaxPowerActionsPercentageOfMachines field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetMaxPowerActionsPercentageOfMachinesOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxPowerActionsPercentageOfMachines.Get(), o.MaxPowerActionsPercentageOfMachines.IsSet()
}
// HasMaxPowerActionsPercentageOfMachines returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasMaxPowerActionsPercentageOfMachines() bool {
if o != nil && o.MaxPowerActionsPercentageOfMachines.IsSet() {
return true
}
return false
}
// SetMaxPowerActionsPercentageOfMachines gets a reference to the given NullableInt32 and assigns it to the MaxPowerActionsPercentageOfMachines field.
func (o *HypervisorConnectionDetailRequestModel) SetMaxPowerActionsPercentageOfMachines(v int32) {
o.MaxPowerActionsPercentageOfMachines.Set(&v)
}
// SetMaxPowerActionsPercentageOfMachinesNil sets the value for MaxPowerActionsPercentageOfMachines to be an explicit nil
func (o *HypervisorConnectionDetailRequestModel) SetMaxPowerActionsPercentageOfMachinesNil() {
o.MaxPowerActionsPercentageOfMachines.Set(nil)
}
// UnsetMaxPowerActionsPercentageOfMachines ensures that no value is present for MaxPowerActionsPercentageOfMachines, not even an explicit nil
func (o *HypervisorConnectionDetailRequestModel) UnsetMaxPowerActionsPercentageOfMachines() {
o.MaxPowerActionsPercentageOfMachines.Unset()
}
// GetConnectionOptions returns the ConnectionOptions field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetConnectionOptions() string {
if o == nil || IsNil(o.ConnectionOptions.Get()) {
var ret string
return ret
}
return *o.ConnectionOptions.Get()
}
// GetConnectionOptionsOk returns a tuple with the ConnectionOptions field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetConnectionOptionsOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ConnectionOptions.Get(), o.ConnectionOptions.IsSet()
}
// HasConnectionOptions returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasConnectionOptions() bool {
if o != nil && o.ConnectionOptions.IsSet() {
return true
}
return false
}
// SetConnectionOptions gets a reference to the given NullableString and assigns it to the ConnectionOptions field.
func (o *HypervisorConnectionDetailRequestModel) SetConnectionOptions(v string) {
o.ConnectionOptions.Set(&v)
}
// SetConnectionOptionsNil sets the value for ConnectionOptions to be an explicit nil
func (o *HypervisorConnectionDetailRequestModel) SetConnectionOptionsNil() {
o.ConnectionOptions.Set(nil)
}
// UnsetConnectionOptions ensures that no value is present for ConnectionOptions, not even an explicit nil
func (o *HypervisorConnectionDetailRequestModel) UnsetConnectionOptions() {
o.ConnectionOptions.Unset()
}
// GetZone returns the Zone field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetZone() string {
if o == nil || IsNil(o.Zone.Get()) {
var ret string
return ret
}
return *o.Zone.Get()
}
// GetZoneOk returns a tuple with the Zone field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetZoneOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Zone.Get(), o.Zone.IsSet()
}
// HasZone returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasZone() bool {
if o != nil && o.Zone.IsSet() {
return true
}
return false
}
// SetZone gets a reference to the given NullableString and assigns it to the Zone field.
func (o *HypervisorConnectionDetailRequestModel) SetZone(v string) {
o.Zone.Set(&v)
}
// SetZoneNil sets the value for Zone to be an explicit nil
func (o *HypervisorConnectionDetailRequestModel) SetZoneNil() {
o.Zone.Set(nil)
}
// UnsetZone ensures that no value is present for Zone, not even an explicit nil
func (o *HypervisorConnectionDetailRequestModel) UnsetZone() {
o.Zone.Unset()
}
// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetMetadata() []NameValueStringPairModel {
if o == nil {
var ret []NameValueStringPairModel
return ret
}
return o.Metadata
}
// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetMetadataOk() ([]NameValueStringPairModel, bool) {
if o == nil || IsNil(o.Metadata) {
return nil, false
}
return o.Metadata, true
}
// HasMetadata returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasMetadata() bool {
if o != nil && IsNil(o.Metadata) {
return true
}
return false
}
// SetMetadata gets a reference to the given []NameValueStringPairModel and assigns it to the Metadata field.
func (o *HypervisorConnectionDetailRequestModel) SetMetadata(v []NameValueStringPairModel) {
o.Metadata = v
}
// GetApiKey returns the ApiKey field value if set, zero value otherwise.
func (o *HypervisorConnectionDetailRequestModel) GetApiKey() string {
if o == nil || IsNil(o.ApiKey) {
var ret string
return ret
}
return *o.ApiKey
}
// GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetApiKeyOk() (*string, bool) {
if o == nil || IsNil(o.ApiKey) {
return nil, false
}
return o.ApiKey, true
}
// HasApiKey returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasApiKey() bool {
if o != nil && !IsNil(o.ApiKey) {
return true
}
return false
}
// SetApiKey gets a reference to the given string and assigns it to the ApiKey field.
func (o *HypervisorConnectionDetailRequestModel) SetApiKey(v string) {
o.ApiKey = &v
}
// GetSecretKey returns the SecretKey field value if set, zero value otherwise.
func (o *HypervisorConnectionDetailRequestModel) GetSecretKey() string {
if o == nil || IsNil(o.SecretKey) {
var ret string
return ret
}
return *o.SecretKey
}
// GetSecretKeyOk returns a tuple with the SecretKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetSecretKeyOk() (*string, bool) {
if o == nil || IsNil(o.SecretKey) {
return nil, false
}
return o.SecretKey, true
}
// HasSecretKey returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasSecretKey() bool {
if o != nil && !IsNil(o.SecretKey) {
return true
}
return false
}
// SetSecretKey gets a reference to the given string and assigns it to the SecretKey field.
func (o *HypervisorConnectionDetailRequestModel) SetSecretKey(v string) {
o.SecretKey = &v
}
// GetSecretKeyFormat returns the SecretKeyFormat field value if set, zero value otherwise.
func (o *HypervisorConnectionDetailRequestModel) GetSecretKeyFormat() IdentityPasswordFormat {
if o == nil || IsNil(o.SecretKeyFormat) {
var ret IdentityPasswordFormat
return ret
}
return *o.SecretKeyFormat
}
// GetSecretKeyFormatOk returns a tuple with the SecretKeyFormat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetSecretKeyFormatOk() (*IdentityPasswordFormat, bool) {
if o == nil || IsNil(o.SecretKeyFormat) {
return nil, false
}
return o.SecretKeyFormat, true
}
// HasSecretKeyFormat returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasSecretKeyFormat() bool {
if o != nil && !IsNil(o.SecretKeyFormat) {
return true
}
return false
}
// SetSecretKeyFormat gets a reference to the given IdentityPasswordFormat and assigns it to the SecretKeyFormat field.
func (o *HypervisorConnectionDetailRequestModel) SetSecretKeyFormat(v IdentityPasswordFormat) {
o.SecretKeyFormat = &v
}
// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetRegion() string {
if o == nil || IsNil(o.Region.Get()) {
var ret string
return ret
}
return *o.Region.Get()
}
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetRegionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Region.Get(), o.Region.IsSet()
}
// HasRegion returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasRegion() bool {
if o != nil && o.Region.IsSet() {
return true
}
return false
}
// SetRegion gets a reference to the given NullableString and assigns it to the Region field.
func (o *HypervisorConnectionDetailRequestModel) SetRegion(v string) {
o.Region.Set(&v)
}
// SetRegionNil sets the value for Region to be an explicit nil
func (o *HypervisorConnectionDetailRequestModel) SetRegionNil() {
o.Region.Set(nil)
}
// UnsetRegion ensures that no value is present for Region, not even an explicit nil
func (o *HypervisorConnectionDetailRequestModel) UnsetRegion() {
o.Region.Unset()
}
// GetApplicationId returns the ApplicationId field value if set, zero value otherwise.
func (o *HypervisorConnectionDetailRequestModel) GetApplicationId() string {
if o == nil || IsNil(o.ApplicationId) {
var ret string
return ret
}
return *o.ApplicationId
}
// GetApplicationIdOk returns a tuple with the ApplicationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetApplicationIdOk() (*string, bool) {
if o == nil || IsNil(o.ApplicationId) {
return nil, false
}
return o.ApplicationId, true
}
// HasApplicationId returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasApplicationId() bool {
if o != nil && !IsNil(o.ApplicationId) {
return true
}
return false
}
// SetApplicationId gets a reference to the given string and assigns it to the ApplicationId field.
func (o *HypervisorConnectionDetailRequestModel) SetApplicationId(v string) {
o.ApplicationId = &v
}
// GetApplicationSecret returns the ApplicationSecret field value if set, zero value otherwise.
func (o *HypervisorConnectionDetailRequestModel) GetApplicationSecret() string {
if o == nil || IsNil(o.ApplicationSecret) {
var ret string
return ret
}
return *o.ApplicationSecret
}
// GetApplicationSecretOk returns a tuple with the ApplicationSecret field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetApplicationSecretOk() (*string, bool) {
if o == nil || IsNil(o.ApplicationSecret) {
return nil, false
}
return o.ApplicationSecret, true
}
// HasApplicationSecret returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasApplicationSecret() bool {
if o != nil && !IsNil(o.ApplicationSecret) {
return true
}
return false
}
// SetApplicationSecret gets a reference to the given string and assigns it to the ApplicationSecret field.
func (o *HypervisorConnectionDetailRequestModel) SetApplicationSecret(v string) {
o.ApplicationSecret = &v
}
// GetApplicationSecretFormat returns the ApplicationSecretFormat field value if set, zero value otherwise.
func (o *HypervisorConnectionDetailRequestModel) GetApplicationSecretFormat() IdentityPasswordFormat {
if o == nil || IsNil(o.ApplicationSecretFormat) {
var ret IdentityPasswordFormat
return ret
}
return *o.ApplicationSecretFormat
}
// GetApplicationSecretFormatOk returns a tuple with the ApplicationSecretFormat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetApplicationSecretFormatOk() (*IdentityPasswordFormat, bool) {
if o == nil || IsNil(o.ApplicationSecretFormat) {
return nil, false
}
return o.ApplicationSecretFormat, true
}
// HasApplicationSecretFormat returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasApplicationSecretFormat() bool {
if o != nil && !IsNil(o.ApplicationSecretFormat) {
return true
}
return false
}
// SetApplicationSecretFormat gets a reference to the given IdentityPasswordFormat and assigns it to the ApplicationSecretFormat field.
func (o *HypervisorConnectionDetailRequestModel) SetApplicationSecretFormat(v IdentityPasswordFormat) {
o.ApplicationSecretFormat = &v
}
// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise.
func (o *HypervisorConnectionDetailRequestModel) GetSubscriptionId() string {
if o == nil || IsNil(o.SubscriptionId) {
var ret string
return ret
}
return *o.SubscriptionId
}
// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetSubscriptionIdOk() (*string, bool) {
if o == nil || IsNil(o.SubscriptionId) {
return nil, false
}
return o.SubscriptionId, true
}
// HasSubscriptionId returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasSubscriptionId() bool {
if o != nil && !IsNil(o.SubscriptionId) {
return true
}
return false
}
// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field.
func (o *HypervisorConnectionDetailRequestModel) SetSubscriptionId(v string) {
o.SubscriptionId = &v
}
// GetActiveDirectoryId returns the ActiveDirectoryId field value if set, zero value otherwise.
func (o *HypervisorConnectionDetailRequestModel) GetActiveDirectoryId() string {
if o == nil || IsNil(o.ActiveDirectoryId) {
var ret string
return ret
}
return *o.ActiveDirectoryId
}
// GetActiveDirectoryIdOk returns a tuple with the ActiveDirectoryId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetActiveDirectoryIdOk() (*string, bool) {
if o == nil || IsNil(o.ActiveDirectoryId) {
return nil, false
}
return o.ActiveDirectoryId, true
}
// HasActiveDirectoryId returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasActiveDirectoryId() bool {
if o != nil && !IsNil(o.ActiveDirectoryId) {
return true
}
return false
}
// SetActiveDirectoryId gets a reference to the given string and assigns it to the ActiveDirectoryId field.
func (o *HypervisorConnectionDetailRequestModel) SetActiveDirectoryId(v string) {
o.ActiveDirectoryId = &v
}
// GetEnvironment returns the Environment field value if set, zero value otherwise.
func (o *HypervisorConnectionDetailRequestModel) GetEnvironment() AzureEnvironment {
if o == nil || IsNil(o.Environment) {
var ret AzureEnvironment
return ret
}
return *o.Environment
}
// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetEnvironmentOk() (*AzureEnvironment, bool) {
if o == nil || IsNil(o.Environment) {
return nil, false
}
return o.Environment, true
}
// HasEnvironment returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasEnvironment() bool {
if o != nil && !IsNil(o.Environment) {
return true
}
return false
}
// SetEnvironment gets a reference to the given AzureEnvironment and assigns it to the Environment field.
func (o *HypervisorConnectionDetailRequestModel) SetEnvironment(v AzureEnvironment) {
o.Environment = &v
}
// GetManagementEndpoint returns the ManagementEndpoint field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetManagementEndpoint() string {
if o == nil || IsNil(o.ManagementEndpoint.Get()) {
var ret string
return ret
}
return *o.ManagementEndpoint.Get()
}
// GetManagementEndpointOk returns a tuple with the ManagementEndpoint field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetManagementEndpointOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ManagementEndpoint.Get(), o.ManagementEndpoint.IsSet()
}
// HasManagementEndpoint returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasManagementEndpoint() bool {
if o != nil && o.ManagementEndpoint.IsSet() {
return true
}
return false
}
// SetManagementEndpoint gets a reference to the given NullableString and assigns it to the ManagementEndpoint field.
func (o *HypervisorConnectionDetailRequestModel) SetManagementEndpoint(v string) {
o.ManagementEndpoint.Set(&v)
}
// SetManagementEndpointNil sets the value for ManagementEndpoint to be an explicit nil
func (o *HypervisorConnectionDetailRequestModel) SetManagementEndpointNil() {
o.ManagementEndpoint.Set(nil)
}
// UnsetManagementEndpoint ensures that no value is present for ManagementEndpoint, not even an explicit nil
func (o *HypervisorConnectionDetailRequestModel) UnsetManagementEndpoint() {
o.ManagementEndpoint.Unset()
}
// GetAuthenticationAuthority returns the AuthenticationAuthority field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetAuthenticationAuthority() string {
if o == nil || IsNil(o.AuthenticationAuthority.Get()) {
var ret string
return ret
}
return *o.AuthenticationAuthority.Get()
}
// GetAuthenticationAuthorityOk returns a tuple with the AuthenticationAuthority field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetAuthenticationAuthorityOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AuthenticationAuthority.Get(), o.AuthenticationAuthority.IsSet()
}
// HasAuthenticationAuthority returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasAuthenticationAuthority() bool {
if o != nil && o.AuthenticationAuthority.IsSet() {
return true
}
return false
}
// SetAuthenticationAuthority gets a reference to the given NullableString and assigns it to the AuthenticationAuthority field.
func (o *HypervisorConnectionDetailRequestModel) SetAuthenticationAuthority(v string) {
o.AuthenticationAuthority.Set(&v)
}
// SetAuthenticationAuthorityNil sets the value for AuthenticationAuthority to be an explicit nil
func (o *HypervisorConnectionDetailRequestModel) SetAuthenticationAuthorityNil() {
o.AuthenticationAuthority.Set(nil)
}
// UnsetAuthenticationAuthority ensures that no value is present for AuthenticationAuthority, not even an explicit nil
func (o *HypervisorConnectionDetailRequestModel) UnsetAuthenticationAuthority() {
o.AuthenticationAuthority.Unset()
}
// GetStorageSuffix returns the StorageSuffix field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetStorageSuffix() string {
if o == nil || IsNil(o.StorageSuffix.Get()) {
var ret string
return ret
}
return *o.StorageSuffix.Get()
}
// GetStorageSuffixOk returns a tuple with the StorageSuffix field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetStorageSuffixOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.StorageSuffix.Get(), o.StorageSuffix.IsSet()
}
// HasStorageSuffix returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasStorageSuffix() bool {
if o != nil && o.StorageSuffix.IsSet() {
return true
}
return false
}
// SetStorageSuffix gets a reference to the given NullableString and assigns it to the StorageSuffix field.
func (o *HypervisorConnectionDetailRequestModel) SetStorageSuffix(v string) {
o.StorageSuffix.Set(&v)
}
// SetStorageSuffixNil sets the value for StorageSuffix to be an explicit nil
func (o *HypervisorConnectionDetailRequestModel) SetStorageSuffixNil() {
o.StorageSuffix.Set(nil)
}
// UnsetStorageSuffix ensures that no value is present for StorageSuffix, not even an explicit nil
func (o *HypervisorConnectionDetailRequestModel) UnsetStorageSuffix() {
o.StorageSuffix.Unset()
}
// GetCustomProperties returns the CustomProperties field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorConnectionDetailRequestModel) GetCustomProperties() string {
if o == nil || IsNil(o.CustomProperties.Get()) {
var ret string
return ret
}
return *o.CustomProperties.Get()
}
// GetCustomPropertiesOk returns a tuple with the CustomProperties field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HypervisorConnectionDetailRequestModel) GetCustomPropertiesOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CustomProperties.Get(), o.CustomProperties.IsSet()
}
// HasCustomProperties returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasCustomProperties() bool {
if o != nil && o.CustomProperties.IsSet() {
return true
}
return false
}
// SetCustomProperties gets a reference to the given NullableString and assigns it to the CustomProperties field.
func (o *HypervisorConnectionDetailRequestModel) SetCustomProperties(v string) {
o.CustomProperties.Set(&v)
}
// SetCustomPropertiesNil sets the value for CustomProperties to be an explicit nil
func (o *HypervisorConnectionDetailRequestModel) SetCustomPropertiesNil() {
o.CustomProperties.Set(nil)
}
// UnsetCustomProperties ensures that no value is present for CustomProperties, not even an explicit nil
func (o *HypervisorConnectionDetailRequestModel) UnsetCustomProperties() {
o.CustomProperties.Unset()
}
// GetServiceAccountId returns the ServiceAccountId field value if set, zero value otherwise.
func (o *HypervisorConnectionDetailRequestModel) GetServiceAccountId() string {
if o == nil || IsNil(o.ServiceAccountId) {
var ret string
return ret
}
return *o.ServiceAccountId
}
// GetServiceAccountIdOk returns a tuple with the ServiceAccountId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorConnectionDetailRequestModel) GetServiceAccountIdOk() (*string, bool) {
if o == nil || IsNil(o.ServiceAccountId) {
return nil, false
}
return o.ServiceAccountId, true
}
// HasServiceAccountId returns a boolean if a field has been set.
func (o *HypervisorConnectionDetailRequestModel) HasServiceAccountId() bool {
if o != nil && !IsNil(o.ServiceAccountId) {
return true
}
return false
}
// SetServiceAccountId gets a reference to the given string and assigns it to the ServiceAccountId field.
func (o *HypervisorConnectionDetailRequestModel) SetServiceAccountId(v string) {
o.ServiceAccountId = &v
}