/
model_top_level_actions.go
178 lines (147 loc) · 4.96 KB
/
model_top_level_actions.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
/*
CRM cards
Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
API version: v3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package crm_extensions
import (
"encoding/json"
)
// TopLevelActions struct for TopLevelActions
type TopLevelActions struct {
Settings *IFrameActionBody `json:"settings,omitempty"`
Primary *IntegratorObjectResultActionsInner `json:"primary,omitempty"`
Secondary []IntegratorObjectResultActionsInner `json:"secondary"`
}
// NewTopLevelActions instantiates a new TopLevelActions 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 NewTopLevelActions(secondary []IntegratorObjectResultActionsInner) *TopLevelActions {
this := TopLevelActions{}
this.Secondary = secondary
return &this
}
// NewTopLevelActionsWithDefaults instantiates a new TopLevelActions 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 NewTopLevelActionsWithDefaults() *TopLevelActions {
this := TopLevelActions{}
return &this
}
// GetSettings returns the Settings field value if set, zero value otherwise.
func (o *TopLevelActions) GetSettings() IFrameActionBody {
if o == nil || o.Settings == nil {
var ret IFrameActionBody
return ret
}
return *o.Settings
}
// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TopLevelActions) GetSettingsOk() (*IFrameActionBody, bool) {
if o == nil || o.Settings == nil {
return nil, false
}
return o.Settings, true
}
// HasSettings returns a boolean if a field has been set.
func (o *TopLevelActions) HasSettings() bool {
if o != nil && o.Settings != nil {
return true
}
return false
}
// SetSettings gets a reference to the given IFrameActionBody and assigns it to the Settings field.
func (o *TopLevelActions) SetSettings(v IFrameActionBody) {
o.Settings = &v
}
// GetPrimary returns the Primary field value if set, zero value otherwise.
func (o *TopLevelActions) GetPrimary() IntegratorObjectResultActionsInner {
if o == nil || o.Primary == nil {
var ret IntegratorObjectResultActionsInner
return ret
}
return *o.Primary
}
// GetPrimaryOk returns a tuple with the Primary field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TopLevelActions) GetPrimaryOk() (*IntegratorObjectResultActionsInner, bool) {
if o == nil || o.Primary == nil {
return nil, false
}
return o.Primary, true
}
// HasPrimary returns a boolean if a field has been set.
func (o *TopLevelActions) HasPrimary() bool {
if o != nil && o.Primary != nil {
return true
}
return false
}
// SetPrimary gets a reference to the given IntegratorObjectResultActionsInner and assigns it to the Primary field.
func (o *TopLevelActions) SetPrimary(v IntegratorObjectResultActionsInner) {
o.Primary = &v
}
// GetSecondary returns the Secondary field value
func (o *TopLevelActions) GetSecondary() []IntegratorObjectResultActionsInner {
if o == nil {
var ret []IntegratorObjectResultActionsInner
return ret
}
return o.Secondary
}
// GetSecondaryOk returns a tuple with the Secondary field value
// and a boolean to check if the value has been set.
func (o *TopLevelActions) GetSecondaryOk() ([]IntegratorObjectResultActionsInner, bool) {
if o == nil {
return nil, false
}
return o.Secondary, true
}
// SetSecondary sets field value
func (o *TopLevelActions) SetSecondary(v []IntegratorObjectResultActionsInner) {
o.Secondary = v
}
func (o TopLevelActions) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Settings != nil {
toSerialize["settings"] = o.Settings
}
if o.Primary != nil {
toSerialize["primary"] = o.Primary
}
if true {
toSerialize["secondary"] = o.Secondary
}
return json.Marshal(toSerialize)
}
type NullableTopLevelActions struct {
value *TopLevelActions
isSet bool
}
func (v NullableTopLevelActions) Get() *TopLevelActions {
return v.value
}
func (v *NullableTopLevelActions) Set(val *TopLevelActions) {
v.value = val
v.isSet = true
}
func (v NullableTopLevelActions) IsSet() bool {
return v.isSet
}
func (v *NullableTopLevelActions) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTopLevelActions(val *TopLevelActions) *NullableTopLevelActions {
return &NullableTopLevelActions{value: val, isSet: true}
}
func (v NullableTopLevelActions) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTopLevelActions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}