Name | Type | Description | Notes |
---|---|---|---|
CallbackUrl | Pointer to string | A URL that can be attached to the volume you are creating. This `callback_url` will post any action events that occur to your volume to the provided URL. | [optional] |
Description | Pointer to string | A brief description or comment about the volume. | [optional] |
EnvironmentName | string | The name of the environment within which the volume is being created. | |
ImageId | Pointer to int32 | The ID of the operating system image that will be associated with the volume. By providing an `image_id` in the create volume request, you will create a bootable volume. | [optional] |
Name | string | The name of the volume being created. | |
Size | int32 | The size of the volume in GB. 1048576GB storage capacity per volume. | |
VolumeType | string | Specifies the type of volume being created, which determines the storage technology it will use. Call the List volume types endpoint to retrieve a list of available volume model types. |
func NewCreateVolumePayload(environmentName string, name string, size int32, volumeType string, ) *CreateVolumePayload
NewCreateVolumePayload instantiates a new CreateVolumePayload 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 NewCreateVolumePayloadWithDefaults() *CreateVolumePayload
NewCreateVolumePayloadWithDefaults instantiates a new CreateVolumePayload 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 *CreateVolumePayload) GetCallbackUrl() string
GetCallbackUrl returns the CallbackUrl field if non-nil, zero value otherwise.
func (o *CreateVolumePayload) GetCallbackUrlOk() (*string, bool)
GetCallbackUrlOk returns a tuple with the CallbackUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateVolumePayload) SetCallbackUrl(v string)
SetCallbackUrl sets CallbackUrl field to given value.
func (o *CreateVolumePayload) HasCallbackUrl() bool
HasCallbackUrl returns a boolean if a field has been set.
func (o *CreateVolumePayload) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *CreateVolumePayload) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateVolumePayload) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *CreateVolumePayload) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CreateVolumePayload) GetEnvironmentName() string
GetEnvironmentName returns the EnvironmentName field if non-nil, zero value otherwise.
func (o *CreateVolumePayload) GetEnvironmentNameOk() (*string, bool)
GetEnvironmentNameOk returns a tuple with the EnvironmentName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateVolumePayload) SetEnvironmentName(v string)
SetEnvironmentName sets EnvironmentName field to given value.
func (o *CreateVolumePayload) GetImageId() int32
GetImageId returns the ImageId field if non-nil, zero value otherwise.
func (o *CreateVolumePayload) GetImageIdOk() (*int32, bool)
GetImageIdOk returns a tuple with the ImageId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateVolumePayload) SetImageId(v int32)
SetImageId sets ImageId field to given value.
func (o *CreateVolumePayload) HasImageId() bool
HasImageId returns a boolean if a field has been set.
func (o *CreateVolumePayload) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *CreateVolumePayload) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateVolumePayload) SetName(v string)
SetName sets Name field to given value.
func (o *CreateVolumePayload) GetSize() int32
GetSize returns the Size field if non-nil, zero value otherwise.
func (o *CreateVolumePayload) 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 *CreateVolumePayload) SetSize(v int32)
SetSize sets Size field to given value.
func (o *CreateVolumePayload) GetVolumeType() string
GetVolumeType returns the VolumeType field if non-nil, zero value otherwise.
func (o *CreateVolumePayload) GetVolumeTypeOk() (*string, bool)
GetVolumeTypeOk returns a tuple with the VolumeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateVolumePayload) SetVolumeType(v string)
SetVolumeType sets VolumeType field to given value.