mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
155 lines
4.4 KiB
Go
155 lines
4.4 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 DeployArgoListMeta type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &DeployArgoListMeta{}
|
|
|
|
// DeployArgoListMeta struct for DeployArgoListMeta
|
|
type DeployArgoListMeta struct {
|
|
// ResourceVersion is the k8s list version a watch would resume from. Always empty: every list on this plane is COMPUTED per request rather than read from one etcd revision, so there is no point to resume from. The live view is the SSE stream, not a resumed watch.
|
|
ResourceVersion *string `json:"resourceVersion,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _DeployArgoListMeta DeployArgoListMeta
|
|
|
|
// NewDeployArgoListMeta instantiates a new DeployArgoListMeta 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 NewDeployArgoListMeta() *DeployArgoListMeta {
|
|
this := DeployArgoListMeta{}
|
|
return &this
|
|
}
|
|
|
|
// NewDeployArgoListMetaWithDefaults instantiates a new DeployArgoListMeta 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 NewDeployArgoListMetaWithDefaults() *DeployArgoListMeta {
|
|
this := DeployArgoListMeta{}
|
|
return &this
|
|
}
|
|
|
|
// GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise.
|
|
func (o *DeployArgoListMeta) GetResourceVersion() string {
|
|
if o == nil || IsNil(o.ResourceVersion) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ResourceVersion
|
|
}
|
|
|
|
// GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DeployArgoListMeta) GetResourceVersionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ResourceVersion) {
|
|
return nil, false
|
|
}
|
|
return o.ResourceVersion, true
|
|
}
|
|
|
|
// HasResourceVersion returns a boolean if a field has been set.
|
|
func (o *DeployArgoListMeta) HasResourceVersion() bool {
|
|
if o != nil && !IsNil(o.ResourceVersion) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetResourceVersion gets a reference to the given string and assigns it to the ResourceVersion field.
|
|
func (o *DeployArgoListMeta) SetResourceVersion(v string) {
|
|
o.ResourceVersion = &v
|
|
}
|
|
|
|
func (o DeployArgoListMeta) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o DeployArgoListMeta) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.ResourceVersion) {
|
|
toSerialize["resourceVersion"] = o.ResourceVersion
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *DeployArgoListMeta) UnmarshalJSON(data []byte) (err error) {
|
|
varDeployArgoListMeta := _DeployArgoListMeta{}
|
|
|
|
err = json.Unmarshal(data, &varDeployArgoListMeta)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = DeployArgoListMeta(varDeployArgoListMeta)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "resourceVersion")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableDeployArgoListMeta struct {
|
|
value *DeployArgoListMeta
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableDeployArgoListMeta) Get() *DeployArgoListMeta {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableDeployArgoListMeta) Set(val *DeployArgoListMeta) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableDeployArgoListMeta) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableDeployArgoListMeta) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableDeployArgoListMeta(val *DeployArgoListMeta) *NullableDeployArgoListMeta {
|
|
return &NullableDeployArgoListMeta{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableDeployArgoListMeta) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableDeployArgoListMeta) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|