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\ServiceControl;
19
20class AuditLog extends \Google\Collection
21{
22  protected $collection_key = 'authorizationInfo';
23  protected $authenticationInfoType = AuthenticationInfo::class;
24  protected $authenticationInfoDataType = '';
25  protected $authorizationInfoType = AuthorizationInfo::class;
26  protected $authorizationInfoDataType = 'array';
27  /**
28   * @var array[]
29   */
30  public $metadata;
31  /**
32   * @var string
33   */
34  public $methodName;
35  /**
36   * @var string
37   */
38  public $numResponseItems;
39  protected $policyViolationInfoType = PolicyViolationInfo::class;
40  protected $policyViolationInfoDataType = '';
41  /**
42   * @var array[]
43   */
44  public $request;
45  protected $requestMetadataType = RequestMetadata::class;
46  protected $requestMetadataDataType = '';
47  protected $resourceLocationType = ResourceLocation::class;
48  protected $resourceLocationDataType = '';
49  /**
50   * @var string
51   */
52  public $resourceName;
53  /**
54   * @var array[]
55   */
56  public $resourceOriginalState;
57  /**
58   * @var array[]
59   */
60  public $response;
61  /**
62   * @var array[]
63   */
64  public $serviceData;
65  /**
66   * @var string
67   */
68  public $serviceName;
69  protected $statusType = Status::class;
70  protected $statusDataType = '';
71
72  /**
73   * @param AuthenticationInfo
74   */
75  public function setAuthenticationInfo(AuthenticationInfo $authenticationInfo)
76  {
77    $this->authenticationInfo = $authenticationInfo;
78  }
79  /**
80   * @return AuthenticationInfo
81   */
82  public function getAuthenticationInfo()
83  {
84    return $this->authenticationInfo;
85  }
86  /**
87   * @param AuthorizationInfo[]
88   */
89  public function setAuthorizationInfo($authorizationInfo)
90  {
91    $this->authorizationInfo = $authorizationInfo;
92  }
93  /**
94   * @return AuthorizationInfo[]
95   */
96  public function getAuthorizationInfo()
97  {
98    return $this->authorizationInfo;
99  }
100  /**
101   * @param array[]
102   */
103  public function setMetadata($metadata)
104  {
105    $this->metadata = $metadata;
106  }
107  /**
108   * @return array[]
109   */
110  public function getMetadata()
111  {
112    return $this->metadata;
113  }
114  /**
115   * @param string
116   */
117  public function setMethodName($methodName)
118  {
119    $this->methodName = $methodName;
120  }
121  /**
122   * @return string
123   */
124  public function getMethodName()
125  {
126    return $this->methodName;
127  }
128  /**
129   * @param string
130   */
131  public function setNumResponseItems($numResponseItems)
132  {
133    $this->numResponseItems = $numResponseItems;
134  }
135  /**
136   * @return string
137   */
138  public function getNumResponseItems()
139  {
140    return $this->numResponseItems;
141  }
142  /**
143   * @param PolicyViolationInfo
144   */
145  public function setPolicyViolationInfo(PolicyViolationInfo $policyViolationInfo)
146  {
147    $this->policyViolationInfo = $policyViolationInfo;
148  }
149  /**
150   * @return PolicyViolationInfo
151   */
152  public function getPolicyViolationInfo()
153  {
154    return $this->policyViolationInfo;
155  }
156  /**
157   * @param array[]
158   */
159  public function setRequest($request)
160  {
161    $this->request = $request;
162  }
163  /**
164   * @return array[]
165   */
166  public function getRequest()
167  {
168    return $this->request;
169  }
170  /**
171   * @param RequestMetadata
172   */
173  public function setRequestMetadata(RequestMetadata $requestMetadata)
174  {
175    $this->requestMetadata = $requestMetadata;
176  }
177  /**
178   * @return RequestMetadata
179   */
180  public function getRequestMetadata()
181  {
182    return $this->requestMetadata;
183  }
184  /**
185   * @param ResourceLocation
186   */
187  public function setResourceLocation(ResourceLocation $resourceLocation)
188  {
189    $this->resourceLocation = $resourceLocation;
190  }
191  /**
192   * @return ResourceLocation
193   */
194  public function getResourceLocation()
195  {
196    return $this->resourceLocation;
197  }
198  /**
199   * @param string
200   */
201  public function setResourceName($resourceName)
202  {
203    $this->resourceName = $resourceName;
204  }
205  /**
206   * @return string
207   */
208  public function getResourceName()
209  {
210    return $this->resourceName;
211  }
212  /**
213   * @param array[]
214   */
215  public function setResourceOriginalState($resourceOriginalState)
216  {
217    $this->resourceOriginalState = $resourceOriginalState;
218  }
219  /**
220   * @return array[]
221   */
222  public function getResourceOriginalState()
223  {
224    return $this->resourceOriginalState;
225  }
226  /**
227   * @param array[]
228   */
229  public function setResponse($response)
230  {
231    $this->response = $response;
232  }
233  /**
234   * @return array[]
235   */
236  public function getResponse()
237  {
238    return $this->response;
239  }
240  /**
241   * @param array[]
242   */
243  public function setServiceData($serviceData)
244  {
245    $this->serviceData = $serviceData;
246  }
247  /**
248   * @return array[]
249   */
250  public function getServiceData()
251  {
252    return $this->serviceData;
253  }
254  /**
255   * @param string
256   */
257  public function setServiceName($serviceName)
258  {
259    $this->serviceName = $serviceName;
260  }
261  /**
262   * @return string
263   */
264  public function getServiceName()
265  {
266    return $this->serviceName;
267  }
268  /**
269   * @param Status
270   */
271  public function setStatus(Status $status)
272  {
273    $this->status = $status;
274  }
275  /**
276   * @return Status
277   */
278  public function getStatus()
279  {
280    return $this->status;
281  }
282}
283
284// Adding a class alias for backwards compatibility with the previous class name.
285class_alias(AuditLog::class, 'Google_Service_ServiceControl_AuditLog');
286