## Description
<!-- **Please link some issue here describing what you are trying to achieve.**
In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->
relates to #1234
## Checklist
- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)
Reviewed-on: #4
Reviewed-by: Andre_Harms <andre.harms@stackit.cloud>
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
469 lines
19 KiB
Go
469 lines
19 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 CreateResourcePoolPayload type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CreateResourcePoolPayload{}
|
|
|
|
/*
|
|
types and functions for availabilityZone
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type CreateResourcePoolPayloadGetAvailabilityZoneAttributeType = *string
|
|
|
|
func getCreateResourcePoolPayloadGetAvailabilityZoneAttributeTypeOk(arg CreateResourcePoolPayloadGetAvailabilityZoneAttributeType) (ret CreateResourcePoolPayloadGetAvailabilityZoneRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateResourcePoolPayloadGetAvailabilityZoneAttributeType(arg *CreateResourcePoolPayloadGetAvailabilityZoneAttributeType, val CreateResourcePoolPayloadGetAvailabilityZoneRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type CreateResourcePoolPayloadGetAvailabilityZoneArgType = string
|
|
type CreateResourcePoolPayloadGetAvailabilityZoneRetType = string
|
|
|
|
/*
|
|
types and functions for ipAcl
|
|
*/
|
|
|
|
// isArray
|
|
type CreateResourcePoolPayloadGetIpAclAttributeType = *[]string
|
|
type CreateResourcePoolPayloadGetIpAclArgType = []string
|
|
type CreateResourcePoolPayloadGetIpAclRetType = []string
|
|
|
|
func getCreateResourcePoolPayloadGetIpAclAttributeTypeOk(arg CreateResourcePoolPayloadGetIpAclAttributeType) (ret CreateResourcePoolPayloadGetIpAclRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateResourcePoolPayloadGetIpAclAttributeType(arg *CreateResourcePoolPayloadGetIpAclAttributeType, val CreateResourcePoolPayloadGetIpAclRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for labels
|
|
*/
|
|
|
|
// isContainer
|
|
type CreateResourcePoolPayloadGetLabelsAttributeType = *map[string]string
|
|
type CreateResourcePoolPayloadGetLabelsArgType = map[string]string
|
|
type CreateResourcePoolPayloadGetLabelsRetType = map[string]string
|
|
|
|
func getCreateResourcePoolPayloadGetLabelsAttributeTypeOk(arg CreateResourcePoolPayloadGetLabelsAttributeType) (ret CreateResourcePoolPayloadGetLabelsRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateResourcePoolPayloadGetLabelsAttributeType(arg *CreateResourcePoolPayloadGetLabelsAttributeType, val CreateResourcePoolPayloadGetLabelsRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for name
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type CreateResourcePoolPayloadGetNameAttributeType = *string
|
|
|
|
func getCreateResourcePoolPayloadGetNameAttributeTypeOk(arg CreateResourcePoolPayloadGetNameAttributeType) (ret CreateResourcePoolPayloadGetNameRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateResourcePoolPayloadGetNameAttributeType(arg *CreateResourcePoolPayloadGetNameAttributeType, val CreateResourcePoolPayloadGetNameRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type CreateResourcePoolPayloadGetNameArgType = string
|
|
type CreateResourcePoolPayloadGetNameRetType = string
|
|
|
|
/*
|
|
types and functions for performanceClass
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type CreateResourcePoolPayloadGetPerformanceClassAttributeType = *string
|
|
|
|
func getCreateResourcePoolPayloadGetPerformanceClassAttributeTypeOk(arg CreateResourcePoolPayloadGetPerformanceClassAttributeType) (ret CreateResourcePoolPayloadGetPerformanceClassRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateResourcePoolPayloadGetPerformanceClassAttributeType(arg *CreateResourcePoolPayloadGetPerformanceClassAttributeType, val CreateResourcePoolPayloadGetPerformanceClassRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type CreateResourcePoolPayloadGetPerformanceClassArgType = string
|
|
type CreateResourcePoolPayloadGetPerformanceClassRetType = string
|
|
|
|
/*
|
|
types and functions for sizeGigabytes
|
|
*/
|
|
|
|
// isInteger
|
|
type CreateResourcePoolPayloadGetSizeGigabytesAttributeType = *int64
|
|
type CreateResourcePoolPayloadGetSizeGigabytesArgType = int64
|
|
type CreateResourcePoolPayloadGetSizeGigabytesRetType = int64
|
|
|
|
func getCreateResourcePoolPayloadGetSizeGigabytesAttributeTypeOk(arg CreateResourcePoolPayloadGetSizeGigabytesAttributeType) (ret CreateResourcePoolPayloadGetSizeGigabytesRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateResourcePoolPayloadGetSizeGigabytesAttributeType(arg *CreateResourcePoolPayloadGetSizeGigabytesAttributeType, val CreateResourcePoolPayloadGetSizeGigabytesRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for snapshotScheduleName
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type CreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType = *string
|
|
|
|
func getCreateResourcePoolPayloadGetSnapshotScheduleNameAttributeTypeOk(arg CreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType) (ret CreateResourcePoolPayloadGetSnapshotScheduleNameRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType(arg *CreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType, val CreateResourcePoolPayloadGetSnapshotScheduleNameRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type CreateResourcePoolPayloadGetSnapshotScheduleNameArgType = string
|
|
type CreateResourcePoolPayloadGetSnapshotScheduleNameRetType = string
|
|
|
|
/*
|
|
types and functions for snapshotsAreVisible
|
|
*/
|
|
|
|
// isBoolean
|
|
type CreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeType = *bool
|
|
type CreateResourcePoolPayloadgetSnapshotsAreVisibleArgType = bool
|
|
type CreateResourcePoolPayloadgetSnapshotsAreVisibleRetType = bool
|
|
|
|
func getCreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeTypeOk(arg CreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeType) (ret CreateResourcePoolPayloadgetSnapshotsAreVisibleRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeType(arg *CreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeType, val CreateResourcePoolPayloadgetSnapshotsAreVisibleRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
// CreateResourcePoolPayload struct for CreateResourcePoolPayload
|
|
type CreateResourcePoolPayload struct {
|
|
// Availability zone
|
|
AvailabilityZone CreateResourcePoolPayloadGetAvailabilityZoneAttributeType `json:"availabilityZone,omitempty"`
|
|
// List of IPs that can mount the Resource Pool in read-only; IPs must have a subnet mask (e.g. \"172.16.0.0/24\" for a range of IPs, or \"172.16.0.250/32\" for a specific IP)
|
|
IpAcl CreateResourcePoolPayloadGetIpAclAttributeType `json:"ipAcl,omitempty"`
|
|
// An optional object that represents the labels associated with the resource pool keys are validated using the following regex '^[\\\\p{Ll}][\\\\p{Ll}\\\\p{N}_-]*$' and cannot be empty values are validated using the following regex '^[\\\\p{Ll}\\\\p{N}_-]*$'
|
|
Labels CreateResourcePoolPayloadGetLabelsAttributeType `json:"labels,omitempty"`
|
|
// Name of the Resource Pool
|
|
Name CreateResourcePoolPayloadGetNameAttributeType `json:"name,omitempty"`
|
|
// Name of the performance class
|
|
PerformanceClass CreateResourcePoolPayloadGetPerformanceClassAttributeType `json:"performanceClass,omitempty"`
|
|
// Size of the Resource Pool (unit: gibibytes)
|
|
// Can be cast to int32 without loss of precision.
|
|
SizeGigabytes CreateResourcePoolPayloadGetSizeGigabytesAttributeType `json:"sizeGigabytes,omitempty"`
|
|
// (optional) Name of the Snapshot Schedule to use
|
|
SnapshotScheduleName CreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType `json:"snapshotScheduleName,omitempty"`
|
|
// Whether the .snapshot directory is visible when mounting the resource pool. Setting this value to false might prevent you from accessing the snapshots (e.g. for security reasons). Additionally, the access to the snapshots is always controlled by the export policy of the resource pool. That means, if snapshots are visible and the export policy allows for reading the resource pool, then it also allows reading the snapshot of all shares.
|
|
SnapshotsAreVisible CreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeType `json:"snapshotsAreVisible,omitempty"`
|
|
}
|
|
|
|
// NewCreateResourcePoolPayload instantiates a new CreateResourcePoolPayload 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 NewCreateResourcePoolPayload() *CreateResourcePoolPayload {
|
|
this := CreateResourcePoolPayload{}
|
|
return &this
|
|
}
|
|
|
|
// NewCreateResourcePoolPayloadWithDefaults instantiates a new CreateResourcePoolPayload 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 NewCreateResourcePoolPayloadWithDefaults() *CreateResourcePoolPayload {
|
|
this := CreateResourcePoolPayload{}
|
|
return &this
|
|
}
|
|
|
|
// GetAvailabilityZone returns the AvailabilityZone field value if set, zero value otherwise.
|
|
func (o *CreateResourcePoolPayload) GetAvailabilityZone() (res CreateResourcePoolPayloadGetAvailabilityZoneRetType) {
|
|
res, _ = o.GetAvailabilityZoneOk()
|
|
return
|
|
}
|
|
|
|
// GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CreateResourcePoolPayload) GetAvailabilityZoneOk() (ret CreateResourcePoolPayloadGetAvailabilityZoneRetType, ok bool) {
|
|
return getCreateResourcePoolPayloadGetAvailabilityZoneAttributeTypeOk(o.AvailabilityZone)
|
|
}
|
|
|
|
// HasAvailabilityZone returns a boolean if a field has been set.
|
|
func (o *CreateResourcePoolPayload) HasAvailabilityZone() bool {
|
|
_, ok := o.GetAvailabilityZoneOk()
|
|
return ok
|
|
}
|
|
|
|
// SetAvailabilityZone gets a reference to the given string and assigns it to the AvailabilityZone field.
|
|
func (o *CreateResourcePoolPayload) SetAvailabilityZone(v CreateResourcePoolPayloadGetAvailabilityZoneRetType) {
|
|
setCreateResourcePoolPayloadGetAvailabilityZoneAttributeType(&o.AvailabilityZone, v)
|
|
}
|
|
|
|
// GetIpAcl returns the IpAcl field value if set, zero value otherwise.
|
|
func (o *CreateResourcePoolPayload) GetIpAcl() (res CreateResourcePoolPayloadGetIpAclRetType) {
|
|
res, _ = o.GetIpAclOk()
|
|
return
|
|
}
|
|
|
|
// GetIpAclOk returns a tuple with the IpAcl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CreateResourcePoolPayload) GetIpAclOk() (ret CreateResourcePoolPayloadGetIpAclRetType, ok bool) {
|
|
return getCreateResourcePoolPayloadGetIpAclAttributeTypeOk(o.IpAcl)
|
|
}
|
|
|
|
// HasIpAcl returns a boolean if a field has been set.
|
|
func (o *CreateResourcePoolPayload) HasIpAcl() bool {
|
|
_, ok := o.GetIpAclOk()
|
|
return ok
|
|
}
|
|
|
|
// SetIpAcl gets a reference to the given []string and assigns it to the IpAcl field.
|
|
func (o *CreateResourcePoolPayload) SetIpAcl(v CreateResourcePoolPayloadGetIpAclRetType) {
|
|
setCreateResourcePoolPayloadGetIpAclAttributeType(&o.IpAcl, v)
|
|
}
|
|
|
|
// GetLabels returns the Labels field value if set, zero value otherwise.
|
|
func (o *CreateResourcePoolPayload) GetLabels() (res CreateResourcePoolPayloadGetLabelsRetType) {
|
|
res, _ = o.GetLabelsOk()
|
|
return
|
|
}
|
|
|
|
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CreateResourcePoolPayload) GetLabelsOk() (ret CreateResourcePoolPayloadGetLabelsRetType, ok bool) {
|
|
return getCreateResourcePoolPayloadGetLabelsAttributeTypeOk(o.Labels)
|
|
}
|
|
|
|
// HasLabels returns a boolean if a field has been set.
|
|
func (o *CreateResourcePoolPayload) HasLabels() bool {
|
|
_, ok := o.GetLabelsOk()
|
|
return ok
|
|
}
|
|
|
|
// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
|
|
func (o *CreateResourcePoolPayload) SetLabels(v CreateResourcePoolPayloadGetLabelsRetType) {
|
|
setCreateResourcePoolPayloadGetLabelsAttributeType(&o.Labels, v)
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *CreateResourcePoolPayload) GetName() (res CreateResourcePoolPayloadGetNameRetType) {
|
|
res, _ = o.GetNameOk()
|
|
return
|
|
}
|
|
|
|
// 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 *CreateResourcePoolPayload) GetNameOk() (ret CreateResourcePoolPayloadGetNameRetType, ok bool) {
|
|
return getCreateResourcePoolPayloadGetNameAttributeTypeOk(o.Name)
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *CreateResourcePoolPayload) HasName() bool {
|
|
_, ok := o.GetNameOk()
|
|
return ok
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *CreateResourcePoolPayload) SetName(v CreateResourcePoolPayloadGetNameRetType) {
|
|
setCreateResourcePoolPayloadGetNameAttributeType(&o.Name, v)
|
|
}
|
|
|
|
// GetPerformanceClass returns the PerformanceClass field value if set, zero value otherwise.
|
|
func (o *CreateResourcePoolPayload) GetPerformanceClass() (res CreateResourcePoolPayloadGetPerformanceClassRetType) {
|
|
res, _ = o.GetPerformanceClassOk()
|
|
return
|
|
}
|
|
|
|
// GetPerformanceClassOk returns a tuple with the PerformanceClass field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CreateResourcePoolPayload) GetPerformanceClassOk() (ret CreateResourcePoolPayloadGetPerformanceClassRetType, ok bool) {
|
|
return getCreateResourcePoolPayloadGetPerformanceClassAttributeTypeOk(o.PerformanceClass)
|
|
}
|
|
|
|
// HasPerformanceClass returns a boolean if a field has been set.
|
|
func (o *CreateResourcePoolPayload) HasPerformanceClass() bool {
|
|
_, ok := o.GetPerformanceClassOk()
|
|
return ok
|
|
}
|
|
|
|
// SetPerformanceClass gets a reference to the given string and assigns it to the PerformanceClass field.
|
|
func (o *CreateResourcePoolPayload) SetPerformanceClass(v CreateResourcePoolPayloadGetPerformanceClassRetType) {
|
|
setCreateResourcePoolPayloadGetPerformanceClassAttributeType(&o.PerformanceClass, v)
|
|
}
|
|
|
|
// GetSizeGigabytes returns the SizeGigabytes field value if set, zero value otherwise.
|
|
func (o *CreateResourcePoolPayload) GetSizeGigabytes() (res CreateResourcePoolPayloadGetSizeGigabytesRetType) {
|
|
res, _ = o.GetSizeGigabytesOk()
|
|
return
|
|
}
|
|
|
|
// GetSizeGigabytesOk returns a tuple with the SizeGigabytes field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CreateResourcePoolPayload) GetSizeGigabytesOk() (ret CreateResourcePoolPayloadGetSizeGigabytesRetType, ok bool) {
|
|
return getCreateResourcePoolPayloadGetSizeGigabytesAttributeTypeOk(o.SizeGigabytes)
|
|
}
|
|
|
|
// HasSizeGigabytes returns a boolean if a field has been set.
|
|
func (o *CreateResourcePoolPayload) HasSizeGigabytes() bool {
|
|
_, ok := o.GetSizeGigabytesOk()
|
|
return ok
|
|
}
|
|
|
|
// SetSizeGigabytes gets a reference to the given int64 and assigns it to the SizeGigabytes field.
|
|
func (o *CreateResourcePoolPayload) SetSizeGigabytes(v CreateResourcePoolPayloadGetSizeGigabytesRetType) {
|
|
setCreateResourcePoolPayloadGetSizeGigabytesAttributeType(&o.SizeGigabytes, v)
|
|
}
|
|
|
|
// GetSnapshotScheduleName returns the SnapshotScheduleName field value if set, zero value otherwise.
|
|
func (o *CreateResourcePoolPayload) GetSnapshotScheduleName() (res CreateResourcePoolPayloadGetSnapshotScheduleNameRetType) {
|
|
res, _ = o.GetSnapshotScheduleNameOk()
|
|
return
|
|
}
|
|
|
|
// GetSnapshotScheduleNameOk returns a tuple with the SnapshotScheduleName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CreateResourcePoolPayload) GetSnapshotScheduleNameOk() (ret CreateResourcePoolPayloadGetSnapshotScheduleNameRetType, ok bool) {
|
|
return getCreateResourcePoolPayloadGetSnapshotScheduleNameAttributeTypeOk(o.SnapshotScheduleName)
|
|
}
|
|
|
|
// HasSnapshotScheduleName returns a boolean if a field has been set.
|
|
func (o *CreateResourcePoolPayload) HasSnapshotScheduleName() bool {
|
|
_, ok := o.GetSnapshotScheduleNameOk()
|
|
return ok
|
|
}
|
|
|
|
// SetSnapshotScheduleName gets a reference to the given string and assigns it to the SnapshotScheduleName field.
|
|
func (o *CreateResourcePoolPayload) SetSnapshotScheduleName(v CreateResourcePoolPayloadGetSnapshotScheduleNameRetType) {
|
|
setCreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType(&o.SnapshotScheduleName, v)
|
|
}
|
|
|
|
// GetSnapshotsAreVisible returns the SnapshotsAreVisible field value if set, zero value otherwise.
|
|
func (o *CreateResourcePoolPayload) GetSnapshotsAreVisible() (res CreateResourcePoolPayloadgetSnapshotsAreVisibleRetType) {
|
|
res, _ = o.GetSnapshotsAreVisibleOk()
|
|
return
|
|
}
|
|
|
|
// GetSnapshotsAreVisibleOk returns a tuple with the SnapshotsAreVisible field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CreateResourcePoolPayload) GetSnapshotsAreVisibleOk() (ret CreateResourcePoolPayloadgetSnapshotsAreVisibleRetType, ok bool) {
|
|
return getCreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeTypeOk(o.SnapshotsAreVisible)
|
|
}
|
|
|
|
// HasSnapshotsAreVisible returns a boolean if a field has been set.
|
|
func (o *CreateResourcePoolPayload) HasSnapshotsAreVisible() bool {
|
|
_, ok := o.GetSnapshotsAreVisibleOk()
|
|
return ok
|
|
}
|
|
|
|
// SetSnapshotsAreVisible gets a reference to the given bool and assigns it to the SnapshotsAreVisible field.
|
|
func (o *CreateResourcePoolPayload) SetSnapshotsAreVisible(v CreateResourcePoolPayloadgetSnapshotsAreVisibleRetType) {
|
|
setCreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeType(&o.SnapshotsAreVisible, v)
|
|
}
|
|
|
|
func (o CreateResourcePoolPayload) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getCreateResourcePoolPayloadGetAvailabilityZoneAttributeTypeOk(o.AvailabilityZone); ok {
|
|
toSerialize["AvailabilityZone"] = val
|
|
}
|
|
if val, ok := getCreateResourcePoolPayloadGetIpAclAttributeTypeOk(o.IpAcl); ok {
|
|
toSerialize["IpAcl"] = val
|
|
}
|
|
if val, ok := getCreateResourcePoolPayloadGetLabelsAttributeTypeOk(o.Labels); ok {
|
|
toSerialize["Labels"] = val
|
|
}
|
|
if val, ok := getCreateResourcePoolPayloadGetNameAttributeTypeOk(o.Name); ok {
|
|
toSerialize["Name"] = val
|
|
}
|
|
if val, ok := getCreateResourcePoolPayloadGetPerformanceClassAttributeTypeOk(o.PerformanceClass); ok {
|
|
toSerialize["PerformanceClass"] = val
|
|
}
|
|
if val, ok := getCreateResourcePoolPayloadGetSizeGigabytesAttributeTypeOk(o.SizeGigabytes); ok {
|
|
toSerialize["SizeGigabytes"] = val
|
|
}
|
|
if val, ok := getCreateResourcePoolPayloadGetSnapshotScheduleNameAttributeTypeOk(o.SnapshotScheduleName); ok {
|
|
toSerialize["SnapshotScheduleName"] = val
|
|
}
|
|
if val, ok := getCreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeTypeOk(o.SnapshotsAreVisible); ok {
|
|
toSerialize["SnapshotsAreVisible"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableCreateResourcePoolPayload struct {
|
|
value *CreateResourcePoolPayload
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCreateResourcePoolPayload) Get() *CreateResourcePoolPayload {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCreateResourcePoolPayload) Set(val *CreateResourcePoolPayload) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCreateResourcePoolPayload) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCreateResourcePoolPayload) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCreateResourcePoolPayload(val *CreateResourcePoolPayload) *NullableCreateResourcePoolPayload {
|
|
return &NullableCreateResourcePoolPayload{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCreateResourcePoolPayload) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCreateResourcePoolPayload) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|