fix: rename sdk to match repo & introduce git subtree

This commit is contained in:
allanice001
2025-11-02 22:37:41 +00:00
parent e313d5fc4f
commit 55689084b9
199 changed files with 39498 additions and 0 deletions

View File

@@ -0,0 +1,162 @@
/*
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 UtilsErrorResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UtilsErrorResponse{}
// UtilsErrorResponse struct for UtilsErrorResponse
type UtilsErrorResponse struct {
// A machine-readable error code, e.g. \"validation_error\" example: validation_error
Code *string `json:"code,omitempty"`
// Human-readable message example: slug is required
Message *string `json:"message,omitempty"`
}
// NewUtilsErrorResponse instantiates a new UtilsErrorResponse 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 NewUtilsErrorResponse() *UtilsErrorResponse {
this := UtilsErrorResponse{}
return &this
}
// NewUtilsErrorResponseWithDefaults instantiates a new UtilsErrorResponse 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 NewUtilsErrorResponseWithDefaults() *UtilsErrorResponse {
this := UtilsErrorResponse{}
return &this
}
// GetCode returns the Code field value if set, zero value otherwise.
func (o *UtilsErrorResponse) GetCode() string {
if o == nil || IsNil(o.Code) {
var ret string
return ret
}
return *o.Code
}
// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UtilsErrorResponse) GetCodeOk() (*string, bool) {
if o == nil || IsNil(o.Code) {
return nil, false
}
return o.Code, true
}
// HasCode returns a boolean if a field has been set.
func (o *UtilsErrorResponse) HasCode() bool {
if o != nil && !IsNil(o.Code) {
return true
}
return false
}
// SetCode gets a reference to the given string and assigns it to the Code field.
func (o *UtilsErrorResponse) SetCode(v string) {
o.Code = &v
}
// GetMessage returns the Message field value if set, zero value otherwise.
func (o *UtilsErrorResponse) GetMessage() string {
if o == nil || IsNil(o.Message) {
var ret string
return ret
}
return *o.Message
}
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UtilsErrorResponse) GetMessageOk() (*string, bool) {
if o == nil || IsNil(o.Message) {
return nil, false
}
return o.Message, true
}
// HasMessage returns a boolean if a field has been set.
func (o *UtilsErrorResponse) HasMessage() bool {
if o != nil && !IsNil(o.Message) {
return true
}
return false
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *UtilsErrorResponse) SetMessage(v string) {
o.Message = &v
}
func (o UtilsErrorResponse) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UtilsErrorResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Code) {
toSerialize["code"] = o.Code
}
if !IsNil(o.Message) {
toSerialize["message"] = o.Message
}
return toSerialize, nil
}
type NullableUtilsErrorResponse struct {
value *UtilsErrorResponse
isSet bool
}
func (v NullableUtilsErrorResponse) Get() *UtilsErrorResponse {
return v.value
}
func (v *NullableUtilsErrorResponse) Set(val *UtilsErrorResponse) {
v.value = val
v.isSet = true
}
func (v NullableUtilsErrorResponse) IsSet() bool {
return v.isSet
}
func (v *NullableUtilsErrorResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUtilsErrorResponse(val *UtilsErrorResponse) *NullableUtilsErrorResponse {
return &NullableUtilsErrorResponse{value: val, isSet: true}
}
func (v NullableUtilsErrorResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUtilsErrorResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}