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 18namespace Google\Service\Compute; 19 20class FirewallPolicyRule extends \Google\Collection 21{ 22 protected $collection_key = 'targetServiceAccounts'; 23 /** 24 * @var string 25 */ 26 public $action; 27 /** 28 * @var string 29 */ 30 public $description; 31 /** 32 * @var string 33 */ 34 public $direction; 35 /** 36 * @var bool 37 */ 38 public $disabled; 39 /** 40 * @var bool 41 */ 42 public $enableLogging; 43 /** 44 * @var string 45 */ 46 public $kind; 47 protected $matchType = FirewallPolicyRuleMatcher::class; 48 protected $matchDataType = ''; 49 /** 50 * @var int 51 */ 52 public $priority; 53 /** 54 * @var string 55 */ 56 public $ruleName; 57 /** 58 * @var int 59 */ 60 public $ruleTupleCount; 61 /** 62 * @var string[] 63 */ 64 public $targetResources; 65 protected $targetSecureTagsType = FirewallPolicyRuleSecureTag::class; 66 protected $targetSecureTagsDataType = 'array'; 67 /** 68 * @var string[] 69 */ 70 public $targetServiceAccounts; 71 72 /** 73 * @param string 74 */ 75 public function setAction($action) 76 { 77 $this->action = $action; 78 } 79 /** 80 * @return string 81 */ 82 public function getAction() 83 { 84 return $this->action; 85 } 86 /** 87 * @param string 88 */ 89 public function setDescription($description) 90 { 91 $this->description = $description; 92 } 93 /** 94 * @return string 95 */ 96 public function getDescription() 97 { 98 return $this->description; 99 } 100 /** 101 * @param string 102 */ 103 public function setDirection($direction) 104 { 105 $this->direction = $direction; 106 } 107 /** 108 * @return string 109 */ 110 public function getDirection() 111 { 112 return $this->direction; 113 } 114 /** 115 * @param bool 116 */ 117 public function setDisabled($disabled) 118 { 119 $this->disabled = $disabled; 120 } 121 /** 122 * @return bool 123 */ 124 public function getDisabled() 125 { 126 return $this->disabled; 127 } 128 /** 129 * @param bool 130 */ 131 public function setEnableLogging($enableLogging) 132 { 133 $this->enableLogging = $enableLogging; 134 } 135 /** 136 * @return bool 137 */ 138 public function getEnableLogging() 139 { 140 return $this->enableLogging; 141 } 142 /** 143 * @param string 144 */ 145 public function setKind($kind) 146 { 147 $this->kind = $kind; 148 } 149 /** 150 * @return string 151 */ 152 public function getKind() 153 { 154 return $this->kind; 155 } 156 /** 157 * @param FirewallPolicyRuleMatcher 158 */ 159 public function setMatch(FirewallPolicyRuleMatcher $match) 160 { 161 $this->match = $match; 162 } 163 /** 164 * @return FirewallPolicyRuleMatcher 165 */ 166 public function getMatch() 167 { 168 return $this->match; 169 } 170 /** 171 * @param int 172 */ 173 public function setPriority($priority) 174 { 175 $this->priority = $priority; 176 } 177 /** 178 * @return int 179 */ 180 public function getPriority() 181 { 182 return $this->priority; 183 } 184 /** 185 * @param string 186 */ 187 public function setRuleName($ruleName) 188 { 189 $this->ruleName = $ruleName; 190 } 191 /** 192 * @return string 193 */ 194 public function getRuleName() 195 { 196 return $this->ruleName; 197 } 198 /** 199 * @param int 200 */ 201 public function setRuleTupleCount($ruleTupleCount) 202 { 203 $this->ruleTupleCount = $ruleTupleCount; 204 } 205 /** 206 * @return int 207 */ 208 public function getRuleTupleCount() 209 { 210 return $this->ruleTupleCount; 211 } 212 /** 213 * @param string[] 214 */ 215 public function setTargetResources($targetResources) 216 { 217 $this->targetResources = $targetResources; 218 } 219 /** 220 * @return string[] 221 */ 222 public function getTargetResources() 223 { 224 return $this->targetResources; 225 } 226 /** 227 * @param FirewallPolicyRuleSecureTag[] 228 */ 229 public function setTargetSecureTags($targetSecureTags) 230 { 231 $this->targetSecureTags = $targetSecureTags; 232 } 233 /** 234 * @return FirewallPolicyRuleSecureTag[] 235 */ 236 public function getTargetSecureTags() 237 { 238 return $this->targetSecureTags; 239 } 240 /** 241 * @param string[] 242 */ 243 public function setTargetServiceAccounts($targetServiceAccounts) 244 { 245 $this->targetServiceAccounts = $targetServiceAccounts; 246 } 247 /** 248 * @return string[] 249 */ 250 public function getTargetServiceAccounts() 251 { 252 return $this->targetServiceAccounts; 253 } 254} 255 256// Adding a class alias for backwards compatibility with the previous class name. 257class_alias(FirewallPolicyRule::class, 'Google_Service_Compute_FirewallPolicyRule'); 258