[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 ResourcePolicy extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | /**
|
---|
| 23 | * @var string
|
---|
| 24 | */
|
---|
| 25 | public $creationTimestamp;
|
---|
| 26 | /**
|
---|
| 27 | * @var string
|
---|
| 28 | */
|
---|
| 29 | public $description;
|
---|
| 30 | protected $diskConsistencyGroupPolicyType = ResourcePolicyDiskConsistencyGroupPolicy::class;
|
---|
| 31 | protected $diskConsistencyGroupPolicyDataType = '';
|
---|
| 32 | protected $groupPlacementPolicyType = ResourcePolicyGroupPlacementPolicy::class;
|
---|
| 33 | protected $groupPlacementPolicyDataType = '';
|
---|
| 34 | /**
|
---|
| 35 | * @var string
|
---|
| 36 | */
|
---|
| 37 | public $id;
|
---|
| 38 | protected $instanceSchedulePolicyType = ResourcePolicyInstanceSchedulePolicy::class;
|
---|
| 39 | protected $instanceSchedulePolicyDataType = '';
|
---|
| 40 | /**
|
---|
| 41 | * @var string
|
---|
| 42 | */
|
---|
| 43 | public $kind;
|
---|
| 44 | /**
|
---|
| 45 | * @var string
|
---|
| 46 | */
|
---|
| 47 | public $name;
|
---|
| 48 | /**
|
---|
| 49 | * @var string
|
---|
| 50 | */
|
---|
| 51 | public $region;
|
---|
| 52 | protected $resourceStatusType = ResourcePolicyResourceStatus::class;
|
---|
| 53 | protected $resourceStatusDataType = '';
|
---|
| 54 | /**
|
---|
| 55 | * @var string
|
---|
| 56 | */
|
---|
| 57 | public $selfLink;
|
---|
| 58 | protected $snapshotSchedulePolicyType = ResourcePolicySnapshotSchedulePolicy::class;
|
---|
| 59 | protected $snapshotSchedulePolicyDataType = '';
|
---|
| 60 | /**
|
---|
| 61 | * @var string
|
---|
| 62 | */
|
---|
| 63 | public $status;
|
---|
| 64 |
|
---|
| 65 | /**
|
---|
| 66 | * @param string
|
---|
| 67 | */
|
---|
| 68 | public function setCreationTimestamp($creationTimestamp)
|
---|
| 69 | {
|
---|
| 70 | $this->creationTimestamp = $creationTimestamp;
|
---|
| 71 | }
|
---|
| 72 | /**
|
---|
| 73 | * @return string
|
---|
| 74 | */
|
---|
| 75 | public function getCreationTimestamp()
|
---|
| 76 | {
|
---|
| 77 | return $this->creationTimestamp;
|
---|
| 78 | }
|
---|
| 79 | /**
|
---|
| 80 | * @param string
|
---|
| 81 | */
|
---|
| 82 | public function setDescription($description)
|
---|
| 83 | {
|
---|
| 84 | $this->description = $description;
|
---|
| 85 | }
|
---|
| 86 | /**
|
---|
| 87 | * @return string
|
---|
| 88 | */
|
---|
| 89 | public function getDescription()
|
---|
| 90 | {
|
---|
| 91 | return $this->description;
|
---|
| 92 | }
|
---|
| 93 | /**
|
---|
| 94 | * @param ResourcePolicyDiskConsistencyGroupPolicy
|
---|
| 95 | */
|
---|
| 96 | public function setDiskConsistencyGroupPolicy(ResourcePolicyDiskConsistencyGroupPolicy $diskConsistencyGroupPolicy)
|
---|
| 97 | {
|
---|
| 98 | $this->diskConsistencyGroupPolicy = $diskConsistencyGroupPolicy;
|
---|
| 99 | }
|
---|
| 100 | /**
|
---|
| 101 | * @return ResourcePolicyDiskConsistencyGroupPolicy
|
---|
| 102 | */
|
---|
| 103 | public function getDiskConsistencyGroupPolicy()
|
---|
| 104 | {
|
---|
| 105 | return $this->diskConsistencyGroupPolicy;
|
---|
| 106 | }
|
---|
| 107 | /**
|
---|
| 108 | * @param ResourcePolicyGroupPlacementPolicy
|
---|
| 109 | */
|
---|
| 110 | public function setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy $groupPlacementPolicy)
|
---|
| 111 | {
|
---|
| 112 | $this->groupPlacementPolicy = $groupPlacementPolicy;
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * @return ResourcePolicyGroupPlacementPolicy
|
---|
| 116 | */
|
---|
| 117 | public function getGroupPlacementPolicy()
|
---|
| 118 | {
|
---|
| 119 | return $this->groupPlacementPolicy;
|
---|
| 120 | }
|
---|
| 121 | /**
|
---|
| 122 | * @param string
|
---|
| 123 | */
|
---|
| 124 | public function setId($id)
|
---|
| 125 | {
|
---|
| 126 | $this->id = $id;
|
---|
| 127 | }
|
---|
| 128 | /**
|
---|
| 129 | * @return string
|
---|
| 130 | */
|
---|
| 131 | public function getId()
|
---|
| 132 | {
|
---|
| 133 | return $this->id;
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * @param ResourcePolicyInstanceSchedulePolicy
|
---|
| 137 | */
|
---|
| 138 | public function setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePolicy $instanceSchedulePolicy)
|
---|
| 139 | {
|
---|
| 140 | $this->instanceSchedulePolicy = $instanceSchedulePolicy;
|
---|
| 141 | }
|
---|
| 142 | /**
|
---|
| 143 | * @return ResourcePolicyInstanceSchedulePolicy
|
---|
| 144 | */
|
---|
| 145 | public function getInstanceSchedulePolicy()
|
---|
| 146 | {
|
---|
| 147 | return $this->instanceSchedulePolicy;
|
---|
| 148 | }
|
---|
| 149 | /**
|
---|
| 150 | * @param string
|
---|
| 151 | */
|
---|
| 152 | public function setKind($kind)
|
---|
| 153 | {
|
---|
| 154 | $this->kind = $kind;
|
---|
| 155 | }
|
---|
| 156 | /**
|
---|
| 157 | * @return string
|
---|
| 158 | */
|
---|
| 159 | public function getKind()
|
---|
| 160 | {
|
---|
| 161 | return $this->kind;
|
---|
| 162 | }
|
---|
| 163 | /**
|
---|
| 164 | * @param string
|
---|
| 165 | */
|
---|
| 166 | public function setName($name)
|
---|
| 167 | {
|
---|
| 168 | $this->name = $name;
|
---|
| 169 | }
|
---|
| 170 | /**
|
---|
| 171 | * @return string
|
---|
| 172 | */
|
---|
| 173 | public function getName()
|
---|
| 174 | {
|
---|
| 175 | return $this->name;
|
---|
| 176 | }
|
---|
| 177 | /**
|
---|
| 178 | * @param string
|
---|
| 179 | */
|
---|
| 180 | public function setRegion($region)
|
---|
| 181 | {
|
---|
| 182 | $this->region = $region;
|
---|
| 183 | }
|
---|
| 184 | /**
|
---|
| 185 | * @return string
|
---|
| 186 | */
|
---|
| 187 | public function getRegion()
|
---|
| 188 | {
|
---|
| 189 | return $this->region;
|
---|
| 190 | }
|
---|
| 191 | /**
|
---|
| 192 | * @param ResourcePolicyResourceStatus
|
---|
| 193 | */
|
---|
| 194 | public function setResourceStatus(ResourcePolicyResourceStatus $resourceStatus)
|
---|
| 195 | {
|
---|
| 196 | $this->resourceStatus = $resourceStatus;
|
---|
| 197 | }
|
---|
| 198 | /**
|
---|
| 199 | * @return ResourcePolicyResourceStatus
|
---|
| 200 | */
|
---|
| 201 | public function getResourceStatus()
|
---|
| 202 | {
|
---|
| 203 | return $this->resourceStatus;
|
---|
| 204 | }
|
---|
| 205 | /**
|
---|
| 206 | * @param string
|
---|
| 207 | */
|
---|
| 208 | public function setSelfLink($selfLink)
|
---|
| 209 | {
|
---|
| 210 | $this->selfLink = $selfLink;
|
---|
| 211 | }
|
---|
| 212 | /**
|
---|
| 213 | * @return string
|
---|
| 214 | */
|
---|
| 215 | public function getSelfLink()
|
---|
| 216 | {
|
---|
| 217 | return $this->selfLink;
|
---|
| 218 | }
|
---|
| 219 | /**
|
---|
| 220 | * @param ResourcePolicySnapshotSchedulePolicy
|
---|
| 221 | */
|
---|
| 222 | public function setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicy $snapshotSchedulePolicy)
|
---|
| 223 | {
|
---|
| 224 | $this->snapshotSchedulePolicy = $snapshotSchedulePolicy;
|
---|
| 225 | }
|
---|
| 226 | /**
|
---|
| 227 | * @return ResourcePolicySnapshotSchedulePolicy
|
---|
| 228 | */
|
---|
| 229 | public function getSnapshotSchedulePolicy()
|
---|
| 230 | {
|
---|
| 231 | return $this->snapshotSchedulePolicy;
|
---|
| 232 | }
|
---|
| 233 | /**
|
---|
| 234 | * @param string
|
---|
| 235 | */
|
---|
| 236 | public function setStatus($status)
|
---|
| 237 | {
|
---|
| 238 | $this->status = $status;
|
---|
| 239 | }
|
---|
| 240 | /**
|
---|
| 241 | * @return string
|
---|
| 242 | */
|
---|
| 243 | public function getStatus()
|
---|
| 244 | {
|
---|
| 245 | return $this->status;
|
---|
| 246 | }
|
---|
| 247 | }
|
---|
| 248 |
|
---|
| 249 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 250 | class_alias(ResourcePolicy::class, 'Google_Service_Compute_ResourcePolicy');
|
---|