mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
155 lines
4.6 KiB
Go
155 lines
4.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 ProviderGoogleUserConnectIn type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &ProviderGoogleUserConnectIn{}
|
|
|
|
// ProviderGoogleUserConnectIn struct for ProviderGoogleUserConnectIn
|
|
type ProviderGoogleUserConnectIn struct {
|
|
// Return is the page the callback sends the person back to, with complete=google&grant=<id> (or error=google&reason=<why>) added to its query. It must name one of this deployment's return pages; anything else, or nothing, returns to the console's /connectors.
|
|
Return *string `json:"return,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _ProviderGoogleUserConnectIn ProviderGoogleUserConnectIn
|
|
|
|
// NewProviderGoogleUserConnectIn instantiates a new ProviderGoogleUserConnectIn 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 NewProviderGoogleUserConnectIn() *ProviderGoogleUserConnectIn {
|
|
this := ProviderGoogleUserConnectIn{}
|
|
return &this
|
|
}
|
|
|
|
// NewProviderGoogleUserConnectInWithDefaults instantiates a new ProviderGoogleUserConnectIn 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 NewProviderGoogleUserConnectInWithDefaults() *ProviderGoogleUserConnectIn {
|
|
this := ProviderGoogleUserConnectIn{}
|
|
return &this
|
|
}
|
|
|
|
// GetReturn returns the Return field value if set, zero value otherwise.
|
|
func (o *ProviderGoogleUserConnectIn) GetReturn() string {
|
|
if o == nil || IsNil(o.Return) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Return
|
|
}
|
|
|
|
// GetReturnOk returns a tuple with the Return field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProviderGoogleUserConnectIn) GetReturnOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Return) {
|
|
return nil, false
|
|
}
|
|
return o.Return, true
|
|
}
|
|
|
|
// HasReturn returns a boolean if a field has been set.
|
|
func (o *ProviderGoogleUserConnectIn) HasReturn() bool {
|
|
if o != nil && !IsNil(o.Return) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReturn gets a reference to the given string and assigns it to the Return field.
|
|
func (o *ProviderGoogleUserConnectIn) SetReturn(v string) {
|
|
o.Return = &v
|
|
}
|
|
|
|
func (o ProviderGoogleUserConnectIn) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o ProviderGoogleUserConnectIn) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Return) {
|
|
toSerialize["return"] = o.Return
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *ProviderGoogleUserConnectIn) UnmarshalJSON(data []byte) (err error) {
|
|
varProviderGoogleUserConnectIn := _ProviderGoogleUserConnectIn{}
|
|
|
|
err = json.Unmarshal(data, &varProviderGoogleUserConnectIn)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = ProviderGoogleUserConnectIn(varProviderGoogleUserConnectIn)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "return")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableProviderGoogleUserConnectIn struct {
|
|
value *ProviderGoogleUserConnectIn
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableProviderGoogleUserConnectIn) Get() *ProviderGoogleUserConnectIn {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableProviderGoogleUserConnectIn) Set(val *ProviderGoogleUserConnectIn) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableProviderGoogleUserConnectIn) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableProviderGoogleUserConnectIn) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableProviderGoogleUserConnectIn(val *ProviderGoogleUserConnectIn) *NullableProviderGoogleUserConnectIn {
|
|
return &NullableProviderGoogleUserConnectIn{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableProviderGoogleUserConnectIn) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableProviderGoogleUserConnectIn) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|