예제 #1
0
 def __init__(self,
              name=None,
              hostname=None,
              ip_address=None,
              custom_ident=None,
              host_platform=None,
              ipmi_address=None,
              mac_address=None,
              credentials=None,
              ipmi_credentials=None,
              interface_type='lan',
              provider=None,
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.quad_name = 'host'
     self.hostname = hostname
     self.ip_address = ip_address
     self.custom_ident = custom_ident
     self.host_platform = host_platform
     self.ipmi_address = ipmi_address
     self.mac_address = mac_address
     self.credentials = credentials
     self.ipmi_credentials = ipmi_credentials
     self.interface_type = interface_type
     self.db_id = None
     self.provider = provider
예제 #2
0
 def __init__(self, appliance, zone=None, name="EVM", sid=1):
     Navigatable.__init__(self, appliance=appliance)
     self.zone = zone or appliance.server.zone
     self.name = name
     self.sid = sid
     self.zone.servers.add(self)
     self.parent = self.appliance.context
예제 #3
0
 def __init__(self, name=None, description=None, parent_tenant=None, _default=False,
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.description = description
     self.parent_tenant = parent_tenant
     self._default = _default
예제 #4
0
 def __init__(self, name, credential_type, collection=None, appliance=None, **credentials):
     self.collection = collection or CredentialsCollection(appliance=appliance)
     Navigatable.__init__(self, appliance=self.collection.appliance)
     self.name = name
     self.credential_type = credential_type
     for key, value in credentials.iteritems():
         setattr(self, key, value)
예제 #5
0
 def __init__(self, name, provider, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     if not isinstance(provider, OpenstackInfraProvider):
         raise NotImplementedError('Deployment roles available only '
                                   'for Openstack provider')
     self.name = name
     self.provider = provider
예제 #6
0
 def __init__(self,
              description,
              active=None,
              based_on=None,
              evaluate=None,
              driving_event=None,
              notification_frequency=None,
              snmp_trap=None,
              emails=None,
              timeline_event=None,
              mgmt_event=None,
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.description = description
     self.active = active
     self.based_on = based_on
     if evaluate is not None:
         raise NotImplementedError
     self.driving_event = driving_event
     self.notification_frequency = notification_frequency
     self.snmp_trap = snmp_trap
     if emails is not None:
         raise NotImplementedError
     self.timeline_event = timeline_event
     self.mgmt_event = mgmt_event
예제 #7
0
 def __init__(self, description=None, scope=None, days=None, hours=None, timezone=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.description = description
     self.scope = scope
     self.days = days
     self.hours = hours
     self.timezone = timezone
예제 #8
0
 def __init__(self, title, description=None, active=None, shortcuts=None, visibility=None, appliance=None):
     Navigatable.__init__(self, appliance)
     self.title = title
     self.description = description
     self.active = active
     self.shortcuts = shortcuts
     self.visibility = visibility
예제 #9
0
 def __init__(self, description=None,
              cpu_alloc=None,
              cpu_used=None,
              cpu_used_var=None,
              disk_io=None,
              disk_io_var=None,
              compute_fixed_1=None,
              compute_fixed_2=None,
              mem_alloc=None,
              mem_used=None,
              mem_used_var=None,
              net_io=None,
              net_io_var=None,
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.description = description
     self.cpu_alloc = cpu_alloc
     self.cpu_used = cpu_used
     self.cpu_used_var = cpu_used_var
     self.disk_io = disk_io
     self.disk_io_var = disk_io_var
     self.compute_fixed_1 = compute_fixed_1
     self.compute_fixed_2 = compute_fixed_2
     self.mem_alloc = mem_alloc
     self.mem_used = mem_used
     self.mem_used_var = mem_used_var
     self.net_io = net_io
     self.net_io_var = net_io_var
예제 #10
0
 def __init__(self, appliance, zone=None, name="EVM", sid=1):
     Navigatable.__init__(self, appliance=appliance)
     self.zone = zone or appliance.server.zone
     self.name = name
     self.sid = sid
     self.zone.servers.add(self)
     self.parent = self.appliance.context
예제 #11
0
 def __init__(self, name, provider, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     # TODO add storage provider parameter, needed for accurate details nav
     # the storage providers have different names then cloud providers
     # https://bugzilla.redhat.com/show_bug.cgi?id=1455270
     self.provider = provider
예제 #12
0
 def __init__(self,
              name=None,
              description=None,
              item_type=None,
              vm_name=None,
              display_in=False,
              catalog=None,
              dialog=None,
              catalog_name=None,
              orch_template=None,
              provider_type=None,
              provider=None,
              config_template=None,
              prov_data=None,
              domain="ManageIQ (Locked)",
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.description = description
     self.item_type = item_type
     self.vm_name = vm_name
     self.display_in = display_in
     self.catalog = catalog
     self.dialog = dialog
     self.catalog_name = catalog_name
     self.orch_template = orch_template
     self.provider = provider
     self.config_template = config_template
     self.provider_type = provider_type
     self.provisioning_data = prov_data
     self.domain = domain
예제 #13
0
 def __init__(self, name=None, display_name=None, description=None, values=None, cls=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.description = description
     self.values = values
     self.display_name = display_name
     self.cls = cls
예제 #14
0
 def __init__(self, name, provider, collection=None, appliance=None):
     self.name = name
     self.provider = provider
     if not collection:
         collection = NodeCollection(appliance=appliance)
     self.collection = collection
     Navigatable.__init__(self, appliance=appliance)
예제 #15
0
 def __init__(self, url=None, username=None, password=None, verify_ssl=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.url = url
     self.username = username
     self.password = password
     self.verify_ssl = verify_ssl
     self.domain = None
예제 #16
0
 def __init__(self, path_to_report, datetime, candu=False, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.path = path_to_report
     self.datetime = datetime
     self.candu = candu
     self.datetime_in_tree = version.pick({"5.6": self.datetime,
                     "5.7": parsetime.from_american_with_utc(self.datetime).to_iso_with_utc()})
예제 #17
0
 def __init__(self, name, provider, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     # TODO add storage provider parameter, needed for accurate details nav
     # the storage providers have different names then cloud providers
     # https://bugzilla.redhat.com/show_bug.cgi?id=1455270
     self.provider = provider
예제 #18
0
파일: node.py 프로젝트: rananda/cfme_tests
 def __init__(self, name, provider, collection=None, appliance=None):
     self.name = name
     self.provider = provider
     if not collection:
         collection = NodeCollection(appliance=appliance)
     self.collection = collection
     Navigatable.__init__(self, appliance=appliance)
예제 #19
0
 def __init__(self, name, group, title=None, locked=None, widgets=None, appliance=None):
     Navigatable.__init__(self, appliance)
     self.name = name
     self.title = title
     self.locked = locked
     self.widgets = widgets
     self._group = group
예제 #20
0
 def __init__(self, name=None, url=None, ssl=None, credentials=None, key=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.url = url
     self.ssl = ssl
     self.credentials = credentials
     self.key = key or name
예제 #21
0
 def __init__(self,
              name,
              description,
              enabled=None,
              locked=None,
              collection=None,
              git_repository=None,
              git_checkout_type=None,
              git_checkout_value=None,
              db_id=None,
              appliance=None):
     if db_id is not None:
         self.db_id = db_id
     if collection is None:
         collection = DomainCollection(appliance=appliance)
     self.collection = collection
     Navigatable.__init__(self, appliance=collection.appliance)
     self.name = name
     self.description = description
     if git_repository is not None:
         self.git_repository = git_repository
     if git_checkout_type is not None:
         self.git_checkout_type = git_checkout_type
     if git_checkout_value is not None:
         self.git_checkout_value = git_checkout_value
     if enabled is not None:
         self.enabled = enabled
     if locked is not None:
         self.locked = locked
예제 #22
0
 def __init__(self, path_to_report, datetime, candu=False, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.path = path_to_report
     self.datetime = datetime
     self.candu = candu
     self.datetime_in_tree = version.pick({"5.6": self.datetime,
                     "5.7": parsetime.from_american_with_utc(self.datetime).to_iso_with_utc()})
예제 #23
0
 def __init__(self, catalog=None, name=None, stack_data=None,
              dialog_values=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.catalog = catalog
     self.name = name
     self.stack_data = stack_data
     self.dialog_values = dialog_values
예제 #24
0
 def __init__(self, name, provider, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     if not isinstance(provider, OpenstackInfraProvider):
         raise NotImplementedError('Deployment roles available only '
                                   'for Openstack provider')
     self.name = name
     self.provider = provider
예제 #25
0
 def __init__(self,
              name=None,
              credentials=None,
              key=None,
              zone=None,
              hawkular=None,
              hostname=None,
              api_port=None,
              sec_protocol=None,
              hawkular_sec_protocol=None,
              hawkular_hostname=None,
              hawkular_api_port=None,
              provider_data=None,
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     if not credentials:
         credentials = {}
     self.name = name
     self.credentials = credentials
     self.key = key
     self.zone = zone
     self.hawkular = hawkular
     self.hostname = hostname
     self.api_port = api_port
     self.sec_protocol = sec_protocol
     self.hawkular_sec_protocol = hawkular_sec_protocol
     self.hawkular_hostname = hawkular_hostname
     self.hawkular_api_port = hawkular_api_port
     self.provider_data = provider_data
예제 #26
0
 def __init__(self, assign_to=None,
              tag_category=None,
              selections=None,
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.assign_to = assign_to
     self.tag_category = tag_category
     self.selections = selections
예제 #27
0
 def __init__(self, collection, name, display_name, description):
     Navigatable.__init__(self, appliance=collection.appliance)
     self.collection = collection
     self.name = name
     if display_name is not None:
         self.display_name = display_name
     if description is not None:
         self.description = description
예제 #28
0
 def __init__(self, description=None, scope=None, days=None, hours=None, timezone=None,
         appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.description = description
     self.scope = scope
     self.days = days
     self.hours = hours
     self.timezone = timezone
예제 #29
0
 def __init__(self, assign_to=None,
              tag_category=None,
              selections=None,
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.assign_to = assign_to
     self.tag_category = tag_category
     self.selections = selections
예제 #30
0
 def __init__(self, description=None, role=None, tenant="My Company", user_to_lookup=None,
         ldap_credentials=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.description = description
     self.role = role
     self.tenant = tenant
     self.ldap_credentials = ldap_credentials
     self.user_to_lookup = user_to_lookup
예제 #31
0
 def __init__(self, name=None, provider_key=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.quad_name = 'resource_pool'
     self.name = name
     if provider_key:
         self.provider = get_crud(provider_key)
     else:
         self.provider = None
예제 #32
0
 def __init__(self, collection, name, display_name, description):
     Navigatable.__init__(self, appliance=collection.appliance)
     self.collection = collection
     self.name = name
     if display_name is not None:
         self.display_name = display_name
     if description is not None:
         self.description = description
예제 #33
0
 def __init__(self, name=None, display_name=None, location=None, data=None, cls=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     # TODO: display name
     self.display_name = None
     self.location = location
     self.data = data
     self.cls = cls
예제 #34
0
 def __init__(self, name=None, credentials=None, zone=None, key=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     if not credentials:
         credentials = {}
     self.name = name
     self.credentials = credentials
     self.zone = zone
     self.key = key
예제 #35
0
 def __init__(self, description=None, role=None, tenant="My Company", user_to_lookup=None,
         ldap_credentials=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.description = description
     self.role = role
     self.tenant = tenant
     self.ldap_credentials = ldap_credentials
     self.user_to_lookup = user_to_lookup
 def __init__(self, template_type=None, template_name=None, description=None,
              draft=None, content=None, appliance=None):
     Navigatable.__init__(self, appliance)
     self.template_type = template_type
     self.template_name = template_name
     self.description = description
     self.draft = draft
     self.content = content
예제 #37
0
 def __init__(self, name=None, description=None, image_type=None, script_type=None,
              script_data=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.description = description
     self.image_type = image_type
     self.script_type = script_type
     self.script_data = script_data
예제 #38
0
 def __init__(self, name=None, provider_key=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.quad_name = 'resource_pool'
     self.name = name
     if provider_key:
         self.provider = get_crud(provider_key, appliance=appliance)
     else:
         self.provider = None
예제 #39
0
 def __init__(self, name=None, description=None, display_in=None, catalog=None, dialog=None,
              appliance=None):
     self.name = name
     self.description = description
     self.display_in = display_in
     self.catalog = catalog
     self.dialog = dialog
     Navigatable.__init__(self, appliance=appliance)
예제 #40
0
 def __init__(self, path_to_report, run_datetime, queued_datetime, candu=False, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.path = path_to_report
     self.datetime = run_datetime
     self.candu = candu
     self.queued_datetime_in_title = parsetime.from_american_with_utc(
         queued_datetime).to_saved_report_title_format()
     self.datetime_in_tree = parsetime.from_american_with_utc(self.datetime).to_iso_with_utc()
예제 #41
0
 def __init__(self, name=None, credentials=None, zone=None, key=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     if not credentials:
         credentials = {}
     self.name = name
     self.credentials = credentials
     self.zone = zone
     self.key = key
예제 #42
0
 def __init__(self, name, provider, template_name=None, appliance=None):
     super(BaseVM, self).__init__()
     Navigatable.__init__(self, appliance=appliance)
     if type(self) in {BaseVM, VM, Template}:
         raise NotImplementedError('This class cannot be instantiated.')
     self.name = name
     self.provider = provider
     self.template_name = template_name
예제 #43
0
 def __init__(self, name=None, description=None, image_type=None, script_type=None,
              script_data=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.description = description
     self.image_type = image_type
     self.script_type = script_type
     self.script_data = script_data
예제 #44
0
파일: vm.py 프로젝트: rananda/cfme_tests
 def __init__(self, name, provider, template_name=None, appliance=None):
     super(BaseVM, self).__init__()
     Navigatable.__init__(self, appliance=appliance)
     if type(self) in {BaseVM, VM, Template}:
         raise NotImplementedError('This class cannot be instantiated.')
     self.name = name
     self.provider = provider
     self.template_name = template_name
예제 #45
0
 def __init__(self, description=None,
              currency=None,
              fields=None,
              appliance=None,
              ):
     Navigatable.__init__(self, appliance=appliance)
     self.description = description
     self.currency = currency
     self.fields = fields
예제 #46
0
 def __init__(self, name=None, display_name=None, description=None, show_in_console=True,
              single_value=True, capture_candu=False, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.display_name = display_name
     self.description = description
     self.show_in_console = show_in_console
     self.single_value = single_value
     self.capture_candu = capture_candu
예제 #47
0
 def __init__(self, name=None, display_name=None, description=None, show_in_console=True,
              single_value=True, capture_candu=False, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.display_name = display_name
     self.description = description
     self.show_in_console = show_in_console
     self.single_value = single_value
     self.capture_candu = capture_candu
예제 #48
0
 def __init__(self, name=None, provider_key=None, type=None, appliance=None):
     Navigatable.__init__(self, appliance)
     self.name = name
     self.type = type
     self.quad_name = 'datastore'
     if provider_key:
         self.provider = get_crud(provider_key)
     else:
         self.provider = None
예제 #49
0
 def __init__(self, name, description, filter, active=None, timer=None, send_email=None,
              appliance=None):
     Navigatable.__init__(self, appliance)
     self.name = name
     self.description = description
     self.filter = filter
     self.active = active
     self.timer = timer
     self.send_email = send_email
예제 #50
0
 def __init__(self,
              name=None,
              description=None,
              items=None,
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.description = description
     self.items = items
예제 #51
0
 def __init__(self,
              title="Default Dashboard",
              locked=None,
              widgets=None,
              appliance=None):
     Navigatable.__init__(self, appliance)
     self.title = title
     self.locked = locked
     self.widgets = widgets
예제 #52
0
 def __init__(self, name=None, description=None, display_in=None,
              catalog=None, dialog=None, catalog_items=None, appliance=None):
     self.name = name
     self.description = description
     self.display_in = display_in
     self.catalog = catalog
     self.dialog = dialog
     self.catalog_items = catalog_items
     Navigatable.__init__(self, appliance=appliance)
예제 #53
0
 def __init__(self, collection, name, display_name, location, script, data):
     Navigatable.__init__(self, appliance=collection.appliance)
     self.collection = collection
     self.name = name
     if display_name is not None:
         self.display_name = display_name
     self.location = location
     self.script = script
     self.data = data
예제 #54
0
 def __init__(self, name, description, filter, active=None, timer=None, send_email=None,
              appliance=None):
     Navigatable.__init__(self, appliance)
     self.name = name
     self.description = description
     self.filter = filter
     self.active = active
     self.timer = timer
     self.send_email = send_email
예제 #55
0
 def __init__(self,
              name=None,
              vm_restriction=None,
              product_features=None,
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.vm_restriction = vm_restriction
     self.product_features = product_features or []
예제 #56
0
 def __init__(self,
              name=None,
              display_name=None,
              category=None,
              appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.display_name = display_name
     self.category = category
 def __init__(self, name, description, provisioning, display_in_catalog=None, catalog=None,
         retirement=None, appliance=None):
     Navigatable.__init__(self, appliance=appliance)
     self.name = name
     self.description = description
     self.display_in_catalog = display_in_catalog
     self.catalog = getattr(catalog, "name", None)
     self.provisioning = provisioning
     self.retirement = retirement
예제 #58
0
 def __init__(self, collection, name, display_name, location, script, data):
     Navigatable.__init__(self, appliance=collection.appliance)
     self.collection = collection
     self.name = name
     if display_name is not None:
         self.display_name = display_name
     self.location = location
     self.script = script
     self.data = data
예제 #59
0
 def __init__(self,
              name,
              run_at_datetime,
              queued_datetime_in_title,
              appliance=None):
     Navigatable.__init__(self, appliance)
     self.name = name
     self.run_at_datetime = run_at_datetime
     self.queued_datetime_in_title = queued_datetime_in_title