-
Notifications
You must be signed in to change notification settings - Fork 3
/
model_recommendation_config_dto.go
217 lines (175 loc) · 7.14 KB
/
model_recommendation_config_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
/*
IdentityNow Beta API
Use these APIs to interact with the IdentityNow platform to achieve repeatable, automated processes with greater scalability. These APIs are in beta and are subject to change. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
API version: 3.1.0-beta
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
import (
"encoding/json"
)
// RecommendationConfigDto struct for RecommendationConfigDto
type RecommendationConfigDto struct {
// List of identity attributes to use for calculating certification recommendations
RecommenderFeatures []string `json:"recommenderFeatures,omitempty"`
// The percent value that the recommendation calculation must surpass to produce a YES recommendation
PeerGroupPercentageThreshold *float32 `json:"peerGroupPercentageThreshold,omitempty"`
// If true, rulesRecommenderConfig will be refreshed with new programatically selected attribute and threshold values on the next pipeline run
ForceRefresh *bool `json:"forceRefresh,omitempty"`
AdditionalProperties map[string]interface{}
}
type _RecommendationConfigDto RecommendationConfigDto
// NewRecommendationConfigDto instantiates a new RecommendationConfigDto 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 NewRecommendationConfigDto() *RecommendationConfigDto {
this := RecommendationConfigDto{}
return &this
}
// NewRecommendationConfigDtoWithDefaults instantiates a new RecommendationConfigDto 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 NewRecommendationConfigDtoWithDefaults() *RecommendationConfigDto {
this := RecommendationConfigDto{}
return &this
}
// GetRecommenderFeatures returns the RecommenderFeatures field value if set, zero value otherwise.
func (o *RecommendationConfigDto) GetRecommenderFeatures() []string {
if o == nil || isNil(o.RecommenderFeatures) {
var ret []string
return ret
}
return o.RecommenderFeatures
}
// GetRecommenderFeaturesOk returns a tuple with the RecommenderFeatures field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RecommendationConfigDto) GetRecommenderFeaturesOk() ([]string, bool) {
if o == nil || isNil(o.RecommenderFeatures) {
return nil, false
}
return o.RecommenderFeatures, true
}
// HasRecommenderFeatures returns a boolean if a field has been set.
func (o *RecommendationConfigDto) HasRecommenderFeatures() bool {
if o != nil && !isNil(o.RecommenderFeatures) {
return true
}
return false
}
// SetRecommenderFeatures gets a reference to the given []string and assigns it to the RecommenderFeatures field.
func (o *RecommendationConfigDto) SetRecommenderFeatures(v []string) {
o.RecommenderFeatures = v
}
// GetPeerGroupPercentageThreshold returns the PeerGroupPercentageThreshold field value if set, zero value otherwise.
func (o *RecommendationConfigDto) GetPeerGroupPercentageThreshold() float32 {
if o == nil || isNil(o.PeerGroupPercentageThreshold) {
var ret float32
return ret
}
return *o.PeerGroupPercentageThreshold
}
// GetPeerGroupPercentageThresholdOk returns a tuple with the PeerGroupPercentageThreshold field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RecommendationConfigDto) GetPeerGroupPercentageThresholdOk() (*float32, bool) {
if o == nil || isNil(o.PeerGroupPercentageThreshold) {
return nil, false
}
return o.PeerGroupPercentageThreshold, true
}
// HasPeerGroupPercentageThreshold returns a boolean if a field has been set.
func (o *RecommendationConfigDto) HasPeerGroupPercentageThreshold() bool {
if o != nil && !isNil(o.PeerGroupPercentageThreshold) {
return true
}
return false
}
// SetPeerGroupPercentageThreshold gets a reference to the given float32 and assigns it to the PeerGroupPercentageThreshold field.
func (o *RecommendationConfigDto) SetPeerGroupPercentageThreshold(v float32) {
o.PeerGroupPercentageThreshold = &v
}
// GetForceRefresh returns the ForceRefresh field value if set, zero value otherwise.
func (o *RecommendationConfigDto) GetForceRefresh() bool {
if o == nil || isNil(o.ForceRefresh) {
var ret bool
return ret
}
return *o.ForceRefresh
}
// GetForceRefreshOk returns a tuple with the ForceRefresh field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RecommendationConfigDto) GetForceRefreshOk() (*bool, bool) {
if o == nil || isNil(o.ForceRefresh) {
return nil, false
}
return o.ForceRefresh, true
}
// HasForceRefresh returns a boolean if a field has been set.
func (o *RecommendationConfigDto) HasForceRefresh() bool {
if o != nil && !isNil(o.ForceRefresh) {
return true
}
return false
}
// SetForceRefresh gets a reference to the given bool and assigns it to the ForceRefresh field.
func (o *RecommendationConfigDto) SetForceRefresh(v bool) {
o.ForceRefresh = &v
}
func (o RecommendationConfigDto) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.RecommenderFeatures) {
toSerialize["recommenderFeatures"] = o.RecommenderFeatures
}
if !isNil(o.PeerGroupPercentageThreshold) {
toSerialize["peerGroupPercentageThreshold"] = o.PeerGroupPercentageThreshold
}
if !isNil(o.ForceRefresh) {
toSerialize["forceRefresh"] = o.ForceRefresh
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *RecommendationConfigDto) UnmarshalJSON(bytes []byte) (err error) {
varRecommendationConfigDto := _RecommendationConfigDto{}
if err = json.Unmarshal(bytes, &varRecommendationConfigDto); err == nil {
*o = RecommendationConfigDto(varRecommendationConfigDto)
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "recommenderFeatures")
delete(additionalProperties, "peerGroupPercentageThreshold")
delete(additionalProperties, "forceRefresh")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableRecommendationConfigDto struct {
value *RecommendationConfigDto
isSet bool
}
func (v NullableRecommendationConfigDto) Get() *RecommendationConfigDto {
return v.value
}
func (v *NullableRecommendationConfigDto) Set(val *RecommendationConfigDto) {
v.value = val
v.isSet = true
}
func (v NullableRecommendationConfigDto) IsSet() bool {
return v.isSet
}
func (v *NullableRecommendationConfigDto) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableRecommendationConfigDto(val *RecommendationConfigDto) *NullableRecommendationConfigDto {
return &NullableRecommendationConfigDto{value: val, isSet: true}
}
func (v NullableRecommendationConfigDto) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableRecommendationConfigDto) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}