feat: generating code
This commit is contained in:
parent
c329d58970
commit
51663cd8d0
1221 changed files with 271709 additions and 2444 deletions
178
pkg/intakebeta/model_dremio_auth_patch.go
Normal file
178
pkg/intakebeta/model_dremio_auth_patch.go
Normal file
|
|
@ -0,0 +1,178 @@
|
|||
/*
|
||||
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 DremioAuthPatch type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DremioAuthPatch{}
|
||||
|
||||
/*
|
||||
types and functions for personalAccessToken
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type DremioAuthPatchGetPersonalAccessTokenAttributeType = *string
|
||||
|
||||
func getDremioAuthPatchGetPersonalAccessTokenAttributeTypeOk(arg DremioAuthPatchGetPersonalAccessTokenAttributeType) (ret DremioAuthPatchGetPersonalAccessTokenRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setDremioAuthPatchGetPersonalAccessTokenAttributeType(arg *DremioAuthPatchGetPersonalAccessTokenAttributeType, val DremioAuthPatchGetPersonalAccessTokenRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type DremioAuthPatchGetPersonalAccessTokenArgType = string
|
||||
type DremioAuthPatchGetPersonalAccessTokenRetType = string
|
||||
|
||||
/*
|
||||
types and functions for tokenEndpoint
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type DremioAuthPatchGetTokenEndpointAttributeType = *string
|
||||
|
||||
func getDremioAuthPatchGetTokenEndpointAttributeTypeOk(arg DremioAuthPatchGetTokenEndpointAttributeType) (ret DremioAuthPatchGetTokenEndpointRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setDremioAuthPatchGetTokenEndpointAttributeType(arg *DremioAuthPatchGetTokenEndpointAttributeType, val DremioAuthPatchGetTokenEndpointRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type DremioAuthPatchGetTokenEndpointArgType = string
|
||||
type DremioAuthPatchGetTokenEndpointRetType = string
|
||||
|
||||
// DremioAuthPatch struct for DremioAuthPatch
|
||||
type DremioAuthPatch struct {
|
||||
// A Dremio personal access token for authentication
|
||||
PersonalAccessToken DremioAuthPatchGetPersonalAccessTokenAttributeType `json:"personalAccessToken,omitempty"`
|
||||
// The URL to the Dremio instance's OAuth 2.0 token endpoint
|
||||
TokenEndpoint DremioAuthPatchGetTokenEndpointAttributeType `json:"tokenEndpoint,omitempty"`
|
||||
}
|
||||
|
||||
// NewDremioAuthPatch instantiates a new DremioAuthPatch 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 NewDremioAuthPatch() *DremioAuthPatch {
|
||||
this := DremioAuthPatch{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDremioAuthPatchWithDefaults instantiates a new DremioAuthPatch 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 NewDremioAuthPatchWithDefaults() *DremioAuthPatch {
|
||||
this := DremioAuthPatch{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetPersonalAccessToken returns the PersonalAccessToken field value if set, zero value otherwise.
|
||||
func (o *DremioAuthPatch) GetPersonalAccessToken() (res DremioAuthPatchGetPersonalAccessTokenRetType) {
|
||||
res, _ = o.GetPersonalAccessTokenOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DremioAuthPatch) GetPersonalAccessTokenOk() (ret DremioAuthPatchGetPersonalAccessTokenRetType, ok bool) {
|
||||
return getDremioAuthPatchGetPersonalAccessTokenAttributeTypeOk(o.PersonalAccessToken)
|
||||
}
|
||||
|
||||
// HasPersonalAccessToken returns a boolean if a field has been set.
|
||||
func (o *DremioAuthPatch) HasPersonalAccessToken() bool {
|
||||
_, ok := o.GetPersonalAccessTokenOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetPersonalAccessToken gets a reference to the given string and assigns it to the PersonalAccessToken field.
|
||||
func (o *DremioAuthPatch) SetPersonalAccessToken(v DremioAuthPatchGetPersonalAccessTokenRetType) {
|
||||
setDremioAuthPatchGetPersonalAccessTokenAttributeType(&o.PersonalAccessToken, v)
|
||||
}
|
||||
|
||||
// GetTokenEndpoint returns the TokenEndpoint field value if set, zero value otherwise.
|
||||
func (o *DremioAuthPatch) GetTokenEndpoint() (res DremioAuthPatchGetTokenEndpointRetType) {
|
||||
res, _ = o.GetTokenEndpointOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetTokenEndpointOk returns a tuple with the TokenEndpoint field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DremioAuthPatch) GetTokenEndpointOk() (ret DremioAuthPatchGetTokenEndpointRetType, ok bool) {
|
||||
return getDremioAuthPatchGetTokenEndpointAttributeTypeOk(o.TokenEndpoint)
|
||||
}
|
||||
|
||||
// HasTokenEndpoint returns a boolean if a field has been set.
|
||||
func (o *DremioAuthPatch) HasTokenEndpoint() bool {
|
||||
_, ok := o.GetTokenEndpointOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetTokenEndpoint gets a reference to the given string and assigns it to the TokenEndpoint field.
|
||||
func (o *DremioAuthPatch) SetTokenEndpoint(v DremioAuthPatchGetTokenEndpointRetType) {
|
||||
setDremioAuthPatchGetTokenEndpointAttributeType(&o.TokenEndpoint, v)
|
||||
}
|
||||
|
||||
func (o DremioAuthPatch) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getDremioAuthPatchGetPersonalAccessTokenAttributeTypeOk(o.PersonalAccessToken); ok {
|
||||
toSerialize["PersonalAccessToken"] = val
|
||||
}
|
||||
if val, ok := getDremioAuthPatchGetTokenEndpointAttributeTypeOk(o.TokenEndpoint); ok {
|
||||
toSerialize["TokenEndpoint"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDremioAuthPatch struct {
|
||||
value *DremioAuthPatch
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDremioAuthPatch) Get() *DremioAuthPatch {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDremioAuthPatch) Set(val *DremioAuthPatch) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDremioAuthPatch) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDremioAuthPatch) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDremioAuthPatch(val *DremioAuthPatch) *NullableDremioAuthPatch {
|
||||
return &NullableDremioAuthPatch{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDremioAuthPatch) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDremioAuthPatch) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue