PageRenderTime 77ms CodeModel.GetById 36ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/google/src/Google/Service/Reports.php

http://github.com/moodle/moodle
PHP | 1136 lines | 913 code | 59 blank | 164 comment | 0 complexity | eb63022a5b7bfce545e30766afcadd03 MD5 | raw file
Possible License(s): MIT, AGPL-3.0, MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, Apache-2.0, LGPL-2.1, BSD-3-Clause
  1. <?php
  2. /*
  3. * Copyright 2010 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. * Service definition for Reports (reports_v1).
  19. *
  20. * <p>
  21. * Allows the administrators of Google Apps customers to fetch reports about the
  22. * usage, collaboration, security and risk for their users.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/admin-sdk/reports/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_Reports extends Google_Service
  32. {
  33. /** View audit reports of Google Apps for your domain. */
  34. const ADMIN_REPORTS_AUDIT_READONLY =
  35. "https://www.googleapis.com/auth/admin.reports.audit.readonly";
  36. /** View usage reports of Google Apps for your domain. */
  37. const ADMIN_REPORTS_USAGE_READONLY =
  38. "https://www.googleapis.com/auth/admin.reports.usage.readonly";
  39. public $activities;
  40. public $channels;
  41. public $customerUsageReports;
  42. public $userUsageReport;
  43. /**
  44. * Constructs the internal representation of the Reports service.
  45. *
  46. * @param Google_Client $client
  47. */
  48. public function __construct(Google_Client $client)
  49. {
  50. parent::__construct($client);
  51. $this->rootUrl = 'https://www.googleapis.com/';
  52. $this->servicePath = 'admin/reports/v1/';
  53. $this->version = 'reports_v1';
  54. $this->serviceName = 'admin';
  55. $this->activities = new Google_Service_Reports_Activities_Resource(
  56. $this,
  57. $this->serviceName,
  58. 'activities',
  59. array(
  60. 'methods' => array(
  61. 'list' => array(
  62. 'path' => 'activity/users/{userKey}/applications/{applicationName}',
  63. 'httpMethod' => 'GET',
  64. 'parameters' => array(
  65. 'userKey' => array(
  66. 'location' => 'path',
  67. 'type' => 'string',
  68. 'required' => true,
  69. ),
  70. 'applicationName' => array(
  71. 'location' => 'path',
  72. 'type' => 'string',
  73. 'required' => true,
  74. ),
  75. 'startTime' => array(
  76. 'location' => 'query',
  77. 'type' => 'string',
  78. ),
  79. 'actorIpAddress' => array(
  80. 'location' => 'query',
  81. 'type' => 'string',
  82. ),
  83. 'maxResults' => array(
  84. 'location' => 'query',
  85. 'type' => 'integer',
  86. ),
  87. 'eventName' => array(
  88. 'location' => 'query',
  89. 'type' => 'string',
  90. ),
  91. 'pageToken' => array(
  92. 'location' => 'query',
  93. 'type' => 'string',
  94. ),
  95. 'filters' => array(
  96. 'location' => 'query',
  97. 'type' => 'string',
  98. ),
  99. 'endTime' => array(
  100. 'location' => 'query',
  101. 'type' => 'string',
  102. ),
  103. 'customerId' => array(
  104. 'location' => 'query',
  105. 'type' => 'string',
  106. ),
  107. ),
  108. ),'watch' => array(
  109. 'path' => 'activity/users/{userKey}/applications/{applicationName}/watch',
  110. 'httpMethod' => 'POST',
  111. 'parameters' => array(
  112. 'userKey' => array(
  113. 'location' => 'path',
  114. 'type' => 'string',
  115. 'required' => true,
  116. ),
  117. 'applicationName' => array(
  118. 'location' => 'path',
  119. 'type' => 'string',
  120. 'required' => true,
  121. ),
  122. 'startTime' => array(
  123. 'location' => 'query',
  124. 'type' => 'string',
  125. ),
  126. 'actorIpAddress' => array(
  127. 'location' => 'query',
  128. 'type' => 'string',
  129. ),
  130. 'maxResults' => array(
  131. 'location' => 'query',
  132. 'type' => 'integer',
  133. ),
  134. 'eventName' => array(
  135. 'location' => 'query',
  136. 'type' => 'string',
  137. ),
  138. 'pageToken' => array(
  139. 'location' => 'query',
  140. 'type' => 'string',
  141. ),
  142. 'filters' => array(
  143. 'location' => 'query',
  144. 'type' => 'string',
  145. ),
  146. 'endTime' => array(
  147. 'location' => 'query',
  148. 'type' => 'string',
  149. ),
  150. 'customerId' => array(
  151. 'location' => 'query',
  152. 'type' => 'string',
  153. ),
  154. ),
  155. ),
  156. )
  157. )
  158. );
  159. $this->channels = new Google_Service_Reports_Channels_Resource(
  160. $this,
  161. $this->serviceName,
  162. 'channels',
  163. array(
  164. 'methods' => array(
  165. 'stop' => array(
  166. 'path' => '/admin/reports_v1/channels/stop',
  167. 'httpMethod' => 'POST',
  168. 'parameters' => array(),
  169. ),
  170. )
  171. )
  172. );
  173. $this->customerUsageReports = new Google_Service_Reports_CustomerUsageReports_Resource(
  174. $this,
  175. $this->serviceName,
  176. 'customerUsageReports',
  177. array(
  178. 'methods' => array(
  179. 'get' => array(
  180. 'path' => 'usage/dates/{date}',
  181. 'httpMethod' => 'GET',
  182. 'parameters' => array(
  183. 'date' => array(
  184. 'location' => 'path',
  185. 'type' => 'string',
  186. 'required' => true,
  187. ),
  188. 'pageToken' => array(
  189. 'location' => 'query',
  190. 'type' => 'string',
  191. ),
  192. 'customerId' => array(
  193. 'location' => 'query',
  194. 'type' => 'string',
  195. ),
  196. 'parameters' => array(
  197. 'location' => 'query',
  198. 'type' => 'string',
  199. ),
  200. ),
  201. ),
  202. )
  203. )
  204. );
  205. $this->userUsageReport = new Google_Service_Reports_UserUsageReport_Resource(
  206. $this,
  207. $this->serviceName,
  208. 'userUsageReport',
  209. array(
  210. 'methods' => array(
  211. 'get' => array(
  212. 'path' => 'usage/users/{userKey}/dates/{date}',
  213. 'httpMethod' => 'GET',
  214. 'parameters' => array(
  215. 'userKey' => array(
  216. 'location' => 'path',
  217. 'type' => 'string',
  218. 'required' => true,
  219. ),
  220. 'date' => array(
  221. 'location' => 'path',
  222. 'type' => 'string',
  223. 'required' => true,
  224. ),
  225. 'parameters' => array(
  226. 'location' => 'query',
  227. 'type' => 'string',
  228. ),
  229. 'maxResults' => array(
  230. 'location' => 'query',
  231. 'type' => 'integer',
  232. ),
  233. 'pageToken' => array(
  234. 'location' => 'query',
  235. 'type' => 'string',
  236. ),
  237. 'filters' => array(
  238. 'location' => 'query',
  239. 'type' => 'string',
  240. ),
  241. 'customerId' => array(
  242. 'location' => 'query',
  243. 'type' => 'string',
  244. ),
  245. ),
  246. ),
  247. )
  248. )
  249. );
  250. }
  251. }
  252. /**
  253. * The "activities" collection of methods.
  254. * Typical usage is:
  255. * <code>
  256. * $adminService = new Google_Service_Reports(...);
  257. * $activities = $adminService->activities;
  258. * </code>
  259. */
  260. class Google_Service_Reports_Activities_Resource extends Google_Service_Resource
  261. {
  262. /**
  263. * Retrieves a list of activities for a specific customer and application.
  264. * (activities.listActivities)
  265. *
  266. * @param string $userKey Represents the profile id or the user email for which
  267. * the data should be filtered. When 'all' is specified as the userKey, it
  268. * returns usageReports for all users.
  269. * @param string $applicationName Application name for which the events are to
  270. * be retrieved.
  271. * @param array $optParams Optional parameters.
  272. *
  273. * @opt_param string startTime Return events which occured at or after this
  274. * time.
  275. * @opt_param string actorIpAddress IP Address of host where the event was
  276. * performed. Supports both IPv4 and IPv6 addresses.
  277. * @opt_param int maxResults Number of activity records to be shown in each
  278. * page.
  279. * @opt_param string eventName Name of the event being queried.
  280. * @opt_param string pageToken Token to specify next page.
  281. * @opt_param string filters Event parameters in the form [parameter1
  282. * name][operator][parameter1 value],[parameter2 name][operator][parameter2
  283. * value],...
  284. * @opt_param string endTime Return events which occured at or before this time.
  285. * @opt_param string customerId Represents the customer for which the data is to
  286. * be fetched.
  287. * @return Google_Service_Reports_Activities
  288. */
  289. public function listActivities($userKey, $applicationName, $optParams = array())
  290. {
  291. $params = array('userKey' => $userKey, 'applicationName' => $applicationName);
  292. $params = array_merge($params, $optParams);
  293. return $this->call('list', array($params), "Google_Service_Reports_Activities");
  294. }
  295. /**
  296. * Push changes to activities (activities.watch)
  297. *
  298. * @param string $userKey Represents the profile id or the user email for which
  299. * the data should be filtered. When 'all' is specified as the userKey, it
  300. * returns usageReports for all users.
  301. * @param string $applicationName Application name for which the events are to
  302. * be retrieved.
  303. * @param Google_Channel $postBody
  304. * @param array $optParams Optional parameters.
  305. *
  306. * @opt_param string startTime Return events which occured at or after this
  307. * time.
  308. * @opt_param string actorIpAddress IP Address of host where the event was
  309. * performed. Supports both IPv4 and IPv6 addresses.
  310. * @opt_param int maxResults Number of activity records to be shown in each
  311. * page.
  312. * @opt_param string eventName Name of the event being queried.
  313. * @opt_param string pageToken Token to specify next page.
  314. * @opt_param string filters Event parameters in the form [parameter1
  315. * name][operator][parameter1 value],[parameter2 name][operator][parameter2
  316. * value],...
  317. * @opt_param string endTime Return events which occured at or before this time.
  318. * @opt_param string customerId Represents the customer for which the data is to
  319. * be fetched.
  320. * @return Google_Service_Reports_Channel
  321. */
  322. public function watch($userKey, $applicationName, Google_Service_Reports_Channel $postBody, $optParams = array())
  323. {
  324. $params = array('userKey' => $userKey, 'applicationName' => $applicationName, 'postBody' => $postBody);
  325. $params = array_merge($params, $optParams);
  326. return $this->call('watch', array($params), "Google_Service_Reports_Channel");
  327. }
  328. }
  329. /**
  330. * The "channels" collection of methods.
  331. * Typical usage is:
  332. * <code>
  333. * $adminService = new Google_Service_Reports(...);
  334. * $channels = $adminService->channels;
  335. * </code>
  336. */
  337. class Google_Service_Reports_Channels_Resource extends Google_Service_Resource
  338. {
  339. /**
  340. * Stop watching resources through this channel (channels.stop)
  341. *
  342. * @param Google_Channel $postBody
  343. * @param array $optParams Optional parameters.
  344. */
  345. public function stop(Google_Service_Reports_Channel $postBody, $optParams = array())
  346. {
  347. $params = array('postBody' => $postBody);
  348. $params = array_merge($params, $optParams);
  349. return $this->call('stop', array($params));
  350. }
  351. }
  352. /**
  353. * The "customerUsageReports" collection of methods.
  354. * Typical usage is:
  355. * <code>
  356. * $adminService = new Google_Service_Reports(...);
  357. * $customerUsageReports = $adminService->customerUsageReports;
  358. * </code>
  359. */
  360. class Google_Service_Reports_CustomerUsageReports_Resource extends Google_Service_Resource
  361. {
  362. /**
  363. * Retrieves a report which is a collection of properties / statistics for a
  364. * specific customer. (customerUsageReports.get)
  365. *
  366. * @param string $date Represents the date in yyyy-mm-dd format for which the
  367. * data is to be fetched.
  368. * @param array $optParams Optional parameters.
  369. *
  370. * @opt_param string pageToken Token to specify next page.
  371. * @opt_param string customerId Represents the customer for which the data is to
  372. * be fetched.
  373. * @opt_param string parameters Represents the application name, parameter name
  374. * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
  375. * @return Google_Service_Reports_UsageReports
  376. */
  377. public function get($date, $optParams = array())
  378. {
  379. $params = array('date' => $date);
  380. $params = array_merge($params, $optParams);
  381. return $this->call('get', array($params), "Google_Service_Reports_UsageReports");
  382. }
  383. }
  384. /**
  385. * The "userUsageReport" collection of methods.
  386. * Typical usage is:
  387. * <code>
  388. * $adminService = new Google_Service_Reports(...);
  389. * $userUsageReport = $adminService->userUsageReport;
  390. * </code>
  391. */
  392. class Google_Service_Reports_UserUsageReport_Resource extends Google_Service_Resource
  393. {
  394. /**
  395. * Retrieves a report which is a collection of properties / statistics for a set
  396. * of users. (userUsageReport.get)
  397. *
  398. * @param string $userKey Represents the profile id or the user email for which
  399. * the data should be filtered.
  400. * @param string $date Represents the date in yyyy-mm-dd format for which the
  401. * data is to be fetched.
  402. * @param array $optParams Optional parameters.
  403. *
  404. * @opt_param string parameters Represents the application name, parameter name
  405. * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
  406. * @opt_param string maxResults Maximum number of results to return. Maximum
  407. * allowed is 1000
  408. * @opt_param string pageToken Token to specify next page.
  409. * @opt_param string filters Represents the set of filters including parameter
  410. * operator value.
  411. * @opt_param string customerId Represents the customer for which the data is to
  412. * be fetched.
  413. * @return Google_Service_Reports_UsageReports
  414. */
  415. public function get($userKey, $date, $optParams = array())
  416. {
  417. $params = array('userKey' => $userKey, 'date' => $date);
  418. $params = array_merge($params, $optParams);
  419. return $this->call('get', array($params), "Google_Service_Reports_UsageReports");
  420. }
  421. }
  422. class Google_Service_Reports_Activities extends Google_Collection
  423. {
  424. protected $collection_key = 'items';
  425. protected $internal_gapi_mappings = array(
  426. );
  427. public $etag;
  428. protected $itemsType = 'Google_Service_Reports_Activity';
  429. protected $itemsDataType = 'array';
  430. public $kind;
  431. public $nextPageToken;
  432. public function setEtag($etag)
  433. {
  434. $this->etag = $etag;
  435. }
  436. public function getEtag()
  437. {
  438. return $this->etag;
  439. }
  440. public function setItems($items)
  441. {
  442. $this->items = $items;
  443. }
  444. public function getItems()
  445. {
  446. return $this->items;
  447. }
  448. public function setKind($kind)
  449. {
  450. $this->kind = $kind;
  451. }
  452. public function getKind()
  453. {
  454. return $this->kind;
  455. }
  456. public function setNextPageToken($nextPageToken)
  457. {
  458. $this->nextPageToken = $nextPageToken;
  459. }
  460. public function getNextPageToken()
  461. {
  462. return $this->nextPageToken;
  463. }
  464. }
  465. class Google_Service_Reports_Activity extends Google_Collection
  466. {
  467. protected $collection_key = 'events';
  468. protected $internal_gapi_mappings = array(
  469. );
  470. protected $actorType = 'Google_Service_Reports_ActivityActor';
  471. protected $actorDataType = '';
  472. public $etag;
  473. protected $eventsType = 'Google_Service_Reports_ActivityEvents';
  474. protected $eventsDataType = 'array';
  475. protected $idType = 'Google_Service_Reports_ActivityId';
  476. protected $idDataType = '';
  477. public $ipAddress;
  478. public $kind;
  479. public $ownerDomain;
  480. public function setActor(Google_Service_Reports_ActivityActor $actor)
  481. {
  482. $this->actor = $actor;
  483. }
  484. public function getActor()
  485. {
  486. return $this->actor;
  487. }
  488. public function setEtag($etag)
  489. {
  490. $this->etag = $etag;
  491. }
  492. public function getEtag()
  493. {
  494. return $this->etag;
  495. }
  496. public function setEvents($events)
  497. {
  498. $this->events = $events;
  499. }
  500. public function getEvents()
  501. {
  502. return $this->events;
  503. }
  504. public function setId(Google_Service_Reports_ActivityId $id)
  505. {
  506. $this->id = $id;
  507. }
  508. public function getId()
  509. {
  510. return $this->id;
  511. }
  512. public function setIpAddress($ipAddress)
  513. {
  514. $this->ipAddress = $ipAddress;
  515. }
  516. public function getIpAddress()
  517. {
  518. return $this->ipAddress;
  519. }
  520. public function setKind($kind)
  521. {
  522. $this->kind = $kind;
  523. }
  524. public function getKind()
  525. {
  526. return $this->kind;
  527. }
  528. public function setOwnerDomain($ownerDomain)
  529. {
  530. $this->ownerDomain = $ownerDomain;
  531. }
  532. public function getOwnerDomain()
  533. {
  534. return $this->ownerDomain;
  535. }
  536. }
  537. class Google_Service_Reports_ActivityActor extends Google_Model
  538. {
  539. protected $internal_gapi_mappings = array(
  540. );
  541. public $callerType;
  542. public $email;
  543. public $key;
  544. public $profileId;
  545. public function setCallerType($callerType)
  546. {
  547. $this->callerType = $callerType;
  548. }
  549. public function getCallerType()
  550. {
  551. return $this->callerType;
  552. }
  553. public function setEmail($email)
  554. {
  555. $this->email = $email;
  556. }
  557. public function getEmail()
  558. {
  559. return $this->email;
  560. }
  561. public function setKey($key)
  562. {
  563. $this->key = $key;
  564. }
  565. public function getKey()
  566. {
  567. return $this->key;
  568. }
  569. public function setProfileId($profileId)
  570. {
  571. $this->profileId = $profileId;
  572. }
  573. public function getProfileId()
  574. {
  575. return $this->profileId;
  576. }
  577. }
  578. class Google_Service_Reports_ActivityEvents extends Google_Collection
  579. {
  580. protected $collection_key = 'parameters';
  581. protected $internal_gapi_mappings = array(
  582. );
  583. public $name;
  584. protected $parametersType = 'Google_Service_Reports_ActivityEventsParameters';
  585. protected $parametersDataType = 'array';
  586. public $type;
  587. public function setName($name)
  588. {
  589. $this->name = $name;
  590. }
  591. public function getName()
  592. {
  593. return $this->name;
  594. }
  595. public function setParameters($parameters)
  596. {
  597. $this->parameters = $parameters;
  598. }
  599. public function getParameters()
  600. {
  601. return $this->parameters;
  602. }
  603. public function setType($type)
  604. {
  605. $this->type = $type;
  606. }
  607. public function getType()
  608. {
  609. return $this->type;
  610. }
  611. }
  612. class Google_Service_Reports_ActivityEventsParameters extends Google_Collection
  613. {
  614. protected $collection_key = 'multiValue';
  615. protected $internal_gapi_mappings = array(
  616. );
  617. public $boolValue;
  618. public $intValue;
  619. public $multiIntValue;
  620. public $multiValue;
  621. public $name;
  622. public $value;
  623. public function setBoolValue($boolValue)
  624. {
  625. $this->boolValue = $boolValue;
  626. }
  627. public function getBoolValue()
  628. {
  629. return $this->boolValue;
  630. }
  631. public function setIntValue($intValue)
  632. {
  633. $this->intValue = $intValue;
  634. }
  635. public function getIntValue()
  636. {
  637. return $this->intValue;
  638. }
  639. public function setMultiIntValue($multiIntValue)
  640. {
  641. $this->multiIntValue = $multiIntValue;
  642. }
  643. public function getMultiIntValue()
  644. {
  645. return $this->multiIntValue;
  646. }
  647. public function setMultiValue($multiValue)
  648. {
  649. $this->multiValue = $multiValue;
  650. }
  651. public function getMultiValue()
  652. {
  653. return $this->multiValue;
  654. }
  655. public function setName($name)
  656. {
  657. $this->name = $name;
  658. }
  659. public function getName()
  660. {
  661. return $this->name;
  662. }
  663. public function setValue($value)
  664. {
  665. $this->value = $value;
  666. }
  667. public function getValue()
  668. {
  669. return $this->value;
  670. }
  671. }
  672. class Google_Service_Reports_ActivityId extends Google_Model
  673. {
  674. protected $internal_gapi_mappings = array(
  675. );
  676. public $applicationName;
  677. public $customerId;
  678. public $time;
  679. public $uniqueQualifier;
  680. public function setApplicationName($applicationName)
  681. {
  682. $this->applicationName = $applicationName;
  683. }
  684. public function getApplicationName()
  685. {
  686. return $this->applicationName;
  687. }
  688. public function setCustomerId($customerId)
  689. {
  690. $this->customerId = $customerId;
  691. }
  692. public function getCustomerId()
  693. {
  694. return $this->customerId;
  695. }
  696. public function setTime($time)
  697. {
  698. $this->time = $time;
  699. }
  700. public function getTime()
  701. {
  702. return $this->time;
  703. }
  704. public function setUniqueQualifier($uniqueQualifier)
  705. {
  706. $this->uniqueQualifier = $uniqueQualifier;
  707. }
  708. public function getUniqueQualifier()
  709. {
  710. return $this->uniqueQualifier;
  711. }
  712. }
  713. class Google_Service_Reports_Channel extends Google_Model
  714. {
  715. protected $internal_gapi_mappings = array(
  716. );
  717. public $address;
  718. public $expiration;
  719. public $id;
  720. public $kind;
  721. public $params;
  722. public $payload;
  723. public $resourceId;
  724. public $resourceUri;
  725. public $token;
  726. public $type;
  727. public function setAddress($address)
  728. {
  729. $this->address = $address;
  730. }
  731. public function getAddress()
  732. {
  733. return $this->address;
  734. }
  735. public function setExpiration($expiration)
  736. {
  737. $this->expiration = $expiration;
  738. }
  739. public function getExpiration()
  740. {
  741. return $this->expiration;
  742. }
  743. public function setId($id)
  744. {
  745. $this->id = $id;
  746. }
  747. public function getId()
  748. {
  749. return $this->id;
  750. }
  751. public function setKind($kind)
  752. {
  753. $this->kind = $kind;
  754. }
  755. public function getKind()
  756. {
  757. return $this->kind;
  758. }
  759. public function setParams($params)
  760. {
  761. $this->params = $params;
  762. }
  763. public function getParams()
  764. {
  765. return $this->params;
  766. }
  767. public function setPayload($payload)
  768. {
  769. $this->payload = $payload;
  770. }
  771. public function getPayload()
  772. {
  773. return $this->payload;
  774. }
  775. public function setResourceId($resourceId)
  776. {
  777. $this->resourceId = $resourceId;
  778. }
  779. public function getResourceId()
  780. {
  781. return $this->resourceId;
  782. }
  783. public function setResourceUri($resourceUri)
  784. {
  785. $this->resourceUri = $resourceUri;
  786. }
  787. public function getResourceUri()
  788. {
  789. return $this->resourceUri;
  790. }
  791. public function setToken($token)
  792. {
  793. $this->token = $token;
  794. }
  795. public function getToken()
  796. {
  797. return $this->token;
  798. }
  799. public function setType($type)
  800. {
  801. $this->type = $type;
  802. }
  803. public function getType()
  804. {
  805. return $this->type;
  806. }
  807. }
  808. class Google_Service_Reports_ChannelParams extends Google_Model
  809. {
  810. }
  811. class Google_Service_Reports_UsageReport extends Google_Collection
  812. {
  813. protected $collection_key = 'parameters';
  814. protected $internal_gapi_mappings = array(
  815. );
  816. public $date;
  817. protected $entityType = 'Google_Service_Reports_UsageReportEntity';
  818. protected $entityDataType = '';
  819. public $etag;
  820. public $kind;
  821. protected $parametersType = 'Google_Service_Reports_UsageReportParameters';
  822. protected $parametersDataType = 'array';
  823. public function setDate($date)
  824. {
  825. $this->date = $date;
  826. }
  827. public function getDate()
  828. {
  829. return $this->date;
  830. }
  831. public function setEntity(Google_Service_Reports_UsageReportEntity $entity)
  832. {
  833. $this->entity = $entity;
  834. }
  835. public function getEntity()
  836. {
  837. return $this->entity;
  838. }
  839. public function setEtag($etag)
  840. {
  841. $this->etag = $etag;
  842. }
  843. public function getEtag()
  844. {
  845. return $this->etag;
  846. }
  847. public function setKind($kind)
  848. {
  849. $this->kind = $kind;
  850. }
  851. public function getKind()
  852. {
  853. return $this->kind;
  854. }
  855. public function setParameters($parameters)
  856. {
  857. $this->parameters = $parameters;
  858. }
  859. public function getParameters()
  860. {
  861. return $this->parameters;
  862. }
  863. }
  864. class Google_Service_Reports_UsageReportEntity extends Google_Model
  865. {
  866. protected $internal_gapi_mappings = array(
  867. );
  868. public $customerId;
  869. public $profileId;
  870. public $type;
  871. public $userEmail;
  872. public function setCustomerId($customerId)
  873. {
  874. $this->customerId = $customerId;
  875. }
  876. public function getCustomerId()
  877. {
  878. return $this->customerId;
  879. }
  880. public function setProfileId($profileId)
  881. {
  882. $this->profileId = $profileId;
  883. }
  884. public function getProfileId()
  885. {
  886. return $this->profileId;
  887. }
  888. public function setType($type)
  889. {
  890. $this->type = $type;
  891. }
  892. public function getType()
  893. {
  894. return $this->type;
  895. }
  896. public function setUserEmail($userEmail)
  897. {
  898. $this->userEmail = $userEmail;
  899. }
  900. public function getUserEmail()
  901. {
  902. return $this->userEmail;
  903. }
  904. }
  905. class Google_Service_Reports_UsageReportParameters extends Google_Collection
  906. {
  907. protected $collection_key = 'msgValue';
  908. protected $internal_gapi_mappings = array(
  909. );
  910. public $boolValue;
  911. public $datetimeValue;
  912. public $intValue;
  913. public $msgValue;
  914. public $name;
  915. public $stringValue;
  916. public function setBoolValue($boolValue)
  917. {
  918. $this->boolValue = $boolValue;
  919. }
  920. public function getBoolValue()
  921. {
  922. return $this->boolValue;
  923. }
  924. public function setDatetimeValue($datetimeValue)
  925. {
  926. $this->datetimeValue = $datetimeValue;
  927. }
  928. public function getDatetimeValue()
  929. {
  930. return $this->datetimeValue;
  931. }
  932. public function setIntValue($intValue)
  933. {
  934. $this->intValue = $intValue;
  935. }
  936. public function getIntValue()
  937. {
  938. return $this->intValue;
  939. }
  940. public function setMsgValue($msgValue)
  941. {
  942. $this->msgValue = $msgValue;
  943. }
  944. public function getMsgValue()
  945. {
  946. return $this->msgValue;
  947. }
  948. public function setName($name)
  949. {
  950. $this->name = $name;
  951. }
  952. public function getName()
  953. {
  954. return $this->name;
  955. }
  956. public function setStringValue($stringValue)
  957. {
  958. $this->stringValue = $stringValue;
  959. }
  960. public function getStringValue()
  961. {
  962. return $this->stringValue;
  963. }
  964. }
  965. class Google_Service_Reports_UsageReportParametersMsgValue extends Google_Model
  966. {
  967. }
  968. class Google_Service_Reports_UsageReports extends Google_Collection
  969. {
  970. protected $collection_key = 'warnings';
  971. protected $internal_gapi_mappings = array(
  972. );
  973. public $etag;
  974. public $kind;
  975. public $nextPageToken;
  976. protected $usageReportsType = 'Google_Service_Reports_UsageReport';
  977. protected $usageReportsDataType = 'array';
  978. protected $warningsType = 'Google_Service_Reports_UsageReportsWarnings';
  979. protected $warningsDataType = 'array';
  980. public function setEtag($etag)
  981. {
  982. $this->etag = $etag;
  983. }
  984. public function getEtag()
  985. {
  986. return $this->etag;
  987. }
  988. public function setKind($kind)
  989. {
  990. $this->kind = $kind;
  991. }
  992. public function getKind()
  993. {
  994. return $this->kind;
  995. }
  996. public function setNextPageToken($nextPageToken)
  997. {
  998. $this->nextPageToken = $nextPageToken;
  999. }
  1000. public function getNextPageToken()
  1001. {
  1002. return $this->nextPageToken;
  1003. }
  1004. public function setUsageReports($usageReports)
  1005. {
  1006. $this->usageReports = $usageReports;
  1007. }
  1008. public function getUsageReports()
  1009. {
  1010. return $this->usageReports;
  1011. }
  1012. public function setWarnings($warnings)
  1013. {
  1014. $this->warnings = $warnings;
  1015. }
  1016. public function getWarnings()
  1017. {
  1018. return $this->warnings;
  1019. }
  1020. }
  1021. class Google_Service_Reports_UsageReportsWarnings extends Google_Collection
  1022. {
  1023. protected $collection_key = 'data';
  1024. protected $internal_gapi_mappings = array(
  1025. );
  1026. public $code;
  1027. protected $dataType = 'Google_Service_Reports_UsageReportsWarningsData';
  1028. protected $dataDataType = 'array';
  1029. public $message;
  1030. public function setCode($code)
  1031. {
  1032. $this->code = $code;
  1033. }
  1034. public function getCode()
  1035. {
  1036. return $this->code;
  1037. }
  1038. public function setData($data)
  1039. {
  1040. $this->data = $data;
  1041. }
  1042. public function getData()
  1043. {
  1044. return $this->data;
  1045. }
  1046. public function setMessage($message)
  1047. {
  1048. $this->message = $message;
  1049. }
  1050. public function getMessage()
  1051. {
  1052. return $this->message;
  1053. }
  1054. }
  1055. class Google_Service_Reports_UsageReportsWarningsData extends Google_Model
  1056. {
  1057. protected $internal_gapi_mappings = array(
  1058. );
  1059. public $key;
  1060. public $value;
  1061. public function setKey($key)
  1062. {
  1063. $this->key = $key;
  1064. }
  1065. public function getKey()
  1066. {
  1067. return $this->key;
  1068. }
  1069. public function setValue($value)
  1070. {
  1071. $this->value = $value;
  1072. }
  1073. public function getValue()
  1074. {
  1075. return $this->value;
  1076. }
  1077. }