waft.warp_client.warp_config.mdm_config module¶
File to manage handling of MDM Configuration
- class waft.warp_client.warp_config.mdm_config.MDMConfiguration(organization: str, gateway_unique_id: str | None = None, service_mode: str = 'warp', onboarding: bool = True, switch_locked: bool = False, auto_connect: int | None = None, support_url: str | None = None, override_api_endpoint: str | None = None, override_doh_endpoint: str | None = None, override_warp_endpoint: str | None = None, unique_client_id: str | None = None, auth_client_id: str | None = None, auth_client_secret: str | None = None, display_name: str | None = None, warp_tunnel_protocol: Literal['masque', 'wireguard'] | None = None)¶
Bases:
WarpParams
Base class for MDM Configuration details. Detailed parameters are laid out in WarpParams constructor.
- classmethod from_xml(mdm_config: Element) Self ¶
Creates a new class instance from an XML dict structure.
- Parameters:
mdm_config (ET.Element) – XML dict structure
- Returns:
populated class instance
- Return type:
Self
- set_parameter_value(parameter_key: str, value, allow_overwrite: bool = False)¶
Adds given parameter to config and sets it to the given value :param parameter_key: Key for parameter to add :param value: Value for given parameter key :param allow_overwrite: Allow existing parameter of the same name to be overwritten
- to_xml() Element ¶
Converts the configuration parameters into the appropriate XML dict structure
- validate_config()¶
Validate that required configuration details are provided and of valid types