/
model_logging_ftp_response.go
1089 lines (941 loc) · 32.8 KB
/
model_logging_ftp_response.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
// Package fastly is an API client library for interacting with most facets of the Fastly API.
package fastly
/*
Fastly API
Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/)
API version: 1.0.0
Contact: oss@fastly.com
*/
// This code is auto-generated; DO NOT EDIT.
import (
"encoding/json"
"time"
)
// LoggingFtpResponse struct for LoggingFtpResponse
type LoggingFtpResponse struct {
// The name for the real-time logging configuration.
Name *string `json:"name,omitempty"`
// Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
Placement NullableString `json:"placement,omitempty"`
// The name of an existing condition in the configured endpoint, or leave blank to always execute.
ResponseCondition NullableString `json:"response_condition,omitempty"`
// A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
Format *string `json:"format,omitempty"`
// The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
FormatVersion *string `json:"format_version,omitempty"`
// How the message should be formatted.
MessageType *string `json:"message_type,omitempty"`
// A timestamp format
TimestampFormat NullableString `json:"timestamp_format,omitempty"`
// The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
CompressionCodec *string `json:"compression_codec,omitempty"`
// How frequently log files are finalized so they can be available for reading (in seconds).
Period *string `json:"period,omitempty"`
// The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
GzipLevel *string `json:"gzip_level,omitempty"`
// Date and time in ISO 8601 format.
CreatedAt NullableTime `json:"created_at,omitempty"`
// Date and time in ISO 8601 format.
DeletedAt NullableTime `json:"deleted_at,omitempty"`
// Date and time in ISO 8601 format.
UpdatedAt NullableTime `json:"updated_at,omitempty"`
ServiceID *string `json:"service_id,omitempty"`
Version *string `json:"version,omitempty"`
// An hostname or IPv4 address.
Address *string `json:"address,omitempty"`
// Hostname used.
Hostname *string `json:"hostname,omitempty"`
// IPv4 address of the host.
Ipv4 *string `json:"ipv4,omitempty"`
// The password for the server. For anonymous use an email address.
Password *string `json:"password,omitempty"`
// The path to upload log files to. If the path ends in `/` then it is treated as a directory.
Path *string `json:"path,omitempty"`
// A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
PublicKey NullableString `json:"public_key,omitempty"`
// The username for the server. Can be anonymous.
User *string `json:"user,omitempty"`
// The port number.
Port *string `json:"port,omitempty"`
AdditionalProperties map[string]any
}
type _LoggingFtpResponse LoggingFtpResponse
// NewLoggingFtpResponse instantiates a new LoggingFtpResponse 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 NewLoggingFtpResponse() *LoggingFtpResponse {
this := LoggingFtpResponse{}
var format string = "%h %l %u %t \"%r\" %>s %b"
this.Format = &format
var formatVersion string = "2"
this.FormatVersion = &formatVersion
var messageType string = "classic"
this.MessageType = &messageType
var period string = "3600"
this.Period = &period
var gzipLevel string = "0"
this.GzipLevel = &gzipLevel
var publicKey string = "null"
this.PublicKey = *NewNullableString(&publicKey)
var port string = "21"
this.Port = &port
return &this
}
// NewLoggingFtpResponseWithDefaults instantiates a new LoggingFtpResponse 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 NewLoggingFtpResponseWithDefaults() *LoggingFtpResponse {
this := LoggingFtpResponse{}
var format string = "%h %l %u %t \"%r\" %>s %b"
this.Format = &format
var formatVersion string = "2"
this.FormatVersion = &formatVersion
var messageType string = "classic"
this.MessageType = &messageType
var period string = "3600"
this.Period = &period
var gzipLevel string = "0"
this.GzipLevel = &gzipLevel
var publicKey string = "null"
this.PublicKey = *NewNullableString(&publicKey)
var port string = "21"
this.Port = &port
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetName() string {
if o == nil || o.Name == nil {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasName() bool {
if o != nil && o.Name != nil {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *LoggingFtpResponse) SetName(v string) {
o.Name = &v
}
// GetPlacement returns the Placement field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LoggingFtpResponse) GetPlacement() string {
if o == nil || o.Placement.Get() == nil {
var ret string
return ret
}
return *o.Placement.Get()
}
// GetPlacementOk returns a tuple with the Placement 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 *LoggingFtpResponse) GetPlacementOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Placement.Get(), o.Placement.IsSet()
}
// HasPlacement returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasPlacement() bool {
if o != nil && o.Placement.IsSet() {
return true
}
return false
}
// SetPlacement gets a reference to the given NullableString and assigns it to the Placement field.
func (o *LoggingFtpResponse) SetPlacement(v string) {
o.Placement.Set(&v)
}
// SetPlacementNil sets the value for Placement to be an explicit nil
func (o *LoggingFtpResponse) SetPlacementNil() {
o.Placement.Set(nil)
}
// UnsetPlacement ensures that no value is present for Placement, not even an explicit nil
func (o *LoggingFtpResponse) UnsetPlacement() {
o.Placement.Unset()
}
// GetResponseCondition returns the ResponseCondition field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LoggingFtpResponse) GetResponseCondition() string {
if o == nil || o.ResponseCondition.Get() == nil {
var ret string
return ret
}
return *o.ResponseCondition.Get()
}
// GetResponseConditionOk returns a tuple with the ResponseCondition 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 *LoggingFtpResponse) GetResponseConditionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ResponseCondition.Get(), o.ResponseCondition.IsSet()
}
// HasResponseCondition returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasResponseCondition() bool {
if o != nil && o.ResponseCondition.IsSet() {
return true
}
return false
}
// SetResponseCondition gets a reference to the given NullableString and assigns it to the ResponseCondition field.
func (o *LoggingFtpResponse) SetResponseCondition(v string) {
o.ResponseCondition.Set(&v)
}
// SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil
func (o *LoggingFtpResponse) SetResponseConditionNil() {
o.ResponseCondition.Set(nil)
}
// UnsetResponseCondition ensures that no value is present for ResponseCondition, not even an explicit nil
func (o *LoggingFtpResponse) UnsetResponseCondition() {
o.ResponseCondition.Unset()
}
// GetFormat returns the Format field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetFormat() string {
if o == nil || o.Format == nil {
var ret string
return ret
}
return *o.Format
}
// GetFormatOk returns a tuple with the Format field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetFormatOk() (*string, bool) {
if o == nil || o.Format == nil {
return nil, false
}
return o.Format, true
}
// HasFormat returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasFormat() bool {
if o != nil && o.Format != nil {
return true
}
return false
}
// SetFormat gets a reference to the given string and assigns it to the Format field.
func (o *LoggingFtpResponse) SetFormat(v string) {
o.Format = &v
}
// GetFormatVersion returns the FormatVersion field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetFormatVersion() string {
if o == nil || o.FormatVersion == nil {
var ret string
return ret
}
return *o.FormatVersion
}
// GetFormatVersionOk returns a tuple with the FormatVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetFormatVersionOk() (*string, bool) {
if o == nil || o.FormatVersion == nil {
return nil, false
}
return o.FormatVersion, true
}
// HasFormatVersion returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasFormatVersion() bool {
if o != nil && o.FormatVersion != nil {
return true
}
return false
}
// SetFormatVersion gets a reference to the given string and assigns it to the FormatVersion field.
func (o *LoggingFtpResponse) SetFormatVersion(v string) {
o.FormatVersion = &v
}
// GetMessageType returns the MessageType field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetMessageType() string {
if o == nil || o.MessageType == nil {
var ret string
return ret
}
return *o.MessageType
}
// GetMessageTypeOk returns a tuple with the MessageType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetMessageTypeOk() (*string, bool) {
if o == nil || o.MessageType == nil {
return nil, false
}
return o.MessageType, true
}
// HasMessageType returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasMessageType() bool {
if o != nil && o.MessageType != nil {
return true
}
return false
}
// SetMessageType gets a reference to the given string and assigns it to the MessageType field.
func (o *LoggingFtpResponse) SetMessageType(v string) {
o.MessageType = &v
}
// GetTimestampFormat returns the TimestampFormat field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LoggingFtpResponse) GetTimestampFormat() string {
if o == nil || o.TimestampFormat.Get() == nil {
var ret string
return ret
}
return *o.TimestampFormat.Get()
}
// GetTimestampFormatOk returns a tuple with the TimestampFormat 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 *LoggingFtpResponse) GetTimestampFormatOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.TimestampFormat.Get(), o.TimestampFormat.IsSet()
}
// HasTimestampFormat returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasTimestampFormat() bool {
if o != nil && o.TimestampFormat.IsSet() {
return true
}
return false
}
// SetTimestampFormat gets a reference to the given NullableString and assigns it to the TimestampFormat field.
func (o *LoggingFtpResponse) SetTimestampFormat(v string) {
o.TimestampFormat.Set(&v)
}
// SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil
func (o *LoggingFtpResponse) SetTimestampFormatNil() {
o.TimestampFormat.Set(nil)
}
// UnsetTimestampFormat ensures that no value is present for TimestampFormat, not even an explicit nil
func (o *LoggingFtpResponse) UnsetTimestampFormat() {
o.TimestampFormat.Unset()
}
// GetCompressionCodec returns the CompressionCodec field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetCompressionCodec() string {
if o == nil || o.CompressionCodec == nil {
var ret string
return ret
}
return *o.CompressionCodec
}
// GetCompressionCodecOk returns a tuple with the CompressionCodec field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetCompressionCodecOk() (*string, bool) {
if o == nil || o.CompressionCodec == nil {
return nil, false
}
return o.CompressionCodec, true
}
// HasCompressionCodec returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasCompressionCodec() bool {
if o != nil && o.CompressionCodec != nil {
return true
}
return false
}
// SetCompressionCodec gets a reference to the given string and assigns it to the CompressionCodec field.
func (o *LoggingFtpResponse) SetCompressionCodec(v string) {
o.CompressionCodec = &v
}
// GetPeriod returns the Period field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetPeriod() string {
if o == nil || o.Period == nil {
var ret string
return ret
}
return *o.Period
}
// GetPeriodOk returns a tuple with the Period field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetPeriodOk() (*string, bool) {
if o == nil || o.Period == nil {
return nil, false
}
return o.Period, true
}
// HasPeriod returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasPeriod() bool {
if o != nil && o.Period != nil {
return true
}
return false
}
// SetPeriod gets a reference to the given string and assigns it to the Period field.
func (o *LoggingFtpResponse) SetPeriod(v string) {
o.Period = &v
}
// GetGzipLevel returns the GzipLevel field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetGzipLevel() string {
if o == nil || o.GzipLevel == nil {
var ret string
return ret
}
return *o.GzipLevel
}
// GetGzipLevelOk returns a tuple with the GzipLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetGzipLevelOk() (*string, bool) {
if o == nil || o.GzipLevel == nil {
return nil, false
}
return o.GzipLevel, true
}
// HasGzipLevel returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasGzipLevel() bool {
if o != nil && o.GzipLevel != nil {
return true
}
return false
}
// SetGzipLevel gets a reference to the given string and assigns it to the GzipLevel field.
func (o *LoggingFtpResponse) SetGzipLevel(v string) {
o.GzipLevel = &v
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LoggingFtpResponse) GetCreatedAt() time.Time {
if o == nil || o.CreatedAt.Get() == nil {
var ret time.Time
return ret
}
return *o.CreatedAt.Get()
}
// GetCreatedAtOk returns a tuple with the CreatedAt 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 *LoggingFtpResponse) GetCreatedAtOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.CreatedAt.Get(), o.CreatedAt.IsSet()
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasCreatedAt() bool {
if o != nil && o.CreatedAt.IsSet() {
return true
}
return false
}
// SetCreatedAt gets a reference to the given NullableTime and assigns it to the CreatedAt field.
func (o *LoggingFtpResponse) SetCreatedAt(v time.Time) {
o.CreatedAt.Set(&v)
}
// SetCreatedAtNil sets the value for CreatedAt to be an explicit nil
func (o *LoggingFtpResponse) SetCreatedAtNil() {
o.CreatedAt.Set(nil)
}
// UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil
func (o *LoggingFtpResponse) UnsetCreatedAt() {
o.CreatedAt.Unset()
}
// GetDeletedAt returns the DeletedAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LoggingFtpResponse) GetDeletedAt() time.Time {
if o == nil || o.DeletedAt.Get() == nil {
var ret time.Time
return ret
}
return *o.DeletedAt.Get()
}
// GetDeletedAtOk returns a tuple with the DeletedAt 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 *LoggingFtpResponse) GetDeletedAtOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.DeletedAt.Get(), o.DeletedAt.IsSet()
}
// HasDeletedAt returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasDeletedAt() bool {
if o != nil && o.DeletedAt.IsSet() {
return true
}
return false
}
// SetDeletedAt gets a reference to the given NullableTime and assigns it to the DeletedAt field.
func (o *LoggingFtpResponse) SetDeletedAt(v time.Time) {
o.DeletedAt.Set(&v)
}
// SetDeletedAtNil sets the value for DeletedAt to be an explicit nil
func (o *LoggingFtpResponse) SetDeletedAtNil() {
o.DeletedAt.Set(nil)
}
// UnsetDeletedAt ensures that no value is present for DeletedAt, not even an explicit nil
func (o *LoggingFtpResponse) UnsetDeletedAt() {
o.DeletedAt.Unset()
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LoggingFtpResponse) GetUpdatedAt() time.Time {
if o == nil || o.UpdatedAt.Get() == nil {
var ret time.Time
return ret
}
return *o.UpdatedAt.Get()
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt 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 *LoggingFtpResponse) GetUpdatedAtOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.UpdatedAt.Get(), o.UpdatedAt.IsSet()
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasUpdatedAt() bool {
if o != nil && o.UpdatedAt.IsSet() {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given NullableTime and assigns it to the UpdatedAt field.
func (o *LoggingFtpResponse) SetUpdatedAt(v time.Time) {
o.UpdatedAt.Set(&v)
}
// SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil
func (o *LoggingFtpResponse) SetUpdatedAtNil() {
o.UpdatedAt.Set(nil)
}
// UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil
func (o *LoggingFtpResponse) UnsetUpdatedAt() {
o.UpdatedAt.Unset()
}
// GetServiceID returns the ServiceID field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetServiceID() string {
if o == nil || o.ServiceID == nil {
var ret string
return ret
}
return *o.ServiceID
}
// GetServiceIDOk returns a tuple with the ServiceID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetServiceIDOk() (*string, bool) {
if o == nil || o.ServiceID == nil {
return nil, false
}
return o.ServiceID, true
}
// HasServiceID returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasServiceID() bool {
if o != nil && o.ServiceID != nil {
return true
}
return false
}
// SetServiceID gets a reference to the given string and assigns it to the ServiceID field.
func (o *LoggingFtpResponse) SetServiceID(v string) {
o.ServiceID = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetVersion() string {
if o == nil || o.Version == nil {
var ret string
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetVersionOk() (*string, bool) {
if o == nil || o.Version == nil {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasVersion() bool {
if o != nil && o.Version != nil {
return true
}
return false
}
// SetVersion gets a reference to the given string and assigns it to the Version field.
func (o *LoggingFtpResponse) SetVersion(v string) {
o.Version = &v
}
// GetAddress returns the Address field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetAddress() string {
if o == nil || o.Address == nil {
var ret string
return ret
}
return *o.Address
}
// GetAddressOk returns a tuple with the Address field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetAddressOk() (*string, bool) {
if o == nil || o.Address == nil {
return nil, false
}
return o.Address, true
}
// HasAddress returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasAddress() bool {
if o != nil && o.Address != nil {
return true
}
return false
}
// SetAddress gets a reference to the given string and assigns it to the Address field.
func (o *LoggingFtpResponse) SetAddress(v string) {
o.Address = &v
}
// GetHostname returns the Hostname field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetHostname() string {
if o == nil || o.Hostname == nil {
var ret string
return ret
}
return *o.Hostname
}
// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetHostnameOk() (*string, bool) {
if o == nil || o.Hostname == nil {
return nil, false
}
return o.Hostname, true
}
// HasHostname returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasHostname() bool {
if o != nil && o.Hostname != nil {
return true
}
return false
}
// SetHostname gets a reference to the given string and assigns it to the Hostname field.
func (o *LoggingFtpResponse) SetHostname(v string) {
o.Hostname = &v
}
// GetIpv4 returns the Ipv4 field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetIpv4() string {
if o == nil || o.Ipv4 == nil {
var ret string
return ret
}
return *o.Ipv4
}
// GetIpv4Ok returns a tuple with the Ipv4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetIpv4Ok() (*string, bool) {
if o == nil || o.Ipv4 == nil {
return nil, false
}
return o.Ipv4, true
}
// HasIpv4 returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasIpv4() bool {
if o != nil && o.Ipv4 != nil {
return true
}
return false
}
// SetIpv4 gets a reference to the given string and assigns it to the Ipv4 field.
func (o *LoggingFtpResponse) SetIpv4(v string) {
o.Ipv4 = &v
}
// GetPassword returns the Password field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetPassword() string {
if o == nil || o.Password == nil {
var ret string
return ret
}
return *o.Password
}
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetPasswordOk() (*string, bool) {
if o == nil || o.Password == nil {
return nil, false
}
return o.Password, true
}
// HasPassword returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasPassword() bool {
if o != nil && o.Password != nil {
return true
}
return false
}
// SetPassword gets a reference to the given string and assigns it to the Password field.
func (o *LoggingFtpResponse) SetPassword(v string) {
o.Password = &v
}
// GetPath returns the Path field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetPath() string {
if o == nil || o.Path == nil {
var ret string
return ret
}
return *o.Path
}
// GetPathOk returns a tuple with the Path field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetPathOk() (*string, bool) {
if o == nil || o.Path == nil {
return nil, false
}
return o.Path, true
}
// HasPath returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasPath() bool {
if o != nil && o.Path != nil {
return true
}
return false
}
// SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LoggingFtpResponse) SetPath(v string) {
o.Path = &v
}
// GetPublicKey returns the PublicKey field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LoggingFtpResponse) GetPublicKey() string {
if o == nil || o.PublicKey.Get() == nil {
var ret string
return ret
}
return *o.PublicKey.Get()
}
// GetPublicKeyOk returns a tuple with the PublicKey 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 *LoggingFtpResponse) GetPublicKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.PublicKey.Get(), o.PublicKey.IsSet()
}
// HasPublicKey returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasPublicKey() bool {
if o != nil && o.PublicKey.IsSet() {
return true
}
return false
}
// SetPublicKey gets a reference to the given NullableString and assigns it to the PublicKey field.
func (o *LoggingFtpResponse) SetPublicKey(v string) {
o.PublicKey.Set(&v)
}
// SetPublicKeyNil sets the value for PublicKey to be an explicit nil
func (o *LoggingFtpResponse) SetPublicKeyNil() {
o.PublicKey.Set(nil)
}
// UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil
func (o *LoggingFtpResponse) UnsetPublicKey() {
o.PublicKey.Unset()
}
// GetUser returns the User field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetUser() string {
if o == nil || o.User == nil {
var ret string
return ret
}
return *o.User
}
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetUserOk() (*string, bool) {
if o == nil || o.User == nil {
return nil, false
}
return o.User, true
}
// HasUser returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasUser() bool {
if o != nil && o.User != nil {
return true
}
return false
}
// SetUser gets a reference to the given string and assigns it to the User field.
func (o *LoggingFtpResponse) SetUser(v string) {
o.User = &v
}
// GetPort returns the Port field value if set, zero value otherwise.
func (o *LoggingFtpResponse) GetPort() string {
if o == nil || o.Port == nil {
var ret string
return ret
}
return *o.Port
}
// GetPortOk returns a tuple with the Port field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoggingFtpResponse) GetPortOk() (*string, bool) {
if o == nil || o.Port == nil {
return nil, false
}
return o.Port, true
}
// HasPort returns a boolean if a field has been set.
func (o *LoggingFtpResponse) HasPort() bool {
if o != nil && o.Port != nil {
return true
}
return false
}
// SetPort gets a reference to the given string and assigns it to the Port field.
func (o *LoggingFtpResponse) SetPort(v string) {
o.Port = &v
}
// MarshalJSON implements the json.Marshaler interface.
// Marshaler is the interface implemented by types that can marshal themselves into valid JSON.
func (o LoggingFtpResponse) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.Name != nil {
toSerialize["name"] = o.Name
}
if o.Placement.IsSet() {
toSerialize["placement"] = o.Placement.Get()
}
if o.ResponseCondition.IsSet() {
toSerialize["response_condition"] = o.ResponseCondition.Get()
}
if o.Format != nil {
toSerialize["format"] = o.Format
}
if o.FormatVersion != nil {
toSerialize["format_version"] = o.FormatVersion
}
if o.MessageType != nil {
toSerialize["message_type"] = o.MessageType
}
if o.TimestampFormat.IsSet() {
toSerialize["timestamp_format"] = o.TimestampFormat.Get()
}
if o.CompressionCodec != nil {
toSerialize["compression_codec"] = o.CompressionCodec
}
if o.Period != nil {
toSerialize["period"] = o.Period
}
if o.GzipLevel != nil {
toSerialize["gzip_level"] = o.GzipLevel
}
if o.CreatedAt.IsSet() {
toSerialize["created_at"] = o.CreatedAt.Get()
}
if o.DeletedAt.IsSet() {
toSerialize["deleted_at"] = o.DeletedAt.Get()
}
if o.UpdatedAt.IsSet() {
toSerialize["updated_at"] = o.UpdatedAt.Get()
}
if o.ServiceID != nil {
toSerialize["service_id"] = o.ServiceID
}
if o.Version != nil {
toSerialize["version"] = o.Version
}
if o.Address != nil {
toSerialize["address"] = o.Address
}
if o.Hostname != nil {
toSerialize["hostname"] = o.Hostname
}
if o.Ipv4 != nil {
toSerialize["ipv4"] = o.Ipv4
}
if o.Password != nil {
toSerialize["password"] = o.Password
}
if o.Path != nil {
toSerialize["path"] = o.Path
}
if o.PublicKey.IsSet() {
toSerialize["public_key"] = o.PublicKey.Get()
}
if o.User != nil {
toSerialize["user"] = o.User
}
if o.Port != nil {
toSerialize["port"] = o.Port
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}