-
Notifications
You must be signed in to change notification settings - Fork 2
/
model_managed_key_details_info.go
333 lines (281 loc) · 9.45 KB
/
model_managed_key_details_info.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
/*
* Akeyless API
*
* The purpose of this application is to provide access to Akeyless API.
*
* API version: 2.0
* Contact: support@akeyless.io
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package akeyless
import (
"encoding/json"
)
// ManagedKeyDetailsInfo struct for ManagedKeyDetailsInfo
type ManagedKeyDetailsInfo struct {
IsProvidedByUser *bool `json:"is_provided_by_user,omitempty"`
IsUnexportable *bool `json:"is_unexportable,omitempty"`
// ItemState defines the different states an Item can be in
KeyState *string `json:"key_state,omitempty"`
KeyType *string `json:"key_type,omitempty"`
ManagedKeyId *string `json:"managed_key_id,omitempty"`
TargetAliasHelper *string `json:"target_alias_helper,omitempty"`
Targets *[]ManagedKeyTargetInfo `json:"targets,omitempty"`
}
// NewManagedKeyDetailsInfo instantiates a new ManagedKeyDetailsInfo 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 NewManagedKeyDetailsInfo() *ManagedKeyDetailsInfo {
this := ManagedKeyDetailsInfo{}
return &this
}
// NewManagedKeyDetailsInfoWithDefaults instantiates a new ManagedKeyDetailsInfo 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 NewManagedKeyDetailsInfoWithDefaults() *ManagedKeyDetailsInfo {
this := ManagedKeyDetailsInfo{}
return &this
}
// GetIsProvidedByUser returns the IsProvidedByUser field value if set, zero value otherwise.
func (o *ManagedKeyDetailsInfo) GetIsProvidedByUser() bool {
if o == nil || o.IsProvidedByUser == nil {
var ret bool
return ret
}
return *o.IsProvidedByUser
}
// GetIsProvidedByUserOk returns a tuple with the IsProvidedByUser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedKeyDetailsInfo) GetIsProvidedByUserOk() (*bool, bool) {
if o == nil || o.IsProvidedByUser == nil {
return nil, false
}
return o.IsProvidedByUser, true
}
// HasIsProvidedByUser returns a boolean if a field has been set.
func (o *ManagedKeyDetailsInfo) HasIsProvidedByUser() bool {
if o != nil && o.IsProvidedByUser != nil {
return true
}
return false
}
// SetIsProvidedByUser gets a reference to the given bool and assigns it to the IsProvidedByUser field.
func (o *ManagedKeyDetailsInfo) SetIsProvidedByUser(v bool) {
o.IsProvidedByUser = &v
}
// GetIsUnexportable returns the IsUnexportable field value if set, zero value otherwise.
func (o *ManagedKeyDetailsInfo) GetIsUnexportable() bool {
if o == nil || o.IsUnexportable == nil {
var ret bool
return ret
}
return *o.IsUnexportable
}
// GetIsUnexportableOk returns a tuple with the IsUnexportable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedKeyDetailsInfo) GetIsUnexportableOk() (*bool, bool) {
if o == nil || o.IsUnexportable == nil {
return nil, false
}
return o.IsUnexportable, true
}
// HasIsUnexportable returns a boolean if a field has been set.
func (o *ManagedKeyDetailsInfo) HasIsUnexportable() bool {
if o != nil && o.IsUnexportable != nil {
return true
}
return false
}
// SetIsUnexportable gets a reference to the given bool and assigns it to the IsUnexportable field.
func (o *ManagedKeyDetailsInfo) SetIsUnexportable(v bool) {
o.IsUnexportable = &v
}
// GetKeyState returns the KeyState field value if set, zero value otherwise.
func (o *ManagedKeyDetailsInfo) GetKeyState() string {
if o == nil || o.KeyState == nil {
var ret string
return ret
}
return *o.KeyState
}
// GetKeyStateOk returns a tuple with the KeyState field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedKeyDetailsInfo) GetKeyStateOk() (*string, bool) {
if o == nil || o.KeyState == nil {
return nil, false
}
return o.KeyState, true
}
// HasKeyState returns a boolean if a field has been set.
func (o *ManagedKeyDetailsInfo) HasKeyState() bool {
if o != nil && o.KeyState != nil {
return true
}
return false
}
// SetKeyState gets a reference to the given string and assigns it to the KeyState field.
func (o *ManagedKeyDetailsInfo) SetKeyState(v string) {
o.KeyState = &v
}
// GetKeyType returns the KeyType field value if set, zero value otherwise.
func (o *ManagedKeyDetailsInfo) GetKeyType() string {
if o == nil || o.KeyType == nil {
var ret string
return ret
}
return *o.KeyType
}
// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedKeyDetailsInfo) GetKeyTypeOk() (*string, bool) {
if o == nil || o.KeyType == nil {
return nil, false
}
return o.KeyType, true
}
// HasKeyType returns a boolean if a field has been set.
func (o *ManagedKeyDetailsInfo) HasKeyType() bool {
if o != nil && o.KeyType != nil {
return true
}
return false
}
// SetKeyType gets a reference to the given string and assigns it to the KeyType field.
func (o *ManagedKeyDetailsInfo) SetKeyType(v string) {
o.KeyType = &v
}
// GetManagedKeyId returns the ManagedKeyId field value if set, zero value otherwise.
func (o *ManagedKeyDetailsInfo) GetManagedKeyId() string {
if o == nil || o.ManagedKeyId == nil {
var ret string
return ret
}
return *o.ManagedKeyId
}
// GetManagedKeyIdOk returns a tuple with the ManagedKeyId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedKeyDetailsInfo) GetManagedKeyIdOk() (*string, bool) {
if o == nil || o.ManagedKeyId == nil {
return nil, false
}
return o.ManagedKeyId, true
}
// HasManagedKeyId returns a boolean if a field has been set.
func (o *ManagedKeyDetailsInfo) HasManagedKeyId() bool {
if o != nil && o.ManagedKeyId != nil {
return true
}
return false
}
// SetManagedKeyId gets a reference to the given string and assigns it to the ManagedKeyId field.
func (o *ManagedKeyDetailsInfo) SetManagedKeyId(v string) {
o.ManagedKeyId = &v
}
// GetTargetAliasHelper returns the TargetAliasHelper field value if set, zero value otherwise.
func (o *ManagedKeyDetailsInfo) GetTargetAliasHelper() string {
if o == nil || o.TargetAliasHelper == nil {
var ret string
return ret
}
return *o.TargetAliasHelper
}
// GetTargetAliasHelperOk returns a tuple with the TargetAliasHelper field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedKeyDetailsInfo) GetTargetAliasHelperOk() (*string, bool) {
if o == nil || o.TargetAliasHelper == nil {
return nil, false
}
return o.TargetAliasHelper, true
}
// HasTargetAliasHelper returns a boolean if a field has been set.
func (o *ManagedKeyDetailsInfo) HasTargetAliasHelper() bool {
if o != nil && o.TargetAliasHelper != nil {
return true
}
return false
}
// SetTargetAliasHelper gets a reference to the given string and assigns it to the TargetAliasHelper field.
func (o *ManagedKeyDetailsInfo) SetTargetAliasHelper(v string) {
o.TargetAliasHelper = &v
}
// GetTargets returns the Targets field value if set, zero value otherwise.
func (o *ManagedKeyDetailsInfo) GetTargets() []ManagedKeyTargetInfo {
if o == nil || o.Targets == nil {
var ret []ManagedKeyTargetInfo
return ret
}
return *o.Targets
}
// GetTargetsOk returns a tuple with the Targets field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedKeyDetailsInfo) GetTargetsOk() (*[]ManagedKeyTargetInfo, bool) {
if o == nil || o.Targets == nil {
return nil, false
}
return o.Targets, true
}
// HasTargets returns a boolean if a field has been set.
func (o *ManagedKeyDetailsInfo) HasTargets() bool {
if o != nil && o.Targets != nil {
return true
}
return false
}
// SetTargets gets a reference to the given []ManagedKeyTargetInfo and assigns it to the Targets field.
func (o *ManagedKeyDetailsInfo) SetTargets(v []ManagedKeyTargetInfo) {
o.Targets = &v
}
func (o ManagedKeyDetailsInfo) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.IsProvidedByUser != nil {
toSerialize["is_provided_by_user"] = o.IsProvidedByUser
}
if o.IsUnexportable != nil {
toSerialize["is_unexportable"] = o.IsUnexportable
}
if o.KeyState != nil {
toSerialize["key_state"] = o.KeyState
}
if o.KeyType != nil {
toSerialize["key_type"] = o.KeyType
}
if o.ManagedKeyId != nil {
toSerialize["managed_key_id"] = o.ManagedKeyId
}
if o.TargetAliasHelper != nil {
toSerialize["target_alias_helper"] = o.TargetAliasHelper
}
if o.Targets != nil {
toSerialize["targets"] = o.Targets
}
return json.Marshal(toSerialize)
}
type NullableManagedKeyDetailsInfo struct {
value *ManagedKeyDetailsInfo
isSet bool
}
func (v NullableManagedKeyDetailsInfo) Get() *ManagedKeyDetailsInfo {
return v.value
}
func (v *NullableManagedKeyDetailsInfo) Set(val *ManagedKeyDetailsInfo) {
v.value = val
v.isSet = true
}
func (v NullableManagedKeyDetailsInfo) IsSet() bool {
return v.isSet
}
func (v *NullableManagedKeyDetailsInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableManagedKeyDetailsInfo(val *ManagedKeyDetailsInfo) *NullableManagedKeyDetailsInfo {
return &NullableManagedKeyDetailsInfo{value: val, isSet: true}
}
func (v NullableManagedKeyDetailsInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableManagedKeyDetailsInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}