152 lines
4.6 KiB
Go
152 lines
4.6 KiB
Go
/*
|
|
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 answer_sdk
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the SchemaUpdatePluginConfigReq type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaUpdatePluginConfigReq{}
|
|
|
|
// SchemaUpdatePluginConfigReq struct for SchemaUpdatePluginConfigReq
|
|
type SchemaUpdatePluginConfigReq struct {
|
|
ConfigFields map[string]map[string]interface{} `json:"config_fields,omitempty"`
|
|
PluginSlugName string `json:"plugin_slug_name"`
|
|
}
|
|
|
|
// NewSchemaUpdatePluginConfigReq instantiates a new SchemaUpdatePluginConfigReq 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 NewSchemaUpdatePluginConfigReq(pluginSlugName string) *SchemaUpdatePluginConfigReq {
|
|
this := SchemaUpdatePluginConfigReq{}
|
|
this.PluginSlugName = pluginSlugName
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaUpdatePluginConfigReqWithDefaults instantiates a new SchemaUpdatePluginConfigReq 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 NewSchemaUpdatePluginConfigReqWithDefaults() *SchemaUpdatePluginConfigReq {
|
|
this := SchemaUpdatePluginConfigReq{}
|
|
return &this
|
|
}
|
|
|
|
// GetConfigFields returns the ConfigFields field value if set, zero value otherwise.
|
|
func (o *SchemaUpdatePluginConfigReq) GetConfigFields() map[string]map[string]interface{} {
|
|
if o == nil || IsNil(o.ConfigFields) {
|
|
var ret map[string]map[string]interface{}
|
|
return ret
|
|
}
|
|
return o.ConfigFields
|
|
}
|
|
|
|
// GetConfigFieldsOk returns a tuple with the ConfigFields field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaUpdatePluginConfigReq) GetConfigFieldsOk() (map[string]map[string]interface{}, bool) {
|
|
if o == nil || IsNil(o.ConfigFields) {
|
|
return map[string]map[string]interface{}{}, false
|
|
}
|
|
return o.ConfigFields, true
|
|
}
|
|
|
|
// HasConfigFields returns a boolean if a field has been set.
|
|
func (o *SchemaUpdatePluginConfigReq) HasConfigFields() bool {
|
|
if o != nil && !IsNil(o.ConfigFields) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetConfigFields gets a reference to the given map[string]map[string]interface{} and assigns it to the ConfigFields field.
|
|
func (o *SchemaUpdatePluginConfigReq) SetConfigFields(v map[string]map[string]interface{}) {
|
|
o.ConfigFields = v
|
|
}
|
|
|
|
// GetPluginSlugName returns the PluginSlugName field value
|
|
func (o *SchemaUpdatePluginConfigReq) GetPluginSlugName() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.PluginSlugName
|
|
}
|
|
|
|
// GetPluginSlugNameOk returns a tuple with the PluginSlugName field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaUpdatePluginConfigReq) GetPluginSlugNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.PluginSlugName, true
|
|
}
|
|
|
|
// SetPluginSlugName sets field value
|
|
func (o *SchemaUpdatePluginConfigReq) SetPluginSlugName(v string) {
|
|
o.PluginSlugName = v
|
|
}
|
|
|
|
func (o SchemaUpdatePluginConfigReq) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaUpdatePluginConfigReq) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.ConfigFields) {
|
|
toSerialize["config_fields"] = o.ConfigFields
|
|
}
|
|
toSerialize["plugin_slug_name"] = o.PluginSlugName
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaUpdatePluginConfigReq struct {
|
|
value *SchemaUpdatePluginConfigReq
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaUpdatePluginConfigReq) Get() *SchemaUpdatePluginConfigReq {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaUpdatePluginConfigReq) Set(val *SchemaUpdatePluginConfigReq) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaUpdatePluginConfigReq) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaUpdatePluginConfigReq) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaUpdatePluginConfigReq(val *SchemaUpdatePluginConfigReq) *NullableSchemaUpdatePluginConfigReq {
|
|
return &NullableSchemaUpdatePluginConfigReq{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaUpdatePluginConfigReq) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaUpdatePluginConfigReq) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|