feat: generating code
This commit is contained in:
parent
c329d58970
commit
51663cd8d0
1221 changed files with 271709 additions and 2444 deletions
172
pkg/intakebeta/model_dremio_auth.go
Normal file
172
pkg/intakebeta/model_dremio_auth.go
Normal file
|
|
@ -0,0 +1,172 @@
|
|||
/*
|
||||
STACKIT Intake API
|
||||
|
||||
This API provides endpoints for managing Intakes.
|
||||
|
||||
API version: 1beta.3.5
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package intakebeta
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the DremioAuth type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DremioAuth{}
|
||||
|
||||
/*
|
||||
types and functions for personalAccessToken
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type DremioAuthGetPersonalAccessTokenAttributeType = *string
|
||||
|
||||
func getDremioAuthGetPersonalAccessTokenAttributeTypeOk(arg DremioAuthGetPersonalAccessTokenAttributeType) (ret DremioAuthGetPersonalAccessTokenRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setDremioAuthGetPersonalAccessTokenAttributeType(arg *DremioAuthGetPersonalAccessTokenAttributeType, val DremioAuthGetPersonalAccessTokenRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type DremioAuthGetPersonalAccessTokenArgType = string
|
||||
type DremioAuthGetPersonalAccessTokenRetType = string
|
||||
|
||||
/*
|
||||
types and functions for tokenEndpoint
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type DremioAuthGetTokenEndpointAttributeType = *string
|
||||
|
||||
func getDremioAuthGetTokenEndpointAttributeTypeOk(arg DremioAuthGetTokenEndpointAttributeType) (ret DremioAuthGetTokenEndpointRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setDremioAuthGetTokenEndpointAttributeType(arg *DremioAuthGetTokenEndpointAttributeType, val DremioAuthGetTokenEndpointRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type DremioAuthGetTokenEndpointArgType = string
|
||||
type DremioAuthGetTokenEndpointRetType = string
|
||||
|
||||
// DremioAuth struct for DremioAuth
|
||||
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"`
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
func NewDremioAuthWithDefaults() *DremioAuth {
|
||||
this := DremioAuth{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetPersonalAccessToken returns the PersonalAccessToken field value
|
||||
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.
|
||||
func (o *DremioAuth) GetPersonalAccessTokenOk() (ret DremioAuthGetPersonalAccessTokenRetType, ok bool) {
|
||||
return getDremioAuthGetPersonalAccessTokenAttributeTypeOk(o.PersonalAccessToken)
|
||||
}
|
||||
|
||||
// SetPersonalAccessToken sets field value
|
||||
func (o *DremioAuth) SetPersonalAccessToken(v DremioAuthGetPersonalAccessTokenRetType) {
|
||||
setDremioAuthGetPersonalAccessTokenAttributeType(&o.PersonalAccessToken, v)
|
||||
}
|
||||
|
||||
// GetTokenEndpoint returns the TokenEndpoint field value
|
||||
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.
|
||||
func (o *DremioAuth) GetTokenEndpointOk() (ret DremioAuthGetTokenEndpointRetType, ok bool) {
|
||||
return getDremioAuthGetTokenEndpointAttributeTypeOk(o.TokenEndpoint)
|
||||
}
|
||||
|
||||
// SetTokenEndpoint sets field value
|
||||
func (o *DremioAuth) SetTokenEndpoint(v DremioAuthGetTokenEndpointRetType) {
|
||||
setDremioAuthGetTokenEndpointAttributeType(&o.TokenEndpoint, v)
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
type NullableDremioAuth struct {
|
||||
value *DremioAuth
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDremioAuth) Get() *DremioAuth {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDremioAuth) Set(val *DremioAuth) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDremioAuth) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDremioAuth) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDremioAuth(val *DremioAuth) *NullableDremioAuth {
|
||||
return &NullableDremioAuth{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDremioAuth) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDremioAuth) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue