mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
302 lines
8.0 KiB
Go
302 lines
8.0 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 IamSetProfileInput type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &IamSetProfileInput{}
|
|
|
|
// IamSetProfileInput struct for IamSetProfileInput
|
|
type IamSetProfileInput struct {
|
|
DisplayName *string `json:"displayName,omitempty"`
|
|
Favicon *string `json:"favicon,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Owner *string `json:"owner,omitempty"`
|
|
WebsiteUrl *string `json:"websiteUrl,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _IamSetProfileInput IamSetProfileInput
|
|
|
|
// NewIamSetProfileInput instantiates a new IamSetProfileInput 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 NewIamSetProfileInput() *IamSetProfileInput {
|
|
this := IamSetProfileInput{}
|
|
return &this
|
|
}
|
|
|
|
// NewIamSetProfileInputWithDefaults instantiates a new IamSetProfileInput 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 NewIamSetProfileInputWithDefaults() *IamSetProfileInput {
|
|
this := IamSetProfileInput{}
|
|
return &this
|
|
}
|
|
|
|
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
|
|
func (o *IamSetProfileInput) GetDisplayName() string {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DisplayName
|
|
}
|
|
|
|
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamSetProfileInput) GetDisplayNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
return nil, false
|
|
}
|
|
return o.DisplayName, true
|
|
}
|
|
|
|
// HasDisplayName returns a boolean if a field has been set.
|
|
func (o *IamSetProfileInput) HasDisplayName() bool {
|
|
if o != nil && !IsNil(o.DisplayName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
|
|
func (o *IamSetProfileInput) SetDisplayName(v string) {
|
|
o.DisplayName = &v
|
|
}
|
|
|
|
// GetFavicon returns the Favicon field value if set, zero value otherwise.
|
|
func (o *IamSetProfileInput) GetFavicon() string {
|
|
if o == nil || IsNil(o.Favicon) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Favicon
|
|
}
|
|
|
|
// GetFaviconOk returns a tuple with the Favicon field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamSetProfileInput) GetFaviconOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Favicon) {
|
|
return nil, false
|
|
}
|
|
return o.Favicon, true
|
|
}
|
|
|
|
// HasFavicon returns a boolean if a field has been set.
|
|
func (o *IamSetProfileInput) HasFavicon() bool {
|
|
if o != nil && !IsNil(o.Favicon) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFavicon gets a reference to the given string and assigns it to the Favicon field.
|
|
func (o *IamSetProfileInput) SetFavicon(v string) {
|
|
o.Favicon = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *IamSetProfileInput) 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 *IamSetProfileInput) 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 *IamSetProfileInput) 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 *IamSetProfileInput) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetOwner returns the Owner field value if set, zero value otherwise.
|
|
func (o *IamSetProfileInput) GetOwner() string {
|
|
if o == nil || IsNil(o.Owner) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Owner
|
|
}
|
|
|
|
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamSetProfileInput) GetOwnerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Owner) {
|
|
return nil, false
|
|
}
|
|
return o.Owner, true
|
|
}
|
|
|
|
// HasOwner returns a boolean if a field has been set.
|
|
func (o *IamSetProfileInput) HasOwner() bool {
|
|
if o != nil && !IsNil(o.Owner) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOwner gets a reference to the given string and assigns it to the Owner field.
|
|
func (o *IamSetProfileInput) SetOwner(v string) {
|
|
o.Owner = &v
|
|
}
|
|
|
|
// GetWebsiteUrl returns the WebsiteUrl field value if set, zero value otherwise.
|
|
func (o *IamSetProfileInput) GetWebsiteUrl() string {
|
|
if o == nil || IsNil(o.WebsiteUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.WebsiteUrl
|
|
}
|
|
|
|
// GetWebsiteUrlOk returns a tuple with the WebsiteUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamSetProfileInput) GetWebsiteUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.WebsiteUrl) {
|
|
return nil, false
|
|
}
|
|
return o.WebsiteUrl, true
|
|
}
|
|
|
|
// HasWebsiteUrl returns a boolean if a field has been set.
|
|
func (o *IamSetProfileInput) HasWebsiteUrl() bool {
|
|
if o != nil && !IsNil(o.WebsiteUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetWebsiteUrl gets a reference to the given string and assigns it to the WebsiteUrl field.
|
|
func (o *IamSetProfileInput) SetWebsiteUrl(v string) {
|
|
o.WebsiteUrl = &v
|
|
}
|
|
|
|
func (o IamSetProfileInput) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o IamSetProfileInput) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.DisplayName) {
|
|
toSerialize["displayName"] = o.DisplayName
|
|
}
|
|
if !IsNil(o.Favicon) {
|
|
toSerialize["favicon"] = o.Favicon
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Owner) {
|
|
toSerialize["owner"] = o.Owner
|
|
}
|
|
if !IsNil(o.WebsiteUrl) {
|
|
toSerialize["websiteUrl"] = o.WebsiteUrl
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *IamSetProfileInput) UnmarshalJSON(data []byte) (err error) {
|
|
varIamSetProfileInput := _IamSetProfileInput{}
|
|
|
|
err = json.Unmarshal(data, &varIamSetProfileInput)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = IamSetProfileInput(varIamSetProfileInput)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "displayName")
|
|
delete(additionalProperties, "favicon")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "owner")
|
|
delete(additionalProperties, "websiteUrl")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableIamSetProfileInput struct {
|
|
value *IamSetProfileInput
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableIamSetProfileInput) Get() *IamSetProfileInput {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableIamSetProfileInput) Set(val *IamSetProfileInput) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableIamSetProfileInput) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableIamSetProfileInput) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableIamSetProfileInput(val *IamSetProfileInput) *NullableIamSetProfileInput {
|
|
return &NullableIamSetProfileInput{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableIamSetProfileInput) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableIamSetProfileInput) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|