Name | Type | Description | Notes |
---|---|---|---|
CreatedAt | Pointer to string | Date/Time the volume was created. | [optional] |
Driver | string | Name of the volume driver used by the volume. | |
Labels | map[string]string | User-defined key/value metadata. | |
Mountpoint | string | Mount path of the volume on the host. | |
Name | string | Name of the volume. | |
Options | map[string]string | The driver specific options used when creating the volume. | |
Scope | string | The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. | |
Status | Pointer to map[string]map[string]interface{} | Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{"key":"value","key2":"value2"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. | [optional] |
UsageData | Pointer to VolumeUsageData | [optional] |
func NewVolume(driver string, labels map[string]string, mountpoint string, name string, options map[string]string, scope string, ) *Volume
NewVolume instantiates a new Volume 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 NewVolumeWithDefaults() *Volume
NewVolumeWithDefaults instantiates a new Volume 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 *Volume) GetCreatedAt() string
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *Volume) GetCreatedAtOk() (*string, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Volume) SetCreatedAt(v string)
SetCreatedAt sets CreatedAt field to given value.
func (o *Volume) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *Volume) GetDriver() string
GetDriver returns the Driver field if non-nil, zero value otherwise.
func (o *Volume) GetDriverOk() (*string, bool)
GetDriverOk returns a tuple with the Driver field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Volume) SetDriver(v string)
SetDriver sets Driver field to given value.
func (o *Volume) GetLabels() map[string]string
GetLabels returns the Labels field if non-nil, zero value otherwise.
func (o *Volume) GetLabelsOk() (*map[string]string, bool)
GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Volume) SetLabels(v map[string]string)
SetLabels sets Labels field to given value.
func (o *Volume) GetMountpoint() string
GetMountpoint returns the Mountpoint field if non-nil, zero value otherwise.
func (o *Volume) GetMountpointOk() (*string, bool)
GetMountpointOk returns a tuple with the Mountpoint field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Volume) SetMountpoint(v string)
SetMountpoint sets Mountpoint field to given value.
func (o *Volume) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *Volume) 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 *Volume) SetName(v string)
SetName sets Name field to given value.
func (o *Volume) GetOptions() map[string]string
GetOptions returns the Options field if non-nil, zero value otherwise.
func (o *Volume) GetOptionsOk() (*map[string]string, bool)
GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Volume) SetOptions(v map[string]string)
SetOptions sets Options field to given value.
func (o *Volume) GetScope() string
GetScope returns the Scope field if non-nil, zero value otherwise.
func (o *Volume) GetScopeOk() (*string, bool)
GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Volume) SetScope(v string)
SetScope sets Scope field to given value.
func (o *Volume) GetStatus() map[string]map[string]interface{}
GetStatus returns the Status field if non-nil, zero value otherwise.
func (o *Volume) GetStatusOk() (*map[string]map[string]interface{}, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Volume) SetStatus(v map[string]map[string]interface{})
SetStatus sets Status field to given value.
func (o *Volume) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *Volume) GetUsageData() VolumeUsageData
GetUsageData returns the UsageData field if non-nil, zero value otherwise.
func (o *Volume) GetUsageDataOk() (*VolumeUsageData, bool)
GetUsageDataOk returns a tuple with the UsageData field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Volume) SetUsageData(v VolumeUsageData)
SetUsageData sets UsageData field to given value.
func (o *Volume) HasUsageData() bool
HasUsageData returns a boolean if a field has been set.