Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 2.05 KB

File metadata and controls

45 lines (36 loc) · 2.05 KB

V2RuleRedirectRequest

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]
redirect_to str Redirect destination URL
redirect_code str HTTP status code for redirect [optional] [default to '301']

Example

from quantcdn.models.v2_rule_redirect_request import V2RuleRedirectRequest

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

# convert the object into a dict
v2_rule_redirect_request_dict = v2_rule_redirect_request_instance.to_dict()
# create an instance of V2RuleRedirectRequest from a dict
v2_rule_redirect_request_from_dict = V2RuleRedirectRequest.from_dict(v2_rule_redirect_request_dict)

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