-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_cran_package_upload.go
3228 lines (2773 loc) · 96.4 KB
/
model_cran_package_upload.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
/*
Cloudsmith API (v1)
The API to the Cloudsmith Service
API version: 1.568.8
Contact: support@cloudsmith.io
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package cloudsmith
import (
"encoding/json"
"time"
)
// checks if the CranPackageUpload type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CranPackageUpload{}
// CranPackageUpload struct for CranPackageUpload
type CranPackageUpload struct {
Architectures []Architecture `json:"architectures,omitempty"`
CdnUrl NullableString `json:"cdn_url,omitempty"`
ChecksumMd5 *string `json:"checksum_md5,omitempty"`
ChecksumSha1 *string `json:"checksum_sha1,omitempty"`
ChecksumSha256 *string `json:"checksum_sha256,omitempty"`
ChecksumSha512 *string `json:"checksum_sha512,omitempty"`
// A checksum of all of the package's dependencies.
DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"`
DependenciesUrl *string `json:"dependencies_url,omitempty"`
// A textual description of this package.
Description NullableString `json:"description,omitempty"`
DisplayName *string `json:"display_name,omitempty"`
Distro NullableDistribution `json:"distro,omitempty"`
DistroVersion *DistributionVersion `json:"distro_version,omitempty"`
Downloads *int64 `json:"downloads,omitempty"`
// The epoch of the package version (if any).
Epoch NullableInt64 `json:"epoch,omitempty"`
Extension *string `json:"extension,omitempty"`
Filename *string `json:"filename,omitempty"`
Files []PackageFile `json:"files,omitempty"`
Format *string `json:"format,omitempty"`
FormatUrl *string `json:"format_url,omitempty"`
// Unique and permanent identifier for the package.
IdentifierPerm *string `json:"identifier_perm,omitempty"`
Indexed *bool `json:"indexed,omitempty"`
IsCancellable *bool `json:"is_cancellable,omitempty"`
IsCopyable *bool `json:"is_copyable,omitempty"`
IsDeleteable *bool `json:"is_deleteable,omitempty"`
IsDownloadable *bool `json:"is_downloadable,omitempty"`
IsMoveable *bool `json:"is_moveable,omitempty"`
IsQuarantinable *bool `json:"is_quarantinable,omitempty"`
IsQuarantined *bool `json:"is_quarantined,omitempty"`
IsResyncable *bool `json:"is_resyncable,omitempty"`
IsSecurityScannable *bool `json:"is_security_scannable,omitempty"`
IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"`
IsSyncCompleted *bool `json:"is_sync_completed,omitempty"`
IsSyncFailed *bool `json:"is_sync_failed,omitempty"`
IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"`
IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"`
// The license of this package.
License NullableString `json:"license,omitempty"`
// The name of this package.
Name NullableString `json:"name,omitempty"`
Namespace *string `json:"namespace,omitempty"`
NamespaceUrl *string `json:"namespace_url,omitempty"`
NumFiles *int64 `json:"num_files,omitempty"`
OriginRepository *string `json:"origin_repository,omitempty"`
OriginRepositoryUrl *string `json:"origin_repository_url,omitempty"`
// The type of package contents.
PackageType *int64 `json:"package_type,omitempty"`
// Whether or not the package has violated any policy.
PolicyViolated *bool `json:"policy_violated,omitempty"`
// Binary package uploads should specify the version of R they were built for.
RVersion NullableString `json:"r_version,omitempty"`
// The release of the package version (if any).
Release NullableString `json:"release,omitempty"`
Repository *string `json:"repository,omitempty"`
RepositoryUrl *string `json:"repository_url,omitempty"`
// The datetime the security scanning was completed.
SecurityScanCompletedAt NullableTime `json:"security_scan_completed_at,omitempty"`
// The datetime the security scanning was started.
SecurityScanStartedAt NullableTime `json:"security_scan_started_at,omitempty"`
SecurityScanStatus NullableString `json:"security_scan_status,omitempty"`
// The datetime the security scanning status was updated.
SecurityScanStatusUpdatedAt NullableTime `json:"security_scan_status_updated_at,omitempty"`
SelfHtmlUrl *string `json:"self_html_url,omitempty"`
SelfUrl *string `json:"self_url,omitempty"`
SignatureUrl NullableString `json:"signature_url,omitempty"`
// The calculated size of the package.
Size *int64 `json:"size,omitempty"`
// The public unique identifier for the package.
Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
// The synchronisation (in progress) stage of the package.
Stage *int64 `json:"stage,omitempty"`
StageStr *string `json:"stage_str,omitempty"`
// The datetime the package stage was updated at.
StageUpdatedAt *time.Time `json:"stage_updated_at,omitempty"`
// The synchronisation status of the package.
Status *int64 `json:"status,omitempty"`
// A textual description for the synchronous status reason (if any
StatusReason NullableString `json:"status_reason,omitempty"`
StatusStr *string `json:"status_str,omitempty"`
// The datetime the package status was updated at.
StatusUpdatedAt *time.Time `json:"status_updated_at,omitempty"`
StatusUrl *string `json:"status_url,omitempty"`
Subtype *string `json:"subtype,omitempty"`
// A one-liner synopsis of this package.
Summary NullableString `json:"summary,omitempty"`
// The datetime the package sync was finished at.
SyncFinishedAt NullableTime `json:"sync_finished_at,omitempty"`
// Synchronisation progress (from 0-100)
SyncProgress *int64 `json:"sync_progress,omitempty"`
// All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field.
TagsImmutable map[string]interface{} `json:"tags_immutable,omitempty"`
TypeDisplay *string `json:"type_display,omitempty"`
// The date this package was uploaded.
UploadedAt *time.Time `json:"uploaded_at,omitempty"`
Uploader *string `json:"uploader,omitempty"`
UploaderUrl *string `json:"uploader_url,omitempty"`
// The raw version for this package.
Version NullableString `json:"version,omitempty"`
VersionOrig *string `json:"version_orig,omitempty"`
VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"`
AdditionalProperties map[string]interface{}
}
type _CranPackageUpload CranPackageUpload
// NewCranPackageUpload instantiates a new CranPackageUpload 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 NewCranPackageUpload() *CranPackageUpload {
this := CranPackageUpload{}
return &this
}
// NewCranPackageUploadWithDefaults instantiates a new CranPackageUpload 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 NewCranPackageUploadWithDefaults() *CranPackageUpload {
this := CranPackageUpload{}
return &this
}
// GetArchitectures returns the Architectures field value if set, zero value otherwise.
func (o *CranPackageUpload) GetArchitectures() []Architecture {
if o == nil || IsNil(o.Architectures) {
var ret []Architecture
return ret
}
return o.Architectures
}
// GetArchitecturesOk returns a tuple with the Architectures field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetArchitecturesOk() ([]Architecture, bool) {
if o == nil || IsNil(o.Architectures) {
return nil, false
}
return o.Architectures, true
}
// HasArchitectures returns a boolean if a field has been set.
func (o *CranPackageUpload) HasArchitectures() bool {
if o != nil && !IsNil(o.Architectures) {
return true
}
return false
}
// SetArchitectures gets a reference to the given []Architecture and assigns it to the Architectures field.
func (o *CranPackageUpload) SetArchitectures(v []Architecture) {
o.Architectures = v
}
// GetCdnUrl returns the CdnUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CranPackageUpload) GetCdnUrl() string {
if o == nil || IsNil(o.CdnUrl.Get()) {
var ret string
return ret
}
return *o.CdnUrl.Get()
}
// GetCdnUrlOk returns a tuple with the CdnUrl 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 *CranPackageUpload) GetCdnUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CdnUrl.Get(), o.CdnUrl.IsSet()
}
// HasCdnUrl returns a boolean if a field has been set.
func (o *CranPackageUpload) HasCdnUrl() bool {
if o != nil && o.CdnUrl.IsSet() {
return true
}
return false
}
// SetCdnUrl gets a reference to the given NullableString and assigns it to the CdnUrl field.
func (o *CranPackageUpload) SetCdnUrl(v string) {
o.CdnUrl.Set(&v)
}
// SetCdnUrlNil sets the value for CdnUrl to be an explicit nil
func (o *CranPackageUpload) SetCdnUrlNil() {
o.CdnUrl.Set(nil)
}
// UnsetCdnUrl ensures that no value is present for CdnUrl, not even an explicit nil
func (o *CranPackageUpload) UnsetCdnUrl() {
o.CdnUrl.Unset()
}
// GetChecksumMd5 returns the ChecksumMd5 field value if set, zero value otherwise.
func (o *CranPackageUpload) GetChecksumMd5() string {
if o == nil || IsNil(o.ChecksumMd5) {
var ret string
return ret
}
return *o.ChecksumMd5
}
// GetChecksumMd5Ok returns a tuple with the ChecksumMd5 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetChecksumMd5Ok() (*string, bool) {
if o == nil || IsNil(o.ChecksumMd5) {
return nil, false
}
return o.ChecksumMd5, true
}
// HasChecksumMd5 returns a boolean if a field has been set.
func (o *CranPackageUpload) HasChecksumMd5() bool {
if o != nil && !IsNil(o.ChecksumMd5) {
return true
}
return false
}
// SetChecksumMd5 gets a reference to the given string and assigns it to the ChecksumMd5 field.
func (o *CranPackageUpload) SetChecksumMd5(v string) {
o.ChecksumMd5 = &v
}
// GetChecksumSha1 returns the ChecksumSha1 field value if set, zero value otherwise.
func (o *CranPackageUpload) GetChecksumSha1() string {
if o == nil || IsNil(o.ChecksumSha1) {
var ret string
return ret
}
return *o.ChecksumSha1
}
// GetChecksumSha1Ok returns a tuple with the ChecksumSha1 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetChecksumSha1Ok() (*string, bool) {
if o == nil || IsNil(o.ChecksumSha1) {
return nil, false
}
return o.ChecksumSha1, true
}
// HasChecksumSha1 returns a boolean if a field has been set.
func (o *CranPackageUpload) HasChecksumSha1() bool {
if o != nil && !IsNil(o.ChecksumSha1) {
return true
}
return false
}
// SetChecksumSha1 gets a reference to the given string and assigns it to the ChecksumSha1 field.
func (o *CranPackageUpload) SetChecksumSha1(v string) {
o.ChecksumSha1 = &v
}
// GetChecksumSha256 returns the ChecksumSha256 field value if set, zero value otherwise.
func (o *CranPackageUpload) GetChecksumSha256() string {
if o == nil || IsNil(o.ChecksumSha256) {
var ret string
return ret
}
return *o.ChecksumSha256
}
// GetChecksumSha256Ok returns a tuple with the ChecksumSha256 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetChecksumSha256Ok() (*string, bool) {
if o == nil || IsNil(o.ChecksumSha256) {
return nil, false
}
return o.ChecksumSha256, true
}
// HasChecksumSha256 returns a boolean if a field has been set.
func (o *CranPackageUpload) HasChecksumSha256() bool {
if o != nil && !IsNil(o.ChecksumSha256) {
return true
}
return false
}
// SetChecksumSha256 gets a reference to the given string and assigns it to the ChecksumSha256 field.
func (o *CranPackageUpload) SetChecksumSha256(v string) {
o.ChecksumSha256 = &v
}
// GetChecksumSha512 returns the ChecksumSha512 field value if set, zero value otherwise.
func (o *CranPackageUpload) GetChecksumSha512() string {
if o == nil || IsNil(o.ChecksumSha512) {
var ret string
return ret
}
return *o.ChecksumSha512
}
// GetChecksumSha512Ok returns a tuple with the ChecksumSha512 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetChecksumSha512Ok() (*string, bool) {
if o == nil || IsNil(o.ChecksumSha512) {
return nil, false
}
return o.ChecksumSha512, true
}
// HasChecksumSha512 returns a boolean if a field has been set.
func (o *CranPackageUpload) HasChecksumSha512() bool {
if o != nil && !IsNil(o.ChecksumSha512) {
return true
}
return false
}
// SetChecksumSha512 gets a reference to the given string and assigns it to the ChecksumSha512 field.
func (o *CranPackageUpload) SetChecksumSha512(v string) {
o.ChecksumSha512 = &v
}
// GetDependenciesChecksumMd5 returns the DependenciesChecksumMd5 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CranPackageUpload) GetDependenciesChecksumMd5() string {
if o == nil || IsNil(o.DependenciesChecksumMd5.Get()) {
var ret string
return ret
}
return *o.DependenciesChecksumMd5.Get()
}
// GetDependenciesChecksumMd5Ok returns a tuple with the DependenciesChecksumMd5 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 *CranPackageUpload) GetDependenciesChecksumMd5Ok() (*string, bool) {
if o == nil {
return nil, false
}
return o.DependenciesChecksumMd5.Get(), o.DependenciesChecksumMd5.IsSet()
}
// HasDependenciesChecksumMd5 returns a boolean if a field has been set.
func (o *CranPackageUpload) HasDependenciesChecksumMd5() bool {
if o != nil && o.DependenciesChecksumMd5.IsSet() {
return true
}
return false
}
// SetDependenciesChecksumMd5 gets a reference to the given NullableString and assigns it to the DependenciesChecksumMd5 field.
func (o *CranPackageUpload) SetDependenciesChecksumMd5(v string) {
o.DependenciesChecksumMd5.Set(&v)
}
// SetDependenciesChecksumMd5Nil sets the value for DependenciesChecksumMd5 to be an explicit nil
func (o *CranPackageUpload) SetDependenciesChecksumMd5Nil() {
o.DependenciesChecksumMd5.Set(nil)
}
// UnsetDependenciesChecksumMd5 ensures that no value is present for DependenciesChecksumMd5, not even an explicit nil
func (o *CranPackageUpload) UnsetDependenciesChecksumMd5() {
o.DependenciesChecksumMd5.Unset()
}
// GetDependenciesUrl returns the DependenciesUrl field value if set, zero value otherwise.
func (o *CranPackageUpload) GetDependenciesUrl() string {
if o == nil || IsNil(o.DependenciesUrl) {
var ret string
return ret
}
return *o.DependenciesUrl
}
// GetDependenciesUrlOk returns a tuple with the DependenciesUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetDependenciesUrlOk() (*string, bool) {
if o == nil || IsNil(o.DependenciesUrl) {
return nil, false
}
return o.DependenciesUrl, true
}
// HasDependenciesUrl returns a boolean if a field has been set.
func (o *CranPackageUpload) HasDependenciesUrl() bool {
if o != nil && !IsNil(o.DependenciesUrl) {
return true
}
return false
}
// SetDependenciesUrl gets a reference to the given string and assigns it to the DependenciesUrl field.
func (o *CranPackageUpload) SetDependenciesUrl(v string) {
o.DependenciesUrl = &v
}
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CranPackageUpload) GetDescription() string {
if o == nil || IsNil(o.Description.Get()) {
var ret string
return ret
}
return *o.Description.Get()
}
// GetDescriptionOk returns a tuple with the Description 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 *CranPackageUpload) GetDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Description.Get(), o.Description.IsSet()
}
// HasDescription returns a boolean if a field has been set.
func (o *CranPackageUpload) HasDescription() bool {
if o != nil && o.Description.IsSet() {
return true
}
return false
}
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
func (o *CranPackageUpload) SetDescription(v string) {
o.Description.Set(&v)
}
// SetDescriptionNil sets the value for Description to be an explicit nil
func (o *CranPackageUpload) SetDescriptionNil() {
o.Description.Set(nil)
}
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *CranPackageUpload) UnsetDescription() {
o.Description.Unset()
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *CranPackageUpload) GetDisplayName() string {
if o == nil || IsNil(o.DisplayName) {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetDisplayNameOk() (*string, bool) {
if o == nil || IsNil(o.DisplayName) {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *CranPackageUpload) HasDisplayName() bool {
if o != nil && !IsNil(o.DisplayName) {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *CranPackageUpload) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CranPackageUpload) GetDistro() Distribution {
if o == nil || IsNil(o.Distro.Get()) {
var ret Distribution
return ret
}
return *o.Distro.Get()
}
// GetDistroOk returns a tuple with the Distro 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 *CranPackageUpload) GetDistroOk() (*Distribution, bool) {
if o == nil {
return nil, false
}
return o.Distro.Get(), o.Distro.IsSet()
}
// HasDistro returns a boolean if a field has been set.
func (o *CranPackageUpload) HasDistro() bool {
if o != nil && o.Distro.IsSet() {
return true
}
return false
}
// SetDistro gets a reference to the given NullableDistribution and assigns it to the Distro field.
func (o *CranPackageUpload) SetDistro(v Distribution) {
o.Distro.Set(&v)
}
// SetDistroNil sets the value for Distro to be an explicit nil
func (o *CranPackageUpload) SetDistroNil() {
o.Distro.Set(nil)
}
// UnsetDistro ensures that no value is present for Distro, not even an explicit nil
func (o *CranPackageUpload) UnsetDistro() {
o.Distro.Unset()
}
// GetDistroVersion returns the DistroVersion field value if set, zero value otherwise.
func (o *CranPackageUpload) GetDistroVersion() DistributionVersion {
if o == nil || IsNil(o.DistroVersion) {
var ret DistributionVersion
return ret
}
return *o.DistroVersion
}
// GetDistroVersionOk returns a tuple with the DistroVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetDistroVersionOk() (*DistributionVersion, bool) {
if o == nil || IsNil(o.DistroVersion) {
return nil, false
}
return o.DistroVersion, true
}
// HasDistroVersion returns a boolean if a field has been set.
func (o *CranPackageUpload) HasDistroVersion() bool {
if o != nil && !IsNil(o.DistroVersion) {
return true
}
return false
}
// SetDistroVersion gets a reference to the given DistributionVersion and assigns it to the DistroVersion field.
func (o *CranPackageUpload) SetDistroVersion(v DistributionVersion) {
o.DistroVersion = &v
}
// GetDownloads returns the Downloads field value if set, zero value otherwise.
func (o *CranPackageUpload) GetDownloads() int64 {
if o == nil || IsNil(o.Downloads) {
var ret int64
return ret
}
return *o.Downloads
}
// GetDownloadsOk returns a tuple with the Downloads field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetDownloadsOk() (*int64, bool) {
if o == nil || IsNil(o.Downloads) {
return nil, false
}
return o.Downloads, true
}
// HasDownloads returns a boolean if a field has been set.
func (o *CranPackageUpload) HasDownloads() bool {
if o != nil && !IsNil(o.Downloads) {
return true
}
return false
}
// SetDownloads gets a reference to the given int64 and assigns it to the Downloads field.
func (o *CranPackageUpload) SetDownloads(v int64) {
o.Downloads = &v
}
// GetEpoch returns the Epoch field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CranPackageUpload) GetEpoch() int64 {
if o == nil || IsNil(o.Epoch.Get()) {
var ret int64
return ret
}
return *o.Epoch.Get()
}
// GetEpochOk returns a tuple with the Epoch 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 *CranPackageUpload) GetEpochOk() (*int64, bool) {
if o == nil {
return nil, false
}
return o.Epoch.Get(), o.Epoch.IsSet()
}
// HasEpoch returns a boolean if a field has been set.
func (o *CranPackageUpload) HasEpoch() bool {
if o != nil && o.Epoch.IsSet() {
return true
}
return false
}
// SetEpoch gets a reference to the given NullableInt64 and assigns it to the Epoch field.
func (o *CranPackageUpload) SetEpoch(v int64) {
o.Epoch.Set(&v)
}
// SetEpochNil sets the value for Epoch to be an explicit nil
func (o *CranPackageUpload) SetEpochNil() {
o.Epoch.Set(nil)
}
// UnsetEpoch ensures that no value is present for Epoch, not even an explicit nil
func (o *CranPackageUpload) UnsetEpoch() {
o.Epoch.Unset()
}
// GetExtension returns the Extension field value if set, zero value otherwise.
func (o *CranPackageUpload) GetExtension() string {
if o == nil || IsNil(o.Extension) {
var ret string
return ret
}
return *o.Extension
}
// GetExtensionOk returns a tuple with the Extension field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetExtensionOk() (*string, bool) {
if o == nil || IsNil(o.Extension) {
return nil, false
}
return o.Extension, true
}
// HasExtension returns a boolean if a field has been set.
func (o *CranPackageUpload) HasExtension() bool {
if o != nil && !IsNil(o.Extension) {
return true
}
return false
}
// SetExtension gets a reference to the given string and assigns it to the Extension field.
func (o *CranPackageUpload) SetExtension(v string) {
o.Extension = &v
}
// GetFilename returns the Filename field value if set, zero value otherwise.
func (o *CranPackageUpload) GetFilename() string {
if o == nil || IsNil(o.Filename) {
var ret string
return ret
}
return *o.Filename
}
// GetFilenameOk returns a tuple with the Filename field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetFilenameOk() (*string, bool) {
if o == nil || IsNil(o.Filename) {
return nil, false
}
return o.Filename, true
}
// HasFilename returns a boolean if a field has been set.
func (o *CranPackageUpload) HasFilename() bool {
if o != nil && !IsNil(o.Filename) {
return true
}
return false
}
// SetFilename gets a reference to the given string and assigns it to the Filename field.
func (o *CranPackageUpload) SetFilename(v string) {
o.Filename = &v
}
// GetFiles returns the Files field value if set, zero value otherwise.
func (o *CranPackageUpload) GetFiles() []PackageFile {
if o == nil || IsNil(o.Files) {
var ret []PackageFile
return ret
}
return o.Files
}
// GetFilesOk returns a tuple with the Files field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetFilesOk() ([]PackageFile, bool) {
if o == nil || IsNil(o.Files) {
return nil, false
}
return o.Files, true
}
// HasFiles returns a boolean if a field has been set.
func (o *CranPackageUpload) HasFiles() bool {
if o != nil && !IsNil(o.Files) {
return true
}
return false
}
// SetFiles gets a reference to the given []PackageFile and assigns it to the Files field.
func (o *CranPackageUpload) SetFiles(v []PackageFile) {
o.Files = v
}
// GetFormat returns the Format field value if set, zero value otherwise.
func (o *CranPackageUpload) GetFormat() string {
if o == nil || IsNil(o.Format) {
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 *CranPackageUpload) GetFormatOk() (*string, bool) {
if o == nil || IsNil(o.Format) {
return nil, false
}
return o.Format, true
}
// HasFormat returns a boolean if a field has been set.
func (o *CranPackageUpload) HasFormat() bool {
if o != nil && !IsNil(o.Format) {
return true
}
return false
}
// SetFormat gets a reference to the given string and assigns it to the Format field.
func (o *CranPackageUpload) SetFormat(v string) {
o.Format = &v
}
// GetFormatUrl returns the FormatUrl field value if set, zero value otherwise.
func (o *CranPackageUpload) GetFormatUrl() string {
if o == nil || IsNil(o.FormatUrl) {
var ret string
return ret
}
return *o.FormatUrl
}
// GetFormatUrlOk returns a tuple with the FormatUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetFormatUrlOk() (*string, bool) {
if o == nil || IsNil(o.FormatUrl) {
return nil, false
}
return o.FormatUrl, true
}
// HasFormatUrl returns a boolean if a field has been set.
func (o *CranPackageUpload) HasFormatUrl() bool {
if o != nil && !IsNil(o.FormatUrl) {
return true
}
return false
}
// SetFormatUrl gets a reference to the given string and assigns it to the FormatUrl field.
func (o *CranPackageUpload) SetFormatUrl(v string) {
o.FormatUrl = &v
}
// GetIdentifierPerm returns the IdentifierPerm field value if set, zero value otherwise.
func (o *CranPackageUpload) GetIdentifierPerm() string {
if o == nil || IsNil(o.IdentifierPerm) {
var ret string
return ret
}
return *o.IdentifierPerm
}
// GetIdentifierPermOk returns a tuple with the IdentifierPerm field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetIdentifierPermOk() (*string, bool) {
if o == nil || IsNil(o.IdentifierPerm) {
return nil, false
}
return o.IdentifierPerm, true
}
// HasIdentifierPerm returns a boolean if a field has been set.
func (o *CranPackageUpload) HasIdentifierPerm() bool {
if o != nil && !IsNil(o.IdentifierPerm) {
return true
}
return false
}
// SetIdentifierPerm gets a reference to the given string and assigns it to the IdentifierPerm field.
func (o *CranPackageUpload) SetIdentifierPerm(v string) {
o.IdentifierPerm = &v
}
// GetIndexed returns the Indexed field value if set, zero value otherwise.
func (o *CranPackageUpload) GetIndexed() bool {
if o == nil || IsNil(o.Indexed) {
var ret bool
return ret
}
return *o.Indexed
}
// GetIndexedOk returns a tuple with the Indexed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetIndexedOk() (*bool, bool) {
if o == nil || IsNil(o.Indexed) {
return nil, false
}
return o.Indexed, true
}
// HasIndexed returns a boolean if a field has been set.
func (o *CranPackageUpload) HasIndexed() bool {
if o != nil && !IsNil(o.Indexed) {
return true
}
return false
}
// SetIndexed gets a reference to the given bool and assigns it to the Indexed field.
func (o *CranPackageUpload) SetIndexed(v bool) {
o.Indexed = &v
}
// GetIsCancellable returns the IsCancellable field value if set, zero value otherwise.
func (o *CranPackageUpload) GetIsCancellable() bool {
if o == nil || IsNil(o.IsCancellable) {
var ret bool
return ret
}
return *o.IsCancellable
}
// GetIsCancellableOk returns a tuple with the IsCancellable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetIsCancellableOk() (*bool, bool) {
if o == nil || IsNil(o.IsCancellable) {
return nil, false
}
return o.IsCancellable, true
}
// HasIsCancellable returns a boolean if a field has been set.
func (o *CranPackageUpload) HasIsCancellable() bool {
if o != nil && !IsNil(o.IsCancellable) {
return true
}
return false
}
// SetIsCancellable gets a reference to the given bool and assigns it to the IsCancellable field.
func (o *CranPackageUpload) SetIsCancellable(v bool) {
o.IsCancellable = &v
}
// GetIsCopyable returns the IsCopyable field value if set, zero value otherwise.
func (o *CranPackageUpload) GetIsCopyable() bool {
if o == nil || IsNil(o.IsCopyable) {
var ret bool
return ret
}
return *o.IsCopyable
}
// GetIsCopyableOk returns a tuple with the IsCopyable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetIsCopyableOk() (*bool, bool) {
if o == nil || IsNil(o.IsCopyable) {
return nil, false
}
return o.IsCopyable, true
}
// HasIsCopyable returns a boolean if a field has been set.
func (o *CranPackageUpload) HasIsCopyable() bool {
if o != nil && !IsNil(o.IsCopyable) {
return true
}
return false
}
// SetIsCopyable gets a reference to the given bool and assigns it to the IsCopyable field.
func (o *CranPackageUpload) SetIsCopyable(v bool) {
o.IsCopyable = &v
}
// GetIsDeleteable returns the IsDeleteable field value if set, zero value otherwise.
func (o *CranPackageUpload) GetIsDeleteable() bool {
if o == nil || IsNil(o.IsDeleteable) {
var ret bool
return ret
}
return *o.IsDeleteable
}
// GetIsDeleteableOk returns a tuple with the IsDeleteable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetIsDeleteableOk() (*bool, bool) {
if o == nil || IsNil(o.IsDeleteable) {
return nil, false
}
return o.IsDeleteable, true
}
// HasIsDeleteable returns a boolean if a field has been set.
func (o *CranPackageUpload) HasIsDeleteable() bool {
if o != nil && !IsNil(o.IsDeleteable) {
return true
}
return false
}
// SetIsDeleteable gets a reference to the given bool and assigns it to the IsDeleteable field.
func (o *CranPackageUpload) SetIsDeleteable(v bool) {
o.IsDeleteable = &v
}
// GetIsDownloadable returns the IsDownloadable field value if set, zero value otherwise.
func (o *CranPackageUpload) GetIsDownloadable() bool {
if o == nil || IsNil(o.IsDownloadable) {
var ret bool
return ret
}
return *o.IsDownloadable
}
// GetIsDownloadableOk returns a tuple with the IsDownloadable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CranPackageUpload) GetIsDownloadableOk() (*bool, bool) {
if o == nil || IsNil(o.IsDownloadable) {
return nil, false
}
return o.IsDownloadable, true
}
// HasIsDownloadable returns a boolean if a field has been set.
func (o *CranPackageUpload) HasIsDownloadable() bool {
if o != nil && !IsNil(o.IsDownloadable) {
return true
}
return false
}
// SetIsDownloadable gets a reference to the given bool and assigns it to the IsDownloadable field.