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