PageRenderTime 50ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Google/Service/Reports.php

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