-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_account_content_prerequsites.go
338 lines (284 loc) · 9.71 KB
/
model_account_content_prerequsites.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
/*
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"
)
// AccountContentPrerequsites struct for AccountContentPrerequsites
type AccountContentPrerequsites struct {
// The reason that is required to retrieve the password/SSH key
Reason *string `json:"Reason,omitempty"`
// The ticket ID of the ticketing system
TicketId *string `json:"TicketId,omitempty"`
// The name of the ticketing system
TicketingSystem *string `json:"TicketingSystem,omitempty"`
// Internal parameter (for PSMP only)
IsUse *bool `json:"isUse,omitempty"`
// The action this password/SSH key will be used for. (Show/Copy/Connect for password; Retrieve for SSH key)
ActionType *string `json:"ActionType,omitempty"`
// The address of the remote machine the user wants to connect to using the password/SSH key
Machine *string `json:"Machine,omitempty"`
// The version number of the required password/SSH key. Must be a positive number. If the value is left empty or the value passed does not exist, then the current password/SSH key version is returned
Version *int64 `json:"Version,omitempty"`
}
// NewAccountContentPrerequsites instantiates a new AccountContentPrerequsites 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 NewAccountContentPrerequsites() *AccountContentPrerequsites {
this := AccountContentPrerequsites{}
return &this
}
// NewAccountContentPrerequsitesWithDefaults instantiates a new AccountContentPrerequsites 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 NewAccountContentPrerequsitesWithDefaults() *AccountContentPrerequsites {
this := AccountContentPrerequsites{}
return &this
}
// GetReason returns the Reason field value if set, zero value otherwise.
func (o *AccountContentPrerequsites) GetReason() string {
if o == nil || o.Reason == nil {
var ret string
return ret
}
return *o.Reason
}
// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountContentPrerequsites) GetReasonOk() (*string, bool) {
if o == nil || o.Reason == nil {
return nil, false
}
return o.Reason, true
}
// HasReason returns a boolean if a field has been set.
func (o *AccountContentPrerequsites) HasReason() bool {
if o != nil && o.Reason != nil {
return true
}
return false
}
// SetReason gets a reference to the given string and assigns it to the Reason field.
func (o *AccountContentPrerequsites) SetReason(v string) {
o.Reason = &v
}
// GetTicketId returns the TicketId field value if set, zero value otherwise.
func (o *AccountContentPrerequsites) GetTicketId() string {
if o == nil || o.TicketId == nil {
var ret string
return ret
}
return *o.TicketId
}
// GetTicketIdOk returns a tuple with the TicketId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountContentPrerequsites) GetTicketIdOk() (*string, bool) {
if o == nil || o.TicketId == nil {
return nil, false
}
return o.TicketId, true
}
// HasTicketId returns a boolean if a field has been set.
func (o *AccountContentPrerequsites) HasTicketId() bool {
if o != nil && o.TicketId != nil {
return true
}
return false
}
// SetTicketId gets a reference to the given string and assigns it to the TicketId field.
func (o *AccountContentPrerequsites) SetTicketId(v string) {
o.TicketId = &v
}
// GetTicketingSystem returns the TicketingSystem field value if set, zero value otherwise.
func (o *AccountContentPrerequsites) GetTicketingSystem() string {
if o == nil || o.TicketingSystem == nil {
var ret string
return ret
}
return *o.TicketingSystem
}
// GetTicketingSystemOk returns a tuple with the TicketingSystem field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountContentPrerequsites) GetTicketingSystemOk() (*string, bool) {
if o == nil || o.TicketingSystem == nil {
return nil, false
}
return o.TicketingSystem, true
}
// HasTicketingSystem returns a boolean if a field has been set.
func (o *AccountContentPrerequsites) HasTicketingSystem() bool {
if o != nil && o.TicketingSystem != nil {
return true
}
return false
}
// SetTicketingSystem gets a reference to the given string and assigns it to the TicketingSystem field.
func (o *AccountContentPrerequsites) SetTicketingSystem(v string) {
o.TicketingSystem = &v
}
// GetIsUse returns the IsUse field value if set, zero value otherwise.
func (o *AccountContentPrerequsites) GetIsUse() bool {
if o == nil || o.IsUse == nil {
var ret bool
return ret
}
return *o.IsUse
}
// GetIsUseOk returns a tuple with the IsUse field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountContentPrerequsites) GetIsUseOk() (*bool, bool) {
if o == nil || o.IsUse == nil {
return nil, false
}
return o.IsUse, true
}
// HasIsUse returns a boolean if a field has been set.
func (o *AccountContentPrerequsites) HasIsUse() bool {
if o != nil && o.IsUse != nil {
return true
}
return false
}
// SetIsUse gets a reference to the given bool and assigns it to the IsUse field.
func (o *AccountContentPrerequsites) SetIsUse(v bool) {
o.IsUse = &v
}
// GetActionType returns the ActionType field value if set, zero value otherwise.
func (o *AccountContentPrerequsites) GetActionType() string {
if o == nil || o.ActionType == nil {
var ret string
return ret
}
return *o.ActionType
}
// GetActionTypeOk returns a tuple with the ActionType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountContentPrerequsites) GetActionTypeOk() (*string, bool) {
if o == nil || o.ActionType == nil {
return nil, false
}
return o.ActionType, true
}
// HasActionType returns a boolean if a field has been set.
func (o *AccountContentPrerequsites) HasActionType() bool {
if o != nil && o.ActionType != nil {
return true
}
return false
}
// SetActionType gets a reference to the given string and assigns it to the ActionType field.
func (o *AccountContentPrerequsites) SetActionType(v string) {
o.ActionType = &v
}
// GetMachine returns the Machine field value if set, zero value otherwise.
func (o *AccountContentPrerequsites) GetMachine() string {
if o == nil || o.Machine == nil {
var ret string
return ret
}
return *o.Machine
}
// GetMachineOk returns a tuple with the Machine field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountContentPrerequsites) GetMachineOk() (*string, bool) {
if o == nil || o.Machine == nil {
return nil, false
}
return o.Machine, true
}
// HasMachine returns a boolean if a field has been set.
func (o *AccountContentPrerequsites) HasMachine() bool {
if o != nil && o.Machine != nil {
return true
}
return false
}
// SetMachine gets a reference to the given string and assigns it to the Machine field.
func (o *AccountContentPrerequsites) SetMachine(v string) {
o.Machine = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *AccountContentPrerequsites) GetVersion() int64 {
if o == nil || o.Version == nil {
var ret int64
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountContentPrerequsites) GetVersionOk() (*int64, bool) {
if o == nil || o.Version == nil {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *AccountContentPrerequsites) HasVersion() bool {
if o != nil && o.Version != nil {
return true
}
return false
}
// SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *AccountContentPrerequsites) SetVersion(v int64) {
o.Version = &v
}
func (o AccountContentPrerequsites) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Reason != nil {
toSerialize["Reason"] = o.Reason
}
if o.TicketId != nil {
toSerialize["TicketId"] = o.TicketId
}
if o.TicketingSystem != nil {
toSerialize["TicketingSystem"] = o.TicketingSystem
}
if o.IsUse != nil {
toSerialize["isUse"] = o.IsUse
}
if o.ActionType != nil {
toSerialize["ActionType"] = o.ActionType
}
if o.Machine != nil {
toSerialize["Machine"] = o.Machine
}
if o.Version != nil {
toSerialize["Version"] = o.Version
}
return json.Marshal(toSerialize)
}
type NullableAccountContentPrerequsites struct {
value *AccountContentPrerequsites
isSet bool
}
func (v NullableAccountContentPrerequsites) Get() *AccountContentPrerequsites {
return v.value
}
func (v *NullableAccountContentPrerequsites) Set(val *AccountContentPrerequsites) {
v.value = val
v.isSet = true
}
func (v NullableAccountContentPrerequsites) IsSet() bool {
return v.isSet
}
func (v *NullableAccountContentPrerequsites) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAccountContentPrerequsites(val *AccountContentPrerequsites) *NullableAccountContentPrerequsites {
return &NullableAccountContentPrerequsites{value: val, isSet: true}
}
func (v NullableAccountContentPrerequsites) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAccountContentPrerequsites) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}