mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
524 lines
14 KiB
Go
524 lines
14 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 FrameworkDocField type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &FrameworkDocField{}
|
|
|
|
// FrameworkDocField struct for FrameworkDocField
|
|
type FrameworkDocField struct {
|
|
Default *string `json:"default,omitempty"`
|
|
FetchFrom *string `json:"fetchFrom,omitempty"`
|
|
Fieldname *string `json:"fieldname,omitempty"`
|
|
Fieldtype *string `json:"fieldtype,omitempty"`
|
|
Hidden *bool `json:"hidden,omitempty"`
|
|
InListView *bool `json:"inListView,omitempty"`
|
|
Label *string `json:"label,omitempty"`
|
|
Options *string `json:"options,omitempty"`
|
|
ReadOnly *bool `json:"readOnly,omitempty"`
|
|
Reqd *bool `json:"reqd,omitempty"`
|
|
Unique *bool `json:"unique,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _FrameworkDocField FrameworkDocField
|
|
|
|
// NewFrameworkDocField instantiates a new FrameworkDocField 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 NewFrameworkDocField() *FrameworkDocField {
|
|
this := FrameworkDocField{}
|
|
return &this
|
|
}
|
|
|
|
// NewFrameworkDocFieldWithDefaults instantiates a new FrameworkDocField 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 NewFrameworkDocFieldWithDefaults() *FrameworkDocField {
|
|
this := FrameworkDocField{}
|
|
return &this
|
|
}
|
|
|
|
// GetDefault returns the Default field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) GetDefault() string {
|
|
if o == nil || IsNil(o.Default) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Default
|
|
}
|
|
|
|
// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkDocField) GetDefaultOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Default) {
|
|
return nil, false
|
|
}
|
|
return o.Default, true
|
|
}
|
|
|
|
// HasDefault returns a boolean if a field has been set.
|
|
func (o *FrameworkDocField) HasDefault() bool {
|
|
if o != nil && !IsNil(o.Default) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDefault gets a reference to the given string and assigns it to the Default field.
|
|
func (o *FrameworkDocField) SetDefault(v string) {
|
|
o.Default = &v
|
|
}
|
|
|
|
// GetFetchFrom returns the FetchFrom field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) GetFetchFrom() string {
|
|
if o == nil || IsNil(o.FetchFrom) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.FetchFrom
|
|
}
|
|
|
|
// GetFetchFromOk returns a tuple with the FetchFrom field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkDocField) GetFetchFromOk() (*string, bool) {
|
|
if o == nil || IsNil(o.FetchFrom) {
|
|
return nil, false
|
|
}
|
|
return o.FetchFrom, true
|
|
}
|
|
|
|
// HasFetchFrom returns a boolean if a field has been set.
|
|
func (o *FrameworkDocField) HasFetchFrom() bool {
|
|
if o != nil && !IsNil(o.FetchFrom) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFetchFrom gets a reference to the given string and assigns it to the FetchFrom field.
|
|
func (o *FrameworkDocField) SetFetchFrom(v string) {
|
|
o.FetchFrom = &v
|
|
}
|
|
|
|
// GetFieldname returns the Fieldname field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) GetFieldname() string {
|
|
if o == nil || IsNil(o.Fieldname) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Fieldname
|
|
}
|
|
|
|
// GetFieldnameOk returns a tuple with the Fieldname field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkDocField) GetFieldnameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Fieldname) {
|
|
return nil, false
|
|
}
|
|
return o.Fieldname, true
|
|
}
|
|
|
|
// HasFieldname returns a boolean if a field has been set.
|
|
func (o *FrameworkDocField) HasFieldname() bool {
|
|
if o != nil && !IsNil(o.Fieldname) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFieldname gets a reference to the given string and assigns it to the Fieldname field.
|
|
func (o *FrameworkDocField) SetFieldname(v string) {
|
|
o.Fieldname = &v
|
|
}
|
|
|
|
// GetFieldtype returns the Fieldtype field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) GetFieldtype() string {
|
|
if o == nil || IsNil(o.Fieldtype) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Fieldtype
|
|
}
|
|
|
|
// GetFieldtypeOk returns a tuple with the Fieldtype field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkDocField) GetFieldtypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Fieldtype) {
|
|
return nil, false
|
|
}
|
|
return o.Fieldtype, true
|
|
}
|
|
|
|
// HasFieldtype returns a boolean if a field has been set.
|
|
func (o *FrameworkDocField) HasFieldtype() bool {
|
|
if o != nil && !IsNil(o.Fieldtype) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFieldtype gets a reference to the given string and assigns it to the Fieldtype field.
|
|
func (o *FrameworkDocField) SetFieldtype(v string) {
|
|
o.Fieldtype = &v
|
|
}
|
|
|
|
// GetHidden returns the Hidden field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) GetHidden() bool {
|
|
if o == nil || IsNil(o.Hidden) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Hidden
|
|
}
|
|
|
|
// GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkDocField) GetHiddenOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Hidden) {
|
|
return nil, false
|
|
}
|
|
return o.Hidden, true
|
|
}
|
|
|
|
// HasHidden returns a boolean if a field has been set.
|
|
func (o *FrameworkDocField) HasHidden() bool {
|
|
if o != nil && !IsNil(o.Hidden) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetHidden gets a reference to the given bool and assigns it to the Hidden field.
|
|
func (o *FrameworkDocField) SetHidden(v bool) {
|
|
o.Hidden = &v
|
|
}
|
|
|
|
// GetInListView returns the InListView field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) GetInListView() bool {
|
|
if o == nil || IsNil(o.InListView) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.InListView
|
|
}
|
|
|
|
// GetInListViewOk returns a tuple with the InListView field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkDocField) GetInListViewOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.InListView) {
|
|
return nil, false
|
|
}
|
|
return o.InListView, true
|
|
}
|
|
|
|
// HasInListView returns a boolean if a field has been set.
|
|
func (o *FrameworkDocField) HasInListView() bool {
|
|
if o != nil && !IsNil(o.InListView) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetInListView gets a reference to the given bool and assigns it to the InListView field.
|
|
func (o *FrameworkDocField) SetInListView(v bool) {
|
|
o.InListView = &v
|
|
}
|
|
|
|
// GetLabel returns the Label field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) 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 *FrameworkDocField) 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 *FrameworkDocField) 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 *FrameworkDocField) SetLabel(v string) {
|
|
o.Label = &v
|
|
}
|
|
|
|
// GetOptions returns the Options field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) GetOptions() string {
|
|
if o == nil || IsNil(o.Options) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Options
|
|
}
|
|
|
|
// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkDocField) GetOptionsOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Options) {
|
|
return nil, false
|
|
}
|
|
return o.Options, true
|
|
}
|
|
|
|
// HasOptions returns a boolean if a field has been set.
|
|
func (o *FrameworkDocField) HasOptions() bool {
|
|
if o != nil && !IsNil(o.Options) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOptions gets a reference to the given string and assigns it to the Options field.
|
|
func (o *FrameworkDocField) SetOptions(v string) {
|
|
o.Options = &v
|
|
}
|
|
|
|
// GetReadOnly returns the ReadOnly field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) GetReadOnly() bool {
|
|
if o == nil || IsNil(o.ReadOnly) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.ReadOnly
|
|
}
|
|
|
|
// GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkDocField) GetReadOnlyOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.ReadOnly) {
|
|
return nil, false
|
|
}
|
|
return o.ReadOnly, true
|
|
}
|
|
|
|
// HasReadOnly returns a boolean if a field has been set.
|
|
func (o *FrameworkDocField) HasReadOnly() bool {
|
|
if o != nil && !IsNil(o.ReadOnly) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReadOnly gets a reference to the given bool and assigns it to the ReadOnly field.
|
|
func (o *FrameworkDocField) SetReadOnly(v bool) {
|
|
o.ReadOnly = &v
|
|
}
|
|
|
|
// GetReqd returns the Reqd field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) GetReqd() bool {
|
|
if o == nil || IsNil(o.Reqd) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Reqd
|
|
}
|
|
|
|
// GetReqdOk returns a tuple with the Reqd field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkDocField) GetReqdOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Reqd) {
|
|
return nil, false
|
|
}
|
|
return o.Reqd, true
|
|
}
|
|
|
|
// HasReqd returns a boolean if a field has been set.
|
|
func (o *FrameworkDocField) HasReqd() bool {
|
|
if o != nil && !IsNil(o.Reqd) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReqd gets a reference to the given bool and assigns it to the Reqd field.
|
|
func (o *FrameworkDocField) SetReqd(v bool) {
|
|
o.Reqd = &v
|
|
}
|
|
|
|
// GetUnique returns the Unique field value if set, zero value otherwise.
|
|
func (o *FrameworkDocField) GetUnique() bool {
|
|
if o == nil || IsNil(o.Unique) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Unique
|
|
}
|
|
|
|
// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkDocField) GetUniqueOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Unique) {
|
|
return nil, false
|
|
}
|
|
return o.Unique, true
|
|
}
|
|
|
|
// HasUnique returns a boolean if a field has been set.
|
|
func (o *FrameworkDocField) HasUnique() bool {
|
|
if o != nil && !IsNil(o.Unique) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUnique gets a reference to the given bool and assigns it to the Unique field.
|
|
func (o *FrameworkDocField) SetUnique(v bool) {
|
|
o.Unique = &v
|
|
}
|
|
|
|
func (o FrameworkDocField) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o FrameworkDocField) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Default) {
|
|
toSerialize["default"] = o.Default
|
|
}
|
|
if !IsNil(o.FetchFrom) {
|
|
toSerialize["fetchFrom"] = o.FetchFrom
|
|
}
|
|
if !IsNil(o.Fieldname) {
|
|
toSerialize["fieldname"] = o.Fieldname
|
|
}
|
|
if !IsNil(o.Fieldtype) {
|
|
toSerialize["fieldtype"] = o.Fieldtype
|
|
}
|
|
if !IsNil(o.Hidden) {
|
|
toSerialize["hidden"] = o.Hidden
|
|
}
|
|
if !IsNil(o.InListView) {
|
|
toSerialize["inListView"] = o.InListView
|
|
}
|
|
if !IsNil(o.Label) {
|
|
toSerialize["label"] = o.Label
|
|
}
|
|
if !IsNil(o.Options) {
|
|
toSerialize["options"] = o.Options
|
|
}
|
|
if !IsNil(o.ReadOnly) {
|
|
toSerialize["readOnly"] = o.ReadOnly
|
|
}
|
|
if !IsNil(o.Reqd) {
|
|
toSerialize["reqd"] = o.Reqd
|
|
}
|
|
if !IsNil(o.Unique) {
|
|
toSerialize["unique"] = o.Unique
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *FrameworkDocField) UnmarshalJSON(data []byte) (err error) {
|
|
varFrameworkDocField := _FrameworkDocField{}
|
|
|
|
err = json.Unmarshal(data, &varFrameworkDocField)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = FrameworkDocField(varFrameworkDocField)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "default")
|
|
delete(additionalProperties, "fetchFrom")
|
|
delete(additionalProperties, "fieldname")
|
|
delete(additionalProperties, "fieldtype")
|
|
delete(additionalProperties, "hidden")
|
|
delete(additionalProperties, "inListView")
|
|
delete(additionalProperties, "label")
|
|
delete(additionalProperties, "options")
|
|
delete(additionalProperties, "readOnly")
|
|
delete(additionalProperties, "reqd")
|
|
delete(additionalProperties, "unique")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableFrameworkDocField struct {
|
|
value *FrameworkDocField
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableFrameworkDocField) Get() *FrameworkDocField {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableFrameworkDocField) Set(val *FrameworkDocField) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableFrameworkDocField) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableFrameworkDocField) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableFrameworkDocField(val *FrameworkDocField) *NullableFrameworkDocField {
|
|
return &NullableFrameworkDocField{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableFrameworkDocField) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableFrameworkDocField) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|