public sealed class UrlMapTest : IMessage<UrlMapTest>, IEquatable<UrlMapTest>, IDeepCloneable<UrlMapTest>, IBufferMessage, IMessage
Message for the expected URL mappings.
Implements
IMessage<UrlMapTest>, IEquatable<UrlMapTest>, IDeepCloneable<UrlMapTest>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
UrlMapTest()
public UrlMapTest()
UrlMapTest(UrlMapTest)
public UrlMapTest(UrlMapTest other)
Parameter | |
---|---|
Name | Description |
other | UrlMapTest |
Properties
Description
public string Description { get; set; }
Description of this test case.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Int32 |
HasDescription
public bool HasDescription { get; }
Gets whether the "description" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasExpectedOutputUrl
public bool HasExpectedOutputUrl { get; }
Gets whether the "expected_output_url" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasExpectedRedirectResponseCode
public bool HasExpectedRedirectResponseCode { get; }
Gets whether the "expected_redirect_response_code" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasHost
public bool HasHost { get; }
Gets whether the "host" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasPath
public bool HasPath { get; }
Gets whether the "path" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasService
public bool HasService { get; }
Gets whether the "service" field is set
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
Path
public string Path { get; set; }
Path portion of the URL.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |