[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Compute;
|
---|
| 19 |
|
---|
| 20 | class HttpRouteRuleMatch extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'queryParameterMatches';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $fullPathMatch;
|
---|
| 27 | protected $headerMatchesType = HttpHeaderMatch::class;
|
---|
| 28 | protected $headerMatchesDataType = 'array';
|
---|
| 29 | /**
|
---|
| 30 | * @var bool
|
---|
| 31 | */
|
---|
| 32 | public $ignoreCase;
|
---|
| 33 | protected $metadataFiltersType = MetadataFilter::class;
|
---|
| 34 | protected $metadataFiltersDataType = 'array';
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $pathTemplateMatch;
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $prefixMatch;
|
---|
| 43 | protected $queryParameterMatchesType = HttpQueryParameterMatch::class;
|
---|
| 44 | protected $queryParameterMatchesDataType = 'array';
|
---|
| 45 | /**
|
---|
| 46 | * @var string
|
---|
| 47 | */
|
---|
| 48 | public $regexMatch;
|
---|
| 49 |
|
---|
| 50 | /**
|
---|
| 51 | * @param string
|
---|
| 52 | */
|
---|
| 53 | public function setFullPathMatch($fullPathMatch)
|
---|
| 54 | {
|
---|
| 55 | $this->fullPathMatch = $fullPathMatch;
|
---|
| 56 | }
|
---|
| 57 | /**
|
---|
| 58 | * @return string
|
---|
| 59 | */
|
---|
| 60 | public function getFullPathMatch()
|
---|
| 61 | {
|
---|
| 62 | return $this->fullPathMatch;
|
---|
| 63 | }
|
---|
| 64 | /**
|
---|
| 65 | * @param HttpHeaderMatch[]
|
---|
| 66 | */
|
---|
| 67 | public function setHeaderMatches($headerMatches)
|
---|
| 68 | {
|
---|
| 69 | $this->headerMatches = $headerMatches;
|
---|
| 70 | }
|
---|
| 71 | /**
|
---|
| 72 | * @return HttpHeaderMatch[]
|
---|
| 73 | */
|
---|
| 74 | public function getHeaderMatches()
|
---|
| 75 | {
|
---|
| 76 | return $this->headerMatches;
|
---|
| 77 | }
|
---|
| 78 | /**
|
---|
| 79 | * @param bool
|
---|
| 80 | */
|
---|
| 81 | public function setIgnoreCase($ignoreCase)
|
---|
| 82 | {
|
---|
| 83 | $this->ignoreCase = $ignoreCase;
|
---|
| 84 | }
|
---|
| 85 | /**
|
---|
| 86 | * @return bool
|
---|
| 87 | */
|
---|
| 88 | public function getIgnoreCase()
|
---|
| 89 | {
|
---|
| 90 | return $this->ignoreCase;
|
---|
| 91 | }
|
---|
| 92 | /**
|
---|
| 93 | * @param MetadataFilter[]
|
---|
| 94 | */
|
---|
| 95 | public function setMetadataFilters($metadataFilters)
|
---|
| 96 | {
|
---|
| 97 | $this->metadataFilters = $metadataFilters;
|
---|
| 98 | }
|
---|
| 99 | /**
|
---|
| 100 | * @return MetadataFilter[]
|
---|
| 101 | */
|
---|
| 102 | public function getMetadataFilters()
|
---|
| 103 | {
|
---|
| 104 | return $this->metadataFilters;
|
---|
| 105 | }
|
---|
| 106 | /**
|
---|
| 107 | * @param string
|
---|
| 108 | */
|
---|
| 109 | public function setPathTemplateMatch($pathTemplateMatch)
|
---|
| 110 | {
|
---|
| 111 | $this->pathTemplateMatch = $pathTemplateMatch;
|
---|
| 112 | }
|
---|
| 113 | /**
|
---|
| 114 | * @return string
|
---|
| 115 | */
|
---|
| 116 | public function getPathTemplateMatch()
|
---|
| 117 | {
|
---|
| 118 | return $this->pathTemplateMatch;
|
---|
| 119 | }
|
---|
| 120 | /**
|
---|
| 121 | * @param string
|
---|
| 122 | */
|
---|
| 123 | public function setPrefixMatch($prefixMatch)
|
---|
| 124 | {
|
---|
| 125 | $this->prefixMatch = $prefixMatch;
|
---|
| 126 | }
|
---|
| 127 | /**
|
---|
| 128 | * @return string
|
---|
| 129 | */
|
---|
| 130 | public function getPrefixMatch()
|
---|
| 131 | {
|
---|
| 132 | return $this->prefixMatch;
|
---|
| 133 | }
|
---|
| 134 | /**
|
---|
| 135 | * @param HttpQueryParameterMatch[]
|
---|
| 136 | */
|
---|
| 137 | public function setQueryParameterMatches($queryParameterMatches)
|
---|
| 138 | {
|
---|
| 139 | $this->queryParameterMatches = $queryParameterMatches;
|
---|
| 140 | }
|
---|
| 141 | /**
|
---|
| 142 | * @return HttpQueryParameterMatch[]
|
---|
| 143 | */
|
---|
| 144 | public function getQueryParameterMatches()
|
---|
| 145 | {
|
---|
| 146 | return $this->queryParameterMatches;
|
---|
| 147 | }
|
---|
| 148 | /**
|
---|
| 149 | * @param string
|
---|
| 150 | */
|
---|
| 151 | public function setRegexMatch($regexMatch)
|
---|
| 152 | {
|
---|
| 153 | $this->regexMatch = $regexMatch;
|
---|
| 154 | }
|
---|
| 155 | /**
|
---|
| 156 | * @return string
|
---|
| 157 | */
|
---|
| 158 | public function getRegexMatch()
|
---|
| 159 | {
|
---|
| 160 | return $this->regexMatch;
|
---|
| 161 | }
|
---|
| 162 | }
|
---|
| 163 |
|
---|
| 164 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 165 | class_alias(HttpRouteRuleMatch::class, 'Google_Service_Compute_HttpRouteRuleMatch');
|
---|