Files
autoglue/sdk/go/model_dto_ssh_reveal_response.go
2025-11-02 13:19:30 +00:00

377 lines
10 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 DtoSshRevealResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DtoSshRevealResponse{}
// DtoSshRevealResponse struct for DtoSshRevealResponse
type DtoSshRevealResponse struct {
CreatedAt *string `json:"created_at,omitempty"`
Fingerprint *string `json:"fingerprint,omitempty"`
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
OrganizationId *string `json:"organization_id,omitempty"`
PrivateKey *string `json:"private_key,omitempty"`
PublicKey *string `json:"public_key,omitempty"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
// NewDtoSshRevealResponse instantiates a new DtoSshRevealResponse 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 NewDtoSshRevealResponse() *DtoSshRevealResponse {
this := DtoSshRevealResponse{}
return &this
}
// NewDtoSshRevealResponseWithDefaults instantiates a new DtoSshRevealResponse 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 NewDtoSshRevealResponseWithDefaults() *DtoSshRevealResponse {
this := DtoSshRevealResponse{}
return &this
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *DtoSshRevealResponse) 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 *DtoSshRevealResponse) 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 *DtoSshRevealResponse) 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 *DtoSshRevealResponse) SetCreatedAt(v string) {
o.CreatedAt = &v
}
// GetFingerprint returns the Fingerprint field value if set, zero value otherwise.
func (o *DtoSshRevealResponse) GetFingerprint() string {
if o == nil || IsNil(o.Fingerprint) {
var ret string
return ret
}
return *o.Fingerprint
}
// GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DtoSshRevealResponse) GetFingerprintOk() (*string, bool) {
if o == nil || IsNil(o.Fingerprint) {
return nil, false
}
return o.Fingerprint, true
}
// HasFingerprint returns a boolean if a field has been set.
func (o *DtoSshRevealResponse) HasFingerprint() bool {
if o != nil && !IsNil(o.Fingerprint) {
return true
}
return false
}
// SetFingerprint gets a reference to the given string and assigns it to the Fingerprint field.
func (o *DtoSshRevealResponse) SetFingerprint(v string) {
o.Fingerprint = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *DtoSshRevealResponse) 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 *DtoSshRevealResponse) 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 *DtoSshRevealResponse) 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 *DtoSshRevealResponse) SetId(v string) {
o.Id = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *DtoSshRevealResponse) 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 *DtoSshRevealResponse) 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 *DtoSshRevealResponse) 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 *DtoSshRevealResponse) SetName(v string) {
o.Name = &v
}
// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise.
func (o *DtoSshRevealResponse) GetOrganizationId() string {
if o == nil || IsNil(o.OrganizationId) {
var ret string
return ret
}
return *o.OrganizationId
}
// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DtoSshRevealResponse) GetOrganizationIdOk() (*string, bool) {
if o == nil || IsNil(o.OrganizationId) {
return nil, false
}
return o.OrganizationId, true
}
// HasOrganizationId returns a boolean if a field has been set.
func (o *DtoSshRevealResponse) HasOrganizationId() bool {
if o != nil && !IsNil(o.OrganizationId) {
return true
}
return false
}
// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field.
func (o *DtoSshRevealResponse) SetOrganizationId(v string) {
o.OrganizationId = &v
}
// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise.
func (o *DtoSshRevealResponse) GetPrivateKey() string {
if o == nil || IsNil(o.PrivateKey) {
var ret string
return ret
}
return *o.PrivateKey
}
// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DtoSshRevealResponse) GetPrivateKeyOk() (*string, bool) {
if o == nil || IsNil(o.PrivateKey) {
return nil, false
}
return o.PrivateKey, true
}
// HasPrivateKey returns a boolean if a field has been set.
func (o *DtoSshRevealResponse) HasPrivateKey() bool {
if o != nil && !IsNil(o.PrivateKey) {
return true
}
return false
}
// SetPrivateKey gets a reference to the given string and assigns it to the PrivateKey field.
func (o *DtoSshRevealResponse) SetPrivateKey(v string) {
o.PrivateKey = &v
}
// GetPublicKey returns the PublicKey field value if set, zero value otherwise.
func (o *DtoSshRevealResponse) GetPublicKey() string {
if o == nil || IsNil(o.PublicKey) {
var ret string
return ret
}
return *o.PublicKey
}
// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DtoSshRevealResponse) GetPublicKeyOk() (*string, bool) {
if o == nil || IsNil(o.PublicKey) {
return nil, false
}
return o.PublicKey, true
}
// HasPublicKey returns a boolean if a field has been set.
func (o *DtoSshRevealResponse) HasPublicKey() bool {
if o != nil && !IsNil(o.PublicKey) {
return true
}
return false
}
// SetPublicKey gets a reference to the given string and assigns it to the PublicKey field.
func (o *DtoSshRevealResponse) SetPublicKey(v string) {
o.PublicKey = &v
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *DtoSshRevealResponse) GetUpdatedAt() string {
if o == nil || IsNil(o.UpdatedAt) {
var ret string
return ret
}
return *o.UpdatedAt
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DtoSshRevealResponse) GetUpdatedAtOk() (*string, bool) {
if o == nil || IsNil(o.UpdatedAt) {
return nil, false
}
return o.UpdatedAt, true
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *DtoSshRevealResponse) HasUpdatedAt() bool {
if o != nil && !IsNil(o.UpdatedAt) {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field.
func (o *DtoSshRevealResponse) SetUpdatedAt(v string) {
o.UpdatedAt = &v
}
func (o DtoSshRevealResponse) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DtoSshRevealResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.CreatedAt) {
toSerialize["created_at"] = o.CreatedAt
}
if !IsNil(o.Fingerprint) {
toSerialize["fingerprint"] = o.Fingerprint
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.OrganizationId) {
toSerialize["organization_id"] = o.OrganizationId
}
if !IsNil(o.PrivateKey) {
toSerialize["private_key"] = o.PrivateKey
}
if !IsNil(o.PublicKey) {
toSerialize["public_key"] = o.PublicKey
}
if !IsNil(o.UpdatedAt) {
toSerialize["updated_at"] = o.UpdatedAt
}
return toSerialize, nil
}
type NullableDtoSshRevealResponse struct {
value *DtoSshRevealResponse
isSet bool
}
func (v NullableDtoSshRevealResponse) Get() *DtoSshRevealResponse {
return v.value
}
func (v *NullableDtoSshRevealResponse) Set(val *DtoSshRevealResponse) {
v.value = val
v.isSet = true
}
func (v NullableDtoSshRevealResponse) IsSet() bool {
return v.isSet
}
func (v *NullableDtoSshRevealResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDtoSshRevealResponse(val *DtoSshRevealResponse) *NullableDtoSshRevealResponse {
return &NullableDtoSshRevealResponse{value: val, isSet: true}
}
func (v NullableDtoSshRevealResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDtoSshRevealResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}