waft.cf_dashboard.zero_trust.models.gateway_rule.gateway_rule_model module

class waft.cf_dashboard.zero_trust.models.gateway_rule.gateway_rule_model.GatewayRuleModel(dash_client: CfDashboardClient, account_id: str, **kwargs)

Bases: GatewayRule

Object used to manage and interact with an individual Gateway Rule

change_action(action: GatewayRuleOperations)

Change the action of the rule

Parameters:

action – Action to set for rule

change_name(name: str)

Change the name of the rule

Parameters:

name – New name to be set for the rule

delete()

Delete Device Profile

disable()

Disable Gateway Rule

enable()

Enable Gateway Rule

model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

set_device_posture_criteria(device_posture: str)

Set wirefilter expression for device_posture rule criteria

Parameters:

device_posture – wirefilter expression to filter by device_posture for rule

set_filters(filters: List[Literal['http', 'dns', 'l4', 'egress', 'dns_resolver']])

Set filters for traffic for given rule

Parameters:

filters – Filters to set for rule

set_identity_criteria(identity: str)

Set wirefilter expression for identity rule criteria

Parameters:

identity – wirefilter expression to filter by identity for rule

set_precendence(precedence: float)

Update precedence to given value

Parameters:

precedence – New value to set for rule precedence

set_schedule(schedule: ScheduleParam)

Set rule schedule

Parameters:

schedule – Schedule to set for rule

set_traffic_criteria(traffic: str)

Set wirefilter expression for traffic rule criteria

Parameters:

traffic – wirefilter expression to filter by traffic for rule

update_description(description: str)

Update the description of the rule to the given string

Parameters:

description – String of new description to be set

update_rule_setting_params(rules: RuleSettingParam)

Update the Rule settings

Parameters:

rules – New RuleSettingsParam object for rule