-
Notifications
You must be signed in to change notification settings - Fork 2
/
model_gateway_create_migration.go
2423 lines (2095 loc) · 77.5 KB
/
model_gateway_create_migration.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
/*
* Akeyless API
*
* The purpose of this application is to provide access to Akeyless API.
*
* API version: 2.0
* Contact: support@akeyless.io
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package akeyless
import (
"encoding/json"
)
// GatewayCreateMigration gatewayCreateMigration is a command that create migration
type GatewayCreateMigration struct {
// 1Password user email to connect to the API
Var1passwordEmail *string `json:"1password-email,omitempty"`
// 1Password user password to connect to the API
Var1passwordPassword *string `json:"1password-password,omitempty"`
// 1Password user secret key to connect to the API
Var1passwordSecretKey *string `json:"1password-secret-key,omitempty"`
// 1Password api container url
Var1passwordUrl *string `json:"1password-url,omitempty"`
// 1Password list of vault to get the items from
Var1passwordVaults *[]string `json:"1password-vaults,omitempty"`
// Enable/Disable discovery of Windows services from each domain server as part of the SSH/Windows Rotated Secrets. Default is false. (Relevant only for Active Directory migration)
AdDiscoverServices *string `json:"ad-discover-services,omitempty"`
// Set migration discovery types (domain-users, computers, local-users). (Relevant only for Active Directory migration)
AdDiscoveryTypes *[]string `json:"ad-discovery-types,omitempty"`
// Filter by Operating System to run the migration, can be used with wildcards, e.g. SRV20* (Relevant only for Active Directory migration)
AdOsFilter *string `json:"ad-os-filter,omitempty"`
// Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration)
AdSshPort *string `json:"ad-ssh-port,omitempty"`
// Relevant only for ad-discovery-types=computers. For linked, all computers will be migrated into a linked target(s). if set with regular, the migration will create a target for each computer.
AdTargetFormat *string `json:"ad-target-format,omitempty"`
// Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration)
AdTargetsType *string `json:"ad-targets-type,omitempty"`
// Use WinRM over HTTP, by default runs over HTTPS
AdWinrmOverHttp *string `json:"ad-winrm-over-http,omitempty"`
// Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration)
AdWinrmPort *string `json:"ad-winrm-port,omitempty"`
// Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration)
AdAutoRotate *string `json:"ad_auto_rotate,omitempty"`
// Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration)
AdComputerBaseDn *string `json:"ad_computer_base_dn,omitempty"`
// Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) Deprecated: use AdDiscoverTypes
AdDiscoverLocalUsers *string `json:"ad_discover_local_users,omitempty"`
// Active Directory Domain Name (Relevant only for Active Directory migration)
AdDomainName *string `json:"ad_domain_name,omitempty"`
// Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration)
AdDomainUsersPathTemplate *string `json:"ad_domain_users_path_template,omitempty"`
// Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration)
AdLocalUsersIgnore *string `json:"ad_local_users_ignore,omitempty"`
// Path location template for migrating domain users as Rotated Secrets e.g.: .../LocalUsers/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Active Directory migration)
AdLocalUsersPathTemplate *string `json:"ad_local_users_path_template,omitempty"`
// The hour of the scheduled rotation in UTC (Relevant only for Active Directory migration)
AdRotationHour *int32 `json:"ad_rotation_hour,omitempty"`
// The number of days to wait between every automatic rotation [1-365] (Relevant only for Active Directory migration)
AdRotationInterval *int32 `json:"ad_rotation_interval,omitempty"`
// Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Active Directory migration)
AdSraEnableRdp *string `json:"ad_sra_enable_rdp,omitempty"`
// Active Directory LDAP Target Name. Server type should be Active Directory (Relevant only for Active Directory migration)
AdTargetName *string `json:"ad_target_name,omitempty"`
// Path location template for migrating domain servers as SSH/Windows Targets e.g.: .../Servers/{{COMPUTER_NAME}} (Relevant only for Active Directory migration)
AdTargetsPathTemplate *string `json:"ad_targets_path_template,omitempty"`
// Distinguished Name of User objects to search in Active Directory, e.g.: CN=Users,DC=example,DC=com (Relevant only for Active Directory migration)
AdUserBaseDn *string `json:"ad_user_base_dn,omitempty"`
// Comma-separated list of domain groups from which privileged domain users will be migrated. If empty, migrate all users based on the --ad-user-base-dn (Relevant only for Active Directory migration)
AdUserGroups *string `json:"ad_user_groups,omitempty"`
// AWS Secret Access Key (relevant only for AWS migration)
AwsKey *string `json:"aws-key,omitempty"`
// AWS Access Key ID with sufficient permissions to get all secrets, e.g. 'arn:aws:secretsmanager:[Region]:[AccountId]:secret:[/path/to/secrets/_*]' (relevant only for AWS migration)
AwsKeyId *string `json:"aws-key-id,omitempty"`
// AWS region of the required Secrets Manager (relevant only for AWS migration)
AwsRegion *string `json:"aws-region,omitempty"`
// Azure Key Vault Access client ID, should be Azure AD App with a service principal (relevant only for Azure Key Vault migration)
AzureClientId *string `json:"azure-client-id,omitempty"`
// Azure Key Vault Name (relevant only for Azure Key Vault migration)
AzureKvName *string `json:"azure-kv-name,omitempty"`
// Azure Key Vault secret (relevant only for Azure Key Vault migration)
AzureSecret *string `json:"azure-secret,omitempty"`
// Azure Key Vault Access tenant ID (relevant only for Azure Key Vault migration)
AzureTenantId *string `json:"azure-tenant-id,omitempty"`
// Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration)
GcpKey *string `json:"gcp-key,omitempty"`
// Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
HashiJson *string `json:"hashi-json,omitempty"`
// HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
HashiNs *[]string `json:"hashi-ns,omitempty"`
// HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
HashiToken *string `json:"hashi-token,omitempty"`
// HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
HashiUrl *string `json:"hashi-url,omitempty"`
// Set output format to JSON
Json *bool `json:"json,omitempty"`
// For Certificate Authentication method K8s Cluster CA certificate (relevant only for K8s migration with Certificate Authentication method)
K8sCaCertificate *[]int32 `json:"k8s-ca-certificate,omitempty"`
// K8s Client certificate with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Certificate Authentication method)
K8sClientCertificate *[]int32 `json:"k8s-client-certificate,omitempty"`
// K8s Client key (relevant only for K8s migration with Certificate Authentication method)
K8sClientKey *[]int32 `json:"k8s-client-key,omitempty"`
// K8s Namespace, Use this field to import secrets from a particular namespace only. By default, the secrets are imported from all namespaces (relevant only for K8s migration)
K8sNamespace *string `json:"k8s-namespace,omitempty"`
// K8s Client password (relevant only for K8s migration with Password Authentication method)
K8sPassword *string `json:"k8s-password,omitempty"`
// K8s Skip Control Plane Secrets, This option allows to avoid importing secrets from system namespaces (relevant only for K8s migration)
K8sSkipSystem *bool `json:"k8s-skip-system,omitempty"`
// For Token Authentication method K8s Bearer Token with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Token Authentication method)
K8sToken *string `json:"k8s-token,omitempty"`
// K8s API Server URL, e.g. https://k8s-api.mycompany.com:6443 (relevant only for K8s migration)
K8sUrl *string `json:"k8s-url,omitempty"`
// For Password Authentication method K8s Client username with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Password Authentication method)
K8sUsername *string `json:"k8s-username,omitempty"`
// Migration name
Name string `json:"name"`
// The name of the key that protects the classic key value (if empty, the account default key will be used)
ProtectionKey *string `json:"protection-key,omitempty"`
// Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --si-rotation-interval and --si-rotation-hour parameters (Relevant only for Server Inventory migration)
SiAutoRotate *string `json:"si-auto-rotate,omitempty"`
// The hour of the scheduled rotation in UTC (Relevant only for Server Inventory migration)
SiRotationHour *int32 `json:"si-rotation-hour,omitempty"`
// The number of days to wait between every automatic rotation [1-365] (Relevant only for Server Inventory migration)
SiRotationInterval *int32 `json:"si-rotation-interval,omitempty"`
// Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Server Inventory migration)
SiSraEnableRdp *string `json:"si-sra-enable-rdp,omitempty"`
// SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration)
SiTargetName string `json:"si-target-name"`
// Comma-separated list of groups to migrate users from. If empty, all users from all groups will be migrated (Relevant only for Server Inventory migration)
SiUserGroups *string `json:"si-user-groups,omitempty"`
// Comma-separated list of Local Users which should not be migrated (Relevant only for Server Inventory migration)
SiUsersIgnore *string `json:"si-users-ignore,omitempty"`
// Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration)
SiUsersPathTemplate string `json:"si-users-path-template"`
// Target location in Akeyless for imported secrets
TargetLocation string `json:"target-location"`
// Authentication token (see `/auth` and `/configure`)
Token *string `json:"token,omitempty"`
// Migration type (hashi/aws/gcp/k8s/azure_kv/1password/active_directory)
Type *string `json:"type,omitempty"`
// The universal identity token, Required only for universal_identity authentication
UidToken *string `json:"uid-token,omitempty"`
}
// NewGatewayCreateMigration instantiates a new GatewayCreateMigration 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 NewGatewayCreateMigration(name string, siTargetName string, siUsersPathTemplate string, targetLocation string, ) *GatewayCreateMigration {
this := GatewayCreateMigration{}
var adDiscoverServices string = "false"
this.AdDiscoverServices = &adDiscoverServices
var adSshPort string = "22"
this.AdSshPort = &adSshPort
var adTargetFormat string = "linked"
this.AdTargetFormat = &adTargetFormat
var adTargetsType string = "windows"
this.AdTargetsType = &adTargetsType
var adWinrmOverHttp string = "false"
this.AdWinrmOverHttp = &adWinrmOverHttp
var adWinrmPort string = "5986"
this.AdWinrmPort = &adWinrmPort
var awsRegion string = "us-east-2"
this.AwsRegion = &awsRegion
var hashiJson string = "true"
this.HashiJson = &hashiJson
var json bool = false
this.Json = &json
this.Name = name
var siSraEnableRdp string = "false"
this.SiSraEnableRdp = &siSraEnableRdp
this.SiTargetName = siTargetName
this.SiUsersPathTemplate = siUsersPathTemplate
this.TargetLocation = targetLocation
return &this
}
// NewGatewayCreateMigrationWithDefaults instantiates a new GatewayCreateMigration 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 NewGatewayCreateMigrationWithDefaults() *GatewayCreateMigration {
this := GatewayCreateMigration{}
var adDiscoverServices string = "false"
this.AdDiscoverServices = &adDiscoverServices
var adSshPort string = "22"
this.AdSshPort = &adSshPort
var adTargetFormat string = "linked"
this.AdTargetFormat = &adTargetFormat
var adTargetsType string = "windows"
this.AdTargetsType = &adTargetsType
var adWinrmOverHttp string = "false"
this.AdWinrmOverHttp = &adWinrmOverHttp
var adWinrmPort string = "5986"
this.AdWinrmPort = &adWinrmPort
var awsRegion string = "us-east-2"
this.AwsRegion = &awsRegion
var hashiJson string = "true"
this.HashiJson = &hashiJson
var json bool = false
this.Json = &json
var siSraEnableRdp string = "false"
this.SiSraEnableRdp = &siSraEnableRdp
return &this
}
// GetVar1passwordEmail returns the Var1passwordEmail field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetVar1passwordEmail() string {
if o == nil || o.Var1passwordEmail == nil {
var ret string
return ret
}
return *o.Var1passwordEmail
}
// GetVar1passwordEmailOk returns a tuple with the Var1passwordEmail field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetVar1passwordEmailOk() (*string, bool) {
if o == nil || o.Var1passwordEmail == nil {
return nil, false
}
return o.Var1passwordEmail, true
}
// HasVar1passwordEmail returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasVar1passwordEmail() bool {
if o != nil && o.Var1passwordEmail != nil {
return true
}
return false
}
// SetVar1passwordEmail gets a reference to the given string and assigns it to the Var1passwordEmail field.
func (o *GatewayCreateMigration) SetVar1passwordEmail(v string) {
o.Var1passwordEmail = &v
}
// GetVar1passwordPassword returns the Var1passwordPassword field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetVar1passwordPassword() string {
if o == nil || o.Var1passwordPassword == nil {
var ret string
return ret
}
return *o.Var1passwordPassword
}
// GetVar1passwordPasswordOk returns a tuple with the Var1passwordPassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetVar1passwordPasswordOk() (*string, bool) {
if o == nil || o.Var1passwordPassword == nil {
return nil, false
}
return o.Var1passwordPassword, true
}
// HasVar1passwordPassword returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasVar1passwordPassword() bool {
if o != nil && o.Var1passwordPassword != nil {
return true
}
return false
}
// SetVar1passwordPassword gets a reference to the given string and assigns it to the Var1passwordPassword field.
func (o *GatewayCreateMigration) SetVar1passwordPassword(v string) {
o.Var1passwordPassword = &v
}
// GetVar1passwordSecretKey returns the Var1passwordSecretKey field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetVar1passwordSecretKey() string {
if o == nil || o.Var1passwordSecretKey == nil {
var ret string
return ret
}
return *o.Var1passwordSecretKey
}
// GetVar1passwordSecretKeyOk returns a tuple with the Var1passwordSecretKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetVar1passwordSecretKeyOk() (*string, bool) {
if o == nil || o.Var1passwordSecretKey == nil {
return nil, false
}
return o.Var1passwordSecretKey, true
}
// HasVar1passwordSecretKey returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasVar1passwordSecretKey() bool {
if o != nil && o.Var1passwordSecretKey != nil {
return true
}
return false
}
// SetVar1passwordSecretKey gets a reference to the given string and assigns it to the Var1passwordSecretKey field.
func (o *GatewayCreateMigration) SetVar1passwordSecretKey(v string) {
o.Var1passwordSecretKey = &v
}
// GetVar1passwordUrl returns the Var1passwordUrl field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetVar1passwordUrl() string {
if o == nil || o.Var1passwordUrl == nil {
var ret string
return ret
}
return *o.Var1passwordUrl
}
// GetVar1passwordUrlOk returns a tuple with the Var1passwordUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetVar1passwordUrlOk() (*string, bool) {
if o == nil || o.Var1passwordUrl == nil {
return nil, false
}
return o.Var1passwordUrl, true
}
// HasVar1passwordUrl returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasVar1passwordUrl() bool {
if o != nil && o.Var1passwordUrl != nil {
return true
}
return false
}
// SetVar1passwordUrl gets a reference to the given string and assigns it to the Var1passwordUrl field.
func (o *GatewayCreateMigration) SetVar1passwordUrl(v string) {
o.Var1passwordUrl = &v
}
// GetVar1passwordVaults returns the Var1passwordVaults field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetVar1passwordVaults() []string {
if o == nil || o.Var1passwordVaults == nil {
var ret []string
return ret
}
return *o.Var1passwordVaults
}
// GetVar1passwordVaultsOk returns a tuple with the Var1passwordVaults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetVar1passwordVaultsOk() (*[]string, bool) {
if o == nil || o.Var1passwordVaults == nil {
return nil, false
}
return o.Var1passwordVaults, true
}
// HasVar1passwordVaults returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasVar1passwordVaults() bool {
if o != nil && o.Var1passwordVaults != nil {
return true
}
return false
}
// SetVar1passwordVaults gets a reference to the given []string and assigns it to the Var1passwordVaults field.
func (o *GatewayCreateMigration) SetVar1passwordVaults(v []string) {
o.Var1passwordVaults = &v
}
// GetAdDiscoverServices returns the AdDiscoverServices field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdDiscoverServices() string {
if o == nil || o.AdDiscoverServices == nil {
var ret string
return ret
}
return *o.AdDiscoverServices
}
// GetAdDiscoverServicesOk returns a tuple with the AdDiscoverServices field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdDiscoverServicesOk() (*string, bool) {
if o == nil || o.AdDiscoverServices == nil {
return nil, false
}
return o.AdDiscoverServices, true
}
// HasAdDiscoverServices returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdDiscoverServices() bool {
if o != nil && o.AdDiscoverServices != nil {
return true
}
return false
}
// SetAdDiscoverServices gets a reference to the given string and assigns it to the AdDiscoverServices field.
func (o *GatewayCreateMigration) SetAdDiscoverServices(v string) {
o.AdDiscoverServices = &v
}
// GetAdDiscoveryTypes returns the AdDiscoveryTypes field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdDiscoveryTypes() []string {
if o == nil || o.AdDiscoveryTypes == nil {
var ret []string
return ret
}
return *o.AdDiscoveryTypes
}
// GetAdDiscoveryTypesOk returns a tuple with the AdDiscoveryTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdDiscoveryTypesOk() (*[]string, bool) {
if o == nil || o.AdDiscoveryTypes == nil {
return nil, false
}
return o.AdDiscoveryTypes, true
}
// HasAdDiscoveryTypes returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdDiscoveryTypes() bool {
if o != nil && o.AdDiscoveryTypes != nil {
return true
}
return false
}
// SetAdDiscoveryTypes gets a reference to the given []string and assigns it to the AdDiscoveryTypes field.
func (o *GatewayCreateMigration) SetAdDiscoveryTypes(v []string) {
o.AdDiscoveryTypes = &v
}
// GetAdOsFilter returns the AdOsFilter field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdOsFilter() string {
if o == nil || o.AdOsFilter == nil {
var ret string
return ret
}
return *o.AdOsFilter
}
// GetAdOsFilterOk returns a tuple with the AdOsFilter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdOsFilterOk() (*string, bool) {
if o == nil || o.AdOsFilter == nil {
return nil, false
}
return o.AdOsFilter, true
}
// HasAdOsFilter returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdOsFilter() bool {
if o != nil && o.AdOsFilter != nil {
return true
}
return false
}
// SetAdOsFilter gets a reference to the given string and assigns it to the AdOsFilter field.
func (o *GatewayCreateMigration) SetAdOsFilter(v string) {
o.AdOsFilter = &v
}
// GetAdSshPort returns the AdSshPort field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdSshPort() string {
if o == nil || o.AdSshPort == nil {
var ret string
return ret
}
return *o.AdSshPort
}
// GetAdSshPortOk returns a tuple with the AdSshPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdSshPortOk() (*string, bool) {
if o == nil || o.AdSshPort == nil {
return nil, false
}
return o.AdSshPort, true
}
// HasAdSshPort returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdSshPort() bool {
if o != nil && o.AdSshPort != nil {
return true
}
return false
}
// SetAdSshPort gets a reference to the given string and assigns it to the AdSshPort field.
func (o *GatewayCreateMigration) SetAdSshPort(v string) {
o.AdSshPort = &v
}
// GetAdTargetFormat returns the AdTargetFormat field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdTargetFormat() string {
if o == nil || o.AdTargetFormat == nil {
var ret string
return ret
}
return *o.AdTargetFormat
}
// GetAdTargetFormatOk returns a tuple with the AdTargetFormat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdTargetFormatOk() (*string, bool) {
if o == nil || o.AdTargetFormat == nil {
return nil, false
}
return o.AdTargetFormat, true
}
// HasAdTargetFormat returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdTargetFormat() bool {
if o != nil && o.AdTargetFormat != nil {
return true
}
return false
}
// SetAdTargetFormat gets a reference to the given string and assigns it to the AdTargetFormat field.
func (o *GatewayCreateMigration) SetAdTargetFormat(v string) {
o.AdTargetFormat = &v
}
// GetAdTargetsType returns the AdTargetsType field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdTargetsType() string {
if o == nil || o.AdTargetsType == nil {
var ret string
return ret
}
return *o.AdTargetsType
}
// GetAdTargetsTypeOk returns a tuple with the AdTargetsType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdTargetsTypeOk() (*string, bool) {
if o == nil || o.AdTargetsType == nil {
return nil, false
}
return o.AdTargetsType, true
}
// HasAdTargetsType returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdTargetsType() bool {
if o != nil && o.AdTargetsType != nil {
return true
}
return false
}
// SetAdTargetsType gets a reference to the given string and assigns it to the AdTargetsType field.
func (o *GatewayCreateMigration) SetAdTargetsType(v string) {
o.AdTargetsType = &v
}
// GetAdWinrmOverHttp returns the AdWinrmOverHttp field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdWinrmOverHttp() string {
if o == nil || o.AdWinrmOverHttp == nil {
var ret string
return ret
}
return *o.AdWinrmOverHttp
}
// GetAdWinrmOverHttpOk returns a tuple with the AdWinrmOverHttp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdWinrmOverHttpOk() (*string, bool) {
if o == nil || o.AdWinrmOverHttp == nil {
return nil, false
}
return o.AdWinrmOverHttp, true
}
// HasAdWinrmOverHttp returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdWinrmOverHttp() bool {
if o != nil && o.AdWinrmOverHttp != nil {
return true
}
return false
}
// SetAdWinrmOverHttp gets a reference to the given string and assigns it to the AdWinrmOverHttp field.
func (o *GatewayCreateMigration) SetAdWinrmOverHttp(v string) {
o.AdWinrmOverHttp = &v
}
// GetAdWinrmPort returns the AdWinrmPort field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdWinrmPort() string {
if o == nil || o.AdWinrmPort == nil {
var ret string
return ret
}
return *o.AdWinrmPort
}
// GetAdWinrmPortOk returns a tuple with the AdWinrmPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdWinrmPortOk() (*string, bool) {
if o == nil || o.AdWinrmPort == nil {
return nil, false
}
return o.AdWinrmPort, true
}
// HasAdWinrmPort returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdWinrmPort() bool {
if o != nil && o.AdWinrmPort != nil {
return true
}
return false
}
// SetAdWinrmPort gets a reference to the given string and assigns it to the AdWinrmPort field.
func (o *GatewayCreateMigration) SetAdWinrmPort(v string) {
o.AdWinrmPort = &v
}
// GetAdAutoRotate returns the AdAutoRotate field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdAutoRotate() string {
if o == nil || o.AdAutoRotate == nil {
var ret string
return ret
}
return *o.AdAutoRotate
}
// GetAdAutoRotateOk returns a tuple with the AdAutoRotate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdAutoRotateOk() (*string, bool) {
if o == nil || o.AdAutoRotate == nil {
return nil, false
}
return o.AdAutoRotate, true
}
// HasAdAutoRotate returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdAutoRotate() bool {
if o != nil && o.AdAutoRotate != nil {
return true
}
return false
}
// SetAdAutoRotate gets a reference to the given string and assigns it to the AdAutoRotate field.
func (o *GatewayCreateMigration) SetAdAutoRotate(v string) {
o.AdAutoRotate = &v
}
// GetAdComputerBaseDn returns the AdComputerBaseDn field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdComputerBaseDn() string {
if o == nil || o.AdComputerBaseDn == nil {
var ret string
return ret
}
return *o.AdComputerBaseDn
}
// GetAdComputerBaseDnOk returns a tuple with the AdComputerBaseDn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdComputerBaseDnOk() (*string, bool) {
if o == nil || o.AdComputerBaseDn == nil {
return nil, false
}
return o.AdComputerBaseDn, true
}
// HasAdComputerBaseDn returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdComputerBaseDn() bool {
if o != nil && o.AdComputerBaseDn != nil {
return true
}
return false
}
// SetAdComputerBaseDn gets a reference to the given string and assigns it to the AdComputerBaseDn field.
func (o *GatewayCreateMigration) SetAdComputerBaseDn(v string) {
o.AdComputerBaseDn = &v
}
// GetAdDiscoverLocalUsers returns the AdDiscoverLocalUsers field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdDiscoverLocalUsers() string {
if o == nil || o.AdDiscoverLocalUsers == nil {
var ret string
return ret
}
return *o.AdDiscoverLocalUsers
}
// GetAdDiscoverLocalUsersOk returns a tuple with the AdDiscoverLocalUsers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdDiscoverLocalUsersOk() (*string, bool) {
if o == nil || o.AdDiscoverLocalUsers == nil {
return nil, false
}
return o.AdDiscoverLocalUsers, true
}
// HasAdDiscoverLocalUsers returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdDiscoverLocalUsers() bool {
if o != nil && o.AdDiscoverLocalUsers != nil {
return true
}
return false
}
// SetAdDiscoverLocalUsers gets a reference to the given string and assigns it to the AdDiscoverLocalUsers field.
func (o *GatewayCreateMigration) SetAdDiscoverLocalUsers(v string) {
o.AdDiscoverLocalUsers = &v
}
// GetAdDomainName returns the AdDomainName field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdDomainName() string {
if o == nil || o.AdDomainName == nil {
var ret string
return ret
}
return *o.AdDomainName
}
// GetAdDomainNameOk returns a tuple with the AdDomainName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdDomainNameOk() (*string, bool) {
if o == nil || o.AdDomainName == nil {
return nil, false
}
return o.AdDomainName, true
}
// HasAdDomainName returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdDomainName() bool {
if o != nil && o.AdDomainName != nil {
return true
}
return false
}
// SetAdDomainName gets a reference to the given string and assigns it to the AdDomainName field.
func (o *GatewayCreateMigration) SetAdDomainName(v string) {
o.AdDomainName = &v
}
// GetAdDomainUsersPathTemplate returns the AdDomainUsersPathTemplate field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdDomainUsersPathTemplate() string {
if o == nil || o.AdDomainUsersPathTemplate == nil {
var ret string
return ret
}
return *o.AdDomainUsersPathTemplate
}
// GetAdDomainUsersPathTemplateOk returns a tuple with the AdDomainUsersPathTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdDomainUsersPathTemplateOk() (*string, bool) {
if o == nil || o.AdDomainUsersPathTemplate == nil {
return nil, false
}
return o.AdDomainUsersPathTemplate, true
}
// HasAdDomainUsersPathTemplate returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdDomainUsersPathTemplate() bool {
if o != nil && o.AdDomainUsersPathTemplate != nil {
return true
}
return false
}
// SetAdDomainUsersPathTemplate gets a reference to the given string and assigns it to the AdDomainUsersPathTemplate field.
func (o *GatewayCreateMigration) SetAdDomainUsersPathTemplate(v string) {
o.AdDomainUsersPathTemplate = &v
}
// GetAdLocalUsersIgnore returns the AdLocalUsersIgnore field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdLocalUsersIgnore() string {
if o == nil || o.AdLocalUsersIgnore == nil {
var ret string
return ret
}
return *o.AdLocalUsersIgnore
}
// GetAdLocalUsersIgnoreOk returns a tuple with the AdLocalUsersIgnore field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdLocalUsersIgnoreOk() (*string, bool) {
if o == nil || o.AdLocalUsersIgnore == nil {
return nil, false
}
return o.AdLocalUsersIgnore, true
}
// HasAdLocalUsersIgnore returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdLocalUsersIgnore() bool {
if o != nil && o.AdLocalUsersIgnore != nil {
return true
}
return false
}
// SetAdLocalUsersIgnore gets a reference to the given string and assigns it to the AdLocalUsersIgnore field.
func (o *GatewayCreateMigration) SetAdLocalUsersIgnore(v string) {
o.AdLocalUsersIgnore = &v
}
// GetAdLocalUsersPathTemplate returns the AdLocalUsersPathTemplate field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdLocalUsersPathTemplate() string {
if o == nil || o.AdLocalUsersPathTemplate == nil {
var ret string
return ret
}
return *o.AdLocalUsersPathTemplate
}
// GetAdLocalUsersPathTemplateOk returns a tuple with the AdLocalUsersPathTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdLocalUsersPathTemplateOk() (*string, bool) {
if o == nil || o.AdLocalUsersPathTemplate == nil {
return nil, false
}
return o.AdLocalUsersPathTemplate, true
}
// HasAdLocalUsersPathTemplate returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdLocalUsersPathTemplate() bool {
if o != nil && o.AdLocalUsersPathTemplate != nil {
return true
}
return false
}
// SetAdLocalUsersPathTemplate gets a reference to the given string and assigns it to the AdLocalUsersPathTemplate field.
func (o *GatewayCreateMigration) SetAdLocalUsersPathTemplate(v string) {
o.AdLocalUsersPathTemplate = &v
}
// GetAdRotationHour returns the AdRotationHour field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdRotationHour() int32 {
if o == nil || o.AdRotationHour == nil {
var ret int32
return ret
}
return *o.AdRotationHour
}
// GetAdRotationHourOk returns a tuple with the AdRotationHour field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdRotationHourOk() (*int32, bool) {
if o == nil || o.AdRotationHour == nil {
return nil, false
}
return o.AdRotationHour, true
}
// HasAdRotationHour returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdRotationHour() bool {
if o != nil && o.AdRotationHour != nil {
return true
}
return false
}
// SetAdRotationHour gets a reference to the given int32 and assigns it to the AdRotationHour field.
func (o *GatewayCreateMigration) SetAdRotationHour(v int32) {
o.AdRotationHour = &v
}
// GetAdRotationInterval returns the AdRotationInterval field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdRotationInterval() int32 {
if o == nil || o.AdRotationInterval == nil {
var ret int32
return ret
}
return *o.AdRotationInterval
}
// GetAdRotationIntervalOk returns a tuple with the AdRotationInterval field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdRotationIntervalOk() (*int32, bool) {
if o == nil || o.AdRotationInterval == nil {
return nil, false
}
return o.AdRotationInterval, true
}
// HasAdRotationInterval returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdRotationInterval() bool {
if o != nil && o.AdRotationInterval != nil {
return true
}
return false
}
// SetAdRotationInterval gets a reference to the given int32 and assigns it to the AdRotationInterval field.
func (o *GatewayCreateMigration) SetAdRotationInterval(v int32) {
o.AdRotationInterval = &v
}
// GetAdSraEnableRdp returns the AdSraEnableRdp field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdSraEnableRdp() string {
if o == nil || o.AdSraEnableRdp == nil {
var ret string
return ret
}
return *o.AdSraEnableRdp
}
// GetAdSraEnableRdpOk returns a tuple with the AdSraEnableRdp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdSraEnableRdpOk() (*string, bool) {
if o == nil || o.AdSraEnableRdp == nil {
return nil, false
}
return o.AdSraEnableRdp, true
}
// HasAdSraEnableRdp returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdSraEnableRdp() bool {
if o != nil && o.AdSraEnableRdp != nil {
return true
}
return false
}
// SetAdSraEnableRdp gets a reference to the given string and assigns it to the AdSraEnableRdp field.
func (o *GatewayCreateMigration) SetAdSraEnableRdp(v string) {
o.AdSraEnableRdp = &v
}
// GetAdTargetName returns the AdTargetName field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdTargetName() string {
if o == nil || o.AdTargetName == nil {
var ret string
return ret
}
return *o.AdTargetName
}
// GetAdTargetNameOk returns a tuple with the AdTargetName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdTargetNameOk() (*string, bool) {
if o == nil || o.AdTargetName == nil {
return nil, false
}
return o.AdTargetName, true
}
// HasAdTargetName returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdTargetName() bool {
if o != nil && o.AdTargetName != nil {
return true
}
return false
}
// SetAdTargetName gets a reference to the given string and assigns it to the AdTargetName field.
func (o *GatewayCreateMigration) SetAdTargetName(v string) {
o.AdTargetName = &v
}
// GetAdTargetsPathTemplate returns the AdTargetsPathTemplate field value if set, zero value otherwise.
func (o *GatewayCreateMigration) GetAdTargetsPathTemplate() string {
if o == nil || o.AdTargetsPathTemplate == nil {
var ret string
return ret
}
return *o.AdTargetsPathTemplate
}
// GetAdTargetsPathTemplateOk returns a tuple with the AdTargetsPathTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayCreateMigration) GetAdTargetsPathTemplateOk() (*string, bool) {
if o == nil || o.AdTargetsPathTemplate == nil {
return nil, false
}
return o.AdTargetsPathTemplate, true
}
// HasAdTargetsPathTemplate returns a boolean if a field has been set.
func (o *GatewayCreateMigration) HasAdTargetsPathTemplate() bool {
if o != nil && o.AdTargetsPathTemplate != nil {
return true
}