The openstack_dashboard.dashboards.project.volumes.volumes.forms
ModuleΒΆ
Views for managing volumes.
-
class
openstack_dashboard.dashboards.project.volumes.volumes.forms.
AcceptTransferForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
base_fields
= OrderedDict([('transfer_id', <django.forms.fields.CharField object at 0x7fbcb631d550>), ('auth_key', <django.forms.fields.CharField object at 0x7fbcb631d9d0>)])
-
declared_fields
= OrderedDict([('transfer_id', <django.forms.fields.CharField object at 0x7fbcb631d550>), ('auth_key', <django.forms.fields.CharField object at 0x7fbcb631d9d0>)])
-
handle
(request, data)[source]
-
media
-
-
class
openstack_dashboard.dashboards.project.volumes.volumes.forms.
AttachForm
(*args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
base_fields
= OrderedDict([('instance', <django.forms.fields.ChoiceField object at 0x7fbcb3bb6110>), ('device', <django.forms.fields.CharField object at 0x7fbcb3bb6ad0>)])
-
declared_fields
= OrderedDict([('instance', <django.forms.fields.ChoiceField object at 0x7fbcb3bb6110>), ('device', <django.forms.fields.CharField object at 0x7fbcb3bb6ad0>)])
-
handle
(request, data)[source]
-
media
-
-
class
openstack_dashboard.dashboards.project.volumes.volumes.forms.
CreateForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb37ba7d0>), ('description', <django.forms.fields.CharField object at 0x7fbcb3bb6710>), ('volume_source_type', <django.forms.fields.ChoiceField object at 0x7fbcb3bb6810>), ('snapshot_source', <django.forms.fields.ChoiceField object at 0x7fbcb3bb65d0>), ('image_source', <django.forms.fields.ChoiceField object at 0x7fbcb3bb62d0>), ('volume_source', <django.forms.fields.ChoiceField object at 0x7fbcb3bb6a50>), ('type', <django.forms.fields.ChoiceField object at 0x7fbcb3bb6850>), ('size', <django.forms.fields.IntegerField object at 0x7fbcb3bb6790>), ('availability_zone', <django.forms.fields.ChoiceField object at 0x7fbcb3bb6150>)])
-
clean
()[source]
-
declared_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb37ba7d0>), ('description', <django.forms.fields.CharField object at 0x7fbcb3bb6710>), ('volume_source_type', <django.forms.fields.ChoiceField object at 0x7fbcb3bb6810>), ('snapshot_source', <django.forms.fields.ChoiceField object at 0x7fbcb3bb65d0>), ('image_source', <django.forms.fields.ChoiceField object at 0x7fbcb3bb62d0>), ('volume_source', <django.forms.fields.ChoiceField object at 0x7fbcb3bb6a50>), ('type', <django.forms.fields.ChoiceField object at 0x7fbcb3bb6850>), ('size', <django.forms.fields.IntegerField object at 0x7fbcb3bb6790>), ('availability_zone', <django.forms.fields.ChoiceField object at 0x7fbcb3bb6150>)])
-
get_image
(*args, **kwargs)[source]
-
get_snapshot
(*args, **kwargs)[source]
-
get_volume
(*args, **kwargs)[source]
-
get_volumes
(request)[source]
-
handle
(request, data)[source]
-
media
-
prepare_source_fields_default
(request)[source]
-
prepare_source_fields_if_image_specified
(request)[source]
-
prepare_source_fields_if_snapshot_specified
(request)[source]
-
prepare_source_fields_if_volume_specified
(request)[source]
-
-
class
openstack_dashboard.dashboards.project.volumes.volumes.forms.
CreateSnapshotForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb3bb6890>), ('description', <django.forms.fields.CharField object at 0x7fbcb631dad0>)])
-
declared_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb3bb6890>), ('description', <django.forms.fields.CharField object at 0x7fbcb631dad0>)])
-
handle
(request, data)[source]
-
media
-
-
class
openstack_dashboard.dashboards.project.volumes.volumes.forms.
CreateTransferForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb631d090>)])
-
declared_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb631d090>)])
-
handle
(request, data)[source]
-
media
-
-
class
openstack_dashboard.dashboards.project.volumes.volumes.forms.
ExtendForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb46daa50>), ('orig_size', <django.forms.fields.IntegerField object at 0x7fbcb46da290>), ('new_size', <django.forms.fields.IntegerField object at 0x7fbcb46daf10>)])
-
clean
()[source]
-
declared_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb46daa50>), ('orig_size', <django.forms.fields.IntegerField object at 0x7fbcb46da290>), ('new_size', <django.forms.fields.IntegerField object at 0x7fbcb46daf10>)])
-
handle
(request, data)[source]
-
media
-
-
class
openstack_dashboard.dashboards.project.volumes.volumes.forms.
RetypeForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
MIGRATION_POLICY_CHOICES
= [('never', <django.utils.functional.__proxy__ object at 0x7fbcb46dab50>), ('on-demand', <django.utils.functional.__proxy__ object at 0x7fbcb46da9d0>)]
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb46dad50>), ('volume_type', <django.forms.fields.ChoiceField object at 0x7fbcb46daa10>), ('migration_policy', <django.forms.fields.ChoiceField object at 0x7fbcb46da590>)])
-
declared_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb46dad50>), ('volume_type', <django.forms.fields.ChoiceField object at 0x7fbcb46daa10>), ('migration_policy', <django.forms.fields.ChoiceField object at 0x7fbcb46da590>)])
-
handle
(request, data)[source]
-
media
-
-
class
openstack_dashboard.dashboards.project.volumes.volumes.forms.
ShowTransferForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb631de90>), ('id', <django.forms.fields.CharField object at 0x7fbcb3c44b10>), ('auth_key', <django.forms.fields.CharField object at 0x7fbcb3c44f90>)])
-
declared_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb631de90>), ('id', <django.forms.fields.CharField object at 0x7fbcb3c44b10>), ('auth_key', <django.forms.fields.CharField object at 0x7fbcb3c44f90>)])
-
handle
(request, data)[source]
-
media
-
-
class
openstack_dashboard.dashboards.project.volumes.volumes.forms.
UpdateForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb3c44a90>), ('description', <django.forms.fields.CharField object at 0x7fbcb3c44c90>), ('bootable', <django.forms.fields.BooleanField object at 0x7fbcb3c44f10>)])
-
declared_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb3c44a90>), ('description', <django.forms.fields.CharField object at 0x7fbcb3c44c90>), ('bootable', <django.forms.fields.BooleanField object at 0x7fbcb3c44f10>)])
-
handle
(request, data)[source]
-
media
-
-
class
openstack_dashboard.dashboards.project.volumes.volumes.forms.
UploadToImageForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb3c44ed0>), ('image_name', <django.forms.fields.CharField object at 0x7fbcb3c44d90>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7fbcb46da3d0>), ('force', <django.forms.fields.BooleanField object at 0x7fbcb46da550>)])
-
declared_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7fbcb3c44ed0>), ('image_name', <django.forms.fields.CharField object at 0x7fbcb3c44d90>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7fbcb46da3d0>), ('force', <django.forms.fields.BooleanField object at 0x7fbcb46da550>)])
-
handle
(request, data)[source]
-
media
-
-
openstack_dashboard.dashboards.project.volumes.volumes.forms.
availability_zones
(request)[source]
-
openstack_dashboard.dashboards.project.volumes.volumes.forms.
cinder_az_supported
(request)[source]