更新文档内容
This commit is contained in:
160
model_schema_loading_action.go
Normal file
160
model_schema_loading_action.go
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
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 SchemaLoadingAction type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaLoadingAction{}
|
||||
|
||||
// SchemaLoadingAction struct for SchemaLoadingAction
|
||||
type SchemaLoadingAction struct {
|
||||
State *string `json:"state,omitempty"`
|
||||
Text *string `json:"text,omitempty"`
|
||||
}
|
||||
|
||||
// NewSchemaLoadingAction instantiates a new SchemaLoadingAction 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 NewSchemaLoadingAction() *SchemaLoadingAction {
|
||||
this := SchemaLoadingAction{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaLoadingActionWithDefaults instantiates a new SchemaLoadingAction 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 NewSchemaLoadingActionWithDefaults() *SchemaLoadingAction {
|
||||
this := SchemaLoadingAction{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetState returns the State field value if set, zero value otherwise.
|
||||
func (o *SchemaLoadingAction) GetState() string {
|
||||
if o == nil || IsNil(o.State) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.State
|
||||
}
|
||||
|
||||
// GetStateOk returns a tuple with the State field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaLoadingAction) GetStateOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.State) {
|
||||
return nil, false
|
||||
}
|
||||
return o.State, true
|
||||
}
|
||||
|
||||
// HasState returns a boolean if a field has been set.
|
||||
func (o *SchemaLoadingAction) HasState() bool {
|
||||
if o != nil && !IsNil(o.State) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetState gets a reference to the given string and assigns it to the State field.
|
||||
func (o *SchemaLoadingAction) SetState(v string) {
|
||||
o.State = &v
|
||||
}
|
||||
|
||||
// GetText returns the Text field value if set, zero value otherwise.
|
||||
func (o *SchemaLoadingAction) 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 *SchemaLoadingAction) 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 *SchemaLoadingAction) 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 *SchemaLoadingAction) SetText(v string) {
|
||||
o.Text = &v
|
||||
}
|
||||
|
||||
func (o SchemaLoadingAction) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaLoadingAction) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.State) {
|
||||
toSerialize["state"] = o.State
|
||||
}
|
||||
if !IsNil(o.Text) {
|
||||
toSerialize["text"] = o.Text
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaLoadingAction struct {
|
||||
value *SchemaLoadingAction
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaLoadingAction) Get() *SchemaLoadingAction {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaLoadingAction) Set(val *SchemaLoadingAction) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaLoadingAction) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaLoadingAction) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaLoadingAction(val *SchemaLoadingAction) *NullableSchemaLoadingAction {
|
||||
return &NullableSchemaLoadingAction{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaLoadingAction) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaLoadingAction) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user