Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.79 KB

File metadata and controls

43 lines (34 loc) · 1.79 KB

V2RuleRequest

Properties

Name Type Description Notes
domain List[str] Domain patterns (default: any)
name str Rule name [optional]
uuid str Rule UUID [optional]
weight int Rule weight [optional] [default to 0]
disabled bool Whether rule is disabled [optional] [default to False]
url List[str] URL patterns
country str Country filter type (country_is, country_is_not, any) [optional]
country_is List[str] Allowed countries [optional]
country_is_not List[str] Excluded countries [optional]
method str Method filter type (method_is, method_is_not, any) [optional]
method_is List[str] Allowed HTTP methods [optional]
method_is_not List[str] Excluded HTTP methods [optional]
ip str IP filter type (ip_is, ip_is_not, any) [optional]
ip_is List[str] Allowed IP addresses [optional]
ip_is_not List[str] Excluded IP addresses [optional]

Example

from quantcdn.models.v2_rule_request import V2RuleRequest

# TODO update the JSON string below
json = "{}"
# create an instance of V2RuleRequest from a JSON string
v2_rule_request_instance = V2RuleRequest.from_json(json)
# print the JSON string representation of the object
print(V2RuleRequest.to_json())

# convert the object into a dict
v2_rule_request_dict = v2_rule_request_instance.to_dict()
# create an instance of V2RuleRequest from a dict
v2_rule_request_from_dict = V2RuleRequest.from_dict(v2_rule_request_dict)

[Back to Model list] [Back to API list] [Back to README]