-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_automatic_secret_management.go
301 lines (252 loc) · 9.54 KB
/
model_automatic_secret_management.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
/*
Privileged Access Security REST API
Display the PVWA REST APIs below for a description of how to use them and try them out. Access information about additional REST APIs through the online documentation.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// AutomaticSecretManagement struct for AutomaticSecretManagement
type AutomaticSecretManagement struct {
// Whether the account secret is automatically managed by the CPM. Default: true.
AutomaticManagementEnabled *bool `json:"automaticManagementEnabled,omitempty"`
// Reason for disabling automatic secret management
ManualManagementReason *string `json:"manualManagementReason,omitempty"`
// Account management status.
Status *string `json:"status,omitempty"`
// Last modified date of the account.
LastModifiedTime *int64 `json:"lastModifiedTime,omitempty"`
// Last reconciled date of the account.
LastReconciledTime *int64 `json:"lastReconciledTime,omitempty"`
// Last verified date of the account.
LastVerifiedTime *int64 `json:"lastVerifiedTime,omitempty"`
}
// NewAutomaticSecretManagement instantiates a new AutomaticSecretManagement 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 NewAutomaticSecretManagement() *AutomaticSecretManagement {
this := AutomaticSecretManagement{}
return &this
}
// NewAutomaticSecretManagementWithDefaults instantiates a new AutomaticSecretManagement 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 NewAutomaticSecretManagementWithDefaults() *AutomaticSecretManagement {
this := AutomaticSecretManagement{}
return &this
}
// GetAutomaticManagementEnabled returns the AutomaticManagementEnabled field value if set, zero value otherwise.
func (o *AutomaticSecretManagement) GetAutomaticManagementEnabled() bool {
if o == nil || o.AutomaticManagementEnabled == nil {
var ret bool
return ret
}
return *o.AutomaticManagementEnabled
}
// GetAutomaticManagementEnabledOk returns a tuple with the AutomaticManagementEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AutomaticSecretManagement) GetAutomaticManagementEnabledOk() (*bool, bool) {
if o == nil || o.AutomaticManagementEnabled == nil {
return nil, false
}
return o.AutomaticManagementEnabled, true
}
// HasAutomaticManagementEnabled returns a boolean if a field has been set.
func (o *AutomaticSecretManagement) HasAutomaticManagementEnabled() bool {
if o != nil && o.AutomaticManagementEnabled != nil {
return true
}
return false
}
// SetAutomaticManagementEnabled gets a reference to the given bool and assigns it to the AutomaticManagementEnabled field.
func (o *AutomaticSecretManagement) SetAutomaticManagementEnabled(v bool) {
o.AutomaticManagementEnabled = &v
}
// GetManualManagementReason returns the ManualManagementReason field value if set, zero value otherwise.
func (o *AutomaticSecretManagement) GetManualManagementReason() string {
if o == nil || o.ManualManagementReason == nil {
var ret string
return ret
}
return *o.ManualManagementReason
}
// GetManualManagementReasonOk returns a tuple with the ManualManagementReason field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AutomaticSecretManagement) GetManualManagementReasonOk() (*string, bool) {
if o == nil || o.ManualManagementReason == nil {
return nil, false
}
return o.ManualManagementReason, true
}
// HasManualManagementReason returns a boolean if a field has been set.
func (o *AutomaticSecretManagement) HasManualManagementReason() bool {
if o != nil && o.ManualManagementReason != nil {
return true
}
return false
}
// SetManualManagementReason gets a reference to the given string and assigns it to the ManualManagementReason field.
func (o *AutomaticSecretManagement) SetManualManagementReason(v string) {
o.ManualManagementReason = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *AutomaticSecretManagement) GetStatus() string {
if o == nil || o.Status == nil {
var ret string
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AutomaticSecretManagement) GetStatusOk() (*string, bool) {
if o == nil || o.Status == nil {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *AutomaticSecretManagement) HasStatus() bool {
if o != nil && o.Status != nil {
return true
}
return false
}
// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *AutomaticSecretManagement) SetStatus(v string) {
o.Status = &v
}
// GetLastModifiedTime returns the LastModifiedTime field value if set, zero value otherwise.
func (o *AutomaticSecretManagement) GetLastModifiedTime() int64 {
if o == nil || o.LastModifiedTime == nil {
var ret int64
return ret
}
return *o.LastModifiedTime
}
// GetLastModifiedTimeOk returns a tuple with the LastModifiedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AutomaticSecretManagement) GetLastModifiedTimeOk() (*int64, bool) {
if o == nil || o.LastModifiedTime == nil {
return nil, false
}
return o.LastModifiedTime, true
}
// HasLastModifiedTime returns a boolean if a field has been set.
func (o *AutomaticSecretManagement) HasLastModifiedTime() bool {
if o != nil && o.LastModifiedTime != nil {
return true
}
return false
}
// SetLastModifiedTime gets a reference to the given int64 and assigns it to the LastModifiedTime field.
func (o *AutomaticSecretManagement) SetLastModifiedTime(v int64) {
o.LastModifiedTime = &v
}
// GetLastReconciledTime returns the LastReconciledTime field value if set, zero value otherwise.
func (o *AutomaticSecretManagement) GetLastReconciledTime() int64 {
if o == nil || o.LastReconciledTime == nil {
var ret int64
return ret
}
return *o.LastReconciledTime
}
// GetLastReconciledTimeOk returns a tuple with the LastReconciledTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AutomaticSecretManagement) GetLastReconciledTimeOk() (*int64, bool) {
if o == nil || o.LastReconciledTime == nil {
return nil, false
}
return o.LastReconciledTime, true
}
// HasLastReconciledTime returns a boolean if a field has been set.
func (o *AutomaticSecretManagement) HasLastReconciledTime() bool {
if o != nil && o.LastReconciledTime != nil {
return true
}
return false
}
// SetLastReconciledTime gets a reference to the given int64 and assigns it to the LastReconciledTime field.
func (o *AutomaticSecretManagement) SetLastReconciledTime(v int64) {
o.LastReconciledTime = &v
}
// GetLastVerifiedTime returns the LastVerifiedTime field value if set, zero value otherwise.
func (o *AutomaticSecretManagement) GetLastVerifiedTime() int64 {
if o == nil || o.LastVerifiedTime == nil {
var ret int64
return ret
}
return *o.LastVerifiedTime
}
// GetLastVerifiedTimeOk returns a tuple with the LastVerifiedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AutomaticSecretManagement) GetLastVerifiedTimeOk() (*int64, bool) {
if o == nil || o.LastVerifiedTime == nil {
return nil, false
}
return o.LastVerifiedTime, true
}
// HasLastVerifiedTime returns a boolean if a field has been set.
func (o *AutomaticSecretManagement) HasLastVerifiedTime() bool {
if o != nil && o.LastVerifiedTime != nil {
return true
}
return false
}
// SetLastVerifiedTime gets a reference to the given int64 and assigns it to the LastVerifiedTime field.
func (o *AutomaticSecretManagement) SetLastVerifiedTime(v int64) {
o.LastVerifiedTime = &v
}
func (o AutomaticSecretManagement) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AutomaticManagementEnabled != nil {
toSerialize["automaticManagementEnabled"] = o.AutomaticManagementEnabled
}
if o.ManualManagementReason != nil {
toSerialize["manualManagementReason"] = o.ManualManagementReason
}
if o.Status != nil {
toSerialize["status"] = o.Status
}
if o.LastModifiedTime != nil {
toSerialize["lastModifiedTime"] = o.LastModifiedTime
}
if o.LastReconciledTime != nil {
toSerialize["lastReconciledTime"] = o.LastReconciledTime
}
if o.LastVerifiedTime != nil {
toSerialize["lastVerifiedTime"] = o.LastVerifiedTime
}
return json.Marshal(toSerialize)
}
type NullableAutomaticSecretManagement struct {
value *AutomaticSecretManagement
isSet bool
}
func (v NullableAutomaticSecretManagement) Get() *AutomaticSecretManagement {
return v.value
}
func (v *NullableAutomaticSecretManagement) Set(val *AutomaticSecretManagement) {
v.value = val
v.isSet = true
}
func (v NullableAutomaticSecretManagement) IsSet() bool {
return v.isSet
}
func (v *NullableAutomaticSecretManagement) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAutomaticSecretManagement(val *AutomaticSecretManagement) *NullableAutomaticSecretManagement {
return &NullableAutomaticSecretManagement{value: val, isSet: true}
}
func (v NullableAutomaticSecretManagement) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAutomaticSecretManagement) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}