HttpRedirectTarget¶
-
class
oci.waas.models.HttpRedirectTarget(**kwargs)¶ Bases:
objectHttpRedirectTarget model.
Attributes
PROTOCOL_HTTPA constant which can be used with the protocol property of a HttpRedirectTarget. PROTOCOL_HTTPSA constant which can be used with the protocol property of a HttpRedirectTarget. host[Required] Gets the host of this HttpRedirectTarget. path[Required] Gets the path of this HttpRedirectTarget. portGets the port of this HttpRedirectTarget. protocol[Required] Gets the protocol of this HttpRedirectTarget. query[Required] Gets the query of this HttpRedirectTarget. Methods
__init__(**kwargs)Initializes a new HttpRedirectTarget object with values from keyword arguments. -
PROTOCOL_HTTP= 'HTTP'¶ A constant which can be used with the protocol property of a HttpRedirectTarget. This constant has a value of “HTTP”
-
PROTOCOL_HTTPS= 'HTTPS'¶ A constant which can be used with the protocol property of a HttpRedirectTarget. This constant has a value of “HTTPS”
-
__init__(**kwargs)¶ Initializes a new HttpRedirectTarget object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - protocol (str) – The value to assign to the protocol property of this HttpRedirectTarget. Allowed values for this property are: “HTTP”, “HTTPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- host (str) – The value to assign to the host property of this HttpRedirectTarget.
- port (int) – The value to assign to the port property of this HttpRedirectTarget.
- path (str) – The value to assign to the path property of this HttpRedirectTarget.
- query (str) – The value to assign to the query property of this HttpRedirectTarget.
-
host¶ [Required] Gets the host of this HttpRedirectTarget. The host portion of the redirect.
Returns: The host of this HttpRedirectTarget. Return type: str
-
path¶ [Required] Gets the path of this HttpRedirectTarget. The path component of the target URL (e.g., “/path/to/resource” in “https://target.example.com/path/to/resource?redirected”), which can be empty, static, or request-copying, or request-prefixing. Use of is not permitted except to escape a following , {, or }. An empty value is treated the same as static “/”. A static value must begin with a leading “/”, optionally followed by other path characters. A request-copying value must exactly match “{path}”, and will be replaced with the path component of the request URL (including its initial “/”). A request-prefixing value must start with “/” and end with a non-escaped “{path}”, which will be replaced with the path component of the request URL (including its initial “/”). Only one such replacement token is allowed.
Returns: The path of this HttpRedirectTarget. Return type: str
-
port¶ Gets the port of this HttpRedirectTarget. Port number of the target destination of the redirect, default to match protocol
Returns: The port of this HttpRedirectTarget. Return type: int
-
protocol¶ [Required] Gets the protocol of this HttpRedirectTarget. The protocol used for the target, http or https.
Allowed values for this property are: “HTTP”, “HTTPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The protocol of this HttpRedirectTarget. Return type: str
-
query¶ [Required] Gets the query of this HttpRedirectTarget. The query component of the target URL (e.g., “?redirected” in “https://target.example.com/path/to/resource?redirected”), which can be empty, static, or request-copying. Use of is not permitted except to escape a following , {, or }. An empty value results in a redirection target URL with no query component. A static value must begin with a leading “?”, optionally followed by other query characters. A request-copying value must exactly match “{query}”, and will be replaced with the query component of the request URL (including a leading “?” if and only if the request URL includes a query component).
Returns: The query of this HttpRedirectTarget. Return type: str
-