Reference documentation and code samples for the Compute V1 Client class HttpQueryParameterMatch.
HttpRouteRuleMatch criteria for a request's query parameter.
Generated from protobuf message google.cloud.compute.v1.HttpQueryParameterMatch
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ exact_match
string
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set.
↳ name
string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
↳ present_match
bool
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, or regexMatch must be set.
↳ regex_match
string
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
getExactMatch
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set.
string
hasExactMatch
clearExactMatch
setExactMatch
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set.
var
string
$this
getName
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
string
hasName
clearName
setName
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
var
string
$this
getPresentMatch
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, or regexMatch must be set.
bool
hasPresentMatch
clearPresentMatch
setPresentMatch
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, or regexMatch must be set.
var
bool
$this
getRegexMatch
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
string
hasRegexMatch
clearRegexMatch
setRegexMatch
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
var
string
$this