antimatter.builders.fact_policy
#
Module Contents#
Classes#
Builder class for creating a FactPolicyRulesInnerArgumentsInner. |
|
Builder class for creating a list of FactPolicyRulesInner. |
- class antimatter.builders.fact_policy.FactPolicyArgumentBuilder(source: str | antimatter.constants.FactArgumentSource, capability: str | None = None, any_value: bool | None = None, value: str | None = None)#
Builder class for creating a FactPolicyRulesInnerArgumentsInner.
- Parameters:
source – The source of the argument.
capability – The capability of the argument.
any_value – Whether the argument can be any value.
value – The value of the argument.
- build() antimatter_api.FactPolicyRulesInnerArgumentsInner #
Build the argument.
- Returns:
The built argument.
- class antimatter.builders.fact_policy.FactPoliciesBuilder#
Builder class for creating a list of FactPolicyRulesInner.
- with_policy(name: str, operator: antimatter.constants.FactOperator | str, *policies: FactPolicyArgumentBuilder) FactPoliciesBuilder #
Add a policy to the list.
- Parameters:
name – The name of the policy.
operator – The operator of the policy.
policies – The arguments of the policy.
- Returns:
The builder instance.
- build() List[antimatter_api.FactPolicyRulesInner] #
Build the list of policies.
- Returns:
The built list of policies.