Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.73 KB

File metadata and controls

46 lines (37 loc) · 1.73 KB

V2Rule

Properties

Name Type Description Notes
name str Rule name [optional]
uuid str Rule UUID
rule_id str Rule ID [optional]
weight int Rule weight [optional] [default to 0]
url List[str] URL patterns [optional]
domain List[str] Domain patterns [optional]
disabled bool Whether rule is disabled [default to False]
only_with_cookie str Only apply with cookie [optional]
method str HTTP method [optional]
method_is List[str] Allowed HTTP methods [optional]
method_is_not List[str] Excluded HTTP methods [optional]
ip str IP address [optional]
ip_is List[str] Allowed IP addresses [optional]
ip_is_not List[str] Excluded IP addresses [optional]
country str Country code [optional]
country_is List[str] Allowed countries [optional]
country_is_not List[str] Excluded countries [optional]
action str Rule action

Example

from quantcdn.models.v2_rule import V2Rule

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

# convert the object into a dict
v2_rule_dict = v2_rule_instance.to_dict()
# create an instance of V2Rule from a dict
v2_rule_from_dict = V2Rule.from_dict(v2_rule_dict)

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