mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
193 lines
5.2 KiB
Go
193 lines
5.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 EsignEsignValueIn type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &EsignEsignValueIn{}
|
|
|
|
// EsignEsignValueIn struct for EsignEsignValueIn
|
|
type EsignEsignValueIn struct {
|
|
IsBase64 interface{} `json:"isBase64,omitempty"`
|
|
Value interface{} `json:"value,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _EsignEsignValueIn EsignEsignValueIn
|
|
|
|
// NewEsignEsignValueIn instantiates a new EsignEsignValueIn 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 NewEsignEsignValueIn() *EsignEsignValueIn {
|
|
this := EsignEsignValueIn{}
|
|
return &this
|
|
}
|
|
|
|
// NewEsignEsignValueInWithDefaults instantiates a new EsignEsignValueIn 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 NewEsignEsignValueInWithDefaults() *EsignEsignValueIn {
|
|
this := EsignEsignValueIn{}
|
|
return &this
|
|
}
|
|
|
|
// GetIsBase64 returns the IsBase64 field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *EsignEsignValueIn) GetIsBase64() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.IsBase64
|
|
}
|
|
|
|
// GetIsBase64Ok returns a tuple with the IsBase64 field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *EsignEsignValueIn) GetIsBase64Ok() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.IsBase64) {
|
|
return nil, false
|
|
}
|
|
return &o.IsBase64, true
|
|
}
|
|
|
|
// HasIsBase64 returns a boolean if a field has been set.
|
|
func (o *EsignEsignValueIn) HasIsBase64() bool {
|
|
if o != nil && !IsNil(o.IsBase64) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsBase64 gets a reference to the given interface{} and assigns it to the IsBase64 field.
|
|
func (o *EsignEsignValueIn) SetIsBase64(v interface{}) {
|
|
o.IsBase64 = v
|
|
}
|
|
|
|
// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *EsignEsignValueIn) GetValue() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Value
|
|
}
|
|
|
|
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *EsignEsignValueIn) GetValueOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Value) {
|
|
return nil, false
|
|
}
|
|
return &o.Value, true
|
|
}
|
|
|
|
// HasValue returns a boolean if a field has been set.
|
|
func (o *EsignEsignValueIn) HasValue() bool {
|
|
if o != nil && !IsNil(o.Value) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetValue gets a reference to the given interface{} and assigns it to the Value field.
|
|
func (o *EsignEsignValueIn) SetValue(v interface{}) {
|
|
o.Value = v
|
|
}
|
|
|
|
func (o EsignEsignValueIn) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o EsignEsignValueIn) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.IsBase64 != nil {
|
|
toSerialize["isBase64"] = o.IsBase64
|
|
}
|
|
if o.Value != nil {
|
|
toSerialize["value"] = o.Value
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *EsignEsignValueIn) UnmarshalJSON(data []byte) (err error) {
|
|
varEsignEsignValueIn := _EsignEsignValueIn{}
|
|
|
|
err = json.Unmarshal(data, &varEsignEsignValueIn)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = EsignEsignValueIn(varEsignEsignValueIn)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "isBase64")
|
|
delete(additionalProperties, "value")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableEsignEsignValueIn struct {
|
|
value *EsignEsignValueIn
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableEsignEsignValueIn) Get() *EsignEsignValueIn {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableEsignEsignValueIn) Set(val *EsignEsignValueIn) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableEsignEsignValueIn) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableEsignEsignValueIn) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableEsignEsignValueIn(val *EsignEsignValueIn) *NullableEsignEsignValueIn {
|
|
return &NullableEsignEsignValueIn{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableEsignEsignValueIn) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableEsignEsignValueIn) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|