mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
231 lines
6.3 KiB
Go
231 lines
6.3 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 ReferenceSetReferenceOut type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &ReferenceSetReferenceOut{}
|
|
|
|
// ReferenceSetReferenceOut struct for ReferenceSetReferenceOut
|
|
type ReferenceSetReferenceOut struct {
|
|
// Overrides is how many your org now holds in this set.
|
|
Overrides *int64 `json:"overrides,omitempty"`
|
|
// Set is the set written in.
|
|
Set *string `json:"set,omitempty"`
|
|
// Written is how many entries this call wrote.
|
|
Written *int64 `json:"written,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _ReferenceSetReferenceOut ReferenceSetReferenceOut
|
|
|
|
// NewReferenceSetReferenceOut instantiates a new ReferenceSetReferenceOut 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 NewReferenceSetReferenceOut() *ReferenceSetReferenceOut {
|
|
this := ReferenceSetReferenceOut{}
|
|
return &this
|
|
}
|
|
|
|
// NewReferenceSetReferenceOutWithDefaults instantiates a new ReferenceSetReferenceOut 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 NewReferenceSetReferenceOutWithDefaults() *ReferenceSetReferenceOut {
|
|
this := ReferenceSetReferenceOut{}
|
|
return &this
|
|
}
|
|
|
|
// GetOverrides returns the Overrides field value if set, zero value otherwise.
|
|
func (o *ReferenceSetReferenceOut) GetOverrides() int64 {
|
|
if o == nil || IsNil(o.Overrides) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Overrides
|
|
}
|
|
|
|
// GetOverridesOk returns a tuple with the Overrides field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ReferenceSetReferenceOut) GetOverridesOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Overrides) {
|
|
return nil, false
|
|
}
|
|
return o.Overrides, true
|
|
}
|
|
|
|
// HasOverrides returns a boolean if a field has been set.
|
|
func (o *ReferenceSetReferenceOut) HasOverrides() bool {
|
|
if o != nil && !IsNil(o.Overrides) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOverrides gets a reference to the given int64 and assigns it to the Overrides field.
|
|
func (o *ReferenceSetReferenceOut) SetOverrides(v int64) {
|
|
o.Overrides = &v
|
|
}
|
|
|
|
// GetSet returns the Set field value if set, zero value otherwise.
|
|
func (o *ReferenceSetReferenceOut) GetSet() string {
|
|
if o == nil || IsNil(o.Set) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Set
|
|
}
|
|
|
|
// GetSetOk returns a tuple with the Set field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ReferenceSetReferenceOut) GetSetOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Set) {
|
|
return nil, false
|
|
}
|
|
return o.Set, true
|
|
}
|
|
|
|
// HasSet returns a boolean if a field has been set.
|
|
func (o *ReferenceSetReferenceOut) HasSet() bool {
|
|
if o != nil && !IsNil(o.Set) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSet gets a reference to the given string and assigns it to the Set field.
|
|
func (o *ReferenceSetReferenceOut) SetSet(v string) {
|
|
o.Set = &v
|
|
}
|
|
|
|
// GetWritten returns the Written field value if set, zero value otherwise.
|
|
func (o *ReferenceSetReferenceOut) GetWritten() int64 {
|
|
if o == nil || IsNil(o.Written) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Written
|
|
}
|
|
|
|
// GetWrittenOk returns a tuple with the Written field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ReferenceSetReferenceOut) GetWrittenOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Written) {
|
|
return nil, false
|
|
}
|
|
return o.Written, true
|
|
}
|
|
|
|
// HasWritten returns a boolean if a field has been set.
|
|
func (o *ReferenceSetReferenceOut) HasWritten() bool {
|
|
if o != nil && !IsNil(o.Written) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetWritten gets a reference to the given int64 and assigns it to the Written field.
|
|
func (o *ReferenceSetReferenceOut) SetWritten(v int64) {
|
|
o.Written = &v
|
|
}
|
|
|
|
func (o ReferenceSetReferenceOut) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o ReferenceSetReferenceOut) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Overrides) {
|
|
toSerialize["overrides"] = o.Overrides
|
|
}
|
|
if !IsNil(o.Set) {
|
|
toSerialize["set"] = o.Set
|
|
}
|
|
if !IsNil(o.Written) {
|
|
toSerialize["written"] = o.Written
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *ReferenceSetReferenceOut) UnmarshalJSON(data []byte) (err error) {
|
|
varReferenceSetReferenceOut := _ReferenceSetReferenceOut{}
|
|
|
|
err = json.Unmarshal(data, &varReferenceSetReferenceOut)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = ReferenceSetReferenceOut(varReferenceSetReferenceOut)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "overrides")
|
|
delete(additionalProperties, "set")
|
|
delete(additionalProperties, "written")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableReferenceSetReferenceOut struct {
|
|
value *ReferenceSetReferenceOut
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableReferenceSetReferenceOut) Get() *ReferenceSetReferenceOut {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableReferenceSetReferenceOut) Set(val *ReferenceSetReferenceOut) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableReferenceSetReferenceOut) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableReferenceSetReferenceOut) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableReferenceSetReferenceOut(val *ReferenceSetReferenceOut) *NullableReferenceSetReferenceOut {
|
|
return &NullableReferenceSetReferenceOut{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableReferenceSetReferenceOut) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableReferenceSetReferenceOut) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|