/
model_available_packages_dto.go
767 lines (656 loc) · 22.9 KB
/
model_available_packages_dto.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
/*
Taikun - WebApi
This Api will be responsible for overall data distribution and authorization.
API version: v1
Contact: noreply@taikun.cloud
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package taikuncore
import (
"encoding/json"
)
// checks if the AvailablePackagesDto type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AvailablePackagesDto{}
// AvailablePackagesDto struct for AvailablePackagesDto
type AvailablePackagesDto struct {
PackageId NullableString `json:"packageId,omitempty"`
CatalogAppId NullableInt32 `json:"catalogAppId,omitempty"`
InstalledInstanceCount NullableInt32 `json:"installedInstanceCount,omitempty"`
Name NullableString `json:"name,omitempty"`
NormalizedName NullableString `json:"normalizedName,omitempty"`
LogoImageId NullableString `json:"logoImageId,omitempty"`
Stars *int64 `json:"stars,omitempty"`
Description NullableString `json:"description,omitempty"`
Version NullableString `json:"version,omitempty"`
AppVersion NullableString `json:"appVersion,omitempty"`
Deprecated *bool `json:"deprecated,omitempty"`
Signed *bool `json:"signed,omitempty"`
IsLocked *bool `json:"isLocked,omitempty"`
SecurityReportSummary *SecurityReportSummary `json:"securityReportSummary,omitempty"`
Ts NullableString `json:"ts,omitempty"`
Repository *Repository `json:"repository,omitempty"`
}
// NewAvailablePackagesDto instantiates a new AvailablePackagesDto 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 NewAvailablePackagesDto() *AvailablePackagesDto {
this := AvailablePackagesDto{}
return &this
}
// NewAvailablePackagesDtoWithDefaults instantiates a new AvailablePackagesDto 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 NewAvailablePackagesDtoWithDefaults() *AvailablePackagesDto {
this := AvailablePackagesDto{}
return &this
}
// GetPackageId returns the PackageId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePackagesDto) GetPackageId() string {
if o == nil || IsNil(o.PackageId.Get()) {
var ret string
return ret
}
return *o.PackageId.Get()
}
// GetPackageIdOk returns a tuple with the PackageId 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 *AvailablePackagesDto) GetPackageIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.PackageId.Get(), o.PackageId.IsSet()
}
// HasPackageId returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasPackageId() bool {
if o != nil && o.PackageId.IsSet() {
return true
}
return false
}
// SetPackageId gets a reference to the given NullableString and assigns it to the PackageId field.
func (o *AvailablePackagesDto) SetPackageId(v string) {
o.PackageId.Set(&v)
}
// SetPackageIdNil sets the value for PackageId to be an explicit nil
func (o *AvailablePackagesDto) SetPackageIdNil() {
o.PackageId.Set(nil)
}
// UnsetPackageId ensures that no value is present for PackageId, not even an explicit nil
func (o *AvailablePackagesDto) UnsetPackageId() {
o.PackageId.Unset()
}
// GetCatalogAppId returns the CatalogAppId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePackagesDto) GetCatalogAppId() int32 {
if o == nil || IsNil(o.CatalogAppId.Get()) {
var ret int32
return ret
}
return *o.CatalogAppId.Get()
}
// GetCatalogAppIdOk returns a tuple with the CatalogAppId 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 *AvailablePackagesDto) GetCatalogAppIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.CatalogAppId.Get(), o.CatalogAppId.IsSet()
}
// HasCatalogAppId returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasCatalogAppId() bool {
if o != nil && o.CatalogAppId.IsSet() {
return true
}
return false
}
// SetCatalogAppId gets a reference to the given NullableInt32 and assigns it to the CatalogAppId field.
func (o *AvailablePackagesDto) SetCatalogAppId(v int32) {
o.CatalogAppId.Set(&v)
}
// SetCatalogAppIdNil sets the value for CatalogAppId to be an explicit nil
func (o *AvailablePackagesDto) SetCatalogAppIdNil() {
o.CatalogAppId.Set(nil)
}
// UnsetCatalogAppId ensures that no value is present for CatalogAppId, not even an explicit nil
func (o *AvailablePackagesDto) UnsetCatalogAppId() {
o.CatalogAppId.Unset()
}
// GetInstalledInstanceCount returns the InstalledInstanceCount field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePackagesDto) GetInstalledInstanceCount() int32 {
if o == nil || IsNil(o.InstalledInstanceCount.Get()) {
var ret int32
return ret
}
return *o.InstalledInstanceCount.Get()
}
// GetInstalledInstanceCountOk returns a tuple with the InstalledInstanceCount 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 *AvailablePackagesDto) GetInstalledInstanceCountOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.InstalledInstanceCount.Get(), o.InstalledInstanceCount.IsSet()
}
// HasInstalledInstanceCount returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasInstalledInstanceCount() bool {
if o != nil && o.InstalledInstanceCount.IsSet() {
return true
}
return false
}
// SetInstalledInstanceCount gets a reference to the given NullableInt32 and assigns it to the InstalledInstanceCount field.
func (o *AvailablePackagesDto) SetInstalledInstanceCount(v int32) {
o.InstalledInstanceCount.Set(&v)
}
// SetInstalledInstanceCountNil sets the value for InstalledInstanceCount to be an explicit nil
func (o *AvailablePackagesDto) SetInstalledInstanceCountNil() {
o.InstalledInstanceCount.Set(nil)
}
// UnsetInstalledInstanceCount ensures that no value is present for InstalledInstanceCount, not even an explicit nil
func (o *AvailablePackagesDto) UnsetInstalledInstanceCount() {
o.InstalledInstanceCount.Unset()
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePackagesDto) GetName() string {
if o == nil || IsNil(o.Name.Get()) {
var ret string
return ret
}
return *o.Name.Get()
}
// GetNameOk returns a tuple with the Name 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 *AvailablePackagesDto) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Name.Get(), o.Name.IsSet()
}
// HasName returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasName() bool {
if o != nil && o.Name.IsSet() {
return true
}
return false
}
// SetName gets a reference to the given NullableString and assigns it to the Name field.
func (o *AvailablePackagesDto) SetName(v string) {
o.Name.Set(&v)
}
// SetNameNil sets the value for Name to be an explicit nil
func (o *AvailablePackagesDto) SetNameNil() {
o.Name.Set(nil)
}
// UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *AvailablePackagesDto) UnsetName() {
o.Name.Unset()
}
// GetNormalizedName returns the NormalizedName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePackagesDto) GetNormalizedName() string {
if o == nil || IsNil(o.NormalizedName.Get()) {
var ret string
return ret
}
return *o.NormalizedName.Get()
}
// GetNormalizedNameOk returns a tuple with the NormalizedName 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 *AvailablePackagesDto) GetNormalizedNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.NormalizedName.Get(), o.NormalizedName.IsSet()
}
// HasNormalizedName returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasNormalizedName() bool {
if o != nil && o.NormalizedName.IsSet() {
return true
}
return false
}
// SetNormalizedName gets a reference to the given NullableString and assigns it to the NormalizedName field.
func (o *AvailablePackagesDto) SetNormalizedName(v string) {
o.NormalizedName.Set(&v)
}
// SetNormalizedNameNil sets the value for NormalizedName to be an explicit nil
func (o *AvailablePackagesDto) SetNormalizedNameNil() {
o.NormalizedName.Set(nil)
}
// UnsetNormalizedName ensures that no value is present for NormalizedName, not even an explicit nil
func (o *AvailablePackagesDto) UnsetNormalizedName() {
o.NormalizedName.Unset()
}
// GetLogoImageId returns the LogoImageId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePackagesDto) GetLogoImageId() string {
if o == nil || IsNil(o.LogoImageId.Get()) {
var ret string
return ret
}
return *o.LogoImageId.Get()
}
// GetLogoImageIdOk returns a tuple with the LogoImageId 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 *AvailablePackagesDto) GetLogoImageIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.LogoImageId.Get(), o.LogoImageId.IsSet()
}
// HasLogoImageId returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasLogoImageId() bool {
if o != nil && o.LogoImageId.IsSet() {
return true
}
return false
}
// SetLogoImageId gets a reference to the given NullableString and assigns it to the LogoImageId field.
func (o *AvailablePackagesDto) SetLogoImageId(v string) {
o.LogoImageId.Set(&v)
}
// SetLogoImageIdNil sets the value for LogoImageId to be an explicit nil
func (o *AvailablePackagesDto) SetLogoImageIdNil() {
o.LogoImageId.Set(nil)
}
// UnsetLogoImageId ensures that no value is present for LogoImageId, not even an explicit nil
func (o *AvailablePackagesDto) UnsetLogoImageId() {
o.LogoImageId.Unset()
}
// GetStars returns the Stars field value if set, zero value otherwise.
func (o *AvailablePackagesDto) GetStars() int64 {
if o == nil || IsNil(o.Stars) {
var ret int64
return ret
}
return *o.Stars
}
// GetStarsOk returns a tuple with the Stars field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AvailablePackagesDto) GetStarsOk() (*int64, bool) {
if o == nil || IsNil(o.Stars) {
return nil, false
}
return o.Stars, true
}
// HasStars returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasStars() bool {
if o != nil && !IsNil(o.Stars) {
return true
}
return false
}
// SetStars gets a reference to the given int64 and assigns it to the Stars field.
func (o *AvailablePackagesDto) SetStars(v int64) {
o.Stars = &v
}
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePackagesDto) 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 *AvailablePackagesDto) 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 *AvailablePackagesDto) 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 *AvailablePackagesDto) SetDescription(v string) {
o.Description.Set(&v)
}
// SetDescriptionNil sets the value for Description to be an explicit nil
func (o *AvailablePackagesDto) SetDescriptionNil() {
o.Description.Set(nil)
}
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *AvailablePackagesDto) UnsetDescription() {
o.Description.Unset()
}
// GetVersion returns the Version field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePackagesDto) GetVersion() string {
if o == nil || IsNil(o.Version.Get()) {
var ret string
return ret
}
return *o.Version.Get()
}
// GetVersionOk returns a tuple with the Version 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 *AvailablePackagesDto) GetVersionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Version.Get(), o.Version.IsSet()
}
// HasVersion returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasVersion() bool {
if o != nil && o.Version.IsSet() {
return true
}
return false
}
// SetVersion gets a reference to the given NullableString and assigns it to the Version field.
func (o *AvailablePackagesDto) SetVersion(v string) {
o.Version.Set(&v)
}
// SetVersionNil sets the value for Version to be an explicit nil
func (o *AvailablePackagesDto) SetVersionNil() {
o.Version.Set(nil)
}
// UnsetVersion ensures that no value is present for Version, not even an explicit nil
func (o *AvailablePackagesDto) UnsetVersion() {
o.Version.Unset()
}
// GetAppVersion returns the AppVersion field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePackagesDto) GetAppVersion() string {
if o == nil || IsNil(o.AppVersion.Get()) {
var ret string
return ret
}
return *o.AppVersion.Get()
}
// GetAppVersionOk returns a tuple with the AppVersion 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 *AvailablePackagesDto) GetAppVersionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AppVersion.Get(), o.AppVersion.IsSet()
}
// HasAppVersion returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasAppVersion() bool {
if o != nil && o.AppVersion.IsSet() {
return true
}
return false
}
// SetAppVersion gets a reference to the given NullableString and assigns it to the AppVersion field.
func (o *AvailablePackagesDto) SetAppVersion(v string) {
o.AppVersion.Set(&v)
}
// SetAppVersionNil sets the value for AppVersion to be an explicit nil
func (o *AvailablePackagesDto) SetAppVersionNil() {
o.AppVersion.Set(nil)
}
// UnsetAppVersion ensures that no value is present for AppVersion, not even an explicit nil
func (o *AvailablePackagesDto) UnsetAppVersion() {
o.AppVersion.Unset()
}
// GetDeprecated returns the Deprecated field value if set, zero value otherwise.
func (o *AvailablePackagesDto) GetDeprecated() bool {
if o == nil || IsNil(o.Deprecated) {
var ret bool
return ret
}
return *o.Deprecated
}
// GetDeprecatedOk returns a tuple with the Deprecated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AvailablePackagesDto) GetDeprecatedOk() (*bool, bool) {
if o == nil || IsNil(o.Deprecated) {
return nil, false
}
return o.Deprecated, true
}
// HasDeprecated returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasDeprecated() bool {
if o != nil && !IsNil(o.Deprecated) {
return true
}
return false
}
// SetDeprecated gets a reference to the given bool and assigns it to the Deprecated field.
func (o *AvailablePackagesDto) SetDeprecated(v bool) {
o.Deprecated = &v
}
// GetSigned returns the Signed field value if set, zero value otherwise.
func (o *AvailablePackagesDto) GetSigned() bool {
if o == nil || IsNil(o.Signed) {
var ret bool
return ret
}
return *o.Signed
}
// GetSignedOk returns a tuple with the Signed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AvailablePackagesDto) GetSignedOk() (*bool, bool) {
if o == nil || IsNil(o.Signed) {
return nil, false
}
return o.Signed, true
}
// HasSigned returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasSigned() bool {
if o != nil && !IsNil(o.Signed) {
return true
}
return false
}
// SetSigned gets a reference to the given bool and assigns it to the Signed field.
func (o *AvailablePackagesDto) SetSigned(v bool) {
o.Signed = &v
}
// GetIsLocked returns the IsLocked field value if set, zero value otherwise.
func (o *AvailablePackagesDto) GetIsLocked() bool {
if o == nil || IsNil(o.IsLocked) {
var ret bool
return ret
}
return *o.IsLocked
}
// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AvailablePackagesDto) GetIsLockedOk() (*bool, bool) {
if o == nil || IsNil(o.IsLocked) {
return nil, false
}
return o.IsLocked, true
}
// HasIsLocked returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasIsLocked() bool {
if o != nil && !IsNil(o.IsLocked) {
return true
}
return false
}
// SetIsLocked gets a reference to the given bool and assigns it to the IsLocked field.
func (o *AvailablePackagesDto) SetIsLocked(v bool) {
o.IsLocked = &v
}
// GetSecurityReportSummary returns the SecurityReportSummary field value if set, zero value otherwise.
func (o *AvailablePackagesDto) GetSecurityReportSummary() SecurityReportSummary {
if o == nil || IsNil(o.SecurityReportSummary) {
var ret SecurityReportSummary
return ret
}
return *o.SecurityReportSummary
}
// GetSecurityReportSummaryOk returns a tuple with the SecurityReportSummary field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AvailablePackagesDto) GetSecurityReportSummaryOk() (*SecurityReportSummary, bool) {
if o == nil || IsNil(o.SecurityReportSummary) {
return nil, false
}
return o.SecurityReportSummary, true
}
// HasSecurityReportSummary returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasSecurityReportSummary() bool {
if o != nil && !IsNil(o.SecurityReportSummary) {
return true
}
return false
}
// SetSecurityReportSummary gets a reference to the given SecurityReportSummary and assigns it to the SecurityReportSummary field.
func (o *AvailablePackagesDto) SetSecurityReportSummary(v SecurityReportSummary) {
o.SecurityReportSummary = &v
}
// GetTs returns the Ts field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePackagesDto) GetTs() string {
if o == nil || IsNil(o.Ts.Get()) {
var ret string
return ret
}
return *o.Ts.Get()
}
// GetTsOk returns a tuple with the Ts 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 *AvailablePackagesDto) GetTsOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Ts.Get(), o.Ts.IsSet()
}
// HasTs returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasTs() bool {
if o != nil && o.Ts.IsSet() {
return true
}
return false
}
// SetTs gets a reference to the given NullableString and assigns it to the Ts field.
func (o *AvailablePackagesDto) SetTs(v string) {
o.Ts.Set(&v)
}
// SetTsNil sets the value for Ts to be an explicit nil
func (o *AvailablePackagesDto) SetTsNil() {
o.Ts.Set(nil)
}
// UnsetTs ensures that no value is present for Ts, not even an explicit nil
func (o *AvailablePackagesDto) UnsetTs() {
o.Ts.Unset()
}
// GetRepository returns the Repository field value if set, zero value otherwise.
func (o *AvailablePackagesDto) GetRepository() Repository {
if o == nil || IsNil(o.Repository) {
var ret Repository
return ret
}
return *o.Repository
}
// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AvailablePackagesDto) GetRepositoryOk() (*Repository, bool) {
if o == nil || IsNil(o.Repository) {
return nil, false
}
return o.Repository, true
}
// HasRepository returns a boolean if a field has been set.
func (o *AvailablePackagesDto) HasRepository() bool {
if o != nil && !IsNil(o.Repository) {
return true
}
return false
}
// SetRepository gets a reference to the given Repository and assigns it to the Repository field.
func (o *AvailablePackagesDto) SetRepository(v Repository) {
o.Repository = &v
}
func (o AvailablePackagesDto) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AvailablePackagesDto) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.PackageId.IsSet() {
toSerialize["packageId"] = o.PackageId.Get()
}
if o.CatalogAppId.IsSet() {
toSerialize["catalogAppId"] = o.CatalogAppId.Get()
}
if o.InstalledInstanceCount.IsSet() {
toSerialize["installedInstanceCount"] = o.InstalledInstanceCount.Get()
}
if o.Name.IsSet() {
toSerialize["name"] = o.Name.Get()
}
if o.NormalizedName.IsSet() {
toSerialize["normalizedName"] = o.NormalizedName.Get()
}
if o.LogoImageId.IsSet() {
toSerialize["logoImageId"] = o.LogoImageId.Get()
}
if !IsNil(o.Stars) {
toSerialize["stars"] = o.Stars
}
if o.Description.IsSet() {
toSerialize["description"] = o.Description.Get()
}
if o.Version.IsSet() {
toSerialize["version"] = o.Version.Get()
}
if o.AppVersion.IsSet() {
toSerialize["appVersion"] = o.AppVersion.Get()
}
if !IsNil(o.Deprecated) {
toSerialize["deprecated"] = o.Deprecated
}
if !IsNil(o.Signed) {
toSerialize["signed"] = o.Signed
}
if !IsNil(o.IsLocked) {
toSerialize["isLocked"] = o.IsLocked
}
if !IsNil(o.SecurityReportSummary) {
toSerialize["securityReportSummary"] = o.SecurityReportSummary
}
if o.Ts.IsSet() {
toSerialize["ts"] = o.Ts.Get()
}
if !IsNil(o.Repository) {
toSerialize["repository"] = o.Repository
}
return toSerialize, nil
}
type NullableAvailablePackagesDto struct {
value *AvailablePackagesDto
isSet bool
}
func (v NullableAvailablePackagesDto) Get() *AvailablePackagesDto {
return v.value
}
func (v *NullableAvailablePackagesDto) Set(val *AvailablePackagesDto) {
v.value = val
v.isSet = true
}
func (v NullableAvailablePackagesDto) IsSet() bool {
return v.isSet
}
func (v *NullableAvailablePackagesDto) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAvailablePackagesDto(val *AvailablePackagesDto) *NullableAvailablePackagesDto {
return &NullableAvailablePackagesDto{value: val, isSet: true}
}
func (v NullableAvailablePackagesDto) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAvailablePackagesDto) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}