UrlMapTestResponse class

Message for the expected URL mappings.

Constructors

UrlMapTestResponse({required Input<int> backendServiceWeight, required Input<String> description, required Input<String> expectedOutputUrl, required Input<int> expectedRedirectResponseCode, required Input<String> expectedUrlRedirect, required Input<List<UrlMapTestHeaderResponse>> headers, required Input<String> host, required Input<String> path, required Input<String> service})
Creates a new UrlMapTestResponse. backendServiceWeight The weight to use for the supplied host and path when using advanced routing rules that involve traffic splitting. description Description of this test case. expectedOutputUrl The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified. expectedRedirectResponseCode For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set. expectedUrlRedirect The expected URL that should be redirected to for the host and path being tested. Deprecated This field is deprecated. Use expected_output_url instead. headers HTTP headers for this request. If headers contains a host header, then host must also match the header value. host Host portion of the URL. If headers contains a host header, then host must also match the header value. path Path portion of the URL. service Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
const
UrlMapTestResponse.fromMap(Map<String, dynamic> map)
factory

Properties

backendServiceWeight → Input<int>
The weight to use for the supplied host and path when using advanced routing rules that involve traffic splitting.
final
description → Input<String>
Description of this test case.
final
expectedOutputUrl → Input<String>
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.
final
expectedRedirectResponseCode → Input<int>
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.
final
expectedUrlRedirect → Input<String>
The expected URL that should be redirected to for the host and path being tested. Deprecated This field is deprecated. Use expected_output_url instead.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Input<List<UrlMapTestHeaderResponse>>
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
final
host → Input<String>
Host portion of the URL. If headers contains a host header, then host must also match the header value.
final
path → Input<String>
Path portion of the URL.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
service → Input<String>
Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited