mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
302 lines
7.9 KiB
Go
302 lines
7.9 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the IamThemeData type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &IamThemeData{}
|
|
|
|
// IamThemeData struct for IamThemeData
|
|
type IamThemeData struct {
|
|
BorderRadius *int64 `json:"borderRadius,omitempty"`
|
|
ColorPrimary *string `json:"colorPrimary,omitempty"`
|
|
IsCompact *bool `json:"isCompact,omitempty"`
|
|
IsEnabled *bool `json:"isEnabled,omitempty"`
|
|
ThemeType *string `json:"themeType,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _IamThemeData IamThemeData
|
|
|
|
// NewIamThemeData instantiates a new IamThemeData 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 NewIamThemeData() *IamThemeData {
|
|
this := IamThemeData{}
|
|
return &this
|
|
}
|
|
|
|
// NewIamThemeDataWithDefaults instantiates a new IamThemeData 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 NewIamThemeDataWithDefaults() *IamThemeData {
|
|
this := IamThemeData{}
|
|
return &this
|
|
}
|
|
|
|
// GetBorderRadius returns the BorderRadius field value if set, zero value otherwise.
|
|
func (o *IamThemeData) GetBorderRadius() int64 {
|
|
if o == nil || IsNil(o.BorderRadius) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.BorderRadius
|
|
}
|
|
|
|
// GetBorderRadiusOk returns a tuple with the BorderRadius field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamThemeData) GetBorderRadiusOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.BorderRadius) {
|
|
return nil, false
|
|
}
|
|
return o.BorderRadius, true
|
|
}
|
|
|
|
// HasBorderRadius returns a boolean if a field has been set.
|
|
func (o *IamThemeData) HasBorderRadius() bool {
|
|
if o != nil && !IsNil(o.BorderRadius) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBorderRadius gets a reference to the given int64 and assigns it to the BorderRadius field.
|
|
func (o *IamThemeData) SetBorderRadius(v int64) {
|
|
o.BorderRadius = &v
|
|
}
|
|
|
|
// GetColorPrimary returns the ColorPrimary field value if set, zero value otherwise.
|
|
func (o *IamThemeData) GetColorPrimary() string {
|
|
if o == nil || IsNil(o.ColorPrimary) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ColorPrimary
|
|
}
|
|
|
|
// GetColorPrimaryOk returns a tuple with the ColorPrimary field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamThemeData) GetColorPrimaryOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ColorPrimary) {
|
|
return nil, false
|
|
}
|
|
return o.ColorPrimary, true
|
|
}
|
|
|
|
// HasColorPrimary returns a boolean if a field has been set.
|
|
func (o *IamThemeData) HasColorPrimary() bool {
|
|
if o != nil && !IsNil(o.ColorPrimary) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetColorPrimary gets a reference to the given string and assigns it to the ColorPrimary field.
|
|
func (o *IamThemeData) SetColorPrimary(v string) {
|
|
o.ColorPrimary = &v
|
|
}
|
|
|
|
// GetIsCompact returns the IsCompact field value if set, zero value otherwise.
|
|
func (o *IamThemeData) GetIsCompact() bool {
|
|
if o == nil || IsNil(o.IsCompact) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsCompact
|
|
}
|
|
|
|
// GetIsCompactOk returns a tuple with the IsCompact field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamThemeData) GetIsCompactOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsCompact) {
|
|
return nil, false
|
|
}
|
|
return o.IsCompact, true
|
|
}
|
|
|
|
// HasIsCompact returns a boolean if a field has been set.
|
|
func (o *IamThemeData) HasIsCompact() bool {
|
|
if o != nil && !IsNil(o.IsCompact) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsCompact gets a reference to the given bool and assigns it to the IsCompact field.
|
|
func (o *IamThemeData) SetIsCompact(v bool) {
|
|
o.IsCompact = &v
|
|
}
|
|
|
|
// GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
|
|
func (o *IamThemeData) GetIsEnabled() bool {
|
|
if o == nil || IsNil(o.IsEnabled) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsEnabled
|
|
}
|
|
|
|
// GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamThemeData) GetIsEnabledOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsEnabled) {
|
|
return nil, false
|
|
}
|
|
return o.IsEnabled, true
|
|
}
|
|
|
|
// HasIsEnabled returns a boolean if a field has been set.
|
|
func (o *IamThemeData) HasIsEnabled() bool {
|
|
if o != nil && !IsNil(o.IsEnabled) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
|
|
func (o *IamThemeData) SetIsEnabled(v bool) {
|
|
o.IsEnabled = &v
|
|
}
|
|
|
|
// GetThemeType returns the ThemeType field value if set, zero value otherwise.
|
|
func (o *IamThemeData) GetThemeType() string {
|
|
if o == nil || IsNil(o.ThemeType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ThemeType
|
|
}
|
|
|
|
// GetThemeTypeOk returns a tuple with the ThemeType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamThemeData) GetThemeTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ThemeType) {
|
|
return nil, false
|
|
}
|
|
return o.ThemeType, true
|
|
}
|
|
|
|
// HasThemeType returns a boolean if a field has been set.
|
|
func (o *IamThemeData) HasThemeType() bool {
|
|
if o != nil && !IsNil(o.ThemeType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetThemeType gets a reference to the given string and assigns it to the ThemeType field.
|
|
func (o *IamThemeData) SetThemeType(v string) {
|
|
o.ThemeType = &v
|
|
}
|
|
|
|
func (o IamThemeData) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o IamThemeData) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.BorderRadius) {
|
|
toSerialize["borderRadius"] = o.BorderRadius
|
|
}
|
|
if !IsNil(o.ColorPrimary) {
|
|
toSerialize["colorPrimary"] = o.ColorPrimary
|
|
}
|
|
if !IsNil(o.IsCompact) {
|
|
toSerialize["isCompact"] = o.IsCompact
|
|
}
|
|
if !IsNil(o.IsEnabled) {
|
|
toSerialize["isEnabled"] = o.IsEnabled
|
|
}
|
|
if !IsNil(o.ThemeType) {
|
|
toSerialize["themeType"] = o.ThemeType
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *IamThemeData) UnmarshalJSON(data []byte) (err error) {
|
|
varIamThemeData := _IamThemeData{}
|
|
|
|
err = json.Unmarshal(data, &varIamThemeData)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = IamThemeData(varIamThemeData)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "borderRadius")
|
|
delete(additionalProperties, "colorPrimary")
|
|
delete(additionalProperties, "isCompact")
|
|
delete(additionalProperties, "isEnabled")
|
|
delete(additionalProperties, "themeType")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableIamThemeData struct {
|
|
value *IamThemeData
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableIamThemeData) Get() *IamThemeData {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableIamThemeData) Set(val *IamThemeData) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableIamThemeData) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableIamThemeData) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableIamThemeData(val *IamThemeData) *NullableIamThemeData {
|
|
return &NullableIamThemeData{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableIamThemeData) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableIamThemeData) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|