Files
sdk/model_deploy_argo_summary.go

155 lines
4.2 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 DeployArgoSummary type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DeployArgoSummary{}
// DeployArgoSummary struct for DeployArgoSummary
type DeployArgoSummary struct {
// Images are the container images the application runs. One entry for an App CR, built from its spec.image as \"repository:tag\" — the bare repository when it declares no tag, and absent when it declares neither. Absent on a CD row, which tracks commits rather than images.
Images []string `json:"images,omitempty"`
AdditionalProperties map[string]interface{}
}
type _DeployArgoSummary DeployArgoSummary
// NewDeployArgoSummary instantiates a new DeployArgoSummary 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 NewDeployArgoSummary() *DeployArgoSummary {
this := DeployArgoSummary{}
return &this
}
// NewDeployArgoSummaryWithDefaults instantiates a new DeployArgoSummary 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 NewDeployArgoSummaryWithDefaults() *DeployArgoSummary {
this := DeployArgoSummary{}
return &this
}
// GetImages returns the Images field value if set, zero value otherwise.
func (o *DeployArgoSummary) GetImages() []string {
if o == nil || IsNil(o.Images) {
var ret []string
return ret
}
return o.Images
}
// GetImagesOk returns a tuple with the Images field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeployArgoSummary) GetImagesOk() ([]string, bool) {
if o == nil || IsNil(o.Images) {
return nil, false
}
return o.Images, true
}
// HasImages returns a boolean if a field has been set.
func (o *DeployArgoSummary) HasImages() bool {
if o != nil && !IsNil(o.Images) {
return true
}
return false
}
// SetImages gets a reference to the given []string and assigns it to the Images field.
func (o *DeployArgoSummary) SetImages(v []string) {
o.Images = v
}
func (o DeployArgoSummary) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DeployArgoSummary) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Images) {
toSerialize["images"] = o.Images
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *DeployArgoSummary) UnmarshalJSON(data []byte) (err error) {
varDeployArgoSummary := _DeployArgoSummary{}
err = json.Unmarshal(data, &varDeployArgoSummary)
if err != nil {
return err
}
*o = DeployArgoSummary(varDeployArgoSummary)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "images")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableDeployArgoSummary struct {
value *DeployArgoSummary
isSet bool
}
func (v NullableDeployArgoSummary) Get() *DeployArgoSummary {
return v.value
}
func (v *NullableDeployArgoSummary) Set(val *DeployArgoSummary) {
v.value = val
v.isSet = true
}
func (v NullableDeployArgoSummary) IsSet() bool {
return v.isSet
}
func (v *NullableDeployArgoSummary) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDeployArgoSummary(val *DeployArgoSummary) *NullableDeployArgoSummary {
return &NullableDeployArgoSummary{value: val, isSet: true}
}
func (v NullableDeployArgoSummary) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDeployArgoSummary) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}