mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
266 lines
6.9 KiB
Go
266 lines
6.9 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 FrameworkInstall type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &FrameworkInstall{}
|
|
|
|
// FrameworkInstall struct for FrameworkInstall
|
|
type FrameworkInstall struct {
|
|
Created []string `json:"created,omitempty"`
|
|
Existing []string `json:"existing,omitempty"`
|
|
// Grown names the existing DocTypes that gained the fields the module now declares and the org's stored definition lacked.
|
|
Grown []string `json:"grown,omitempty"`
|
|
Module *string `json:"module,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _FrameworkInstall FrameworkInstall
|
|
|
|
// NewFrameworkInstall instantiates a new FrameworkInstall 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 NewFrameworkInstall() *FrameworkInstall {
|
|
this := FrameworkInstall{}
|
|
return &this
|
|
}
|
|
|
|
// NewFrameworkInstallWithDefaults instantiates a new FrameworkInstall 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 NewFrameworkInstallWithDefaults() *FrameworkInstall {
|
|
this := FrameworkInstall{}
|
|
return &this
|
|
}
|
|
|
|
// GetCreated returns the Created field value if set, zero value otherwise.
|
|
func (o *FrameworkInstall) GetCreated() []string {
|
|
if o == nil || IsNil(o.Created) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.Created
|
|
}
|
|
|
|
// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkInstall) GetCreatedOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.Created) {
|
|
return nil, false
|
|
}
|
|
return o.Created, true
|
|
}
|
|
|
|
// HasCreated returns a boolean if a field has been set.
|
|
func (o *FrameworkInstall) HasCreated() bool {
|
|
if o != nil && !IsNil(o.Created) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreated gets a reference to the given []string and assigns it to the Created field.
|
|
func (o *FrameworkInstall) SetCreated(v []string) {
|
|
o.Created = v
|
|
}
|
|
|
|
// GetExisting returns the Existing field value if set, zero value otherwise.
|
|
func (o *FrameworkInstall) GetExisting() []string {
|
|
if o == nil || IsNil(o.Existing) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.Existing
|
|
}
|
|
|
|
// GetExistingOk returns a tuple with the Existing field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkInstall) GetExistingOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.Existing) {
|
|
return nil, false
|
|
}
|
|
return o.Existing, true
|
|
}
|
|
|
|
// HasExisting returns a boolean if a field has been set.
|
|
func (o *FrameworkInstall) HasExisting() bool {
|
|
if o != nil && !IsNil(o.Existing) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExisting gets a reference to the given []string and assigns it to the Existing field.
|
|
func (o *FrameworkInstall) SetExisting(v []string) {
|
|
o.Existing = v
|
|
}
|
|
|
|
// GetGrown returns the Grown field value if set, zero value otherwise.
|
|
func (o *FrameworkInstall) GetGrown() []string {
|
|
if o == nil || IsNil(o.Grown) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.Grown
|
|
}
|
|
|
|
// GetGrownOk returns a tuple with the Grown field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkInstall) GetGrownOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.Grown) {
|
|
return nil, false
|
|
}
|
|
return o.Grown, true
|
|
}
|
|
|
|
// HasGrown returns a boolean if a field has been set.
|
|
func (o *FrameworkInstall) HasGrown() bool {
|
|
if o != nil && !IsNil(o.Grown) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGrown gets a reference to the given []string and assigns it to the Grown field.
|
|
func (o *FrameworkInstall) SetGrown(v []string) {
|
|
o.Grown = v
|
|
}
|
|
|
|
// GetModule returns the Module field value if set, zero value otherwise.
|
|
func (o *FrameworkInstall) GetModule() string {
|
|
if o == nil || IsNil(o.Module) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Module
|
|
}
|
|
|
|
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *FrameworkInstall) GetModuleOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Module) {
|
|
return nil, false
|
|
}
|
|
return o.Module, true
|
|
}
|
|
|
|
// HasModule returns a boolean if a field has been set.
|
|
func (o *FrameworkInstall) HasModule() bool {
|
|
if o != nil && !IsNil(o.Module) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetModule gets a reference to the given string and assigns it to the Module field.
|
|
func (o *FrameworkInstall) SetModule(v string) {
|
|
o.Module = &v
|
|
}
|
|
|
|
func (o FrameworkInstall) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o FrameworkInstall) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Created) {
|
|
toSerialize["created"] = o.Created
|
|
}
|
|
if !IsNil(o.Existing) {
|
|
toSerialize["existing"] = o.Existing
|
|
}
|
|
if !IsNil(o.Grown) {
|
|
toSerialize["grown"] = o.Grown
|
|
}
|
|
if !IsNil(o.Module) {
|
|
toSerialize["module"] = o.Module
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *FrameworkInstall) UnmarshalJSON(data []byte) (err error) {
|
|
varFrameworkInstall := _FrameworkInstall{}
|
|
|
|
err = json.Unmarshal(data, &varFrameworkInstall)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = FrameworkInstall(varFrameworkInstall)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "created")
|
|
delete(additionalProperties, "existing")
|
|
delete(additionalProperties, "grown")
|
|
delete(additionalProperties, "module")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableFrameworkInstall struct {
|
|
value *FrameworkInstall
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableFrameworkInstall) Get() *FrameworkInstall {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableFrameworkInstall) Set(val *FrameworkInstall) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableFrameworkInstall) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableFrameworkInstall) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableFrameworkInstall(val *FrameworkInstall) *NullableFrameworkInstall {
|
|
return &NullableFrameworkInstall{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableFrameworkInstall) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableFrameworkInstall) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|