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