Compute Engine v1 API - Class UrlMapTest (2.11.0)

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

Reference documentation and code samples for the Compute Engine v1 API class UrlMapTest.

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
int

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
bool

HasExpectedOutputUrl

public bool HasExpectedOutputUrl { get; }

Gets whether the "expected_output_url" field is set

Property Value
TypeDescription
bool

HasExpectedRedirectResponseCode

public bool HasExpectedRedirectResponseCode { get; }

Gets whether the "expected_redirect_response_code" field is set

Property Value
TypeDescription
bool

HasHost

public bool HasHost { get; }

Gets whether the "host" field is set

Property Value
TypeDescription
bool

HasPath

public bool HasPath { get; }

Gets whether the "path" field is set

Property Value
TypeDescription
bool

HasService

public bool HasService { get; }

Gets whether the "service" field is set

Property Value
TypeDescription
bool

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
RepeatedFieldUrlMapTestHeader

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