Class UrlMapTest
Message for the expected URL mappings.
Implements
Inherited Members
Namespace: Google.Apis.Compute.alpha.Data
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class UrlMapTest : IDirectResponseSchema
Properties
BackendServiceWeight
The weight to use for the supplied host and path when using advanced routing rules that involve traffic splitting.
Declaration
[JsonProperty("backendServiceWeight")]
public virtual long? BackendServiceWeight { get; set; }
Property Value
Type | Description |
---|---|
long? |
Description
Description of this test case.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
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.
Declaration
[JsonProperty("expectedOutputUrl")]
public virtual string ExpectedOutputUrl { get; set; }
Property Value
Type | Description |
---|---|
string |
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.
Declaration
[JsonProperty("expectedRedirectResponseCode")]
public virtual int? ExpectedRedirectResponseCode { get; set; }
Property Value
Type | Description |
---|---|
int? |
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.
Declaration
[JsonProperty("expectedUrlRedirect")]
public virtual string ExpectedUrlRedirect { get; set; }
Property Value
Type | Description |
---|---|
string |
Headers
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
Declaration
[JsonProperty("headers")]
public virtual IList<UrlMapTestHeader> Headers { get; set; }
Property Value
Type | Description |
---|---|
IList<UrlMapTestHeader> |
Host
Host portion of the URL. If headers contains a host header, then host must also match the header value.
Declaration
[JsonProperty("host")]
public virtual string Host { get; set; }
Property Value
Type | Description |
---|---|
string |
Path
Path portion of the URL.
Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
Type | Description |
---|---|
string |
Service
Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
Declaration
[JsonProperty("service")]
public virtual string Service { get; set; }
Property Value
Type | Description |
---|---|
string |