-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathmodel_access_key.go
More file actions
256 lines (210 loc) · 10.4 KB
/
model_access_key.go
File metadata and controls
256 lines (210 loc) · 10.4 KB
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
/*
STACKIT Object Storage API
STACKIT API to manage the Object Storage
API version: 2.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package objectstorage
import (
"encoding/json"
)
// checks if the AccessKey type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AccessKey{}
/*
types and functions for displayName
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type AccessKeyGetDisplayNameAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getAccessKeyGetDisplayNameAttributeTypeOk(arg AccessKeyGetDisplayNameAttributeType) (ret AccessKeyGetDisplayNameRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setAccessKeyGetDisplayNameAttributeType(arg *AccessKeyGetDisplayNameAttributeType, val AccessKeyGetDisplayNameRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type AccessKeyGetDisplayNameArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type AccessKeyGetDisplayNameRetType = string
/*
types and functions for expires
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type AccessKeyGetExpiresAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getAccessKeyGetExpiresAttributeTypeOk(arg AccessKeyGetExpiresAttributeType) (ret AccessKeyGetExpiresRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setAccessKeyGetExpiresAttributeType(arg *AccessKeyGetExpiresAttributeType, val AccessKeyGetExpiresRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type AccessKeyGetExpiresArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type AccessKeyGetExpiresRetType = string
/*
types and functions for keyId
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type AccessKeyGetKeyIdAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getAccessKeyGetKeyIdAttributeTypeOk(arg AccessKeyGetKeyIdAttributeType) (ret AccessKeyGetKeyIdRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setAccessKeyGetKeyIdAttributeType(arg *AccessKeyGetKeyIdAttributeType, val AccessKeyGetKeyIdRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type AccessKeyGetKeyIdArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type AccessKeyGetKeyIdRetType = string
// AccessKey struct for AccessKey
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type AccessKey struct {
// REQUIRED
DisplayName AccessKeyGetDisplayNameAttributeType `json:"displayName" required:"true"`
// REQUIRED
Expires AccessKeyGetExpiresAttributeType `json:"expires" required:"true"`
// Identifies the pair of access key and secret access key for deletion
// REQUIRED
KeyId AccessKeyGetKeyIdAttributeType `json:"keyId" required:"true"`
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _AccessKey AccessKey
// NewAccessKey instantiates a new AccessKey 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
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewAccessKey(displayName AccessKeyGetDisplayNameArgType, expires AccessKeyGetExpiresArgType, keyId AccessKeyGetKeyIdArgType) *AccessKey {
this := AccessKey{}
setAccessKeyGetDisplayNameAttributeType(&this.DisplayName, displayName)
setAccessKeyGetExpiresAttributeType(&this.Expires, expires)
setAccessKeyGetKeyIdAttributeType(&this.KeyId, keyId)
return &this
}
// NewAccessKeyWithDefaults instantiates a new AccessKey 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
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewAccessKeyWithDefaults() *AccessKey {
this := AccessKey{}
return &this
}
// GetDisplayName returns the DisplayName field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *AccessKey) GetDisplayName() (ret AccessKeyGetDisplayNameRetType) {
ret, _ = o.GetDisplayNameOk()
return ret
}
// GetDisplayNameOk returns a tuple with the DisplayName field value
// and a boolean to check if the value has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *AccessKey) GetDisplayNameOk() (ret AccessKeyGetDisplayNameRetType, ok bool) {
return getAccessKeyGetDisplayNameAttributeTypeOk(o.DisplayName)
}
// SetDisplayName sets field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *AccessKey) SetDisplayName(v AccessKeyGetDisplayNameRetType) {
setAccessKeyGetDisplayNameAttributeType(&o.DisplayName, v)
}
// GetExpires returns the Expires field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *AccessKey) GetExpires() (ret AccessKeyGetExpiresRetType) {
ret, _ = o.GetExpiresOk()
return ret
}
// GetExpiresOk returns a tuple with the Expires field value
// and a boolean to check if the value has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *AccessKey) GetExpiresOk() (ret AccessKeyGetExpiresRetType, ok bool) {
return getAccessKeyGetExpiresAttributeTypeOk(o.Expires)
}
// SetExpires sets field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *AccessKey) SetExpires(v AccessKeyGetExpiresRetType) {
setAccessKeyGetExpiresAttributeType(&o.Expires, v)
}
// GetKeyId returns the KeyId field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *AccessKey) GetKeyId() (ret AccessKeyGetKeyIdRetType) {
ret, _ = o.GetKeyIdOk()
return ret
}
// GetKeyIdOk returns a tuple with the KeyId field value
// and a boolean to check if the value has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *AccessKey) GetKeyIdOk() (ret AccessKeyGetKeyIdRetType, ok bool) {
return getAccessKeyGetKeyIdAttributeTypeOk(o.KeyId)
}
// SetKeyId sets field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *AccessKey) SetKeyId(v AccessKeyGetKeyIdRetType) {
setAccessKeyGetKeyIdAttributeType(&o.KeyId, v)
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o AccessKey) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getAccessKeyGetDisplayNameAttributeTypeOk(o.DisplayName); ok {
toSerialize["DisplayName"] = val
}
if val, ok := getAccessKeyGetExpiresAttributeTypeOk(o.Expires); ok {
toSerialize["Expires"] = val
}
if val, ok := getAccessKeyGetKeyIdAttributeTypeOk(o.KeyId); ok {
toSerialize["KeyId"] = val
}
return toSerialize, nil
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableAccessKey struct {
value *AccessKey
isSet bool
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableAccessKey) Get() *AccessKey {
return v.value
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableAccessKey) Set(val *AccessKey) {
v.value = val
v.isSet = true
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableAccessKey) IsSet() bool {
return v.isSet
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableAccessKey) Unset() {
v.value = nil
v.isSet = false
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableAccessKey(val *AccessKey) *NullableAccessKey {
return &NullableAccessKey{value: val, isSet: true}
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableAccessKey) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableAccessKey) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}