-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathmodel_dremio_auth.go
More file actions
204 lines (167 loc) · 8.83 KB
/
model_dremio_auth.go
File metadata and controls
204 lines (167 loc) · 8.83 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
/*
STACKIT Intake API
This API provides endpoints for managing Intakes.
API version: 1beta.3.6
*/
// 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 intake
import (
"encoding/json"
)
// checks if the DremioAuth type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DremioAuth{}
/*
types and functions for personalAccessToken
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DremioAuthGetPersonalAccessTokenAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getDremioAuthGetPersonalAccessTokenAttributeTypeOk(arg DremioAuthGetPersonalAccessTokenAttributeType) (ret DremioAuthGetPersonalAccessTokenRetType, 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 setDremioAuthGetPersonalAccessTokenAttributeType(arg *DremioAuthGetPersonalAccessTokenAttributeType, val DremioAuthGetPersonalAccessTokenRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DremioAuthGetPersonalAccessTokenArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DremioAuthGetPersonalAccessTokenRetType = 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 DremioAuthGetTokenEndpointAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getDremioAuthGetTokenEndpointAttributeTypeOk(arg DremioAuthGetTokenEndpointAttributeType) (ret DremioAuthGetTokenEndpointRetType, 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 setDremioAuthGetTokenEndpointAttributeType(arg *DremioAuthGetTokenEndpointAttributeType, val DremioAuthGetTokenEndpointRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DremioAuthGetTokenEndpointArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DremioAuthGetTokenEndpointRetType = string
// DremioAuth struct for DremioAuth
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type DremioAuth struct {
// A Dremio personal access token for authentication
// REQUIRED
PersonalAccessToken DremioAuthGetPersonalAccessTokenAttributeType `json:"personalAccessToken" required:"true"`
// The URL to the Dremio instance's OAuth 2.0 token endpoint
// REQUIRED
TokenEndpoint DremioAuthGetTokenEndpointAttributeType `json:"tokenEndpoint" required:"true"`
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _DremioAuth DremioAuth
// NewDremioAuth instantiates a new DremioAuth 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 NewDremioAuth(personalAccessToken DremioAuthGetPersonalAccessTokenArgType, tokenEndpoint DremioAuthGetTokenEndpointArgType) *DremioAuth {
this := DremioAuth{}
setDremioAuthGetPersonalAccessTokenAttributeType(&this.PersonalAccessToken, personalAccessToken)
setDremioAuthGetTokenEndpointAttributeType(&this.TokenEndpoint, tokenEndpoint)
return &this
}
// NewDremioAuthWithDefaults instantiates a new DremioAuth 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 NewDremioAuthWithDefaults() *DremioAuth {
this := DremioAuth{}
return &this
}
// GetPersonalAccessToken returns the PersonalAccessToken field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DremioAuth) GetPersonalAccessToken() (ret DremioAuthGetPersonalAccessTokenRetType) {
ret, _ = o.GetPersonalAccessTokenOk()
return ret
}
// GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken 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 *DremioAuth) GetPersonalAccessTokenOk() (ret DremioAuthGetPersonalAccessTokenRetType, ok bool) {
return getDremioAuthGetPersonalAccessTokenAttributeTypeOk(o.PersonalAccessToken)
}
// SetPersonalAccessToken sets field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *DremioAuth) SetPersonalAccessToken(v DremioAuthGetPersonalAccessTokenRetType) {
setDremioAuthGetPersonalAccessTokenAttributeType(&o.PersonalAccessToken, 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 *DremioAuth) GetTokenEndpoint() (ret DremioAuthGetTokenEndpointRetType) {
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 *DremioAuth) GetTokenEndpointOk() (ret DremioAuthGetTokenEndpointRetType, ok bool) {
return getDremioAuthGetTokenEndpointAttributeTypeOk(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 *DremioAuth) SetTokenEndpoint(v DremioAuthGetTokenEndpointRetType) {
setDremioAuthGetTokenEndpointAttributeType(&o.TokenEndpoint, v)
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o DremioAuth) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getDremioAuthGetPersonalAccessTokenAttributeTypeOk(o.PersonalAccessToken); ok {
toSerialize["PersonalAccessToken"] = val
}
if val, ok := getDremioAuthGetTokenEndpointAttributeTypeOk(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 NullableDremioAuth struct {
value *DremioAuth
isSet bool
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableDremioAuth) Get() *DremioAuth {
return v.value
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableDremioAuth) Set(val *DremioAuth) {
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 NullableDremioAuth) 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 *NullableDremioAuth) 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 NewNullableDremioAuth(val *DremioAuth) *NullableDremioAuth {
return &NullableDremioAuth{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 NullableDremioAuth) 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 *NullableDremioAuth) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}