mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
fix: rename sdk to match repo & introduce git subtree
This commit is contained in:
160
sdk/go/model_handlers_org_create_req.go
Normal file
160
sdk/go/model_handlers_org_create_req.go
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
AutoGlue API
|
||||
|
||||
API for managing K3s clusters across cloud providers
|
||||
|
||||
API version: 1.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package autoglue
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the HandlersOrgCreateReq type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &HandlersOrgCreateReq{}
|
||||
|
||||
// HandlersOrgCreateReq struct for HandlersOrgCreateReq
|
||||
type HandlersOrgCreateReq struct {
|
||||
Domain *string `json:"domain,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
// NewHandlersOrgCreateReq instantiates a new HandlersOrgCreateReq 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 NewHandlersOrgCreateReq() *HandlersOrgCreateReq {
|
||||
this := HandlersOrgCreateReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewHandlersOrgCreateReqWithDefaults instantiates a new HandlersOrgCreateReq 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 NewHandlersOrgCreateReqWithDefaults() *HandlersOrgCreateReq {
|
||||
this := HandlersOrgCreateReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetDomain returns the Domain field value if set, zero value otherwise.
|
||||
func (o *HandlersOrgCreateReq) GetDomain() string {
|
||||
if o == nil || IsNil(o.Domain) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Domain
|
||||
}
|
||||
|
||||
// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *HandlersOrgCreateReq) GetDomainOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Domain) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Domain, true
|
||||
}
|
||||
|
||||
// HasDomain returns a boolean if a field has been set.
|
||||
func (o *HandlersOrgCreateReq) HasDomain() bool {
|
||||
if o != nil && !IsNil(o.Domain) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDomain gets a reference to the given string and assigns it to the Domain field.
|
||||
func (o *HandlersOrgCreateReq) SetDomain(v string) {
|
||||
o.Domain = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value if set, zero value otherwise.
|
||||
func (o *HandlersOrgCreateReq) 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 *HandlersOrgCreateReq) 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 *HandlersOrgCreateReq) 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 *HandlersOrgCreateReq) SetName(v string) {
|
||||
o.Name = &v
|
||||
}
|
||||
|
||||
func (o HandlersOrgCreateReq) MarshalJSON() ([]byte, error) {
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o HandlersOrgCreateReq) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Domain) {
|
||||
toSerialize["domain"] = o.Domain
|
||||
}
|
||||
if !IsNil(o.Name) {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableHandlersOrgCreateReq struct {
|
||||
value *HandlersOrgCreateReq
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableHandlersOrgCreateReq) Get() *HandlersOrgCreateReq {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableHandlersOrgCreateReq) Set(val *HandlersOrgCreateReq) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableHandlersOrgCreateReq) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableHandlersOrgCreateReq) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableHandlersOrgCreateReq(val *HandlersOrgCreateReq) *NullableHandlersOrgCreateReq {
|
||||
return &NullableHandlersOrgCreateReq{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableHandlersOrgCreateReq) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableHandlersOrgCreateReq) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Reference in New Issue
Block a user