341 lines
9.1 KiB
Go
341 lines
9.1 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 SchemaGetPluginListResp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaGetPluginListResp{}
|
|
|
|
// SchemaGetPluginListResp struct for SchemaGetPluginListResp
|
|
type SchemaGetPluginListResp struct {
|
|
Description *string `json:"description,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
HaveConfig *bool `json:"have_config,omitempty"`
|
|
Link *string `json:"link,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
SlugName *string `json:"slug_name,omitempty"`
|
|
Version *string `json:"version,omitempty"`
|
|
}
|
|
|
|
// NewSchemaGetPluginListResp instantiates a new SchemaGetPluginListResp 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 NewSchemaGetPluginListResp() *SchemaGetPluginListResp {
|
|
this := SchemaGetPluginListResp{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaGetPluginListRespWithDefaults instantiates a new SchemaGetPluginListResp 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 NewSchemaGetPluginListRespWithDefaults() *SchemaGetPluginListResp {
|
|
this := SchemaGetPluginListResp{}
|
|
return &this
|
|
}
|
|
|
|
// GetDescription returns the Description field value if set, zero value otherwise.
|
|
func (o *SchemaGetPluginListResp) GetDescription() string {
|
|
if o == nil || IsNil(o.Description) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Description
|
|
}
|
|
|
|
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetPluginListResp) GetDescriptionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Description) {
|
|
return nil, false
|
|
}
|
|
return o.Description, true
|
|
}
|
|
|
|
// HasDescription returns a boolean if a field has been set.
|
|
func (o *SchemaGetPluginListResp) HasDescription() bool {
|
|
if o != nil && !IsNil(o.Description) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
|
func (o *SchemaGetPluginListResp) SetDescription(v string) {
|
|
o.Description = &v
|
|
}
|
|
|
|
// GetEnabled returns the Enabled field value if set, zero value otherwise.
|
|
func (o *SchemaGetPluginListResp) GetEnabled() bool {
|
|
if o == nil || IsNil(o.Enabled) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Enabled
|
|
}
|
|
|
|
// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetPluginListResp) GetEnabledOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Enabled) {
|
|
return nil, false
|
|
}
|
|
return o.Enabled, true
|
|
}
|
|
|
|
// HasEnabled returns a boolean if a field has been set.
|
|
func (o *SchemaGetPluginListResp) HasEnabled() bool {
|
|
if o != nil && !IsNil(o.Enabled) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
|
|
func (o *SchemaGetPluginListResp) SetEnabled(v bool) {
|
|
o.Enabled = &v
|
|
}
|
|
|
|
// GetHaveConfig returns the HaveConfig field value if set, zero value otherwise.
|
|
func (o *SchemaGetPluginListResp) GetHaveConfig() bool {
|
|
if o == nil || IsNil(o.HaveConfig) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.HaveConfig
|
|
}
|
|
|
|
// GetHaveConfigOk returns a tuple with the HaveConfig field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetPluginListResp) GetHaveConfigOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.HaveConfig) {
|
|
return nil, false
|
|
}
|
|
return o.HaveConfig, true
|
|
}
|
|
|
|
// HasHaveConfig returns a boolean if a field has been set.
|
|
func (o *SchemaGetPluginListResp) HasHaveConfig() bool {
|
|
if o != nil && !IsNil(o.HaveConfig) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetHaveConfig gets a reference to the given bool and assigns it to the HaveConfig field.
|
|
func (o *SchemaGetPluginListResp) SetHaveConfig(v bool) {
|
|
o.HaveConfig = &v
|
|
}
|
|
|
|
// GetLink returns the Link field value if set, zero value otherwise.
|
|
func (o *SchemaGetPluginListResp) GetLink() string {
|
|
if o == nil || IsNil(o.Link) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Link
|
|
}
|
|
|
|
// GetLinkOk returns a tuple with the Link field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetPluginListResp) GetLinkOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Link) {
|
|
return nil, false
|
|
}
|
|
return o.Link, true
|
|
}
|
|
|
|
// HasLink returns a boolean if a field has been set.
|
|
func (o *SchemaGetPluginListResp) HasLink() bool {
|
|
if o != nil && !IsNil(o.Link) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLink gets a reference to the given string and assigns it to the Link field.
|
|
func (o *SchemaGetPluginListResp) SetLink(v string) {
|
|
o.Link = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *SchemaGetPluginListResp) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetPluginListResp) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *SchemaGetPluginListResp) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *SchemaGetPluginListResp) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetSlugName returns the SlugName field value if set, zero value otherwise.
|
|
func (o *SchemaGetPluginListResp) GetSlugName() string {
|
|
if o == nil || IsNil(o.SlugName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SlugName
|
|
}
|
|
|
|
// GetSlugNameOk returns a tuple with the SlugName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetPluginListResp) GetSlugNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SlugName) {
|
|
return nil, false
|
|
}
|
|
return o.SlugName, true
|
|
}
|
|
|
|
// HasSlugName returns a boolean if a field has been set.
|
|
func (o *SchemaGetPluginListResp) HasSlugName() bool {
|
|
if o != nil && !IsNil(o.SlugName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSlugName gets a reference to the given string and assigns it to the SlugName field.
|
|
func (o *SchemaGetPluginListResp) SetSlugName(v string) {
|
|
o.SlugName = &v
|
|
}
|
|
|
|
// GetVersion returns the Version field value if set, zero value otherwise.
|
|
func (o *SchemaGetPluginListResp) GetVersion() string {
|
|
if o == nil || IsNil(o.Version) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Version
|
|
}
|
|
|
|
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetPluginListResp) GetVersionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Version) {
|
|
return nil, false
|
|
}
|
|
return o.Version, true
|
|
}
|
|
|
|
// HasVersion returns a boolean if a field has been set.
|
|
func (o *SchemaGetPluginListResp) HasVersion() bool {
|
|
if o != nil && !IsNil(o.Version) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVersion gets a reference to the given string and assigns it to the Version field.
|
|
func (o *SchemaGetPluginListResp) SetVersion(v string) {
|
|
o.Version = &v
|
|
}
|
|
|
|
func (o SchemaGetPluginListResp) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaGetPluginListResp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Description) {
|
|
toSerialize["description"] = o.Description
|
|
}
|
|
if !IsNil(o.Enabled) {
|
|
toSerialize["enabled"] = o.Enabled
|
|
}
|
|
if !IsNil(o.HaveConfig) {
|
|
toSerialize["have_config"] = o.HaveConfig
|
|
}
|
|
if !IsNil(o.Link) {
|
|
toSerialize["link"] = o.Link
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.SlugName) {
|
|
toSerialize["slug_name"] = o.SlugName
|
|
}
|
|
if !IsNil(o.Version) {
|
|
toSerialize["version"] = o.Version
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaGetPluginListResp struct {
|
|
value *SchemaGetPluginListResp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaGetPluginListResp) Get() *SchemaGetPluginListResp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaGetPluginListResp) Set(val *SchemaGetPluginListResp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaGetPluginListResp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaGetPluginListResp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaGetPluginListResp(val *SchemaGetPluginListResp) *NullableSchemaGetPluginListResp {
|
|
return &NullableSchemaGetPluginListResp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaGetPluginListResp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaGetPluginListResp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|