Name | Type | Description | Notes |
---|---|---|---|
ConfigId | Pointer to int32 | When creating a Volume attached to a Linode, the ID of the Linode Config to include the new Volume in. This Config must belong to the Linode referenced by `linode_id`. Must not be provided if `linode_id` is not sent. If a `linode_id` is sent without a `config_id`, the volume will be attached: - to the Linode's only config if it only has one config. - to the Linode's last used config, if possible. If no config can be selected for attachment, an error will be returned. | [optional] |
Encryption | Pointer to string | Enables encryption on the volume. Full disk encryption ensures the data stored on a block storage volume drive is secure. It protects against unauthorized access by keeping the data encrypted if the volume drive is removed from the data center, decommissioned, or disposed of. The platform automatically manages the encryption and decryption process for you. You can use an encrypted volume the same way as you use a non-encrypted volume. You can enable or disable disk encryption only when creating new block storage volumes. After a volume is created, the encryption setting can't be changed. | [optional] [default to "disabled"] |
Label | string | The Volume's label, which is also used in the `filesystem_path` of the resulting volume. | |
LinodeId | Pointer to int32 | The Linode this volume should be attached to upon creation. If not given, the volume will be created without an attachment. | [optional] |
Region | Pointer to string | The Region to deploy this Volume in. This is only required if a linode_id is not given. | [optional] |
Size | Pointer to int32 | The initial size of this volume, in GB. Be aware that volumes may only be resized up after creation. | [optional] [default to 20] |
Tags | Pointer to []string | An array of Tags applied to this object. Tags are for organizational purposes only. | [optional] |
func NewPostVolumeRequest(label string, ) *PostVolumeRequest
NewPostVolumeRequest instantiates a new PostVolumeRequest 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 NewPostVolumeRequestWithDefaults() *PostVolumeRequest
NewPostVolumeRequestWithDefaults instantiates a new PostVolumeRequest 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 (o *PostVolumeRequest) GetConfigId() int32
GetConfigId returns the ConfigId field if non-nil, zero value otherwise.
func (o *PostVolumeRequest) GetConfigIdOk() (*int32, bool)
GetConfigIdOk returns a tuple with the ConfigId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostVolumeRequest) SetConfigId(v int32)
SetConfigId sets ConfigId field to given value.
func (o *PostVolumeRequest) HasConfigId() bool
HasConfigId returns a boolean if a field has been set.
func (o *PostVolumeRequest) GetEncryption() string
GetEncryption returns the Encryption field if non-nil, zero value otherwise.
func (o *PostVolumeRequest) GetEncryptionOk() (*string, bool)
GetEncryptionOk returns a tuple with the Encryption field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostVolumeRequest) SetEncryption(v string)
SetEncryption sets Encryption field to given value.
func (o *PostVolumeRequest) HasEncryption() bool
HasEncryption returns a boolean if a field has been set.
func (o *PostVolumeRequest) GetLabel() string
GetLabel returns the Label field if non-nil, zero value otherwise.
func (o *PostVolumeRequest) GetLabelOk() (*string, bool)
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostVolumeRequest) SetLabel(v string)
SetLabel sets Label field to given value.
func (o *PostVolumeRequest) GetLinodeId() int32
GetLinodeId returns the LinodeId field if non-nil, zero value otherwise.
func (o *PostVolumeRequest) GetLinodeIdOk() (*int32, bool)
GetLinodeIdOk returns a tuple with the LinodeId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostVolumeRequest) SetLinodeId(v int32)
SetLinodeId sets LinodeId field to given value.
func (o *PostVolumeRequest) HasLinodeId() bool
HasLinodeId returns a boolean if a field has been set.
func (o *PostVolumeRequest) GetRegion() string
GetRegion returns the Region field if non-nil, zero value otherwise.
func (o *PostVolumeRequest) GetRegionOk() (*string, bool)
GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostVolumeRequest) SetRegion(v string)
SetRegion sets Region field to given value.
func (o *PostVolumeRequest) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o *PostVolumeRequest) GetSize() int32
GetSize returns the Size field if non-nil, zero value otherwise.
func (o *PostVolumeRequest) GetSizeOk() (*int32, bool)
GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostVolumeRequest) SetSize(v int32)
SetSize sets Size field to given value.
func (o *PostVolumeRequest) HasSize() bool
HasSize returns a boolean if a field has been set.
func (o *PostVolumeRequest) GetTags() []string
GetTags returns the Tags field if non-nil, zero value otherwise.
func (o *PostVolumeRequest) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostVolumeRequest) SetTags(v []string)
SetTags sets Tags field to given value.
func (o *PostVolumeRequest) HasTags() bool
HasTags returns a boolean if a field has been set.