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\CloudAsset; 19 20class Asset extends \Google\Collection 21{ 22 protected $collection_key = 'orgPolicy'; 23 protected $accessLevelType = GoogleIdentityAccesscontextmanagerV1AccessLevel::class; 24 protected $accessLevelDataType = ''; 25 protected $accessPolicyType = GoogleIdentityAccesscontextmanagerV1AccessPolicy::class; 26 protected $accessPolicyDataType = ''; 27 /** 28 * @var string[] 29 */ 30 public $ancestors; 31 /** 32 * @var string 33 */ 34 public $assetType; 35 protected $iamPolicyType = Policy::class; 36 protected $iamPolicyDataType = ''; 37 /** 38 * @var string 39 */ 40 public $name; 41 protected $orgPolicyType = GoogleCloudOrgpolicyV1Policy::class; 42 protected $orgPolicyDataType = 'array'; 43 protected $osInventoryType = Inventory::class; 44 protected $osInventoryDataType = ''; 45 protected $relatedAssetsType = RelatedAssets::class; 46 protected $relatedAssetsDataType = ''; 47 protected $resourceType = CloudassetResource::class; 48 protected $resourceDataType = ''; 49 protected $servicePerimeterType = GoogleIdentityAccesscontextmanagerV1ServicePerimeter::class; 50 protected $servicePerimeterDataType = ''; 51 /** 52 * @var string 53 */ 54 public $updateTime; 55 56 /** 57 * @param GoogleIdentityAccesscontextmanagerV1AccessLevel 58 */ 59 public function setAccessLevel(GoogleIdentityAccesscontextmanagerV1AccessLevel $accessLevel) 60 { 61 $this->accessLevel = $accessLevel; 62 } 63 /** 64 * @return GoogleIdentityAccesscontextmanagerV1AccessLevel 65 */ 66 public function getAccessLevel() 67 { 68 return $this->accessLevel; 69 } 70 /** 71 * @param GoogleIdentityAccesscontextmanagerV1AccessPolicy 72 */ 73 public function setAccessPolicy(GoogleIdentityAccesscontextmanagerV1AccessPolicy $accessPolicy) 74 { 75 $this->accessPolicy = $accessPolicy; 76 } 77 /** 78 * @return GoogleIdentityAccesscontextmanagerV1AccessPolicy 79 */ 80 public function getAccessPolicy() 81 { 82 return $this->accessPolicy; 83 } 84 /** 85 * @param string[] 86 */ 87 public function setAncestors($ancestors) 88 { 89 $this->ancestors = $ancestors; 90 } 91 /** 92 * @return string[] 93 */ 94 public function getAncestors() 95 { 96 return $this->ancestors; 97 } 98 /** 99 * @param string 100 */ 101 public function setAssetType($assetType) 102 { 103 $this->assetType = $assetType; 104 } 105 /** 106 * @return string 107 */ 108 public function getAssetType() 109 { 110 return $this->assetType; 111 } 112 /** 113 * @param Policy 114 */ 115 public function setIamPolicy(Policy $iamPolicy) 116 { 117 $this->iamPolicy = $iamPolicy; 118 } 119 /** 120 * @return Policy 121 */ 122 public function getIamPolicy() 123 { 124 return $this->iamPolicy; 125 } 126 /** 127 * @param string 128 */ 129 public function setName($name) 130 { 131 $this->name = $name; 132 } 133 /** 134 * @return string 135 */ 136 public function getName() 137 { 138 return $this->name; 139 } 140 /** 141 * @param GoogleCloudOrgpolicyV1Policy[] 142 */ 143 public function setOrgPolicy($orgPolicy) 144 { 145 $this->orgPolicy = $orgPolicy; 146 } 147 /** 148 * @return GoogleCloudOrgpolicyV1Policy[] 149 */ 150 public function getOrgPolicy() 151 { 152 return $this->orgPolicy; 153 } 154 /** 155 * @param Inventory 156 */ 157 public function setOsInventory(Inventory $osInventory) 158 { 159 $this->osInventory = $osInventory; 160 } 161 /** 162 * @return Inventory 163 */ 164 public function getOsInventory() 165 { 166 return $this->osInventory; 167 } 168 /** 169 * @param RelatedAssets 170 */ 171 public function setRelatedAssets(RelatedAssets $relatedAssets) 172 { 173 $this->relatedAssets = $relatedAssets; 174 } 175 /** 176 * @return RelatedAssets 177 */ 178 public function getRelatedAssets() 179 { 180 return $this->relatedAssets; 181 } 182 /** 183 * @param CloudassetResource 184 */ 185 public function setResource(CloudassetResource $resource) 186 { 187 $this->resource = $resource; 188 } 189 /** 190 * @return CloudassetResource 191 */ 192 public function getResource() 193 { 194 return $this->resource; 195 } 196 /** 197 * @param GoogleIdentityAccesscontextmanagerV1ServicePerimeter 198 */ 199 public function setServicePerimeter(GoogleIdentityAccesscontextmanagerV1ServicePerimeter $servicePerimeter) 200 { 201 $this->servicePerimeter = $servicePerimeter; 202 } 203 /** 204 * @return GoogleIdentityAccesscontextmanagerV1ServicePerimeter 205 */ 206 public function getServicePerimeter() 207 { 208 return $this->servicePerimeter; 209 } 210 /** 211 * @param string 212 */ 213 public function setUpdateTime($updateTime) 214 { 215 $this->updateTime = $updateTime; 216 } 217 /** 218 * @return string 219 */ 220 public function getUpdateTime() 221 { 222 return $this->updateTime; 223 } 224} 225 226// Adding a class alias for backwards compatibility with the previous class name. 227class_alias(Asset::class, 'Google_Service_CloudAsset_Asset'); 228