更新文档内容
This commit is contained in:
340
model_schema_config_field_ui_options.go
Normal file
340
model_schema_config_field_ui_options.go
Normal file
@@ -0,0 +1,340 @@
|
||||
/*
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
|
||||
API version: 1.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the SchemaConfigFieldUIOptions type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaConfigFieldUIOptions{}
|
||||
|
||||
// SchemaConfigFieldUIOptions struct for SchemaConfigFieldUIOptions
|
||||
type SchemaConfigFieldUIOptions struct {
|
||||
Action *SchemaUIOptionAction `json:"action,omitempty"`
|
||||
InputType *string `json:"input_type,omitempty"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Placeholder *string `json:"placeholder,omitempty"`
|
||||
Rows *string `json:"rows,omitempty"`
|
||||
Text *string `json:"text,omitempty"`
|
||||
Variant *string `json:"variant,omitempty"`
|
||||
}
|
||||
|
||||
// NewSchemaConfigFieldUIOptions instantiates a new SchemaConfigFieldUIOptions 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 NewSchemaConfigFieldUIOptions() *SchemaConfigFieldUIOptions {
|
||||
this := SchemaConfigFieldUIOptions{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaConfigFieldUIOptionsWithDefaults instantiates a new SchemaConfigFieldUIOptions 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 NewSchemaConfigFieldUIOptionsWithDefaults() *SchemaConfigFieldUIOptions {
|
||||
this := SchemaConfigFieldUIOptions{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAction returns the Action field value if set, zero value otherwise.
|
||||
func (o *SchemaConfigFieldUIOptions) GetAction() SchemaUIOptionAction {
|
||||
if o == nil || IsNil(o.Action) {
|
||||
var ret SchemaUIOptionAction
|
||||
return ret
|
||||
}
|
||||
return *o.Action
|
||||
}
|
||||
|
||||
// GetActionOk returns a tuple with the Action field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) GetActionOk() (*SchemaUIOptionAction, bool) {
|
||||
if o == nil || IsNil(o.Action) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Action, true
|
||||
}
|
||||
|
||||
// HasAction returns a boolean if a field has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) HasAction() bool {
|
||||
if o != nil && !IsNil(o.Action) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAction gets a reference to the given SchemaUIOptionAction and assigns it to the Action field.
|
||||
func (o *SchemaConfigFieldUIOptions) SetAction(v SchemaUIOptionAction) {
|
||||
o.Action = &v
|
||||
}
|
||||
|
||||
// GetInputType returns the InputType field value if set, zero value otherwise.
|
||||
func (o *SchemaConfigFieldUIOptions) GetInputType() string {
|
||||
if o == nil || IsNil(o.InputType) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.InputType
|
||||
}
|
||||
|
||||
// GetInputTypeOk returns a tuple with the InputType field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) GetInputTypeOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.InputType) {
|
||||
return nil, false
|
||||
}
|
||||
return o.InputType, true
|
||||
}
|
||||
|
||||
// HasInputType returns a boolean if a field has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) HasInputType() bool {
|
||||
if o != nil && !IsNil(o.InputType) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetInputType gets a reference to the given string and assigns it to the InputType field.
|
||||
func (o *SchemaConfigFieldUIOptions) SetInputType(v string) {
|
||||
o.InputType = &v
|
||||
}
|
||||
|
||||
// GetLabel returns the Label field value if set, zero value otherwise.
|
||||
func (o *SchemaConfigFieldUIOptions) GetLabel() string {
|
||||
if o == nil || IsNil(o.Label) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Label
|
||||
}
|
||||
|
||||
// GetLabelOk returns a tuple with the Label field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) GetLabelOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Label) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Label, true
|
||||
}
|
||||
|
||||
// HasLabel returns a boolean if a field has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) HasLabel() bool {
|
||||
if o != nil && !IsNil(o.Label) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLabel gets a reference to the given string and assigns it to the Label field.
|
||||
func (o *SchemaConfigFieldUIOptions) SetLabel(v string) {
|
||||
o.Label = &v
|
||||
}
|
||||
|
||||
// GetPlaceholder returns the Placeholder field value if set, zero value otherwise.
|
||||
func (o *SchemaConfigFieldUIOptions) GetPlaceholder() string {
|
||||
if o == nil || IsNil(o.Placeholder) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Placeholder
|
||||
}
|
||||
|
||||
// GetPlaceholderOk returns a tuple with the Placeholder field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) GetPlaceholderOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Placeholder) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Placeholder, true
|
||||
}
|
||||
|
||||
// HasPlaceholder returns a boolean if a field has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) HasPlaceholder() bool {
|
||||
if o != nil && !IsNil(o.Placeholder) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPlaceholder gets a reference to the given string and assigns it to the Placeholder field.
|
||||
func (o *SchemaConfigFieldUIOptions) SetPlaceholder(v string) {
|
||||
o.Placeholder = &v
|
||||
}
|
||||
|
||||
// GetRows returns the Rows field value if set, zero value otherwise.
|
||||
func (o *SchemaConfigFieldUIOptions) GetRows() string {
|
||||
if o == nil || IsNil(o.Rows) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Rows
|
||||
}
|
||||
|
||||
// GetRowsOk returns a tuple with the Rows field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) GetRowsOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Rows) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Rows, true
|
||||
}
|
||||
|
||||
// HasRows returns a boolean if a field has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) HasRows() bool {
|
||||
if o != nil && !IsNil(o.Rows) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRows gets a reference to the given string and assigns it to the Rows field.
|
||||
func (o *SchemaConfigFieldUIOptions) SetRows(v string) {
|
||||
o.Rows = &v
|
||||
}
|
||||
|
||||
// GetText returns the Text field value if set, zero value otherwise.
|
||||
func (o *SchemaConfigFieldUIOptions) GetText() string {
|
||||
if o == nil || IsNil(o.Text) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Text
|
||||
}
|
||||
|
||||
// GetTextOk returns a tuple with the Text field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) GetTextOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Text) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Text, true
|
||||
}
|
||||
|
||||
// HasText returns a boolean if a field has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) HasText() bool {
|
||||
if o != nil && !IsNil(o.Text) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetText gets a reference to the given string and assigns it to the Text field.
|
||||
func (o *SchemaConfigFieldUIOptions) SetText(v string) {
|
||||
o.Text = &v
|
||||
}
|
||||
|
||||
// GetVariant returns the Variant field value if set, zero value otherwise.
|
||||
func (o *SchemaConfigFieldUIOptions) GetVariant() string {
|
||||
if o == nil || IsNil(o.Variant) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Variant
|
||||
}
|
||||
|
||||
// GetVariantOk returns a tuple with the Variant field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) GetVariantOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Variant) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Variant, true
|
||||
}
|
||||
|
||||
// HasVariant returns a boolean if a field has been set.
|
||||
func (o *SchemaConfigFieldUIOptions) HasVariant() bool {
|
||||
if o != nil && !IsNil(o.Variant) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetVariant gets a reference to the given string and assigns it to the Variant field.
|
||||
func (o *SchemaConfigFieldUIOptions) SetVariant(v string) {
|
||||
o.Variant = &v
|
||||
}
|
||||
|
||||
func (o SchemaConfigFieldUIOptions) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaConfigFieldUIOptions) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Action) {
|
||||
toSerialize["action"] = o.Action
|
||||
}
|
||||
if !IsNil(o.InputType) {
|
||||
toSerialize["input_type"] = o.InputType
|
||||
}
|
||||
if !IsNil(o.Label) {
|
||||
toSerialize["label"] = o.Label
|
||||
}
|
||||
if !IsNil(o.Placeholder) {
|
||||
toSerialize["placeholder"] = o.Placeholder
|
||||
}
|
||||
if !IsNil(o.Rows) {
|
||||
toSerialize["rows"] = o.Rows
|
||||
}
|
||||
if !IsNil(o.Text) {
|
||||
toSerialize["text"] = o.Text
|
||||
}
|
||||
if !IsNil(o.Variant) {
|
||||
toSerialize["variant"] = o.Variant
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaConfigFieldUIOptions struct {
|
||||
value *SchemaConfigFieldUIOptions
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaConfigFieldUIOptions) Get() *SchemaConfigFieldUIOptions {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaConfigFieldUIOptions) Set(val *SchemaConfigFieldUIOptions) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaConfigFieldUIOptions) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaConfigFieldUIOptions) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaConfigFieldUIOptions(val *SchemaConfigFieldUIOptions) *NullableSchemaConfigFieldUIOptions {
|
||||
return &NullableSchemaConfigFieldUIOptions{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaConfigFieldUIOptions) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaConfigFieldUIOptions) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user