Show / Hide Table of Contents

Class UrlMapTest

Message for the expected URL mappings.

Inheritance
System.Object
UrlMapTest
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class UrlMapTest : IDirectResponseSchema

Properties

Description

Description of this test case.

Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type Description
System.String

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

ExpectedOutputUrl

The expected output URL evaluated by 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 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
System.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
System.Nullable<System.Int32>

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
System.Collections.Generic.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
System.String

Path

Path portion of the URL.

Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
Type Description
System.String

Service

Expected BackendService or BackendBucket resource the given URL should be mapped to. service cannot be set if expectedRedirectResponseCode is set.

Declaration
[JsonProperty("service")]
public virtual string Service { get; set; }
Property Value
Type Description
System.String

Implements

IDirectResponseSchema
In This Article
Back to top