-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathmodel_service_account_delegation_info_principal_response.go
More file actions
176 lines (140 loc) · 7.58 KB
/
model_service_account_delegation_info_principal_response.go
File metadata and controls
176 lines (140 loc) · 7.58 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
/*
STACKIT Audit Log API
API Endpoints to retrieve recorded actions and resulting changes in the system. ### Documentation The user documentation with explanations how to use the api can be found [here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html). ### Audit Logging Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit log. ### API Constraints The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
API version: 2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package auditlog
import (
"encoding/json"
)
// checks if the ServiceAccountDelegationInfoPrincipalResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ServiceAccountDelegationInfoPrincipalResponse{}
/*
types and functions for email
*/
// isNotNullableString
type ServiceAccountDelegationInfoPrincipalResponseGetEmailAttributeType = *string
func getServiceAccountDelegationInfoPrincipalResponseGetEmailAttributeTypeOk(arg ServiceAccountDelegationInfoPrincipalResponseGetEmailAttributeType) (ret ServiceAccountDelegationInfoPrincipalResponseGetEmailRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setServiceAccountDelegationInfoPrincipalResponseGetEmailAttributeType(arg *ServiceAccountDelegationInfoPrincipalResponseGetEmailAttributeType, val ServiceAccountDelegationInfoPrincipalResponseGetEmailRetType) {
*arg = &val
}
type ServiceAccountDelegationInfoPrincipalResponseGetEmailArgType = string
type ServiceAccountDelegationInfoPrincipalResponseGetEmailRetType = string
/*
types and functions for id
*/
// isNotNullableString
type ServiceAccountDelegationInfoPrincipalResponseGetIdAttributeType = *string
func getServiceAccountDelegationInfoPrincipalResponseGetIdAttributeTypeOk(arg ServiceAccountDelegationInfoPrincipalResponseGetIdAttributeType) (ret ServiceAccountDelegationInfoPrincipalResponseGetIdRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setServiceAccountDelegationInfoPrincipalResponseGetIdAttributeType(arg *ServiceAccountDelegationInfoPrincipalResponseGetIdAttributeType, val ServiceAccountDelegationInfoPrincipalResponseGetIdRetType) {
*arg = &val
}
type ServiceAccountDelegationInfoPrincipalResponseGetIdArgType = string
type ServiceAccountDelegationInfoPrincipalResponseGetIdRetType = string
// ServiceAccountDelegationInfoPrincipalResponse Principal in delegation chain of a service account
type ServiceAccountDelegationInfoPrincipalResponse struct {
// E-Mail of the subject
Email ServiceAccountDelegationInfoPrincipalResponseGetEmailAttributeType `json:"email,omitempty"`
// Unique identifier of the subject
// REQUIRED
Id ServiceAccountDelegationInfoPrincipalResponseGetIdAttributeType `json:"id" required:"true"`
}
type _ServiceAccountDelegationInfoPrincipalResponse ServiceAccountDelegationInfoPrincipalResponse
// NewServiceAccountDelegationInfoPrincipalResponse instantiates a new ServiceAccountDelegationInfoPrincipalResponse 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 NewServiceAccountDelegationInfoPrincipalResponse(id ServiceAccountDelegationInfoPrincipalResponseGetIdArgType) *ServiceAccountDelegationInfoPrincipalResponse {
this := ServiceAccountDelegationInfoPrincipalResponse{}
setServiceAccountDelegationInfoPrincipalResponseGetIdAttributeType(&this.Id, id)
return &this
}
// NewServiceAccountDelegationInfoPrincipalResponseWithDefaults instantiates a new ServiceAccountDelegationInfoPrincipalResponse 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 NewServiceAccountDelegationInfoPrincipalResponseWithDefaults() *ServiceAccountDelegationInfoPrincipalResponse {
this := ServiceAccountDelegationInfoPrincipalResponse{}
return &this
}
// GetEmail returns the Email field value if set, zero value otherwise.
func (o *ServiceAccountDelegationInfoPrincipalResponse) GetEmail() (res ServiceAccountDelegationInfoPrincipalResponseGetEmailRetType) {
res, _ = o.GetEmailOk()
return
}
// GetEmailOk returns a tuple with the Email field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceAccountDelegationInfoPrincipalResponse) GetEmailOk() (ret ServiceAccountDelegationInfoPrincipalResponseGetEmailRetType, ok bool) {
return getServiceAccountDelegationInfoPrincipalResponseGetEmailAttributeTypeOk(o.Email)
}
// HasEmail returns a boolean if a field has been set.
func (o *ServiceAccountDelegationInfoPrincipalResponse) HasEmail() bool {
_, ok := o.GetEmailOk()
return ok
}
// SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *ServiceAccountDelegationInfoPrincipalResponse) SetEmail(v ServiceAccountDelegationInfoPrincipalResponseGetEmailRetType) {
setServiceAccountDelegationInfoPrincipalResponseGetEmailAttributeType(&o.Email, v)
}
// GetId returns the Id field value
func (o *ServiceAccountDelegationInfoPrincipalResponse) GetId() (ret ServiceAccountDelegationInfoPrincipalResponseGetIdRetType) {
ret, _ = o.GetIdOk()
return ret
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *ServiceAccountDelegationInfoPrincipalResponse) GetIdOk() (ret ServiceAccountDelegationInfoPrincipalResponseGetIdRetType, ok bool) {
return getServiceAccountDelegationInfoPrincipalResponseGetIdAttributeTypeOk(o.Id)
}
// SetId sets field value
func (o *ServiceAccountDelegationInfoPrincipalResponse) SetId(v ServiceAccountDelegationInfoPrincipalResponseGetIdRetType) {
setServiceAccountDelegationInfoPrincipalResponseGetIdAttributeType(&o.Id, v)
}
func (o ServiceAccountDelegationInfoPrincipalResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getServiceAccountDelegationInfoPrincipalResponseGetEmailAttributeTypeOk(o.Email); ok {
toSerialize["Email"] = val
}
if val, ok := getServiceAccountDelegationInfoPrincipalResponseGetIdAttributeTypeOk(o.Id); ok {
toSerialize["Id"] = val
}
return toSerialize, nil
}
type NullableServiceAccountDelegationInfoPrincipalResponse struct {
value *ServiceAccountDelegationInfoPrincipalResponse
isSet bool
}
func (v NullableServiceAccountDelegationInfoPrincipalResponse) Get() *ServiceAccountDelegationInfoPrincipalResponse {
return v.value
}
func (v *NullableServiceAccountDelegationInfoPrincipalResponse) Set(val *ServiceAccountDelegationInfoPrincipalResponse) {
v.value = val
v.isSet = true
}
func (v NullableServiceAccountDelegationInfoPrincipalResponse) IsSet() bool {
return v.isSet
}
func (v *NullableServiceAccountDelegationInfoPrincipalResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableServiceAccountDelegationInfoPrincipalResponse(val *ServiceAccountDelegationInfoPrincipalResponse) *NullableServiceAccountDelegationInfoPrincipalResponse {
return &NullableServiceAccountDelegationInfoPrincipalResponse{value: val, isSet: true}
}
func (v NullableServiceAccountDelegationInfoPrincipalResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableServiceAccountDelegationInfoPrincipalResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}