mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
228 lines
5.6 KiB
Go
228 lines
5.6 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 IamFaceId type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &IamFaceId{}
|
|
|
|
// IamFaceId struct for IamFaceId
|
|
type IamFaceId struct {
|
|
FaceIdData []float64 `json:"faceIdData,omitempty"`
|
|
ImageUrl *string `json:"imageUrl,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _IamFaceId IamFaceId
|
|
|
|
// NewIamFaceId instantiates a new IamFaceId 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 NewIamFaceId() *IamFaceId {
|
|
this := IamFaceId{}
|
|
return &this
|
|
}
|
|
|
|
// NewIamFaceIdWithDefaults instantiates a new IamFaceId 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 NewIamFaceIdWithDefaults() *IamFaceId {
|
|
this := IamFaceId{}
|
|
return &this
|
|
}
|
|
|
|
// GetFaceIdData returns the FaceIdData field value if set, zero value otherwise.
|
|
func (o *IamFaceId) GetFaceIdData() []float64 {
|
|
if o == nil || IsNil(o.FaceIdData) {
|
|
var ret []float64
|
|
return ret
|
|
}
|
|
return o.FaceIdData
|
|
}
|
|
|
|
// GetFaceIdDataOk returns a tuple with the FaceIdData field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamFaceId) GetFaceIdDataOk() ([]float64, bool) {
|
|
if o == nil || IsNil(o.FaceIdData) {
|
|
return nil, false
|
|
}
|
|
return o.FaceIdData, true
|
|
}
|
|
|
|
// HasFaceIdData returns a boolean if a field has been set.
|
|
func (o *IamFaceId) HasFaceIdData() bool {
|
|
if o != nil && !IsNil(o.FaceIdData) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFaceIdData gets a reference to the given []float64 and assigns it to the FaceIdData field.
|
|
func (o *IamFaceId) SetFaceIdData(v []float64) {
|
|
o.FaceIdData = v
|
|
}
|
|
|
|
// GetImageUrl returns the ImageUrl field value if set, zero value otherwise.
|
|
func (o *IamFaceId) GetImageUrl() string {
|
|
if o == nil || IsNil(o.ImageUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ImageUrl
|
|
}
|
|
|
|
// GetImageUrlOk returns a tuple with the ImageUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamFaceId) GetImageUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ImageUrl) {
|
|
return nil, false
|
|
}
|
|
return o.ImageUrl, true
|
|
}
|
|
|
|
// HasImageUrl returns a boolean if a field has been set.
|
|
func (o *IamFaceId) HasImageUrl() bool {
|
|
if o != nil && !IsNil(o.ImageUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetImageUrl gets a reference to the given string and assigns it to the ImageUrl field.
|
|
func (o *IamFaceId) SetImageUrl(v string) {
|
|
o.ImageUrl = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *IamFaceId) 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 *IamFaceId) 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 *IamFaceId) 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 *IamFaceId) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
func (o IamFaceId) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o IamFaceId) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.FaceIdData) {
|
|
toSerialize["faceIdData"] = o.FaceIdData
|
|
}
|
|
if !IsNil(o.ImageUrl) {
|
|
toSerialize["imageUrl"] = o.ImageUrl
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *IamFaceId) UnmarshalJSON(data []byte) (err error) {
|
|
varIamFaceId := _IamFaceId{}
|
|
|
|
err = json.Unmarshal(data, &varIamFaceId)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = IamFaceId(varIamFaceId)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "faceIdData")
|
|
delete(additionalProperties, "imageUrl")
|
|
delete(additionalProperties, "name")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableIamFaceId struct {
|
|
value *IamFaceId
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableIamFaceId) Get() *IamFaceId {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableIamFaceId) Set(val *IamFaceId) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableIamFaceId) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableIamFaceId) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableIamFaceId(val *IamFaceId) *NullableIamFaceId {
|
|
return &NullableIamFaceId{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableIamFaceId) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableIamFaceId) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|