1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-02-02 09:47:13 +03:00

Added some improvements to Nutanix Prism Central

This commit is contained in:
Adolfo Gómez García 2024-03-19 21:55:54 +01:00
parent 08618f5dbb
commit 83f4359f90
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
8 changed files with 30 additions and 30 deletions

View File

@ -102,7 +102,6 @@ class DynamicPublication(services.Publication, autoserializable.AutoSerializable
"""
return True
@abc.abstractmethod
def publish(self) -> types.states.TaskState:
""" """
self._queue = self._publish_queue

View File

@ -44,6 +44,7 @@ class Tab(enum.StrEnum):
TUNNEL = gettext_noop('Tunnel')
DISPLAY = gettext_noop('Display')
MFA = gettext_noop('MFA')
MACHINE = gettext_noop('Machine')
@staticmethod
def from_str(value: typing.Optional[str]) -> typing.Union['Tab', str, None]:

View File

@ -143,7 +143,7 @@ class OVirtLinkedService(services.Service): # pylint: disable=too-many-public-m
label=_("Base Machine"),
order=110,
tooltip=_('Service base machine'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -155,7 +155,7 @@ class OVirtLinkedService(services.Service): # pylint: disable=too-many-public-m
readonly=False,
order=111,
tooltip=_('Memory assigned to machines'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -167,7 +167,7 @@ class OVirtLinkedService(services.Service): # pylint: disable=too-many-public-m
readonly=False,
order=112,
tooltip=_('Physical memory guaranteed to machines'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
old_field_name='memoryGuaranteed',
)
@ -181,7 +181,7 @@ class OVirtLinkedService(services.Service): # pylint: disable=too-many-public-m
gui.choice_item('disabled', 'disabled'),
gui.choice_item('native', 'native'),
],
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
default='1', # Default value is the ID of the choicefield
)
@ -191,11 +191,11 @@ class OVirtLinkedService(services.Service): # pylint: disable=too-many-public-m
order=114,
tooltip=_('Display type (only for administration purposes)'),
choices=[gui.choice_item('spice', 'Spice'), gui.choice_item('vnc', 'Vnc')],
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
default='1', # Default value is the ID of the choicefield
)
basename = fields.basename_field(order=115, tab=_('Machine'))
lenname = fields.lenname_field(order=116, tab=_('Machine'))
basename = fields.basename_field(order=115, tab=types.ui.Tab.MACHINE)
lenname = fields.lenname_field(order=116, tab=types.ui.Tab.MACHINE)
prov_uuid = gui.HiddenField()

View File

@ -114,7 +114,7 @@ class OpenNebulaLiveService(services.Service):
label=_("Base Template"),
order=110,
tooltip=_('Service base template'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -123,7 +123,7 @@ class OpenNebulaLiveService(services.Service):
readonly=False,
order=111,
tooltip=_('Base name for clones from this machine'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -133,7 +133,7 @@ class OpenNebulaLiveService(services.Service):
default=5,
order=112,
tooltip=_('Size of numeric part for the names of these machines'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)

View File

@ -145,7 +145,7 @@ class OpenStackLiveService(services.Service):
order=4,
tooltip=_('Base volume for service (restricted by availability zone)'),
required=True,
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
)
# volumeType = gui.ChoiceField(label=_('Volume Type'), order=5, tooltip=_('Volume type for service'), required=True)
network = gui.ChoiceField(
@ -153,14 +153,14 @@ class OpenStackLiveService(services.Service):
order=6,
tooltip=_('Network to attach to this service'),
required=True,
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
)
flavor = gui.ChoiceField(
label=_('Flavor'),
order=7,
tooltip=_('Flavor for service'),
required=True,
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
)
security_groups = gui.MultiChoiceField(
@ -168,14 +168,14 @@ class OpenStackLiveService(services.Service):
order=8,
tooltip=_('Service security groups'),
required=True,
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
old_field_name='securityGroups',
)
basename = fields.basename_field(order=9, tab=_('Machine'))
lenname = fields.lenname_field(order=10, tab=_('Machine'))
basename = fields.basename_field(order=9, tab=types.ui.Tab.MACHINE)
lenname = fields.lenname_field(order=10, tab=types.ui.Tab.MACHINE)
maintain_on_error = fields.maintain_on_error_field(order=11, tab=_('Machine'))
maintain_on_error = fields.maintain_on_error_field(order=11, tab=types.ui.Tab.MACHINE)
prov_uuid = gui.HiddenField()

View File

@ -110,7 +110,7 @@ class ProxmoxServiceLinked(DynamicService):
label=_("Pool"),
order=1,
tooltip=_('Pool that will contain UDS created vms'),
# tab=_('Machine'),
# tab=types.ui.Tab.MACHINE,
# required=True,
default='',
)
@ -133,7 +133,7 @@ class ProxmoxServiceLinked(DynamicService):
'parameters': ['machine', 'prov_uuid'],
},
tooltip=_('Service base machine'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -142,7 +142,7 @@ class ProxmoxServiceLinked(DynamicService):
readonly=False,
order=111,
tooltip=_('Storage for publications & machines.'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -156,7 +156,7 @@ class ProxmoxServiceLinked(DynamicService):
'2': _('Only if NOT available'),
},
tooltip=_('Storage for publications & machines.'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)

View File

@ -104,7 +104,7 @@ class ProxmoxServiceLinked(services.Service): # pylint: disable=too-many-public
label=_("Pool"),
order=1,
tooltip=_('Pool that will contain UDS created vms'),
# tab=_('Machine'),
# tab=types.ui.Tab.MACHINE,
# required=True,
default='',
)
@ -127,7 +127,7 @@ class ProxmoxServiceLinked(services.Service): # pylint: disable=too-many-public
'parameters': ['machine', 'prov_uuid'],
},
tooltip=_('Service base machine'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -136,7 +136,7 @@ class ProxmoxServiceLinked(services.Service): # pylint: disable=too-many-public
readonly=False,
order=111,
tooltip=_('Storage for publications & machines.'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -150,7 +150,7 @@ class ProxmoxServiceLinked(services.Service): # pylint: disable=too-many-public
'2': _('Only if NOT available'),
},
tooltip=_('Storage for publications & machines.'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)

View File

@ -122,7 +122,7 @@ class XenLinkedService(services.Service): # pylint: disable=too-many-public-met
label=_("Base Machine"),
order=110,
tooltip=_('Service base machine'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -131,7 +131,7 @@ class XenLinkedService(services.Service): # pylint: disable=too-many-public-met
readonly=False,
order=111,
tooltip=_('Network used for virtual machines'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -142,7 +142,7 @@ class XenLinkedService(services.Service): # pylint: disable=too-many-public-met
readonly=False,
order=112,
tooltip=_('Memory assigned to machines'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)
@ -153,7 +153,7 @@ class XenLinkedService(services.Service): # pylint: disable=too-many-public-met
readonly=False,
order=113,
tooltip=_('Shadow memory multiplier (use with care)'),
tab=_('Machine'),
tab=types.ui.Tab.MACHINE,
required=True,
)