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\Cloudchannel; 19 20class GoogleCloudChannelV1alpha1Entitlement extends \Google\Collection 21{ 22 protected $collection_key = 'suspensionReasons'; 23 /** 24 * @var int 25 */ 26 public $assignedUnits; 27 protected $associationInfoType = GoogleCloudChannelV1alpha1AssociationInfo::class; 28 protected $associationInfoDataType = ''; 29 /** 30 * @var string 31 */ 32 public $channelPartnerId; 33 protected $commitmentSettingsType = GoogleCloudChannelV1alpha1CommitmentSettings::class; 34 protected $commitmentSettingsDataType = ''; 35 /** 36 * @var string 37 */ 38 public $createTime; 39 /** 40 * @var int 41 */ 42 public $maxUnits; 43 /** 44 * @var string 45 */ 46 public $name; 47 /** 48 * @var int 49 */ 50 public $numUnits; 51 /** 52 * @var string 53 */ 54 public $offer; 55 protected $parametersType = GoogleCloudChannelV1alpha1Parameter::class; 56 protected $parametersDataType = 'array'; 57 protected $provisionedServiceType = GoogleCloudChannelV1alpha1ProvisionedService::class; 58 protected $provisionedServiceDataType = ''; 59 /** 60 * @var string 61 */ 62 public $provisioningState; 63 /** 64 * @var string 65 */ 66 public $purchaseOrderId; 67 /** 68 * @var string[] 69 */ 70 public $suspensionReasons; 71 protected $trialSettingsType = GoogleCloudChannelV1alpha1TrialSettings::class; 72 protected $trialSettingsDataType = ''; 73 /** 74 * @var string 75 */ 76 public $updateTime; 77 78 /** 79 * @param int 80 */ 81 public function setAssignedUnits($assignedUnits) 82 { 83 $this->assignedUnits = $assignedUnits; 84 } 85 /** 86 * @return int 87 */ 88 public function getAssignedUnits() 89 { 90 return $this->assignedUnits; 91 } 92 /** 93 * @param GoogleCloudChannelV1alpha1AssociationInfo 94 */ 95 public function setAssociationInfo(GoogleCloudChannelV1alpha1AssociationInfo $associationInfo) 96 { 97 $this->associationInfo = $associationInfo; 98 } 99 /** 100 * @return GoogleCloudChannelV1alpha1AssociationInfo 101 */ 102 public function getAssociationInfo() 103 { 104 return $this->associationInfo; 105 } 106 /** 107 * @param string 108 */ 109 public function setChannelPartnerId($channelPartnerId) 110 { 111 $this->channelPartnerId = $channelPartnerId; 112 } 113 /** 114 * @return string 115 */ 116 public function getChannelPartnerId() 117 { 118 return $this->channelPartnerId; 119 } 120 /** 121 * @param GoogleCloudChannelV1alpha1CommitmentSettings 122 */ 123 public function setCommitmentSettings(GoogleCloudChannelV1alpha1CommitmentSettings $commitmentSettings) 124 { 125 $this->commitmentSettings = $commitmentSettings; 126 } 127 /** 128 * @return GoogleCloudChannelV1alpha1CommitmentSettings 129 */ 130 public function getCommitmentSettings() 131 { 132 return $this->commitmentSettings; 133 } 134 /** 135 * @param string 136 */ 137 public function setCreateTime($createTime) 138 { 139 $this->createTime = $createTime; 140 } 141 /** 142 * @return string 143 */ 144 public function getCreateTime() 145 { 146 return $this->createTime; 147 } 148 /** 149 * @param int 150 */ 151 public function setMaxUnits($maxUnits) 152 { 153 $this->maxUnits = $maxUnits; 154 } 155 /** 156 * @return int 157 */ 158 public function getMaxUnits() 159 { 160 return $this->maxUnits; 161 } 162 /** 163 * @param string 164 */ 165 public function setName($name) 166 { 167 $this->name = $name; 168 } 169 /** 170 * @return string 171 */ 172 public function getName() 173 { 174 return $this->name; 175 } 176 /** 177 * @param int 178 */ 179 public function setNumUnits($numUnits) 180 { 181 $this->numUnits = $numUnits; 182 } 183 /** 184 * @return int 185 */ 186 public function getNumUnits() 187 { 188 return $this->numUnits; 189 } 190 /** 191 * @param string 192 */ 193 public function setOffer($offer) 194 { 195 $this->offer = $offer; 196 } 197 /** 198 * @return string 199 */ 200 public function getOffer() 201 { 202 return $this->offer; 203 } 204 /** 205 * @param GoogleCloudChannelV1alpha1Parameter[] 206 */ 207 public function setParameters($parameters) 208 { 209 $this->parameters = $parameters; 210 } 211 /** 212 * @return GoogleCloudChannelV1alpha1Parameter[] 213 */ 214 public function getParameters() 215 { 216 return $this->parameters; 217 } 218 /** 219 * @param GoogleCloudChannelV1alpha1ProvisionedService 220 */ 221 public function setProvisionedService(GoogleCloudChannelV1alpha1ProvisionedService $provisionedService) 222 { 223 $this->provisionedService = $provisionedService; 224 } 225 /** 226 * @return GoogleCloudChannelV1alpha1ProvisionedService 227 */ 228 public function getProvisionedService() 229 { 230 return $this->provisionedService; 231 } 232 /** 233 * @param string 234 */ 235 public function setProvisioningState($provisioningState) 236 { 237 $this->provisioningState = $provisioningState; 238 } 239 /** 240 * @return string 241 */ 242 public function getProvisioningState() 243 { 244 return $this->provisioningState; 245 } 246 /** 247 * @param string 248 */ 249 public function setPurchaseOrderId($purchaseOrderId) 250 { 251 $this->purchaseOrderId = $purchaseOrderId; 252 } 253 /** 254 * @return string 255 */ 256 public function getPurchaseOrderId() 257 { 258 return $this->purchaseOrderId; 259 } 260 /** 261 * @param string[] 262 */ 263 public function setSuspensionReasons($suspensionReasons) 264 { 265 $this->suspensionReasons = $suspensionReasons; 266 } 267 /** 268 * @return string[] 269 */ 270 public function getSuspensionReasons() 271 { 272 return $this->suspensionReasons; 273 } 274 /** 275 * @param GoogleCloudChannelV1alpha1TrialSettings 276 */ 277 public function setTrialSettings(GoogleCloudChannelV1alpha1TrialSettings $trialSettings) 278 { 279 $this->trialSettings = $trialSettings; 280 } 281 /** 282 * @return GoogleCloudChannelV1alpha1TrialSettings 283 */ 284 public function getTrialSettings() 285 { 286 return $this->trialSettings; 287 } 288 /** 289 * @param string 290 */ 291 public function setUpdateTime($updateTime) 292 { 293 $this->updateTime = $updateTime; 294 } 295 /** 296 * @return string 297 */ 298 public function getUpdateTime() 299 { 300 return $this->updateTime; 301 } 302} 303 304// Adding a class alias for backwards compatibility with the previous class name. 305class_alias(GoogleCloudChannelV1alpha1Entitlement::class, 'Google_Service_Cloudchannel_GoogleCloudChannelV1alpha1Entitlement'); 306