127 lines
5.1 KiB
Go
127 lines
5.1 KiB
Go
/*
|
|
STACKIT File Storage (SFS)
|
|
|
|
API used to create and manage NFS Shares.
|
|
|
|
API version: 1beta.0.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package sfsbeta
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the CreateResourcePoolSnapshotResponse type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CreateResourcePoolSnapshotResponse{}
|
|
|
|
/*
|
|
types and functions for resourcePoolSnapshot
|
|
*/
|
|
|
|
// isModel
|
|
type CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotAttributeType = *CreateResourcePoolSnapshotResponseResourcePoolSnapshot
|
|
type CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotArgType = CreateResourcePoolSnapshotResponseResourcePoolSnapshot
|
|
type CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotRetType = CreateResourcePoolSnapshotResponseResourcePoolSnapshot
|
|
|
|
func getCreateResourcePoolSnapshotResponseGetResourcePoolSnapshotAttributeTypeOk(arg CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotAttributeType) (ret CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateResourcePoolSnapshotResponseGetResourcePoolSnapshotAttributeType(arg *CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotAttributeType, val CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
// CreateResourcePoolSnapshotResponse struct for CreateResourcePoolSnapshotResponse
|
|
type CreateResourcePoolSnapshotResponse struct {
|
|
ResourcePoolSnapshot CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotAttributeType `json:"resourcePoolSnapshot,omitempty"`
|
|
}
|
|
|
|
// NewCreateResourcePoolSnapshotResponse instantiates a new CreateResourcePoolSnapshotResponse 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 NewCreateResourcePoolSnapshotResponse() *CreateResourcePoolSnapshotResponse {
|
|
this := CreateResourcePoolSnapshotResponse{}
|
|
return &this
|
|
}
|
|
|
|
// NewCreateResourcePoolSnapshotResponseWithDefaults instantiates a new CreateResourcePoolSnapshotResponse 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 NewCreateResourcePoolSnapshotResponseWithDefaults() *CreateResourcePoolSnapshotResponse {
|
|
this := CreateResourcePoolSnapshotResponse{}
|
|
return &this
|
|
}
|
|
|
|
// GetResourcePoolSnapshot returns the ResourcePoolSnapshot field value if set, zero value otherwise.
|
|
func (o *CreateResourcePoolSnapshotResponse) GetResourcePoolSnapshot() (res CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotRetType) {
|
|
res, _ = o.GetResourcePoolSnapshotOk()
|
|
return
|
|
}
|
|
|
|
// GetResourcePoolSnapshotOk returns a tuple with the ResourcePoolSnapshot field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CreateResourcePoolSnapshotResponse) GetResourcePoolSnapshotOk() (ret CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotRetType, ok bool) {
|
|
return getCreateResourcePoolSnapshotResponseGetResourcePoolSnapshotAttributeTypeOk(o.ResourcePoolSnapshot)
|
|
}
|
|
|
|
// HasResourcePoolSnapshot returns a boolean if a field has been set.
|
|
func (o *CreateResourcePoolSnapshotResponse) HasResourcePoolSnapshot() bool {
|
|
_, ok := o.GetResourcePoolSnapshotOk()
|
|
return ok
|
|
}
|
|
|
|
// SetResourcePoolSnapshot gets a reference to the given CreateResourcePoolSnapshotResponseResourcePoolSnapshot and assigns it to the ResourcePoolSnapshot field.
|
|
func (o *CreateResourcePoolSnapshotResponse) SetResourcePoolSnapshot(v CreateResourcePoolSnapshotResponseGetResourcePoolSnapshotRetType) {
|
|
setCreateResourcePoolSnapshotResponseGetResourcePoolSnapshotAttributeType(&o.ResourcePoolSnapshot, v)
|
|
}
|
|
|
|
func (o CreateResourcePoolSnapshotResponse) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getCreateResourcePoolSnapshotResponseGetResourcePoolSnapshotAttributeTypeOk(o.ResourcePoolSnapshot); ok {
|
|
toSerialize["ResourcePoolSnapshot"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableCreateResourcePoolSnapshotResponse struct {
|
|
value *CreateResourcePoolSnapshotResponse
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCreateResourcePoolSnapshotResponse) Get() *CreateResourcePoolSnapshotResponse {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCreateResourcePoolSnapshotResponse) Set(val *CreateResourcePoolSnapshotResponse) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCreateResourcePoolSnapshotResponse) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCreateResourcePoolSnapshotResponse) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCreateResourcePoolSnapshotResponse(val *CreateResourcePoolSnapshotResponse) *NullableCreateResourcePoolSnapshotResponse {
|
|
return &NullableCreateResourcePoolSnapshotResponse{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCreateResourcePoolSnapshotResponse) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCreateResourcePoolSnapshotResponse) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|