Class UrlMapTest (2.0.0)

public sealed class UrlMapTest : IMessage<UrlMapTest>, IEquatable<UrlMapTest>, IDeepCloneable<UrlMapTest>, IBufferMessage, IMessage

Message for the expected URL mappings.

Inheritance

Object > UrlMapTest

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

UrlMapTest()

public UrlMapTest()

UrlMapTest(UrlMapTest)

public UrlMapTest(UrlMapTest other)
Parameter
NameDescription
otherUrlMapTest

Properties

Description

public string Description { get; set; }

Description of this test case.

Property Value
TypeDescription
String

ExpectedOutputUrl

public string ExpectedOutputUrl { get; set; }

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.

Property Value
TypeDescription
String

ExpectedRedirectResponseCode

public int ExpectedRedirectResponseCode { get; set; }

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.

Property Value
TypeDescription
Int32

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
Boolean

HasExpectedOutputUrl

public bool HasExpectedOutputUrl { get; }

Gets whether the "expected_output_url" field is set

Property Value
TypeDescription
Boolean

HasExpectedRedirectResponseCode

public bool HasExpectedRedirectResponseCode { get; }

Gets whether the "expected_redirect_response_code" field is set

Property Value
TypeDescription
Boolean

HasHost

public bool HasHost { get; }

Gets whether the "host" field is set

Property Value
TypeDescription
Boolean

HasPath

public bool HasPath { get; }

Gets whether the "path" field is set

Property Value
TypeDescription
Boolean

HasService

public bool HasService { get; }

Gets whether the "service" field is set

Property Value
TypeDescription
Boolean

Headers

public RepeatedField<UrlMapTestHeader> Headers { get; }

HTTP headers for this request. If headers contains a host header, then host must also match the header value.

Property Value
TypeDescription
RepeatedField<UrlMapTestHeader>

Host

public string Host { get; set; }

Host portion of the URL. If headers contains a host header, then host must also match the header value.

Property Value
TypeDescription
String

Path

public string Path { get; set; }

Path portion of the URL.

Property Value
TypeDescription
String

Service

public string Service { get; set; }

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

Property Value
TypeDescription
String