Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::UrlMapTest (v1.10.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::UrlMapTest.

Message for the expected URL mappings.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#description

def description() -> ::String
Returns
  • (::String) — Description of this test case.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Description of this test case.
Returns
  • (::String) — Description of this test case.

#expected_output_url

def expected_output_url() -> ::String
Returns
  • (::String) — 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.

#expected_output_url=

def expected_output_url=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#expected_redirect_response_code

def expected_redirect_response_code() -> ::Integer
Returns
  • (::Integer) — 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.

#expected_redirect_response_code=

def expected_redirect_response_code=(value) -> ::Integer
Parameter
  • value (::Integer) — 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.
Returns
  • (::Integer) — 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.

#headers

def headers() -> ::Array<::Google::Cloud::Compute::V1::UrlMapTestHeader>
Returns

#headers=

def headers=(value) -> ::Array<::Google::Cloud::Compute::V1::UrlMapTestHeader>
Parameter
Returns

#host

def host() -> ::String
Returns
  • (::String) — Host portion of the URL. If headers contains a host header, then host must also match the header value.

#host=

def host=(value) -> ::String
Parameter
  • value (::String) — Host portion of the URL. If headers contains a host header, then host must also match the header value.
Returns
  • (::String) — Host portion of the URL. If headers contains a host header, then host must also match the header value.

#path

def path() -> ::String
Returns
  • (::String) — Path portion of the URL.

#path=

def path=(value) -> ::String
Parameter
  • value (::String) — Path portion of the URL.
Returns
  • (::String) — Path portion of the URL.

#service

def service() -> ::String
Returns
  • (::String) — Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.

#service=

def service=(value) -> ::String
Parameter
  • value (::String) — Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
Returns
  • (::String) — Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.