All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.model.UrlMapTest.html Maven / Gradle / Ivy

There is a newer version: v1-rev20240903-2.0.0
Show newest version






UrlMapTest (Compute Engine API v1-rev20240919-2.0.0)












com.google.api.services.compute.model

Class UrlMapTest

    • Constructor Detail

      • UrlMapTest

        public UrlMapTest()
    • Method Detail

      • getDescription

        public String getDescription()
        Description of this test case.
        Returns:
        value or null for none
      • setDescription

        public UrlMapTest setDescription(String description)
        Description of this test case.
        Parameters:
        description - description or null for none
      • getExpectedOutputUrl

        public String getExpectedOutputUrl()
        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:
        value or null for none
      • setExpectedOutputUrl

        public UrlMapTest setExpectedOutputUrl(String expectedOutputUrl)
        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.
        Parameters:
        expectedOutputUrl - expectedOutputUrl or null for none
      • getExpectedRedirectResponseCode

        public Integer getExpectedRedirectResponseCode()
        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:
        value or null for none
      • setExpectedRedirectResponseCode

        public UrlMapTest setExpectedRedirectResponseCode(Integer 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.
        Parameters:
        expectedRedirectResponseCode - expectedRedirectResponseCode or null for none
      • getHeaders

        public List<UrlMapTestHeader> getHeaders()
        HTTP headers for this request. If headers contains a host header, then host must also match the header value.
        Returns:
        value or null for none
      • setHeaders

        public UrlMapTest setHeaders(List<UrlMapTestHeader> headers)
        HTTP headers for this request. If headers contains a host header, then host must also match the header value.
        Parameters:
        headers - headers or null for none
      • getHost

        public String getHost()
        Host portion of the URL. If headers contains a host header, then host must also match the header value.
        Returns:
        value or null for none
      • setHost

        public UrlMapTest setHost(String host)
        Host portion of the URL. If headers contains a host header, then host must also match the header value.
        Parameters:
        host - host or null for none
      • getPath

        public String getPath()
        Path portion of the URL.
        Returns:
        value or null for none
      • setPath

        public UrlMapTest setPath(String path)
        Path portion of the URL.
        Parameters:
        path - path or null for none
      • getService

        public String getService()
        Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
        Returns:
        value or null for none
      • setService

        public UrlMapTest setService(String service)
        Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
        Parameters:
        service - service or null for none
      • set

        public UrlMapTest set(String fieldName,
                              Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public UrlMapTest clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy