airgun.entities.oscappolicy¶
Module Contents¶
-
class
airgun.entities.oscappolicy.OSCAPPolicyEntity¶ Bases:
airgun.entities.base.BaseEntity-
endpoint_path= /compliance/policies¶
-
create(self, values)¶ Creates new OSCAP Policy
Parameters: values – Parameters to be assigned to new SCAP policy, mandatory values are Name, Scap Content and Period, with chosen date when policy is going to repeat
-
delete(self, entity_name)¶ Delete corresponding SCAP Policy
Parameters: entity_name – name of the corresponding SCAP Policy
-
search(self, entity_name)¶ Search for SCAP Policy
Parameters: entity_name – name of the corresponding SCAP Policy Returns: result of the SCAP Policy search
-
details(self, entity_name, widget_names=None)¶ - Read the content from corresponding SCAP Policy dashboard,
- clicking on the Name of SCAP Policy shows the dashboard
Parameters: entity_name – Returns: dictionary with values from SCAP Policy Details View
-
read(self, entity_name, widget_names=None)¶ Reads the values of corresponding SCAP Policy - edit menu
Parameters: entity_name – specifies corresponding SCAP Policy Returns: dict representing tabs, with nested dicts representing fields
-
update(self, entity_name, values)¶ Updates instance of SCAP Policy with new values
Parameters: - entity_name – specifies corresponding SCAP Policy
- values – updates individual parameters of corresponding SCAP Policy
-
-
class
airgun.entities.oscappolicy.ShowAllSCAPPolicies¶ Bases:
airgun.navigation.NavigateStepNavigate to All SCAP Policies screen.
-
VIEW¶
-
step(self, *args, **kwargs)¶
-
-
class
airgun.entities.oscappolicy.NewSCAPPolicy¶ Bases:
airgun.navigation.NavigateStepNavigate to upload new SCAP Policies page.
-
VIEW¶
-
prerequisite¶
-
step(self, *args, **kwargs)¶
-
-
class
airgun.entities.oscappolicy.EditSCAPPolicy¶ Bases:
airgun.navigation.NavigateStepNavigate to edit existing SCAP Policy page.
Args: entity_name: name of SCAP policy
-
VIEW¶
-
prerequisite(self, *args, **kwargs)¶
-
step(self, *args, **kwargs)¶
-
-
class
airgun.entities.oscappolicy.DetailsSCAPPolicy¶ Bases:
airgun.navigation.NavigateStepTo get data from SCAPPolicyDetail view
Args: entity_name: name of SCAP policy
-
VIEW¶
-
prerequisite(self, *args, **kwargs)¶
-
step(self, *args, **kwargs)¶
-