mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
344 lines
9.0 KiB
Go
344 lines
9.0 KiB
Go
/*
|
|
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 HandlersOrgKeyCreateResp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &HandlersOrgKeyCreateResp{}
|
|
|
|
// HandlersOrgKeyCreateResp struct for HandlersOrgKeyCreateResp
|
|
type HandlersOrgKeyCreateResp struct {
|
|
CreatedAt *string `json:"created_at,omitempty"`
|
|
ExpiresAt *string `json:"expires_at,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
// shown once:
|
|
OrgKey *string `json:"org_key,omitempty"`
|
|
// shown once:
|
|
OrgSecret *string `json:"org_secret,omitempty"`
|
|
// \"org\"
|
|
Scope *string `json:"scope,omitempty"`
|
|
}
|
|
|
|
// NewHandlersOrgKeyCreateResp instantiates a new HandlersOrgKeyCreateResp 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 NewHandlersOrgKeyCreateResp() *HandlersOrgKeyCreateResp {
|
|
this := HandlersOrgKeyCreateResp{}
|
|
return &this
|
|
}
|
|
|
|
// NewHandlersOrgKeyCreateRespWithDefaults instantiates a new HandlersOrgKeyCreateResp 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 NewHandlersOrgKeyCreateRespWithDefaults() *HandlersOrgKeyCreateResp {
|
|
this := HandlersOrgKeyCreateResp{}
|
|
return &this
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *HandlersOrgKeyCreateResp) GetCreatedAt() string {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CreatedAt
|
|
}
|
|
|
|
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *HandlersOrgKeyCreateResp) GetCreatedAtOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedAt, true
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *HandlersOrgKeyCreateResp) HasCreatedAt() bool {
|
|
if o != nil && !IsNil(o.CreatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
|
|
func (o *HandlersOrgKeyCreateResp) SetCreatedAt(v string) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.
|
|
func (o *HandlersOrgKeyCreateResp) GetExpiresAt() string {
|
|
if o == nil || IsNil(o.ExpiresAt) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ExpiresAt
|
|
}
|
|
|
|
// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *HandlersOrgKeyCreateResp) GetExpiresAtOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ExpiresAt) {
|
|
return nil, false
|
|
}
|
|
return o.ExpiresAt, true
|
|
}
|
|
|
|
// HasExpiresAt returns a boolean if a field has been set.
|
|
func (o *HandlersOrgKeyCreateResp) HasExpiresAt() bool {
|
|
if o != nil && !IsNil(o.ExpiresAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExpiresAt gets a reference to the given string and assigns it to the ExpiresAt field.
|
|
func (o *HandlersOrgKeyCreateResp) SetExpiresAt(v string) {
|
|
o.ExpiresAt = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *HandlersOrgKeyCreateResp) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *HandlersOrgKeyCreateResp) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *HandlersOrgKeyCreateResp) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *HandlersOrgKeyCreateResp) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *HandlersOrgKeyCreateResp) 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 *HandlersOrgKeyCreateResp) 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 *HandlersOrgKeyCreateResp) 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 *HandlersOrgKeyCreateResp) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetOrgKey returns the OrgKey field value if set, zero value otherwise.
|
|
func (o *HandlersOrgKeyCreateResp) GetOrgKey() string {
|
|
if o == nil || IsNil(o.OrgKey) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.OrgKey
|
|
}
|
|
|
|
// GetOrgKeyOk returns a tuple with the OrgKey field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *HandlersOrgKeyCreateResp) GetOrgKeyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.OrgKey) {
|
|
return nil, false
|
|
}
|
|
return o.OrgKey, true
|
|
}
|
|
|
|
// HasOrgKey returns a boolean if a field has been set.
|
|
func (o *HandlersOrgKeyCreateResp) HasOrgKey() bool {
|
|
if o != nil && !IsNil(o.OrgKey) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOrgKey gets a reference to the given string and assigns it to the OrgKey field.
|
|
func (o *HandlersOrgKeyCreateResp) SetOrgKey(v string) {
|
|
o.OrgKey = &v
|
|
}
|
|
|
|
// GetOrgSecret returns the OrgSecret field value if set, zero value otherwise.
|
|
func (o *HandlersOrgKeyCreateResp) GetOrgSecret() string {
|
|
if o == nil || IsNil(o.OrgSecret) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.OrgSecret
|
|
}
|
|
|
|
// GetOrgSecretOk returns a tuple with the OrgSecret field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *HandlersOrgKeyCreateResp) GetOrgSecretOk() (*string, bool) {
|
|
if o == nil || IsNil(o.OrgSecret) {
|
|
return nil, false
|
|
}
|
|
return o.OrgSecret, true
|
|
}
|
|
|
|
// HasOrgSecret returns a boolean if a field has been set.
|
|
func (o *HandlersOrgKeyCreateResp) HasOrgSecret() bool {
|
|
if o != nil && !IsNil(o.OrgSecret) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOrgSecret gets a reference to the given string and assigns it to the OrgSecret field.
|
|
func (o *HandlersOrgKeyCreateResp) SetOrgSecret(v string) {
|
|
o.OrgSecret = &v
|
|
}
|
|
|
|
// GetScope returns the Scope field value if set, zero value otherwise.
|
|
func (o *HandlersOrgKeyCreateResp) GetScope() string {
|
|
if o == nil || IsNil(o.Scope) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Scope
|
|
}
|
|
|
|
// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *HandlersOrgKeyCreateResp) GetScopeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Scope) {
|
|
return nil, false
|
|
}
|
|
return o.Scope, true
|
|
}
|
|
|
|
// HasScope returns a boolean if a field has been set.
|
|
func (o *HandlersOrgKeyCreateResp) HasScope() bool {
|
|
if o != nil && !IsNil(o.Scope) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetScope gets a reference to the given string and assigns it to the Scope field.
|
|
func (o *HandlersOrgKeyCreateResp) SetScope(v string) {
|
|
o.Scope = &v
|
|
}
|
|
|
|
func (o HandlersOrgKeyCreateResp) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o HandlersOrgKeyCreateResp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["created_at"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.ExpiresAt) {
|
|
toSerialize["expires_at"] = o.ExpiresAt
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.OrgKey) {
|
|
toSerialize["org_key"] = o.OrgKey
|
|
}
|
|
if !IsNil(o.OrgSecret) {
|
|
toSerialize["org_secret"] = o.OrgSecret
|
|
}
|
|
if !IsNil(o.Scope) {
|
|
toSerialize["scope"] = o.Scope
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableHandlersOrgKeyCreateResp struct {
|
|
value *HandlersOrgKeyCreateResp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableHandlersOrgKeyCreateResp) Get() *HandlersOrgKeyCreateResp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableHandlersOrgKeyCreateResp) Set(val *HandlersOrgKeyCreateResp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableHandlersOrgKeyCreateResp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableHandlersOrgKeyCreateResp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableHandlersOrgKeyCreateResp(val *HandlersOrgKeyCreateResp) *NullableHandlersOrgKeyCreateResp {
|
|
return &NullableHandlersOrgKeyCreateResp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableHandlersOrgKeyCreateResp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableHandlersOrgKeyCreateResp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|