-
Notifications
You must be signed in to change notification settings - Fork 2
/
model_get_group_output.go
369 lines (312 loc) · 10 KB
/
model_get_group_output.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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
/*
* 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"
"time"
)
// GetGroupOutput struct for GetGroupOutput
type GetGroupOutput struct {
AccountId *string `json:"account_id,omitempty"`
CreationDate *time.Time `json:"creation_date,omitempty"`
Description *string `json:"description,omitempty"`
GroupAlias *string `json:"group_alias,omitempty"`
GroupId *string `json:"group_id,omitempty"`
GroupName *string `json:"group_name,omitempty"`
ModificationDate *time.Time `json:"modification_date,omitempty"`
UserAssignments *[]AccessPermissionAssignment `json:"user_assignments,omitempty"`
}
// NewGetGroupOutput instantiates a new GetGroupOutput 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 NewGetGroupOutput() *GetGroupOutput {
this := GetGroupOutput{}
return &this
}
// NewGetGroupOutputWithDefaults instantiates a new GetGroupOutput 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 NewGetGroupOutputWithDefaults() *GetGroupOutput {
this := GetGroupOutput{}
return &this
}
// GetAccountId returns the AccountId field value if set, zero value otherwise.
func (o *GetGroupOutput) GetAccountId() string {
if o == nil || o.AccountId == nil {
var ret string
return ret
}
return *o.AccountId
}
// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetGroupOutput) GetAccountIdOk() (*string, bool) {
if o == nil || o.AccountId == nil {
return nil, false
}
return o.AccountId, true
}
// HasAccountId returns a boolean if a field has been set.
func (o *GetGroupOutput) HasAccountId() bool {
if o != nil && o.AccountId != nil {
return true
}
return false
}
// SetAccountId gets a reference to the given string and assigns it to the AccountId field.
func (o *GetGroupOutput) SetAccountId(v string) {
o.AccountId = &v
}
// GetCreationDate returns the CreationDate field value if set, zero value otherwise.
func (o *GetGroupOutput) GetCreationDate() time.Time {
if o == nil || o.CreationDate == nil {
var ret time.Time
return ret
}
return *o.CreationDate
}
// GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetGroupOutput) GetCreationDateOk() (*time.Time, bool) {
if o == nil || o.CreationDate == nil {
return nil, false
}
return o.CreationDate, true
}
// HasCreationDate returns a boolean if a field has been set.
func (o *GetGroupOutput) HasCreationDate() bool {
if o != nil && o.CreationDate != nil {
return true
}
return false
}
// SetCreationDate gets a reference to the given time.Time and assigns it to the CreationDate field.
func (o *GetGroupOutput) SetCreationDate(v time.Time) {
o.CreationDate = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *GetGroupOutput) GetDescription() string {
if o == nil || o.Description == nil {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetGroupOutput) GetDescriptionOk() (*string, bool) {
if o == nil || o.Description == nil {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *GetGroupOutput) HasDescription() bool {
if o != nil && o.Description != nil {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *GetGroupOutput) SetDescription(v string) {
o.Description = &v
}
// GetGroupAlias returns the GroupAlias field value if set, zero value otherwise.
func (o *GetGroupOutput) GetGroupAlias() string {
if o == nil || o.GroupAlias == nil {
var ret string
return ret
}
return *o.GroupAlias
}
// GetGroupAliasOk returns a tuple with the GroupAlias field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetGroupOutput) GetGroupAliasOk() (*string, bool) {
if o == nil || o.GroupAlias == nil {
return nil, false
}
return o.GroupAlias, true
}
// HasGroupAlias returns a boolean if a field has been set.
func (o *GetGroupOutput) HasGroupAlias() bool {
if o != nil && o.GroupAlias != nil {
return true
}
return false
}
// SetGroupAlias gets a reference to the given string and assigns it to the GroupAlias field.
func (o *GetGroupOutput) SetGroupAlias(v string) {
o.GroupAlias = &v
}
// GetGroupId returns the GroupId field value if set, zero value otherwise.
func (o *GetGroupOutput) GetGroupId() string {
if o == nil || o.GroupId == nil {
var ret string
return ret
}
return *o.GroupId
}
// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetGroupOutput) GetGroupIdOk() (*string, bool) {
if o == nil || o.GroupId == nil {
return nil, false
}
return o.GroupId, true
}
// HasGroupId returns a boolean if a field has been set.
func (o *GetGroupOutput) HasGroupId() bool {
if o != nil && o.GroupId != nil {
return true
}
return false
}
// SetGroupId gets a reference to the given string and assigns it to the GroupId field.
func (o *GetGroupOutput) SetGroupId(v string) {
o.GroupId = &v
}
// GetGroupName returns the GroupName field value if set, zero value otherwise.
func (o *GetGroupOutput) GetGroupName() string {
if o == nil || o.GroupName == nil {
var ret string
return ret
}
return *o.GroupName
}
// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetGroupOutput) GetGroupNameOk() (*string, bool) {
if o == nil || o.GroupName == nil {
return nil, false
}
return o.GroupName, true
}
// HasGroupName returns a boolean if a field has been set.
func (o *GetGroupOutput) HasGroupName() bool {
if o != nil && o.GroupName != nil {
return true
}
return false
}
// SetGroupName gets a reference to the given string and assigns it to the GroupName field.
func (o *GetGroupOutput) SetGroupName(v string) {
o.GroupName = &v
}
// GetModificationDate returns the ModificationDate field value if set, zero value otherwise.
func (o *GetGroupOutput) GetModificationDate() time.Time {
if o == nil || o.ModificationDate == nil {
var ret time.Time
return ret
}
return *o.ModificationDate
}
// GetModificationDateOk returns a tuple with the ModificationDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetGroupOutput) GetModificationDateOk() (*time.Time, bool) {
if o == nil || o.ModificationDate == nil {
return nil, false
}
return o.ModificationDate, true
}
// HasModificationDate returns a boolean if a field has been set.
func (o *GetGroupOutput) HasModificationDate() bool {
if o != nil && o.ModificationDate != nil {
return true
}
return false
}
// SetModificationDate gets a reference to the given time.Time and assigns it to the ModificationDate field.
func (o *GetGroupOutput) SetModificationDate(v time.Time) {
o.ModificationDate = &v
}
// GetUserAssignments returns the UserAssignments field value if set, zero value otherwise.
func (o *GetGroupOutput) GetUserAssignments() []AccessPermissionAssignment {
if o == nil || o.UserAssignments == nil {
var ret []AccessPermissionAssignment
return ret
}
return *o.UserAssignments
}
// GetUserAssignmentsOk returns a tuple with the UserAssignments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetGroupOutput) GetUserAssignmentsOk() (*[]AccessPermissionAssignment, bool) {
if o == nil || o.UserAssignments == nil {
return nil, false
}
return o.UserAssignments, true
}
// HasUserAssignments returns a boolean if a field has been set.
func (o *GetGroupOutput) HasUserAssignments() bool {
if o != nil && o.UserAssignments != nil {
return true
}
return false
}
// SetUserAssignments gets a reference to the given []AccessPermissionAssignment and assigns it to the UserAssignments field.
func (o *GetGroupOutput) SetUserAssignments(v []AccessPermissionAssignment) {
o.UserAssignments = &v
}
func (o GetGroupOutput) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AccountId != nil {
toSerialize["account_id"] = o.AccountId
}
if o.CreationDate != nil {
toSerialize["creation_date"] = o.CreationDate
}
if o.Description != nil {
toSerialize["description"] = o.Description
}
if o.GroupAlias != nil {
toSerialize["group_alias"] = o.GroupAlias
}
if o.GroupId != nil {
toSerialize["group_id"] = o.GroupId
}
if o.GroupName != nil {
toSerialize["group_name"] = o.GroupName
}
if o.ModificationDate != nil {
toSerialize["modification_date"] = o.ModificationDate
}
if o.UserAssignments != nil {
toSerialize["user_assignments"] = o.UserAssignments
}
return json.Marshal(toSerialize)
}
type NullableGetGroupOutput struct {
value *GetGroupOutput
isSet bool
}
func (v NullableGetGroupOutput) Get() *GetGroupOutput {
return v.value
}
func (v *NullableGetGroupOutput) Set(val *GetGroupOutput) {
v.value = val
v.isSet = true
}
func (v NullableGetGroupOutput) IsSet() bool {
return v.isSet
}
func (v *NullableGetGroupOutput) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetGroupOutput(val *GetGroupOutput) *NullableGetGroupOutput {
return &NullableGetGroupOutput{value: val, isSet: true}
}
func (v NullableGetGroupOutput) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetGroupOutput) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}