[f9c482b] | 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\CloudAsset;
|
---|
| 19 |
|
---|
| 20 | class GoogleCloudAssetV1Rule extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | /**
|
---|
| 23 | * @var bool
|
---|
| 24 | */
|
---|
| 25 | public $allowAll;
|
---|
| 26 | protected $conditionType = Expr::class;
|
---|
| 27 | protected $conditionDataType = '';
|
---|
| 28 | protected $conditionEvaluationType = ConditionEvaluation::class;
|
---|
| 29 | protected $conditionEvaluationDataType = '';
|
---|
| 30 | /**
|
---|
| 31 | * @var bool
|
---|
| 32 | */
|
---|
| 33 | public $denyAll;
|
---|
| 34 | /**
|
---|
| 35 | * @var bool
|
---|
| 36 | */
|
---|
| 37 | public $enforce;
|
---|
| 38 | protected $valuesType = GoogleCloudAssetV1StringValues::class;
|
---|
| 39 | protected $valuesDataType = '';
|
---|
| 40 |
|
---|
| 41 | /**
|
---|
| 42 | * @param bool
|
---|
| 43 | */
|
---|
| 44 | public function setAllowAll($allowAll)
|
---|
| 45 | {
|
---|
| 46 | $this->allowAll = $allowAll;
|
---|
| 47 | }
|
---|
| 48 | /**
|
---|
| 49 | * @return bool
|
---|
| 50 | */
|
---|
| 51 | public function getAllowAll()
|
---|
| 52 | {
|
---|
| 53 | return $this->allowAll;
|
---|
| 54 | }
|
---|
| 55 | /**
|
---|
| 56 | * @param Expr
|
---|
| 57 | */
|
---|
| 58 | public function setCondition(Expr $condition)
|
---|
| 59 | {
|
---|
| 60 | $this->condition = $condition;
|
---|
| 61 | }
|
---|
| 62 | /**
|
---|
| 63 | * @return Expr
|
---|
| 64 | */
|
---|
| 65 | public function getCondition()
|
---|
| 66 | {
|
---|
| 67 | return $this->condition;
|
---|
| 68 | }
|
---|
| 69 | /**
|
---|
| 70 | * @param ConditionEvaluation
|
---|
| 71 | */
|
---|
| 72 | public function setConditionEvaluation(ConditionEvaluation $conditionEvaluation)
|
---|
| 73 | {
|
---|
| 74 | $this->conditionEvaluation = $conditionEvaluation;
|
---|
| 75 | }
|
---|
| 76 | /**
|
---|
| 77 | * @return ConditionEvaluation
|
---|
| 78 | */
|
---|
| 79 | public function getConditionEvaluation()
|
---|
| 80 | {
|
---|
| 81 | return $this->conditionEvaluation;
|
---|
| 82 | }
|
---|
| 83 | /**
|
---|
| 84 | * @param bool
|
---|
| 85 | */
|
---|
| 86 | public function setDenyAll($denyAll)
|
---|
| 87 | {
|
---|
| 88 | $this->denyAll = $denyAll;
|
---|
| 89 | }
|
---|
| 90 | /**
|
---|
| 91 | * @return bool
|
---|
| 92 | */
|
---|
| 93 | public function getDenyAll()
|
---|
| 94 | {
|
---|
| 95 | return $this->denyAll;
|
---|
| 96 | }
|
---|
| 97 | /**
|
---|
| 98 | * @param bool
|
---|
| 99 | */
|
---|
| 100 | public function setEnforce($enforce)
|
---|
| 101 | {
|
---|
| 102 | $this->enforce = $enforce;
|
---|
| 103 | }
|
---|
| 104 | /**
|
---|
| 105 | * @return bool
|
---|
| 106 | */
|
---|
| 107 | public function getEnforce()
|
---|
| 108 | {
|
---|
| 109 | return $this->enforce;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @param GoogleCloudAssetV1StringValues
|
---|
| 113 | */
|
---|
| 114 | public function setValues(GoogleCloudAssetV1StringValues $values)
|
---|
| 115 | {
|
---|
| 116 | $this->values = $values;
|
---|
| 117 | }
|
---|
| 118 | /**
|
---|
| 119 | * @return GoogleCloudAssetV1StringValues
|
---|
| 120 | */
|
---|
| 121 | public function getValues()
|
---|
| 122 | {
|
---|
| 123 | return $this->values;
|
---|
| 124 | }
|
---|
| 125 | }
|
---|
| 126 |
|
---|
| 127 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 128 | class_alias(GoogleCloudAssetV1Rule::class, 'Google_Service_CloudAsset_GoogleCloudAssetV1Rule');
|
---|