-
Notifications
You must be signed in to change notification settings - Fork 2
/
model_gateway_update_item.go
1159 lines (999 loc) · 32.7 KB
/
model_gateway_update_item.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"
)
// GatewayUpdateItem gatewayUpdateItem is a command that updates classic key
type GatewayUpdateItem struct {
// List of the new tags that will be attached to this item
AddTag *[]string `json:"add-tag,omitempty"`
// API ID to rotate (relevant only for rotator-type=api-key)
ApiId *string `json:"api-id,omitempty"`
// API key to rotate (relevant only for rotator-type=api-key)
ApiKey *string `json:"api-key,omitempty"`
// ApplicationId (used in azure)
AppId *string `json:"app-id,omitempty"`
// Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false]
AutoRotate *string `json:"auto-rotate,omitempty"`
// Secret payload to be sent with rotation request (relevant only for rotator-type=custom)
CustomPayload *string `json:"custom-payload,omitempty"`
// Protection from accidental deletion of this item [true/false]
DeleteProtection *string `json:"delete_protection,omitempty"`
// Description of the object
Description *string `json:"description,omitempty"`
// Base64-encoded service account private key text
GcpKey *string `json:"gcp-key,omitempty"`
// The email of the gcp service account to rotate
GcpServiceAccountEmail *string `json:"gcp-service-account-email,omitempty"`
// The key id of the gcp service account to rotate
GcpServiceAccountKeyId *string `json:"gcp-service-account-key-id,omitempty"`
// Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
GraceRotation *string `json:"grace-rotation,omitempty"`
// Set output format to JSON
Json *bool `json:"json,omitempty"`
// Whether to keep previous version [true/false]. (relevant only for --type=rotated-secret). If not set, use default according to account settings
KeepPrevVersion *string `json:"keep-prev-version,omitempty"`
// The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
Key *string `json:"key,omitempty"`
// Item name
Name string `json:"name"`
// Deprecated - use description
NewMetadata *string `json:"new-metadata,omitempty"`
// New item name
NewName *string `json:"new-name,omitempty"`
// Deprecated
NewVersion *bool `json:"new-version,omitempty"`
// The length of the password to be generated
PasswordLength *string `json:"password-length,omitempty"`
// List of the existent tags that will be removed from this item
RmTag *[]string `json:"rm-tag,omitempty"`
// rotated-username password (relevant only for rotator-type=password)
RotatedPassword *string `json:"rotated-password,omitempty"`
// username to be rotated, if selected \\\"use-self-creds\\\" at rotator-creds-type, this username will try to rotate it's own password, if \\\"use-target-creds\\\" is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
RotatedUsername *string `json:"rotated-username,omitempty"`
// The Rotation Hour
RotationHour *int32 `json:"rotation-hour,omitempty"`
// The number of days to wait between every automatic key rotation (1-365)
RotationInterval *string `json:"rotation-interval,omitempty"`
// The rotation credentials type
RotatorCredsType *string `json:"rotator-creds-type,omitempty"`
// Authentication token (see `/auth` and `/configure`)
Token *string `json:"token,omitempty"`
// Item type
Type string `json:"type"`
// The universal identity token, Required only for universal_identity authentication
UidToken *string `json:"uid-token,omitempty"`
}
// NewGatewayUpdateItem instantiates a new GatewayUpdateItem 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 NewGatewayUpdateItem(name string, type_ string, ) *GatewayUpdateItem {
this := GatewayUpdateItem{}
var description string = "default_metadata"
this.Description = &description
var json bool = false
this.Json = &json
this.Name = name
var newMetadata string = "default_metadata"
this.NewMetadata = &newMetadata
var rotationHour int32 = 0
this.RotationHour = &rotationHour
var rotatorCredsType string = "use-self-creds"
this.RotatorCredsType = &rotatorCredsType
this.Type = type_
return &this
}
// NewGatewayUpdateItemWithDefaults instantiates a new GatewayUpdateItem 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 NewGatewayUpdateItemWithDefaults() *GatewayUpdateItem {
this := GatewayUpdateItem{}
var description string = "default_metadata"
this.Description = &description
var json bool = false
this.Json = &json
var newMetadata string = "default_metadata"
this.NewMetadata = &newMetadata
var rotationHour int32 = 0
this.RotationHour = &rotationHour
var rotatorCredsType string = "use-self-creds"
this.RotatorCredsType = &rotatorCredsType
return &this
}
// GetAddTag returns the AddTag field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetAddTag() []string {
if o == nil || o.AddTag == nil {
var ret []string
return ret
}
return *o.AddTag
}
// GetAddTagOk returns a tuple with the AddTag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetAddTagOk() (*[]string, bool) {
if o == nil || o.AddTag == nil {
return nil, false
}
return o.AddTag, true
}
// HasAddTag returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasAddTag() bool {
if o != nil && o.AddTag != nil {
return true
}
return false
}
// SetAddTag gets a reference to the given []string and assigns it to the AddTag field.
func (o *GatewayUpdateItem) SetAddTag(v []string) {
o.AddTag = &v
}
// GetApiId returns the ApiId field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetApiId() string {
if o == nil || o.ApiId == nil {
var ret string
return ret
}
return *o.ApiId
}
// GetApiIdOk returns a tuple with the ApiId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetApiIdOk() (*string, bool) {
if o == nil || o.ApiId == nil {
return nil, false
}
return o.ApiId, true
}
// HasApiId returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasApiId() bool {
if o != nil && o.ApiId != nil {
return true
}
return false
}
// SetApiId gets a reference to the given string and assigns it to the ApiId field.
func (o *GatewayUpdateItem) SetApiId(v string) {
o.ApiId = &v
}
// GetApiKey returns the ApiKey field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetApiKey() string {
if o == nil || o.ApiKey == nil {
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 *GatewayUpdateItem) GetApiKeyOk() (*string, bool) {
if o == nil || o.ApiKey == nil {
return nil, false
}
return o.ApiKey, true
}
// HasApiKey returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasApiKey() bool {
if o != nil && o.ApiKey != nil {
return true
}
return false
}
// SetApiKey gets a reference to the given string and assigns it to the ApiKey field.
func (o *GatewayUpdateItem) SetApiKey(v string) {
o.ApiKey = &v
}
// GetAppId returns the AppId field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetAppId() string {
if o == nil || o.AppId == nil {
var ret string
return ret
}
return *o.AppId
}
// GetAppIdOk returns a tuple with the AppId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetAppIdOk() (*string, bool) {
if o == nil || o.AppId == nil {
return nil, false
}
return o.AppId, true
}
// HasAppId returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasAppId() bool {
if o != nil && o.AppId != nil {
return true
}
return false
}
// SetAppId gets a reference to the given string and assigns it to the AppId field.
func (o *GatewayUpdateItem) SetAppId(v string) {
o.AppId = &v
}
// GetAutoRotate returns the AutoRotate field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetAutoRotate() string {
if o == nil || o.AutoRotate == nil {
var ret string
return ret
}
return *o.AutoRotate
}
// GetAutoRotateOk returns a tuple with the AutoRotate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetAutoRotateOk() (*string, bool) {
if o == nil || o.AutoRotate == nil {
return nil, false
}
return o.AutoRotate, true
}
// HasAutoRotate returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasAutoRotate() bool {
if o != nil && o.AutoRotate != nil {
return true
}
return false
}
// SetAutoRotate gets a reference to the given string and assigns it to the AutoRotate field.
func (o *GatewayUpdateItem) SetAutoRotate(v string) {
o.AutoRotate = &v
}
// GetCustomPayload returns the CustomPayload field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetCustomPayload() string {
if o == nil || o.CustomPayload == nil {
var ret string
return ret
}
return *o.CustomPayload
}
// GetCustomPayloadOk returns a tuple with the CustomPayload field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetCustomPayloadOk() (*string, bool) {
if o == nil || o.CustomPayload == nil {
return nil, false
}
return o.CustomPayload, true
}
// HasCustomPayload returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasCustomPayload() bool {
if o != nil && o.CustomPayload != nil {
return true
}
return false
}
// SetCustomPayload gets a reference to the given string and assigns it to the CustomPayload field.
func (o *GatewayUpdateItem) SetCustomPayload(v string) {
o.CustomPayload = &v
}
// GetDeleteProtection returns the DeleteProtection field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetDeleteProtection() string {
if o == nil || o.DeleteProtection == nil {
var ret string
return ret
}
return *o.DeleteProtection
}
// GetDeleteProtectionOk returns a tuple with the DeleteProtection field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetDeleteProtectionOk() (*string, bool) {
if o == nil || o.DeleteProtection == nil {
return nil, false
}
return o.DeleteProtection, true
}
// HasDeleteProtection returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasDeleteProtection() bool {
if o != nil && o.DeleteProtection != nil {
return true
}
return false
}
// SetDeleteProtection gets a reference to the given string and assigns it to the DeleteProtection field.
func (o *GatewayUpdateItem) SetDeleteProtection(v string) {
o.DeleteProtection = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *GatewayUpdateItem) 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 *GatewayUpdateItem) 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 *GatewayUpdateItem) 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 *GatewayUpdateItem) SetDescription(v string) {
o.Description = &v
}
// GetGcpKey returns the GcpKey field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetGcpKey() string {
if o == nil || o.GcpKey == nil {
var ret string
return ret
}
return *o.GcpKey
}
// GetGcpKeyOk returns a tuple with the GcpKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetGcpKeyOk() (*string, bool) {
if o == nil || o.GcpKey == nil {
return nil, false
}
return o.GcpKey, true
}
// HasGcpKey returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasGcpKey() bool {
if o != nil && o.GcpKey != nil {
return true
}
return false
}
// SetGcpKey gets a reference to the given string and assigns it to the GcpKey field.
func (o *GatewayUpdateItem) SetGcpKey(v string) {
o.GcpKey = &v
}
// GetGcpServiceAccountEmail returns the GcpServiceAccountEmail field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetGcpServiceAccountEmail() string {
if o == nil || o.GcpServiceAccountEmail == nil {
var ret string
return ret
}
return *o.GcpServiceAccountEmail
}
// GetGcpServiceAccountEmailOk returns a tuple with the GcpServiceAccountEmail field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetGcpServiceAccountEmailOk() (*string, bool) {
if o == nil || o.GcpServiceAccountEmail == nil {
return nil, false
}
return o.GcpServiceAccountEmail, true
}
// HasGcpServiceAccountEmail returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasGcpServiceAccountEmail() bool {
if o != nil && o.GcpServiceAccountEmail != nil {
return true
}
return false
}
// SetGcpServiceAccountEmail gets a reference to the given string and assigns it to the GcpServiceAccountEmail field.
func (o *GatewayUpdateItem) SetGcpServiceAccountEmail(v string) {
o.GcpServiceAccountEmail = &v
}
// GetGcpServiceAccountKeyId returns the GcpServiceAccountKeyId field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetGcpServiceAccountKeyId() string {
if o == nil || o.GcpServiceAccountKeyId == nil {
var ret string
return ret
}
return *o.GcpServiceAccountKeyId
}
// GetGcpServiceAccountKeyIdOk returns a tuple with the GcpServiceAccountKeyId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetGcpServiceAccountKeyIdOk() (*string, bool) {
if o == nil || o.GcpServiceAccountKeyId == nil {
return nil, false
}
return o.GcpServiceAccountKeyId, true
}
// HasGcpServiceAccountKeyId returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasGcpServiceAccountKeyId() bool {
if o != nil && o.GcpServiceAccountKeyId != nil {
return true
}
return false
}
// SetGcpServiceAccountKeyId gets a reference to the given string and assigns it to the GcpServiceAccountKeyId field.
func (o *GatewayUpdateItem) SetGcpServiceAccountKeyId(v string) {
o.GcpServiceAccountKeyId = &v
}
// GetGraceRotation returns the GraceRotation field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetGraceRotation() string {
if o == nil || o.GraceRotation == nil {
var ret string
return ret
}
return *o.GraceRotation
}
// GetGraceRotationOk returns a tuple with the GraceRotation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetGraceRotationOk() (*string, bool) {
if o == nil || o.GraceRotation == nil {
return nil, false
}
return o.GraceRotation, true
}
// HasGraceRotation returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasGraceRotation() bool {
if o != nil && o.GraceRotation != nil {
return true
}
return false
}
// SetGraceRotation gets a reference to the given string and assigns it to the GraceRotation field.
func (o *GatewayUpdateItem) SetGraceRotation(v string) {
o.GraceRotation = &v
}
// GetJson returns the Json field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetJson() bool {
if o == nil || o.Json == nil {
var ret bool
return ret
}
return *o.Json
}
// GetJsonOk returns a tuple with the Json field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetJsonOk() (*bool, bool) {
if o == nil || o.Json == nil {
return nil, false
}
return o.Json, true
}
// HasJson returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasJson() bool {
if o != nil && o.Json != nil {
return true
}
return false
}
// SetJson gets a reference to the given bool and assigns it to the Json field.
func (o *GatewayUpdateItem) SetJson(v bool) {
o.Json = &v
}
// GetKeepPrevVersion returns the KeepPrevVersion field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetKeepPrevVersion() string {
if o == nil || o.KeepPrevVersion == nil {
var ret string
return ret
}
return *o.KeepPrevVersion
}
// GetKeepPrevVersionOk returns a tuple with the KeepPrevVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetKeepPrevVersionOk() (*string, bool) {
if o == nil || o.KeepPrevVersion == nil {
return nil, false
}
return o.KeepPrevVersion, true
}
// HasKeepPrevVersion returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasKeepPrevVersion() bool {
if o != nil && o.KeepPrevVersion != nil {
return true
}
return false
}
// SetKeepPrevVersion gets a reference to the given string and assigns it to the KeepPrevVersion field.
func (o *GatewayUpdateItem) SetKeepPrevVersion(v string) {
o.KeepPrevVersion = &v
}
// GetKey returns the Key field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetKey() string {
if o == nil || o.Key == nil {
var ret string
return ret
}
return *o.Key
}
// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetKeyOk() (*string, bool) {
if o == nil || o.Key == nil {
return nil, false
}
return o.Key, true
}
// HasKey returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasKey() bool {
if o != nil && o.Key != nil {
return true
}
return false
}
// SetKey gets a reference to the given string and assigns it to the Key field.
func (o *GatewayUpdateItem) SetKey(v string) {
o.Key = &v
}
// GetName returns the Name field value
func (o *GatewayUpdateItem) 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 *GatewayUpdateItem) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *GatewayUpdateItem) SetName(v string) {
o.Name = v
}
// GetNewMetadata returns the NewMetadata field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetNewMetadata() string {
if o == nil || o.NewMetadata == nil {
var ret string
return ret
}
return *o.NewMetadata
}
// GetNewMetadataOk returns a tuple with the NewMetadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetNewMetadataOk() (*string, bool) {
if o == nil || o.NewMetadata == nil {
return nil, false
}
return o.NewMetadata, true
}
// HasNewMetadata returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasNewMetadata() bool {
if o != nil && o.NewMetadata != nil {
return true
}
return false
}
// SetNewMetadata gets a reference to the given string and assigns it to the NewMetadata field.
func (o *GatewayUpdateItem) SetNewMetadata(v string) {
o.NewMetadata = &v
}
// GetNewName returns the NewName field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetNewName() string {
if o == nil || o.NewName == nil {
var ret string
return ret
}
return *o.NewName
}
// GetNewNameOk returns a tuple with the NewName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetNewNameOk() (*string, bool) {
if o == nil || o.NewName == nil {
return nil, false
}
return o.NewName, true
}
// HasNewName returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasNewName() bool {
if o != nil && o.NewName != nil {
return true
}
return false
}
// SetNewName gets a reference to the given string and assigns it to the NewName field.
func (o *GatewayUpdateItem) SetNewName(v string) {
o.NewName = &v
}
// GetNewVersion returns the NewVersion field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetNewVersion() bool {
if o == nil || o.NewVersion == nil {
var ret bool
return ret
}
return *o.NewVersion
}
// GetNewVersionOk returns a tuple with the NewVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetNewVersionOk() (*bool, bool) {
if o == nil || o.NewVersion == nil {
return nil, false
}
return o.NewVersion, true
}
// HasNewVersion returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasNewVersion() bool {
if o != nil && o.NewVersion != nil {
return true
}
return false
}
// SetNewVersion gets a reference to the given bool and assigns it to the NewVersion field.
func (o *GatewayUpdateItem) SetNewVersion(v bool) {
o.NewVersion = &v
}
// GetPasswordLength returns the PasswordLength field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetPasswordLength() string {
if o == nil || o.PasswordLength == nil {
var ret string
return ret
}
return *o.PasswordLength
}
// GetPasswordLengthOk returns a tuple with the PasswordLength field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetPasswordLengthOk() (*string, bool) {
if o == nil || o.PasswordLength == nil {
return nil, false
}
return o.PasswordLength, true
}
// HasPasswordLength returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasPasswordLength() bool {
if o != nil && o.PasswordLength != nil {
return true
}
return false
}
// SetPasswordLength gets a reference to the given string and assigns it to the PasswordLength field.
func (o *GatewayUpdateItem) SetPasswordLength(v string) {
o.PasswordLength = &v
}
// GetRmTag returns the RmTag field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetRmTag() []string {
if o == nil || o.RmTag == nil {
var ret []string
return ret
}
return *o.RmTag
}
// GetRmTagOk returns a tuple with the RmTag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetRmTagOk() (*[]string, bool) {
if o == nil || o.RmTag == nil {
return nil, false
}
return o.RmTag, true
}
// HasRmTag returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasRmTag() bool {
if o != nil && o.RmTag != nil {
return true
}
return false
}
// SetRmTag gets a reference to the given []string and assigns it to the RmTag field.
func (o *GatewayUpdateItem) SetRmTag(v []string) {
o.RmTag = &v
}
// GetRotatedPassword returns the RotatedPassword field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetRotatedPassword() string {
if o == nil || o.RotatedPassword == nil {
var ret string
return ret
}
return *o.RotatedPassword
}
// GetRotatedPasswordOk returns a tuple with the RotatedPassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetRotatedPasswordOk() (*string, bool) {
if o == nil || o.RotatedPassword == nil {
return nil, false
}
return o.RotatedPassword, true
}
// HasRotatedPassword returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasRotatedPassword() bool {
if o != nil && o.RotatedPassword != nil {
return true
}
return false
}
// SetRotatedPassword gets a reference to the given string and assigns it to the RotatedPassword field.
func (o *GatewayUpdateItem) SetRotatedPassword(v string) {
o.RotatedPassword = &v
}
// GetRotatedUsername returns the RotatedUsername field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetRotatedUsername() string {
if o == nil || o.RotatedUsername == nil {
var ret string
return ret
}
return *o.RotatedUsername
}
// GetRotatedUsernameOk returns a tuple with the RotatedUsername field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetRotatedUsernameOk() (*string, bool) {
if o == nil || o.RotatedUsername == nil {
return nil, false
}
return o.RotatedUsername, true
}
// HasRotatedUsername returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasRotatedUsername() bool {
if o != nil && o.RotatedUsername != nil {
return true
}
return false
}
// SetRotatedUsername gets a reference to the given string and assigns it to the RotatedUsername field.
func (o *GatewayUpdateItem) SetRotatedUsername(v string) {
o.RotatedUsername = &v
}
// GetRotationHour returns the RotationHour field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetRotationHour() int32 {
if o == nil || o.RotationHour == nil {
var ret int32
return ret
}
return *o.RotationHour
}
// GetRotationHourOk returns a tuple with the RotationHour field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetRotationHourOk() (*int32, bool) {
if o == nil || o.RotationHour == nil {
return nil, false
}
return o.RotationHour, true
}
// HasRotationHour returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasRotationHour() bool {
if o != nil && o.RotationHour != nil {
return true
}
return false
}
// SetRotationHour gets a reference to the given int32 and assigns it to the RotationHour field.
func (o *GatewayUpdateItem) SetRotationHour(v int32) {
o.RotationHour = &v
}
// GetRotationInterval returns the RotationInterval field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetRotationInterval() string {
if o == nil || o.RotationInterval == nil {
var ret string
return ret
}
return *o.RotationInterval
}
// GetRotationIntervalOk returns a tuple with the RotationInterval field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetRotationIntervalOk() (*string, bool) {
if o == nil || o.RotationInterval == nil {
return nil, false
}
return o.RotationInterval, true
}
// HasRotationInterval returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasRotationInterval() bool {
if o != nil && o.RotationInterval != nil {
return true
}
return false
}
// SetRotationInterval gets a reference to the given string and assigns it to the RotationInterval field.
func (o *GatewayUpdateItem) SetRotationInterval(v string) {
o.RotationInterval = &v
}
// GetRotatorCredsType returns the RotatorCredsType field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetRotatorCredsType() string {
if o == nil || o.RotatorCredsType == nil {
var ret string
return ret
}
return *o.RotatorCredsType
}
// GetRotatorCredsTypeOk returns a tuple with the RotatorCredsType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetRotatorCredsTypeOk() (*string, bool) {
if o == nil || o.RotatorCredsType == nil {
return nil, false
}
return o.RotatorCredsType, true
}
// HasRotatorCredsType returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasRotatorCredsType() bool {
if o != nil && o.RotatorCredsType != nil {
return true
}
return false
}
// SetRotatorCredsType gets a reference to the given string and assigns it to the RotatorCredsType field.
func (o *GatewayUpdateItem) SetRotatorCredsType(v string) {
o.RotatorCredsType = &v
}
// GetToken returns the Token field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetToken() string {
if o == nil || o.Token == nil {
var ret string
return ret
}
return *o.Token
}
// GetTokenOk returns a tuple with the Token field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetTokenOk() (*string, bool) {
if o == nil || o.Token == nil {
return nil, false
}
return o.Token, true
}
// HasToken returns a boolean if a field has been set.
func (o *GatewayUpdateItem) HasToken() bool {
if o != nil && o.Token != nil {
return true
}
return false
}
// SetToken gets a reference to the given string and assigns it to the Token field.
func (o *GatewayUpdateItem) SetToken(v string) {
o.Token = &v
}
// GetType returns the Type field value
func (o *GatewayUpdateItem) GetType() string {
if o == nil {
var ret string
return ret
}
return o.Type
}
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
func (o *GatewayUpdateItem) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Type, true
}
// SetType sets field value
func (o *GatewayUpdateItem) SetType(v string) {
o.Type = v
}
// GetUidToken returns the UidToken field value if set, zero value otherwise.
func (o *GatewayUpdateItem) GetUidToken() string {