-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmodel_app.go
1534 lines (1322 loc) · 46.4 KB
/
model_app.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
/*
OneSignal
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
API version: 1.2.2
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package onesignal
import (
"encoding/json"
"time"
)
// App struct for App
type App struct {
Id *string `json:"id,omitempty"`
// The name of your app, as displayed on your apps list on the dashboard. This can be renamed.
Name *string `json:"name,omitempty"`
Players *int32 `json:"players,omitempty"`
MessageablePlayers *int32 `json:"messageable_players,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
// Android: Your Google Project number. Also known as Sender ID.
AndroidGcmSenderId *string `json:"android_gcm_sender_id,omitempty"`
// Android: Your Google Push Messaging Auth Key
GcmKey NullableString `json:"gcm_key,omitempty"`
// Chrome (All Browsers except Safari) (Recommended): The URL to your website. This field is required if you wish to enable web push and specify other web push parameters.
ChromeWebOrigin NullableString `json:"chrome_web_origin,omitempty"`
// Not for web push. Your Google Push Messaging Auth Key if you use Chrome Apps / Extensions.
ChromeKey NullableString `json:"chrome_key,omitempty"`
// Chrome (All Browsers except Safari): Your default notification icon. Should be 256x256 pixels, min 80x80.
ChromeWebDefaultNotificationIcon NullableString `json:"chrome_web_default_notification_icon,omitempty"`
// Chrome (All Browsers except Safari): A subdomain of your choice in order to support Web Push on non-HTTPS websites. This field must be set in order for the chrome_web_gcm_sender_id property to be processed.
ChromeWebSubDomain NullableString `json:"chrome_web_sub_domain,omitempty"`
// iOS: Either sandbox or production
ApnsEnv NullableString `json:"apns_env,omitempty"`
// iOS: Your apple push notification p12 certificate file, converted to a string and Base64 encoded.
ApnsP12 *string `json:"apns_p12,omitempty"`
// iOS: Required if using p12 certificate. Password for the apns_p12 file.
ApnsP12Password *string `json:"apns_p12_password,omitempty"`
ApnsCertificates NullableString `json:"apns_certificates,omitempty"`
SafariApnsCertificates *string `json:"safari_apns_certificates,omitempty"`
// Safari: Your apple push notification p12 certificate file for Safari Push Notifications, converted to a string and Base64 encoded.
SafariApnsP12 *string `json:"safari_apns_p12,omitempty"`
// Safari: Password for safari_apns_p12 file
SafariApnsP12Password *string `json:"safari_apns_p12_password,omitempty"`
// iOS: Required if using p8. Unique identifier for the p8 authentication key.
ApnsKeyId NullableString `json:"apns_key_id,omitempty"`
// iOS: Required if using p8. Team ID generated by Apple for your developer account.
ApnsTeamId NullableString `json:"apns_team_id,omitempty"`
// iOS: Required if using p8. Bundle ID for your app in the Apple ecosystem.
ApnsBundleId NullableString `json:"apns_bundle_id,omitempty"`
// iOS: Required if using p8. Base64 encoded p8 key
ApnsP8 NullableString `json:"apns_p8,omitempty"`
// Safari (Recommended): The hostname to your website including http(s)://
SafariSiteOrigin NullableString `json:"safari_site_origin,omitempty"`
SafariPushId NullableString `json:"safari_push_id,omitempty"`
SafariIcon1616 *string `json:"safari_icon_16_16,omitempty"`
SafariIcon3232 *string `json:"safari_icon_32_32,omitempty"`
SafariIcon6464 *string `json:"safari_icon_64_64,omitempty"`
SafariIcon128128 *string `json:"safari_icon_128_128,omitempty"`
// Safari: A url for a 256x256 png notification icon. This is the only Safari icon URL you need to provide.
SafariIcon256256 *string `json:"safari_icon_256_256,omitempty"`
// All Browsers (Recommended): The Site Name. Requires both chrome_web_origin and safari_site_origin to be set to add or update it.
SiteName NullableString `json:"site_name,omitempty"`
BasicAuthKey NullableString `json:"basic_auth_key,omitempty"`
// The Id of the Organization you would like to add this app to.
OrganizationId *string `json:"organization_id,omitempty"`
// iOS: Notification data (additional data) values will be added to the root of the apns payload when sent to the device. Ignore if you're not using any other plugins, or not using OneSignal SDK methods to read the payload.
AdditionalDataIsRootPayload *bool `json:"additional_data_is_root_payload,omitempty"`
AdditionalProperties map[string]interface{}
}
type _App App
// NewApp instantiates a new App 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 NewApp() *App {
this := App{}
return &this
}
// NewAppWithDefaults instantiates a new App 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 NewAppWithDefaults() *App {
this := App{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *App) GetId() string {
if o == nil || o.Id == nil {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetIdOk() (*string, bool) {
if o == nil || o.Id == nil {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *App) HasId() bool {
if o != nil && o.Id != nil {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *App) SetId(v string) {
o.Id = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *App) 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 *App) 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 *App) 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 *App) SetName(v string) {
o.Name = &v
}
// GetPlayers returns the Players field value if set, zero value otherwise.
func (o *App) GetPlayers() int32 {
if o == nil || o.Players == nil {
var ret int32
return ret
}
return *o.Players
}
// GetPlayersOk returns a tuple with the Players field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetPlayersOk() (*int32, bool) {
if o == nil || o.Players == nil {
return nil, false
}
return o.Players, true
}
// HasPlayers returns a boolean if a field has been set.
func (o *App) HasPlayers() bool {
if o != nil && o.Players != nil {
return true
}
return false
}
// SetPlayers gets a reference to the given int32 and assigns it to the Players field.
func (o *App) SetPlayers(v int32) {
o.Players = &v
}
// GetMessageablePlayers returns the MessageablePlayers field value if set, zero value otherwise.
func (o *App) GetMessageablePlayers() int32 {
if o == nil || o.MessageablePlayers == nil {
var ret int32
return ret
}
return *o.MessageablePlayers
}
// GetMessageablePlayersOk returns a tuple with the MessageablePlayers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetMessageablePlayersOk() (*int32, bool) {
if o == nil || o.MessageablePlayers == nil {
return nil, false
}
return o.MessageablePlayers, true
}
// HasMessageablePlayers returns a boolean if a field has been set.
func (o *App) HasMessageablePlayers() bool {
if o != nil && o.MessageablePlayers != nil {
return true
}
return false
}
// SetMessageablePlayers gets a reference to the given int32 and assigns it to the MessageablePlayers field.
func (o *App) SetMessageablePlayers(v int32) {
o.MessageablePlayers = &v
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *App) GetUpdatedAt() time.Time {
if o == nil || o.UpdatedAt == nil {
var ret time.Time
return ret
}
return *o.UpdatedAt
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetUpdatedAtOk() (*time.Time, bool) {
if o == nil || o.UpdatedAt == nil {
return nil, false
}
return o.UpdatedAt, true
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *App) HasUpdatedAt() bool {
if o != nil && o.UpdatedAt != nil {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
func (o *App) SetUpdatedAt(v time.Time) {
o.UpdatedAt = &v
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *App) GetCreatedAt() time.Time {
if o == nil || o.CreatedAt == nil {
var ret time.Time
return ret
}
return *o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetCreatedAtOk() (*time.Time, bool) {
if o == nil || o.CreatedAt == nil {
return nil, false
}
return o.CreatedAt, true
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *App) HasCreatedAt() bool {
if o != nil && o.CreatedAt != nil {
return true
}
return false
}
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *App) SetCreatedAt(v time.Time) {
o.CreatedAt = &v
}
// GetAndroidGcmSenderId returns the AndroidGcmSenderId field value if set, zero value otherwise.
func (o *App) GetAndroidGcmSenderId() string {
if o == nil || o.AndroidGcmSenderId == nil {
var ret string
return ret
}
return *o.AndroidGcmSenderId
}
// GetAndroidGcmSenderIdOk returns a tuple with the AndroidGcmSenderId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetAndroidGcmSenderIdOk() (*string, bool) {
if o == nil || o.AndroidGcmSenderId == nil {
return nil, false
}
return o.AndroidGcmSenderId, true
}
// HasAndroidGcmSenderId returns a boolean if a field has been set.
func (o *App) HasAndroidGcmSenderId() bool {
if o != nil && o.AndroidGcmSenderId != nil {
return true
}
return false
}
// SetAndroidGcmSenderId gets a reference to the given string and assigns it to the AndroidGcmSenderId field.
func (o *App) SetAndroidGcmSenderId(v string) {
o.AndroidGcmSenderId = &v
}
// GetGcmKey returns the GcmKey field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetGcmKey() string {
if o == nil || o.GcmKey.Get() == nil {
var ret string
return ret
}
return *o.GcmKey.Get()
}
// GetGcmKeyOk returns a tuple with the GcmKey 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 *App) GetGcmKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.GcmKey.Get(), o.GcmKey.IsSet()
}
// HasGcmKey returns a boolean if a field has been set.
func (o *App) HasGcmKey() bool {
if o != nil && o.GcmKey.IsSet() {
return true
}
return false
}
// SetGcmKey gets a reference to the given NullableString and assigns it to the GcmKey field.
func (o *App) SetGcmKey(v string) {
o.GcmKey.Set(&v)
}
// SetGcmKeyNil sets the value for GcmKey to be an explicit nil
func (o *App) SetGcmKeyNil() {
o.GcmKey.Set(nil)
}
// UnsetGcmKey ensures that no value is present for GcmKey, not even an explicit nil
func (o *App) UnsetGcmKey() {
o.GcmKey.Unset()
}
// GetChromeWebOrigin returns the ChromeWebOrigin field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetChromeWebOrigin() string {
if o == nil || o.ChromeWebOrigin.Get() == nil {
var ret string
return ret
}
return *o.ChromeWebOrigin.Get()
}
// GetChromeWebOriginOk returns a tuple with the ChromeWebOrigin 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 *App) GetChromeWebOriginOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ChromeWebOrigin.Get(), o.ChromeWebOrigin.IsSet()
}
// HasChromeWebOrigin returns a boolean if a field has been set.
func (o *App) HasChromeWebOrigin() bool {
if o != nil && o.ChromeWebOrigin.IsSet() {
return true
}
return false
}
// SetChromeWebOrigin gets a reference to the given NullableString and assigns it to the ChromeWebOrigin field.
func (o *App) SetChromeWebOrigin(v string) {
o.ChromeWebOrigin.Set(&v)
}
// SetChromeWebOriginNil sets the value for ChromeWebOrigin to be an explicit nil
func (o *App) SetChromeWebOriginNil() {
o.ChromeWebOrigin.Set(nil)
}
// UnsetChromeWebOrigin ensures that no value is present for ChromeWebOrigin, not even an explicit nil
func (o *App) UnsetChromeWebOrigin() {
o.ChromeWebOrigin.Unset()
}
// GetChromeKey returns the ChromeKey field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetChromeKey() string {
if o == nil || o.ChromeKey.Get() == nil {
var ret string
return ret
}
return *o.ChromeKey.Get()
}
// GetChromeKeyOk returns a tuple with the ChromeKey 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 *App) GetChromeKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ChromeKey.Get(), o.ChromeKey.IsSet()
}
// HasChromeKey returns a boolean if a field has been set.
func (o *App) HasChromeKey() bool {
if o != nil && o.ChromeKey.IsSet() {
return true
}
return false
}
// SetChromeKey gets a reference to the given NullableString and assigns it to the ChromeKey field.
func (o *App) SetChromeKey(v string) {
o.ChromeKey.Set(&v)
}
// SetChromeKeyNil sets the value for ChromeKey to be an explicit nil
func (o *App) SetChromeKeyNil() {
o.ChromeKey.Set(nil)
}
// UnsetChromeKey ensures that no value is present for ChromeKey, not even an explicit nil
func (o *App) UnsetChromeKey() {
o.ChromeKey.Unset()
}
// GetChromeWebDefaultNotificationIcon returns the ChromeWebDefaultNotificationIcon field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetChromeWebDefaultNotificationIcon() string {
if o == nil || o.ChromeWebDefaultNotificationIcon.Get() == nil {
var ret string
return ret
}
return *o.ChromeWebDefaultNotificationIcon.Get()
}
// GetChromeWebDefaultNotificationIconOk returns a tuple with the ChromeWebDefaultNotificationIcon 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 *App) GetChromeWebDefaultNotificationIconOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ChromeWebDefaultNotificationIcon.Get(), o.ChromeWebDefaultNotificationIcon.IsSet()
}
// HasChromeWebDefaultNotificationIcon returns a boolean if a field has been set.
func (o *App) HasChromeWebDefaultNotificationIcon() bool {
if o != nil && o.ChromeWebDefaultNotificationIcon.IsSet() {
return true
}
return false
}
// SetChromeWebDefaultNotificationIcon gets a reference to the given NullableString and assigns it to the ChromeWebDefaultNotificationIcon field.
func (o *App) SetChromeWebDefaultNotificationIcon(v string) {
o.ChromeWebDefaultNotificationIcon.Set(&v)
}
// SetChromeWebDefaultNotificationIconNil sets the value for ChromeWebDefaultNotificationIcon to be an explicit nil
func (o *App) SetChromeWebDefaultNotificationIconNil() {
o.ChromeWebDefaultNotificationIcon.Set(nil)
}
// UnsetChromeWebDefaultNotificationIcon ensures that no value is present for ChromeWebDefaultNotificationIcon, not even an explicit nil
func (o *App) UnsetChromeWebDefaultNotificationIcon() {
o.ChromeWebDefaultNotificationIcon.Unset()
}
// GetChromeWebSubDomain returns the ChromeWebSubDomain field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetChromeWebSubDomain() string {
if o == nil || o.ChromeWebSubDomain.Get() == nil {
var ret string
return ret
}
return *o.ChromeWebSubDomain.Get()
}
// GetChromeWebSubDomainOk returns a tuple with the ChromeWebSubDomain 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 *App) GetChromeWebSubDomainOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ChromeWebSubDomain.Get(), o.ChromeWebSubDomain.IsSet()
}
// HasChromeWebSubDomain returns a boolean if a field has been set.
func (o *App) HasChromeWebSubDomain() bool {
if o != nil && o.ChromeWebSubDomain.IsSet() {
return true
}
return false
}
// SetChromeWebSubDomain gets a reference to the given NullableString and assigns it to the ChromeWebSubDomain field.
func (o *App) SetChromeWebSubDomain(v string) {
o.ChromeWebSubDomain.Set(&v)
}
// SetChromeWebSubDomainNil sets the value for ChromeWebSubDomain to be an explicit nil
func (o *App) SetChromeWebSubDomainNil() {
o.ChromeWebSubDomain.Set(nil)
}
// UnsetChromeWebSubDomain ensures that no value is present for ChromeWebSubDomain, not even an explicit nil
func (o *App) UnsetChromeWebSubDomain() {
o.ChromeWebSubDomain.Unset()
}
// GetApnsEnv returns the ApnsEnv field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetApnsEnv() string {
if o == nil || o.ApnsEnv.Get() == nil {
var ret string
return ret
}
return *o.ApnsEnv.Get()
}
// GetApnsEnvOk returns a tuple with the ApnsEnv 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 *App) GetApnsEnvOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ApnsEnv.Get(), o.ApnsEnv.IsSet()
}
// HasApnsEnv returns a boolean if a field has been set.
func (o *App) HasApnsEnv() bool {
if o != nil && o.ApnsEnv.IsSet() {
return true
}
return false
}
// SetApnsEnv gets a reference to the given NullableString and assigns it to the ApnsEnv field.
func (o *App) SetApnsEnv(v string) {
o.ApnsEnv.Set(&v)
}
// SetApnsEnvNil sets the value for ApnsEnv to be an explicit nil
func (o *App) SetApnsEnvNil() {
o.ApnsEnv.Set(nil)
}
// UnsetApnsEnv ensures that no value is present for ApnsEnv, not even an explicit nil
func (o *App) UnsetApnsEnv() {
o.ApnsEnv.Unset()
}
// GetApnsP12 returns the ApnsP12 field value if set, zero value otherwise.
func (o *App) GetApnsP12() string {
if o == nil || o.ApnsP12 == nil {
var ret string
return ret
}
return *o.ApnsP12
}
// GetApnsP12Ok returns a tuple with the ApnsP12 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetApnsP12Ok() (*string, bool) {
if o == nil || o.ApnsP12 == nil {
return nil, false
}
return o.ApnsP12, true
}
// HasApnsP12 returns a boolean if a field has been set.
func (o *App) HasApnsP12() bool {
if o != nil && o.ApnsP12 != nil {
return true
}
return false
}
// SetApnsP12 gets a reference to the given string and assigns it to the ApnsP12 field.
func (o *App) SetApnsP12(v string) {
o.ApnsP12 = &v
}
// GetApnsP12Password returns the ApnsP12Password field value if set, zero value otherwise.
func (o *App) GetApnsP12Password() string {
if o == nil || o.ApnsP12Password == nil {
var ret string
return ret
}
return *o.ApnsP12Password
}
// GetApnsP12PasswordOk returns a tuple with the ApnsP12Password field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetApnsP12PasswordOk() (*string, bool) {
if o == nil || o.ApnsP12Password == nil {
return nil, false
}
return o.ApnsP12Password, true
}
// HasApnsP12Password returns a boolean if a field has been set.
func (o *App) HasApnsP12Password() bool {
if o != nil && o.ApnsP12Password != nil {
return true
}
return false
}
// SetApnsP12Password gets a reference to the given string and assigns it to the ApnsP12Password field.
func (o *App) SetApnsP12Password(v string) {
o.ApnsP12Password = &v
}
// GetApnsCertificates returns the ApnsCertificates field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetApnsCertificates() string {
if o == nil || o.ApnsCertificates.Get() == nil {
var ret string
return ret
}
return *o.ApnsCertificates.Get()
}
// GetApnsCertificatesOk returns a tuple with the ApnsCertificates 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 *App) GetApnsCertificatesOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ApnsCertificates.Get(), o.ApnsCertificates.IsSet()
}
// HasApnsCertificates returns a boolean if a field has been set.
func (o *App) HasApnsCertificates() bool {
if o != nil && o.ApnsCertificates.IsSet() {
return true
}
return false
}
// SetApnsCertificates gets a reference to the given NullableString and assigns it to the ApnsCertificates field.
func (o *App) SetApnsCertificates(v string) {
o.ApnsCertificates.Set(&v)
}
// SetApnsCertificatesNil sets the value for ApnsCertificates to be an explicit nil
func (o *App) SetApnsCertificatesNil() {
o.ApnsCertificates.Set(nil)
}
// UnsetApnsCertificates ensures that no value is present for ApnsCertificates, not even an explicit nil
func (o *App) UnsetApnsCertificates() {
o.ApnsCertificates.Unset()
}
// GetSafariApnsCertificates returns the SafariApnsCertificates field value if set, zero value otherwise.
func (o *App) GetSafariApnsCertificates() string {
if o == nil || o.SafariApnsCertificates == nil {
var ret string
return ret
}
return *o.SafariApnsCertificates
}
// GetSafariApnsCertificatesOk returns a tuple with the SafariApnsCertificates field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetSafariApnsCertificatesOk() (*string, bool) {
if o == nil || o.SafariApnsCertificates == nil {
return nil, false
}
return o.SafariApnsCertificates, true
}
// HasSafariApnsCertificates returns a boolean if a field has been set.
func (o *App) HasSafariApnsCertificates() bool {
if o != nil && o.SafariApnsCertificates != nil {
return true
}
return false
}
// SetSafariApnsCertificates gets a reference to the given string and assigns it to the SafariApnsCertificates field.
func (o *App) SetSafariApnsCertificates(v string) {
o.SafariApnsCertificates = &v
}
// GetSafariApnsP12 returns the SafariApnsP12 field value if set, zero value otherwise.
func (o *App) GetSafariApnsP12() string {
if o == nil || o.SafariApnsP12 == nil {
var ret string
return ret
}
return *o.SafariApnsP12
}
// GetSafariApnsP12Ok returns a tuple with the SafariApnsP12 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetSafariApnsP12Ok() (*string, bool) {
if o == nil || o.SafariApnsP12 == nil {
return nil, false
}
return o.SafariApnsP12, true
}
// HasSafariApnsP12 returns a boolean if a field has been set.
func (o *App) HasSafariApnsP12() bool {
if o != nil && o.SafariApnsP12 != nil {
return true
}
return false
}
// SetSafariApnsP12 gets a reference to the given string and assigns it to the SafariApnsP12 field.
func (o *App) SetSafariApnsP12(v string) {
o.SafariApnsP12 = &v
}
// GetSafariApnsP12Password returns the SafariApnsP12Password field value if set, zero value otherwise.
func (o *App) GetSafariApnsP12Password() string {
if o == nil || o.SafariApnsP12Password == nil {
var ret string
return ret
}
return *o.SafariApnsP12Password
}
// GetSafariApnsP12PasswordOk returns a tuple with the SafariApnsP12Password field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *App) GetSafariApnsP12PasswordOk() (*string, bool) {
if o == nil || o.SafariApnsP12Password == nil {
return nil, false
}
return o.SafariApnsP12Password, true
}
// HasSafariApnsP12Password returns a boolean if a field has been set.
func (o *App) HasSafariApnsP12Password() bool {
if o != nil && o.SafariApnsP12Password != nil {
return true
}
return false
}
// SetSafariApnsP12Password gets a reference to the given string and assigns it to the SafariApnsP12Password field.
func (o *App) SetSafariApnsP12Password(v string) {
o.SafariApnsP12Password = &v
}
// GetApnsKeyId returns the ApnsKeyId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetApnsKeyId() string {
if o == nil || o.ApnsKeyId.Get() == nil {
var ret string
return ret
}
return *o.ApnsKeyId.Get()
}
// GetApnsKeyIdOk returns a tuple with the ApnsKeyId 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 *App) GetApnsKeyIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ApnsKeyId.Get(), o.ApnsKeyId.IsSet()
}
// HasApnsKeyId returns a boolean if a field has been set.
func (o *App) HasApnsKeyId() bool {
if o != nil && o.ApnsKeyId.IsSet() {
return true
}
return false
}
// SetApnsKeyId gets a reference to the given NullableString and assigns it to the ApnsKeyId field.
func (o *App) SetApnsKeyId(v string) {
o.ApnsKeyId.Set(&v)
}
// SetApnsKeyIdNil sets the value for ApnsKeyId to be an explicit nil
func (o *App) SetApnsKeyIdNil() {
o.ApnsKeyId.Set(nil)
}
// UnsetApnsKeyId ensures that no value is present for ApnsKeyId, not even an explicit nil
func (o *App) UnsetApnsKeyId() {
o.ApnsKeyId.Unset()
}
// GetApnsTeamId returns the ApnsTeamId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetApnsTeamId() string {
if o == nil || o.ApnsTeamId.Get() == nil {
var ret string
return ret
}
return *o.ApnsTeamId.Get()
}
// GetApnsTeamIdOk returns a tuple with the ApnsTeamId 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 *App) GetApnsTeamIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ApnsTeamId.Get(), o.ApnsTeamId.IsSet()
}
// HasApnsTeamId returns a boolean if a field has been set.
func (o *App) HasApnsTeamId() bool {
if o != nil && o.ApnsTeamId.IsSet() {
return true
}
return false
}
// SetApnsTeamId gets a reference to the given NullableString and assigns it to the ApnsTeamId field.
func (o *App) SetApnsTeamId(v string) {
o.ApnsTeamId.Set(&v)
}
// SetApnsTeamIdNil sets the value for ApnsTeamId to be an explicit nil
func (o *App) SetApnsTeamIdNil() {
o.ApnsTeamId.Set(nil)
}
// UnsetApnsTeamId ensures that no value is present for ApnsTeamId, not even an explicit nil
func (o *App) UnsetApnsTeamId() {
o.ApnsTeamId.Unset()
}
// GetApnsBundleId returns the ApnsBundleId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetApnsBundleId() string {
if o == nil || o.ApnsBundleId.Get() == nil {
var ret string
return ret
}
return *o.ApnsBundleId.Get()
}
// GetApnsBundleIdOk returns a tuple with the ApnsBundleId 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 *App) GetApnsBundleIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ApnsBundleId.Get(), o.ApnsBundleId.IsSet()
}
// HasApnsBundleId returns a boolean if a field has been set.
func (o *App) HasApnsBundleId() bool {
if o != nil && o.ApnsBundleId.IsSet() {
return true
}
return false
}
// SetApnsBundleId gets a reference to the given NullableString and assigns it to the ApnsBundleId field.
func (o *App) SetApnsBundleId(v string) {
o.ApnsBundleId.Set(&v)
}
// SetApnsBundleIdNil sets the value for ApnsBundleId to be an explicit nil
func (o *App) SetApnsBundleIdNil() {
o.ApnsBundleId.Set(nil)
}
// UnsetApnsBundleId ensures that no value is present for ApnsBundleId, not even an explicit nil
func (o *App) UnsetApnsBundleId() {
o.ApnsBundleId.Unset()
}
// GetApnsP8 returns the ApnsP8 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetApnsP8() string {
if o == nil || o.ApnsP8.Get() == nil {
var ret string
return ret
}
return *o.ApnsP8.Get()
}
// GetApnsP8Ok returns a tuple with the ApnsP8 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 *App) GetApnsP8Ok() (*string, bool) {
if o == nil {
return nil, false
}
return o.ApnsP8.Get(), o.ApnsP8.IsSet()
}
// HasApnsP8 returns a boolean if a field has been set.
func (o *App) HasApnsP8() bool {
if o != nil && o.ApnsP8.IsSet() {
return true
}
return false
}
// SetApnsP8 gets a reference to the given NullableString and assigns it to the ApnsP8 field.
func (o *App) SetApnsP8(v string) {
o.ApnsP8.Set(&v)
}
// SetApnsP8Nil sets the value for ApnsP8 to be an explicit nil
func (o *App) SetApnsP8Nil() {
o.ApnsP8.Set(nil)
}
// UnsetApnsP8 ensures that no value is present for ApnsP8, not even an explicit nil
func (o *App) UnsetApnsP8() {
o.ApnsP8.Unset()
}
// GetSafariSiteOrigin returns the SafariSiteOrigin field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetSafariSiteOrigin() string {
if o == nil || o.SafariSiteOrigin.Get() == nil {
var ret string
return ret
}
return *o.SafariSiteOrigin.Get()
}
// GetSafariSiteOriginOk returns a tuple with the SafariSiteOrigin 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 *App) GetSafariSiteOriginOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SafariSiteOrigin.Get(), o.SafariSiteOrigin.IsSet()
}
// HasSafariSiteOrigin returns a boolean if a field has been set.
func (o *App) HasSafariSiteOrigin() bool {
if o != nil && o.SafariSiteOrigin.IsSet() {
return true
}
return false
}
// SetSafariSiteOrigin gets a reference to the given NullableString and assigns it to the SafariSiteOrigin field.
func (o *App) SetSafariSiteOrigin(v string) {
o.SafariSiteOrigin.Set(&v)
}
// SetSafariSiteOriginNil sets the value for SafariSiteOrigin to be an explicit nil
func (o *App) SetSafariSiteOriginNil() {
o.SafariSiteOrigin.Set(nil)
}
// UnsetSafariSiteOrigin ensures that no value is present for SafariSiteOrigin, not even an explicit nil
func (o *App) UnsetSafariSiteOrigin() {
o.SafariSiteOrigin.Unset()
}
// GetSafariPushId returns the SafariPushId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *App) GetSafariPushId() string {
if o == nil || o.SafariPushId.Get() == nil {
var ret string
return ret
}
return *o.SafariPushId.Get()
}
// GetSafariPushIdOk returns a tuple with the SafariPushId 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 *App) GetSafariPushIdOk() (*string, bool) {
if o == nil {
return nil, false