mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
635 lines
16 KiB
Go
635 lines
16 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 App type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &App{}
|
|
|
|
// App struct for App
|
|
type App struct {
|
|
BasicConfigOptions []ApplicationConfigOption `json:"basicConfigOptions,omitempty"`
|
|
CreatedTime *string `json:"createdTime,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
Details *ApplicationView `json:"details,omitempty"`
|
|
DisplayName *string `json:"displayName,omitempty"`
|
|
Manifest *string `json:"manifest,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Namespace *string `json:"namespace,omitempty"`
|
|
Owner *string `json:"owner,omitempty"`
|
|
Parameters *string `json:"parameters,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
Template *string `json:"template,omitempty"`
|
|
UpdatedTime *string `json:"updatedTime,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _App App
|
|
|
|
// NewApp instantiates a new App 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 NewApp() *App {
|
|
this := App{}
|
|
return &this
|
|
}
|
|
|
|
// NewAppWithDefaults instantiates a new App 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 NewAppWithDefaults() *App {
|
|
this := App{}
|
|
return &this
|
|
}
|
|
|
|
// GetBasicConfigOptions returns the BasicConfigOptions field value if set, zero value otherwise.
|
|
func (o *App) GetBasicConfigOptions() []ApplicationConfigOption {
|
|
if o == nil || IsNil(o.BasicConfigOptions) {
|
|
var ret []ApplicationConfigOption
|
|
return ret
|
|
}
|
|
return o.BasicConfigOptions
|
|
}
|
|
|
|
// GetBasicConfigOptionsOk returns a tuple with the BasicConfigOptions field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetBasicConfigOptionsOk() ([]ApplicationConfigOption, bool) {
|
|
if o == nil || IsNil(o.BasicConfigOptions) {
|
|
return nil, false
|
|
}
|
|
return o.BasicConfigOptions, true
|
|
}
|
|
|
|
// HasBasicConfigOptions returns a boolean if a field has been set.
|
|
func (o *App) HasBasicConfigOptions() bool {
|
|
if o != nil && !IsNil(o.BasicConfigOptions) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBasicConfigOptions gets a reference to the given []ApplicationConfigOption and assigns it to the BasicConfigOptions field.
|
|
func (o *App) SetBasicConfigOptions(v []ApplicationConfigOption) {
|
|
o.BasicConfigOptions = v
|
|
}
|
|
|
|
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
|
|
func (o *App) GetCreatedTime() string {
|
|
if o == nil || IsNil(o.CreatedTime) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CreatedTime
|
|
}
|
|
|
|
// GetCreatedTimeOk returns a tuple with the CreatedTime field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetCreatedTimeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CreatedTime) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedTime, true
|
|
}
|
|
|
|
// HasCreatedTime returns a boolean if a field has been set.
|
|
func (o *App) HasCreatedTime() bool {
|
|
if o != nil && !IsNil(o.CreatedTime) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedTime gets a reference to the given string and assigns it to the CreatedTime field.
|
|
func (o *App) SetCreatedTime(v string) {
|
|
o.CreatedTime = &v
|
|
}
|
|
|
|
// GetDescription returns the Description field value if set, zero value otherwise.
|
|
func (o *App) 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 *App) 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 *App) 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 *App) SetDescription(v string) {
|
|
o.Description = &v
|
|
}
|
|
|
|
// GetDetails returns the Details field value if set, zero value otherwise.
|
|
func (o *App) GetDetails() ApplicationView {
|
|
if o == nil || IsNil(o.Details) {
|
|
var ret ApplicationView
|
|
return ret
|
|
}
|
|
return *o.Details
|
|
}
|
|
|
|
// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetDetailsOk() (*ApplicationView, bool) {
|
|
if o == nil || IsNil(o.Details) {
|
|
return nil, false
|
|
}
|
|
return o.Details, true
|
|
}
|
|
|
|
// HasDetails returns a boolean if a field has been set.
|
|
func (o *App) HasDetails() bool {
|
|
if o != nil && !IsNil(o.Details) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDetails gets a reference to the given ApplicationView and assigns it to the Details field.
|
|
func (o *App) SetDetails(v ApplicationView) {
|
|
o.Details = &v
|
|
}
|
|
|
|
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
|
|
func (o *App) GetDisplayName() string {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DisplayName
|
|
}
|
|
|
|
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetDisplayNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
return nil, false
|
|
}
|
|
return o.DisplayName, true
|
|
}
|
|
|
|
// HasDisplayName returns a boolean if a field has been set.
|
|
func (o *App) HasDisplayName() bool {
|
|
if o != nil && !IsNil(o.DisplayName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
|
|
func (o *App) SetDisplayName(v string) {
|
|
o.DisplayName = &v
|
|
}
|
|
|
|
// GetManifest returns the Manifest field value if set, zero value otherwise.
|
|
func (o *App) GetManifest() string {
|
|
if o == nil || IsNil(o.Manifest) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Manifest
|
|
}
|
|
|
|
// GetManifestOk returns a tuple with the Manifest field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetManifestOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Manifest) {
|
|
return nil, false
|
|
}
|
|
return o.Manifest, true
|
|
}
|
|
|
|
// HasManifest returns a boolean if a field has been set.
|
|
func (o *App) HasManifest() bool {
|
|
if o != nil && !IsNil(o.Manifest) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetManifest gets a reference to the given string and assigns it to the Manifest field.
|
|
func (o *App) SetManifest(v string) {
|
|
o.Manifest = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *App) 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 *App) 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 *App) 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 *App) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetNamespace returns the Namespace field value if set, zero value otherwise.
|
|
func (o *App) GetNamespace() string {
|
|
if o == nil || IsNil(o.Namespace) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Namespace
|
|
}
|
|
|
|
// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetNamespaceOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Namespace) {
|
|
return nil, false
|
|
}
|
|
return o.Namespace, true
|
|
}
|
|
|
|
// HasNamespace returns a boolean if a field has been set.
|
|
func (o *App) HasNamespace() bool {
|
|
if o != nil && !IsNil(o.Namespace) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNamespace gets a reference to the given string and assigns it to the Namespace field.
|
|
func (o *App) SetNamespace(v string) {
|
|
o.Namespace = &v
|
|
}
|
|
|
|
// GetOwner returns the Owner field value if set, zero value otherwise.
|
|
func (o *App) GetOwner() string {
|
|
if o == nil || IsNil(o.Owner) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Owner
|
|
}
|
|
|
|
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetOwnerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Owner) {
|
|
return nil, false
|
|
}
|
|
return o.Owner, true
|
|
}
|
|
|
|
// HasOwner returns a boolean if a field has been set.
|
|
func (o *App) HasOwner() bool {
|
|
if o != nil && !IsNil(o.Owner) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOwner gets a reference to the given string and assigns it to the Owner field.
|
|
func (o *App) SetOwner(v string) {
|
|
o.Owner = &v
|
|
}
|
|
|
|
// GetParameters returns the Parameters field value if set, zero value otherwise.
|
|
func (o *App) GetParameters() string {
|
|
if o == nil || IsNil(o.Parameters) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Parameters
|
|
}
|
|
|
|
// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetParametersOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Parameters) {
|
|
return nil, false
|
|
}
|
|
return o.Parameters, true
|
|
}
|
|
|
|
// HasParameters returns a boolean if a field has been set.
|
|
func (o *App) HasParameters() bool {
|
|
if o != nil && !IsNil(o.Parameters) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetParameters gets a reference to the given string and assigns it to the Parameters field.
|
|
func (o *App) SetParameters(v string) {
|
|
o.Parameters = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *App) GetStatus() string {
|
|
if o == nil || IsNil(o.Status) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Status
|
|
}
|
|
|
|
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetStatusOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Status) {
|
|
return nil, false
|
|
}
|
|
return o.Status, true
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *App) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *App) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
// GetTemplate returns the Template field value if set, zero value otherwise.
|
|
func (o *App) GetTemplate() string {
|
|
if o == nil || IsNil(o.Template) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Template
|
|
}
|
|
|
|
// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetTemplateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Template) {
|
|
return nil, false
|
|
}
|
|
return o.Template, true
|
|
}
|
|
|
|
// HasTemplate returns a boolean if a field has been set.
|
|
func (o *App) HasTemplate() bool {
|
|
if o != nil && !IsNil(o.Template) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTemplate gets a reference to the given string and assigns it to the Template field.
|
|
func (o *App) SetTemplate(v string) {
|
|
o.Template = &v
|
|
}
|
|
|
|
// GetUpdatedTime returns the UpdatedTime field value if set, zero value otherwise.
|
|
func (o *App) GetUpdatedTime() string {
|
|
if o == nil || IsNil(o.UpdatedTime) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UpdatedTime
|
|
}
|
|
|
|
// GetUpdatedTimeOk returns a tuple with the UpdatedTime field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetUpdatedTimeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UpdatedTime) {
|
|
return nil, false
|
|
}
|
|
return o.UpdatedTime, true
|
|
}
|
|
|
|
// HasUpdatedTime returns a boolean if a field has been set.
|
|
func (o *App) HasUpdatedTime() bool {
|
|
if o != nil && !IsNil(o.UpdatedTime) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUpdatedTime gets a reference to the given string and assigns it to the UpdatedTime field.
|
|
func (o *App) SetUpdatedTime(v string) {
|
|
o.UpdatedTime = &v
|
|
}
|
|
|
|
// GetUrl returns the Url field value if set, zero value otherwise.
|
|
func (o *App) GetUrl() string {
|
|
if o == nil || IsNil(o.Url) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Url
|
|
}
|
|
|
|
// GetUrlOk returns a tuple with the Url field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *App) GetUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Url) {
|
|
return nil, false
|
|
}
|
|
return o.Url, true
|
|
}
|
|
|
|
// HasUrl returns a boolean if a field has been set.
|
|
func (o *App) HasUrl() bool {
|
|
if o != nil && !IsNil(o.Url) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUrl gets a reference to the given string and assigns it to the Url field.
|
|
func (o *App) SetUrl(v string) {
|
|
o.Url = &v
|
|
}
|
|
|
|
func (o App) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o App) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.BasicConfigOptions) {
|
|
toSerialize["basicConfigOptions"] = o.BasicConfigOptions
|
|
}
|
|
if !IsNil(o.CreatedTime) {
|
|
toSerialize["createdTime"] = o.CreatedTime
|
|
}
|
|
if !IsNil(o.Description) {
|
|
toSerialize["description"] = o.Description
|
|
}
|
|
if !IsNil(o.Details) {
|
|
toSerialize["details"] = o.Details
|
|
}
|
|
if !IsNil(o.DisplayName) {
|
|
toSerialize["displayName"] = o.DisplayName
|
|
}
|
|
if !IsNil(o.Manifest) {
|
|
toSerialize["manifest"] = o.Manifest
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Namespace) {
|
|
toSerialize["namespace"] = o.Namespace
|
|
}
|
|
if !IsNil(o.Owner) {
|
|
toSerialize["owner"] = o.Owner
|
|
}
|
|
if !IsNil(o.Parameters) {
|
|
toSerialize["parameters"] = o.Parameters
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if !IsNil(o.Template) {
|
|
toSerialize["template"] = o.Template
|
|
}
|
|
if !IsNil(o.UpdatedTime) {
|
|
toSerialize["updatedTime"] = o.UpdatedTime
|
|
}
|
|
if !IsNil(o.Url) {
|
|
toSerialize["url"] = o.Url
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *App) UnmarshalJSON(data []byte) (err error) {
|
|
varApp := _App{}
|
|
|
|
err = json.Unmarshal(data, &varApp)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = App(varApp)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "basicConfigOptions")
|
|
delete(additionalProperties, "createdTime")
|
|
delete(additionalProperties, "description")
|
|
delete(additionalProperties, "details")
|
|
delete(additionalProperties, "displayName")
|
|
delete(additionalProperties, "manifest")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "namespace")
|
|
delete(additionalProperties, "owner")
|
|
delete(additionalProperties, "parameters")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "template")
|
|
delete(additionalProperties, "updatedTime")
|
|
delete(additionalProperties, "url")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableApp struct {
|
|
value *App
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableApp) Get() *App {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableApp) Set(val *App) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableApp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableApp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableApp(val *App) *NullableApp {
|
|
return &NullableApp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableApp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableApp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|