-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathmodel_create_service_account_key_response_credentials.go
More file actions
425 lines (351 loc) · 24.3 KB
/
model_create_service_account_key_response_credentials.go
File metadata and controls
425 lines (351 loc) · 24.3 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
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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
/*
STACKIT Service Account API
API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100|
API version: 2.0
*/
// 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 serviceaccount
import (
"encoding/json"
)
// checks if the CreateServiceAccountKeyResponseCredentials type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CreateServiceAccountKeyResponseCredentials{}
/*
types and functions for aud
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetAudAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateServiceAccountKeyResponseCredentialsGetAudAttributeTypeOk(arg CreateServiceAccountKeyResponseCredentialsGetAudAttributeType) (ret CreateServiceAccountKeyResponseCredentialsGetAudRetType, 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 setCreateServiceAccountKeyResponseCredentialsGetAudAttributeType(arg *CreateServiceAccountKeyResponseCredentialsGetAudAttributeType, val CreateServiceAccountKeyResponseCredentialsGetAudRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetAudArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetAudRetType = string
/*
types and functions for iss
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetIssAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateServiceAccountKeyResponseCredentialsGetIssAttributeTypeOk(arg CreateServiceAccountKeyResponseCredentialsGetIssAttributeType) (ret CreateServiceAccountKeyResponseCredentialsGetIssRetType, 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 setCreateServiceAccountKeyResponseCredentialsGetIssAttributeType(arg *CreateServiceAccountKeyResponseCredentialsGetIssAttributeType, val CreateServiceAccountKeyResponseCredentialsGetIssRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetIssArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetIssRetType = string
/*
types and functions for kid
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetKidAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateServiceAccountKeyResponseCredentialsGetKidAttributeTypeOk(arg CreateServiceAccountKeyResponseCredentialsGetKidAttributeType) (ret CreateServiceAccountKeyResponseCredentialsGetKidRetType, 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 setCreateServiceAccountKeyResponseCredentialsGetKidAttributeType(arg *CreateServiceAccountKeyResponseCredentialsGetKidAttributeType, val CreateServiceAccountKeyResponseCredentialsGetKidRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetKidArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetKidRetType = string
/*
types and functions for privateKey
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetPrivateKeyAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateServiceAccountKeyResponseCredentialsGetPrivateKeyAttributeTypeOk(arg CreateServiceAccountKeyResponseCredentialsGetPrivateKeyAttributeType) (ret CreateServiceAccountKeyResponseCredentialsGetPrivateKeyRetType, 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 setCreateServiceAccountKeyResponseCredentialsGetPrivateKeyAttributeType(arg *CreateServiceAccountKeyResponseCredentialsGetPrivateKeyAttributeType, val CreateServiceAccountKeyResponseCredentialsGetPrivateKeyRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetPrivateKeyArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetPrivateKeyRetType = string
/*
types and functions for sub
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetSubAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateServiceAccountKeyResponseCredentialsGetSubAttributeTypeOk(arg CreateServiceAccountKeyResponseCredentialsGetSubAttributeType) (ret CreateServiceAccountKeyResponseCredentialsGetSubRetType, 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 setCreateServiceAccountKeyResponseCredentialsGetSubAttributeType(arg *CreateServiceAccountKeyResponseCredentialsGetSubAttributeType, val CreateServiceAccountKeyResponseCredentialsGetSubRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetSubArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetSubRetType = string
/*
types and functions for tokenEndpoint
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetTokenEndpointAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCreateServiceAccountKeyResponseCredentialsGetTokenEndpointAttributeTypeOk(arg CreateServiceAccountKeyResponseCredentialsGetTokenEndpointAttributeType) (ret CreateServiceAccountKeyResponseCredentialsGetTokenEndpointRetType, 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 setCreateServiceAccountKeyResponseCredentialsGetTokenEndpointAttributeType(arg *CreateServiceAccountKeyResponseCredentialsGetTokenEndpointAttributeType, val CreateServiceAccountKeyResponseCredentialsGetTokenEndpointRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetTokenEndpointArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentialsGetTokenEndpointRetType = string
// CreateServiceAccountKeyResponseCredentials struct for CreateServiceAccountKeyResponseCredentials
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CreateServiceAccountKeyResponseCredentials struct {
// Audience - service account API URL
// REQUIRED
Aud CreateServiceAccountKeyResponseCredentialsGetAudAttributeType `json:"aud" required:"true"`
// Service account email
// REQUIRED
Iss CreateServiceAccountKeyResponseCredentialsGetIssAttributeType `json:"iss" required:"true"`
// Key id to use
// REQUIRED
Kid CreateServiceAccountKeyResponseCredentialsGetKidAttributeType `json:"kid" required:"true"`
// Private key. Only present, if the service account API was generating the key. Not recoverable later.
PrivateKey CreateServiceAccountKeyResponseCredentialsGetPrivateKeyAttributeType `json:"privateKey,omitempty"`
// Service account id
// REQUIRED
Sub CreateServiceAccountKeyResponseCredentialsGetSubAttributeType `json:"sub" required:"true"`
// Endpoint used to obtain access tokens for the service account.
// REQUIRED
TokenEndpoint CreateServiceAccountKeyResponseCredentialsGetTokenEndpointAttributeType `json:"tokenEndpoint" required:"true"`
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _CreateServiceAccountKeyResponseCredentials CreateServiceAccountKeyResponseCredentials
// NewCreateServiceAccountKeyResponseCredentials instantiates a new CreateServiceAccountKeyResponseCredentials 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 NewCreateServiceAccountKeyResponseCredentials(aud CreateServiceAccountKeyResponseCredentialsGetAudArgType, iss CreateServiceAccountKeyResponseCredentialsGetIssArgType, kid CreateServiceAccountKeyResponseCredentialsGetKidArgType, sub CreateServiceAccountKeyResponseCredentialsGetSubArgType, tokenEndpoint CreateServiceAccountKeyResponseCredentialsGetTokenEndpointArgType) *CreateServiceAccountKeyResponseCredentials {
this := CreateServiceAccountKeyResponseCredentials{}
setCreateServiceAccountKeyResponseCredentialsGetAudAttributeType(&this.Aud, aud)
setCreateServiceAccountKeyResponseCredentialsGetIssAttributeType(&this.Iss, iss)
setCreateServiceAccountKeyResponseCredentialsGetKidAttributeType(&this.Kid, kid)
setCreateServiceAccountKeyResponseCredentialsGetSubAttributeType(&this.Sub, sub)
setCreateServiceAccountKeyResponseCredentialsGetTokenEndpointAttributeType(&this.TokenEndpoint, tokenEndpoint)
return &this
}
// NewCreateServiceAccountKeyResponseCredentialsWithDefaults instantiates a new CreateServiceAccountKeyResponseCredentials 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 NewCreateServiceAccountKeyResponseCredentialsWithDefaults() *CreateServiceAccountKeyResponseCredentials {
this := CreateServiceAccountKeyResponseCredentials{}
return &this
}
// GetAud returns the Aud field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) GetAud() (ret CreateServiceAccountKeyResponseCredentialsGetAudRetType) {
ret, _ = o.GetAudOk()
return ret
}
// GetAudOk returns a tuple with the Aud 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 *CreateServiceAccountKeyResponseCredentials) GetAudOk() (ret CreateServiceAccountKeyResponseCredentialsGetAudRetType, ok bool) {
return getCreateServiceAccountKeyResponseCredentialsGetAudAttributeTypeOk(o.Aud)
}
// SetAud sets field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) SetAud(v CreateServiceAccountKeyResponseCredentialsGetAudRetType) {
setCreateServiceAccountKeyResponseCredentialsGetAudAttributeType(&o.Aud, v)
}
// GetIss returns the Iss field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) GetIss() (ret CreateServiceAccountKeyResponseCredentialsGetIssRetType) {
ret, _ = o.GetIssOk()
return ret
}
// GetIssOk returns a tuple with the Iss 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 *CreateServiceAccountKeyResponseCredentials) GetIssOk() (ret CreateServiceAccountKeyResponseCredentialsGetIssRetType, ok bool) {
return getCreateServiceAccountKeyResponseCredentialsGetIssAttributeTypeOk(o.Iss)
}
// SetIss sets field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) SetIss(v CreateServiceAccountKeyResponseCredentialsGetIssRetType) {
setCreateServiceAccountKeyResponseCredentialsGetIssAttributeType(&o.Iss, v)
}
// GetKid returns the Kid field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) GetKid() (ret CreateServiceAccountKeyResponseCredentialsGetKidRetType) {
ret, _ = o.GetKidOk()
return ret
}
// GetKidOk returns a tuple with the Kid 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 *CreateServiceAccountKeyResponseCredentials) GetKidOk() (ret CreateServiceAccountKeyResponseCredentialsGetKidRetType, ok bool) {
return getCreateServiceAccountKeyResponseCredentialsGetKidAttributeTypeOk(o.Kid)
}
// SetKid sets field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) SetKid(v CreateServiceAccountKeyResponseCredentialsGetKidRetType) {
setCreateServiceAccountKeyResponseCredentialsGetKidAttributeType(&o.Kid, v)
}
// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) GetPrivateKey() (res CreateServiceAccountKeyResponseCredentialsGetPrivateKeyRetType) {
res, _ = o.GetPrivateKeyOk()
return
}
// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise
// 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 *CreateServiceAccountKeyResponseCredentials) GetPrivateKeyOk() (ret CreateServiceAccountKeyResponseCredentialsGetPrivateKeyRetType, ok bool) {
return getCreateServiceAccountKeyResponseCredentialsGetPrivateKeyAttributeTypeOk(o.PrivateKey)
}
// HasPrivateKey returns a boolean if a field has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) HasPrivateKey() bool {
_, ok := o.GetPrivateKeyOk()
return ok
}
// SetPrivateKey gets a reference to the given string and assigns it to the PrivateKey field.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) SetPrivateKey(v CreateServiceAccountKeyResponseCredentialsGetPrivateKeyRetType) {
setCreateServiceAccountKeyResponseCredentialsGetPrivateKeyAttributeType(&o.PrivateKey, v)
}
// GetSub returns the Sub field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) GetSub() (ret CreateServiceAccountKeyResponseCredentialsGetSubRetType) {
ret, _ = o.GetSubOk()
return ret
}
// GetSubOk returns a tuple with the Sub 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 *CreateServiceAccountKeyResponseCredentials) GetSubOk() (ret CreateServiceAccountKeyResponseCredentialsGetSubRetType, ok bool) {
return getCreateServiceAccountKeyResponseCredentialsGetSubAttributeTypeOk(o.Sub)
}
// SetSub sets field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) SetSub(v CreateServiceAccountKeyResponseCredentialsGetSubRetType) {
setCreateServiceAccountKeyResponseCredentialsGetSubAttributeType(&o.Sub, v)
}
// GetTokenEndpoint returns the TokenEndpoint field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) GetTokenEndpoint() (ret CreateServiceAccountKeyResponseCredentialsGetTokenEndpointRetType) {
ret, _ = o.GetTokenEndpointOk()
return ret
}
// GetTokenEndpointOk returns a tuple with the TokenEndpoint 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 *CreateServiceAccountKeyResponseCredentials) GetTokenEndpointOk() (ret CreateServiceAccountKeyResponseCredentialsGetTokenEndpointRetType, ok bool) {
return getCreateServiceAccountKeyResponseCredentialsGetTokenEndpointAttributeTypeOk(o.TokenEndpoint)
}
// SetTokenEndpoint sets field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CreateServiceAccountKeyResponseCredentials) SetTokenEndpoint(v CreateServiceAccountKeyResponseCredentialsGetTokenEndpointRetType) {
setCreateServiceAccountKeyResponseCredentialsGetTokenEndpointAttributeType(&o.TokenEndpoint, v)
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o CreateServiceAccountKeyResponseCredentials) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getCreateServiceAccountKeyResponseCredentialsGetAudAttributeTypeOk(o.Aud); ok {
toSerialize["Aud"] = val
}
if val, ok := getCreateServiceAccountKeyResponseCredentialsGetIssAttributeTypeOk(o.Iss); ok {
toSerialize["Iss"] = val
}
if val, ok := getCreateServiceAccountKeyResponseCredentialsGetKidAttributeTypeOk(o.Kid); ok {
toSerialize["Kid"] = val
}
if val, ok := getCreateServiceAccountKeyResponseCredentialsGetPrivateKeyAttributeTypeOk(o.PrivateKey); ok {
toSerialize["PrivateKey"] = val
}
if val, ok := getCreateServiceAccountKeyResponseCredentialsGetSubAttributeTypeOk(o.Sub); ok {
toSerialize["Sub"] = val
}
if val, ok := getCreateServiceAccountKeyResponseCredentialsGetTokenEndpointAttributeTypeOk(o.TokenEndpoint); ok {
toSerialize["TokenEndpoint"] = val
}
return toSerialize, nil
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableCreateServiceAccountKeyResponseCredentials struct {
value *CreateServiceAccountKeyResponseCredentials
isSet bool
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCreateServiceAccountKeyResponseCredentials) Get() *CreateServiceAccountKeyResponseCredentials {
return v.value
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCreateServiceAccountKeyResponseCredentials) Set(val *CreateServiceAccountKeyResponseCredentials) {
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 NullableCreateServiceAccountKeyResponseCredentials) 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 *NullableCreateServiceAccountKeyResponseCredentials) 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 NewNullableCreateServiceAccountKeyResponseCredentials(val *CreateServiceAccountKeyResponseCredentials) *NullableCreateServiceAccountKeyResponseCredentials {
return &NullableCreateServiceAccountKeyResponseCredentials{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 NullableCreateServiceAccountKeyResponseCredentials) 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 *NullableCreateServiceAccountKeyResponseCredentials) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}