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