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
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
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
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
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
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
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()
def __init__(self, appliance, catalog=None, name=None, stack_data=None, dialog_values=None, ansible_dialog_values=None): Navigatable.__init__(self, appliance=appliance) self.catalog = catalog self.name = name self.stack_data = stack_data self.dialog_values = dialog_values self.ansible_dialog_values = ansible_dialog_values self.parent = self.appliance.context
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 = catalog self.provisioning = provisioning self.retirement = retirement
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
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
def __init__(self, appliance=None, **values): Navigatable.__init__(self, appliance=appliance) # We will override the original dict self.__dict__ = dict(self._default_dict) self.__dict__.update(values) # We need to pass the knowledge whether it is a candu report try: self.is_candu except AttributeError: self.is_candu = False
def __init__(self, assign_to=None, tag_category=None, docker_labels=None, selections=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.assign_to = assign_to self.tag_category = tag_category self.docker_labels = docker_labels self.selections = selections
def __init__(self, diag_type, name=None, description=None, content=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.name = name self.description = description self.content = content if diag_type in self.ALLOWED_TYPES: self.diag_type = diag_type else: raise TypeError('Type must be one of ProvisioningDialog constants: {}' .format(self.ALLOWED_TYPES))
def __init__( self, name=None, endpoints=None, key=None, zone=None, provider_data=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.name = name self.endpoints = self._prepare_endpoints(endpoints) self.key = key self.provider_data = provider_data self.zone = zone self.template_name = "Templates"
def __init__(self, name=None, description=None, display_in=None, catalog=None, dialog=None, catalog_items=None, appliance=None): self.catalog_items = catalog_items super(CatalogBundle, self).__init__( name=name, description=description, display_in=display_in, catalog=catalog, dialog=dialog ) Navigatable.__init__(self, appliance=appliance)
def __init__(self, text=None, hover=None, type=None, image=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.text = text self.hover = hover self.type = type if image: self.image = image elif self.appliance.version < '5.9': self.image = 'Button Image 1' else: self.image = 'fa-user'
def __init__(self, name, server, provider=None, appliance=None, **kwargs): Navigatable.__init__(self, appliance=appliance) if name is None: raise KeyError("'name' should not be 'None'") if not isinstance(server, MiddlewareServer): raise KeyError("'server' should be an instance of MiddlewareServer") self.name = name self.server = server self.provider = provider self.nativeid = kwargs['nativeid'] if 'nativeid' in kwargs else None self.hostname = kwargs['hostname'] if 'hostname' in kwargs else None self.status = kwargs['status'] if 'status' in kwargs else None self.db_id = kwargs['db_id'] if 'db_id' in kwargs else None
def __init__(self, name, description, profile_type, files=None, events=None, categories=None, registry=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.name = name self.description = description self.files = files if isinstance(files, (list, type(None))) else [files] self.events = events if isinstance(events, (list, type(None))) else [events] self.categories = categories if isinstance(categories, (list, type(None))) else [categories] self.registry = registry if isinstance(registry, (list, type(None))) else [registry] if profile_type in (self.VM_TYPE, self.HOST_TYPE): self.profile_type = profile_type else: raise ValueError("Profile Type is incorrect")
def __init__(self, name, domain, appliance=None, **kwargs): Navigatable.__init__(self, appliance=appliance) if name is None: raise KeyError("'name' should not be 'None'") self.name = name self.domain = domain self.profile = kwargs['profile'] if 'profile' in kwargs else None self.feed = kwargs['feed'] if 'feed' in kwargs else None self.db_id = kwargs['db_id'] if 'db_id' in kwargs else None if 'properties' in kwargs: for property in kwargs['properties']: # check the properties first, so it will not overwrite core attributes if getattr(self, attributize_string(property), None) is None: setattr(self, attributize_string(property), kwargs['properties'][property])
def __init__(self, name=None, endpoints=None, hostname=None, port=None, credentials=None, key=None, appliance=None, sec_protocol=None, **kwargs): Navigatable.__init__(self, appliance=appliance) self.name = name self.hostname = hostname self.port = port self.provider_type = 'Hawkular' if not credentials: credentials = {} self.credentials = credentials self.key = key self.sec_protocol = sec_protocol if sec_protocol else 'Non-SSL' self.db_id = kwargs['db_id'] if 'db_id' in kwargs else None self.endpoints = self._prepare_endpoints(endpoints)
def __init__(self, name, server, provider=None, appliance=None, **kwargs): Navigatable.__init__(self, appliance=appliance) if name is None: raise KeyError("'name' should not be 'None'") if not isinstance(server, MiddlewareServer): raise KeyError("'server' should be an instance of MiddlewareServer") self.name = name self.provider = provider self.server = server self.nativeid = kwargs['nativeid'] if 'nativeid' in kwargs else None self.hostname = kwargs['hostname'] if 'hostname' in kwargs else None if 'properties' in kwargs: for property in kwargs['properties']: setattr(self, attributize_string(property), kwargs['properties'][property]) self.db_id = kwargs['db_id'] if 'db_id' in kwargs else None
def __init__(self, name=None, depot_type=None, uri=None, userid=None, password=None, access_url=None, pxe_dir=None, windows_dir=None, customize_dir=None, menu_filename=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.name = name self.depot_type = depot_type self.uri = uri self.userid = userid # todo: turn into Credentials class self.password = password self.access_url = access_url self.pxe_dir = pxe_dir self.windows_dir = windows_dir self.customize_dir = customize_dir self.menu_filename = menu_filename
def __init__( self, name=None, key=None, zone=None, metrics_type=None, endpoints=None, provider_data=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.name = name self.key = key self.zone = zone self.endpoints = endpoints self.provider_data = provider_data self.metrics_type = (metrics_type if self.appliance.version >= '5.9' else None)
def __init__(self, group=None, text=None, hover=None, dialog=None, system=None, request=None, image=None, open_url=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.group = group self.text = text self.hover = hover self.dialog = dialog self.system = system self.request = request if image: self.image = image elif self.appliance.version < '5.9': self.image = 'Button Image 1' else: self.image = 'fa-user' self.open_url = open_url
def __init__( self, name=None, key=None, zone=None, metrics_type=None, alerts_type=None, endpoints=None, provider_data=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.name = name self.key = key self.zone = zone self.endpoints = endpoints self.provider_data = provider_data self.metrics_type = metrics_type self.alerts_type = alerts_type
def __init__(self, service, url, username, password, password_verify=None, repo_name=None, organization=None, use_proxy=False, proxy_url=None, proxy_username=None, proxy_password=None, proxy_password_verify=None, set_default_rhsm_address=False, set_default_repository=False, appliance=None): self.service = service self.url = url self.username = username self.password = password self.password_verify = password_verify self.repo_name = repo_name self.organization = organization self.use_proxy = use_proxy self.proxy_url = proxy_url self.proxy_username = proxy_username self.proxy_password = proxy_password self.proxy_password_verify = proxy_password_verify self.set_default_rhsm_address = set_default_rhsm_address self.set_default_repository = set_default_repository Navigatable.__init__(self, appliance=appliance)
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
def __init__(self, appliance=None): Navigatable.__init__(self, appliance=appliance)
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, provider=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.provider = provider
def __init__(self, name, profile, appliance=None): Navigatable.__init__(self, appliance=appliance) self.name = name self.profile = profile
def __init__(self, name, manager, appliance=None): Navigatable.__init__(self, appliance=appliance) self.name = name self.manager = manager
def __init__(self, description, alerts=None, notes=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.description = description self.notes = notes self.alerts = alerts
def __init__(self, description, expression=None, scope=None, notes=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.description = description self.expression = expression self.scope = scope self.notes = notes
def __init__(self, klass): Navigatable.__init__(self, appliance=klass.appliance) self.klass = klass
def __init__(self, name, provider, template_name=None, appliance=None): super(Image, self).__init__(name=name, provider=provider, template_name=template_name) Navigatable.__init__(self, appliance=appliance)
def __init__(self, appliance=None): Navigatable.__init__(self, appliance)
def __init__(self, appliance, name): Navigatable.__init__(self, appliance=appliance) self.name = name
def __init__(self, host, provider, appliance=None): self.host = host self.provider = provider Navigatable.__init__(self, appliance=appliance)
def __init__(self, appliance=None, name=None, key=None, endpoints=None): Navigatable.__init__(self, appliance=appliance) self.endpoints = self._prepare_endpoints(endpoints) self.name = name self.key = key
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
def __init__(self, name=None, filters=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.name = name self.filters = filters or []
def __init__(self, name, provider, template_name=None, appliance=None): super(Instance, self).__init__(name=name, provider=provider, template_name=template_name) Navigatable.__init__(self, appliance=appliance)
def __init__(self, text=None, hover=None, type=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.text = text self.hover = hover self.type = type
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
def __init__(self, name, provider, appliance=None): self.name = name self.provider = provider Navigatable.__init__(self, appliance=appliance)
def __init__(self, entity=None, label=None, category=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.entity = entity self.label = label self.category = category
def __init__(self, name, pod, appliance=None): self.name = name self.pod = pod Navigatable.__init__(self, appliance=appliance)
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
def __init__(self, name=None, provision_type=None, appliance=None): Navigatable.__init__(self, appliance=appliance) self.name = name self.provision_type = provision_type