Differences Between: [Versions 311 and 402] [Versions 311 and 403]
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 Directory (directory_v1). 20 * 21 * <p> 22 * The Admin SDK Directory API lets you view and manage enterprise resources 23 * such as users and groups, administrative notifications, security features, 24 * and more.</p> 25 * 26 * <p> 27 * For more information about this service, see the API 28 * <a href="https://developers.google.com/admin-sdk/directory/" target="_blank">Documentation</a> 29 * </p> 30 * 31 * @author Google, Inc. 32 */ 33 class Google_Service_Directory extends Google_Service 34 { 35 /** View and manage customer related information. */ 36 const ADMIN_DIRECTORY_CUSTOMER = 37 "https://www.googleapis.com/auth/admin.directory.customer"; 38 /** View customer related information. */ 39 const ADMIN_DIRECTORY_CUSTOMER_READONLY = 40 "https://www.googleapis.com/auth/admin.directory.customer.readonly"; 41 /** View and manage your Chrome OS devices' metadata. */ 42 const ADMIN_DIRECTORY_DEVICE_CHROMEOS = 43 "https://www.googleapis.com/auth/admin.directory.device.chromeos"; 44 /** View your Chrome OS devices' metadata. */ 45 const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY = 46 "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"; 47 /** View and manage your mobile devices' metadata. */ 48 const ADMIN_DIRECTORY_DEVICE_MOBILE = 49 "https://www.googleapis.com/auth/admin.directory.device.mobile"; 50 /** Manage your mobile devices by performing administrative tasks. */ 51 const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION = 52 "https://www.googleapis.com/auth/admin.directory.device.mobile.action"; 53 /** View your mobile devices' metadata. */ 54 const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = 55 "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"; 56 /** View and manage the provisioning of domains for your customers. */ 57 const ADMIN_DIRECTORY_DOMAIN = 58 "https://www.googleapis.com/auth/admin.directory.domain"; 59 /** View domains related to your customers. */ 60 const ADMIN_DIRECTORY_DOMAIN_READONLY = 61 "https://www.googleapis.com/auth/admin.directory.domain.readonly"; 62 /** View and manage the provisioning of groups on your domain. */ 63 const ADMIN_DIRECTORY_GROUP = 64 "https://www.googleapis.com/auth/admin.directory.group"; 65 /** View and manage group subscriptions on your domain. */ 66 const ADMIN_DIRECTORY_GROUP_MEMBER = 67 "https://www.googleapis.com/auth/admin.directory.group.member"; 68 /** View group subscriptions on your domain. */ 69 const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY = 70 "https://www.googleapis.com/auth/admin.directory.group.member.readonly"; 71 /** View groups on your domain. */ 72 const ADMIN_DIRECTORY_GROUP_READONLY = 73 "https://www.googleapis.com/auth/admin.directory.group.readonly"; 74 /** View and manage notifications received on your domain. */ 75 const ADMIN_DIRECTORY_NOTIFICATIONS = 76 "https://www.googleapis.com/auth/admin.directory.notifications"; 77 /** View and manage organization units on your domain. */ 78 const ADMIN_DIRECTORY_ORGUNIT = 79 "https://www.googleapis.com/auth/admin.directory.orgunit"; 80 /** View organization units on your domain. */ 81 const ADMIN_DIRECTORY_ORGUNIT_READONLY = 82 "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"; 83 /** Manage delegated admin roles for your domain. */ 84 const ADMIN_DIRECTORY_ROLEMANAGEMENT = 85 "https://www.googleapis.com/auth/admin.directory.rolemanagement"; 86 /** View delegated admin roles for your domain. */ 87 const ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY = 88 "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly"; 89 /** View and manage the provisioning of users on your domain. */ 90 const ADMIN_DIRECTORY_USER = 91 "https://www.googleapis.com/auth/admin.directory.user"; 92 /** View and manage user aliases on your domain. */ 93 const ADMIN_DIRECTORY_USER_ALIAS = 94 "https://www.googleapis.com/auth/admin.directory.user.alias"; 95 /** View user aliases on your domain. */ 96 const ADMIN_DIRECTORY_USER_ALIAS_READONLY = 97 "https://www.googleapis.com/auth/admin.directory.user.alias.readonly"; 98 /** View users on your domain. */ 99 const ADMIN_DIRECTORY_USER_READONLY = 100 "https://www.googleapis.com/auth/admin.directory.user.readonly"; 101 /** Manage data access permissions for users on your domain. */ 102 const ADMIN_DIRECTORY_USER_SECURITY = 103 "https://www.googleapis.com/auth/admin.directory.user.security"; 104 /** View and manage the provisioning of user schemas on your domain. */ 105 const ADMIN_DIRECTORY_USERSCHEMA = 106 "https://www.googleapis.com/auth/admin.directory.userschema"; 107 /** View user schemas on your domain. */ 108 const ADMIN_DIRECTORY_USERSCHEMA_READONLY = 109 "https://www.googleapis.com/auth/admin.directory.userschema.readonly"; 110 111 public $asps; 112 public $channels; 113 public $chromeosdevices; 114 public $customers; 115 public $domainAliases; 116 public $domains; 117 public $groups; 118 public $groups_aliases; 119 public $members; 120 public $mobiledevices; 121 public $notifications; 122 public $orgunits; 123 public $privileges; 124 public $roleAssignments; 125 public $roles; 126 public $schemas; 127 public $tokens; 128 public $users; 129 public $users_aliases; 130 public $users_photos; 131 public $verificationCodes; 132 133 134 /** 135 * Constructs the internal representation of the Directory service. 136 * 137 * @param Google_Client $client 138 */ 139 public function __construct(Google_Client $client) 140 { 141 parent::__construct($client); 142 $this->rootUrl = 'https://www.googleapis.com/'; 143 $this->servicePath = 'admin/directory/v1/'; 144 $this->version = 'directory_v1'; 145 $this->serviceName = 'admin'; 146 147 $this->asps = new Google_Service_Directory_Asps_Resource( 148 $this, 149 $this->serviceName, 150 'asps', 151 array( 152 'methods' => array( 153 'delete' => array( 154 'path' => 'users/{userKey}/asps/{codeId}', 155 'httpMethod' => 'DELETE', 156 'parameters' => array( 157 'userKey' => array( 158 'location' => 'path', 159 'type' => 'string', 160 'required' => true, 161 ), 162 'codeId' => array( 163 'location' => 'path', 164 'type' => 'integer', 165 'required' => true, 166 ), 167 ), 168 ),'get' => array( 169 'path' => 'users/{userKey}/asps/{codeId}', 170 'httpMethod' => 'GET', 171 'parameters' => array( 172 'userKey' => array( 173 'location' => 'path', 174 'type' => 'string', 175 'required' => true, 176 ), 177 'codeId' => array( 178 'location' => 'path', 179 'type' => 'integer', 180 'required' => true, 181 ), 182 ), 183 ),'list' => array( 184 'path' => 'users/{userKey}/asps', 185 'httpMethod' => 'GET', 186 'parameters' => array( 187 'userKey' => array( 188 'location' => 'path', 189 'type' => 'string', 190 'required' => true, 191 ), 192 ), 193 ), 194 ) 195 ) 196 ); 197 $this->channels = new Google_Service_Directory_Channels_Resource( 198 $this, 199 $this->serviceName, 200 'channels', 201 array( 202 'methods' => array( 203 'stop' => array( 204 'path' => '/admin/directory_v1/channels/stop', 205 'httpMethod' => 'POST', 206 'parameters' => array(), 207 ), 208 ) 209 ) 210 ); 211 $this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource( 212 $this, 213 $this->serviceName, 214 'chromeosdevices', 215 array( 216 'methods' => array( 217 'get' => array( 218 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', 219 'httpMethod' => 'GET', 220 'parameters' => array( 221 'customerId' => array( 222 'location' => 'path', 223 'type' => 'string', 224 'required' => true, 225 ), 226 'deviceId' => array( 227 'location' => 'path', 228 'type' => 'string', 229 'required' => true, 230 ), 231 'projection' => array( 232 'location' => 'query', 233 'type' => 'string', 234 ), 235 ), 236 ),'list' => array( 237 'path' => 'customer/{customerId}/devices/chromeos', 238 'httpMethod' => 'GET', 239 'parameters' => array( 240 'customerId' => array( 241 'location' => 'path', 242 'type' => 'string', 243 'required' => true, 244 ), 245 'orderBy' => array( 246 'location' => 'query', 247 'type' => 'string', 248 ), 249 'projection' => array( 250 'location' => 'query', 251 'type' => 'string', 252 ), 253 'maxResults' => array( 254 'location' => 'query', 255 'type' => 'integer', 256 ), 257 'pageToken' => array( 258 'location' => 'query', 259 'type' => 'string', 260 ), 261 'sortOrder' => array( 262 'location' => 'query', 263 'type' => 'string', 264 ), 265 'query' => array( 266 'location' => 'query', 267 'type' => 'string', 268 ), 269 ), 270 ),'patch' => array( 271 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', 272 'httpMethod' => 'PATCH', 273 'parameters' => array( 274 'customerId' => array( 275 'location' => 'path', 276 'type' => 'string', 277 'required' => true, 278 ), 279 'deviceId' => array( 280 'location' => 'path', 281 'type' => 'string', 282 'required' => true, 283 ), 284 'projection' => array( 285 'location' => 'query', 286 'type' => 'string', 287 ), 288 ), 289 ),'update' => array( 290 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', 291 'httpMethod' => 'PUT', 292 'parameters' => array( 293 'customerId' => array( 294 'location' => 'path', 295 'type' => 'string', 296 'required' => true, 297 ), 298 'deviceId' => array( 299 'location' => 'path', 300 'type' => 'string', 301 'required' => true, 302 ), 303 'projection' => array( 304 'location' => 'query', 305 'type' => 'string', 306 ), 307 ), 308 ), 309 ) 310 ) 311 ); 312 $this->customers = new Google_Service_Directory_Customers_Resource( 313 $this, 314 $this->serviceName, 315 'customers', 316 array( 317 'methods' => array( 318 'get' => array( 319 'path' => 'customers/{customerKey}', 320 'httpMethod' => 'GET', 321 'parameters' => array( 322 'customerKey' => array( 323 'location' => 'path', 324 'type' => 'string', 325 'required' => true, 326 ), 327 ), 328 ),'patch' => array( 329 'path' => 'customers/{customerKey}', 330 'httpMethod' => 'PATCH', 331 'parameters' => array( 332 'customerKey' => array( 333 'location' => 'path', 334 'type' => 'string', 335 'required' => true, 336 ), 337 ), 338 ),'update' => array( 339 'path' => 'customers/{customerKey}', 340 'httpMethod' => 'PUT', 341 'parameters' => array( 342 'customerKey' => array( 343 'location' => 'path', 344 'type' => 'string', 345 'required' => true, 346 ), 347 ), 348 ), 349 ) 350 ) 351 ); 352 $this->domainAliases = new Google_Service_Directory_DomainAliases_Resource( 353 $this, 354 $this->serviceName, 355 'domainAliases', 356 array( 357 'methods' => array( 358 'delete' => array( 359 'path' => 'customer/{customer}/domainaliases/{domainAliasName}', 360 'httpMethod' => 'DELETE', 361 'parameters' => array( 362 'customer' => array( 363 'location' => 'path', 364 'type' => 'string', 365 'required' => true, 366 ), 367 'domainAliasName' => array( 368 'location' => 'path', 369 'type' => 'string', 370 'required' => true, 371 ), 372 ), 373 ),'get' => array( 374 'path' => 'customer/{customer}/domainaliases/{domainAliasName}', 375 'httpMethod' => 'GET', 376 'parameters' => array( 377 'customer' => array( 378 'location' => 'path', 379 'type' => 'string', 380 'required' => true, 381 ), 382 'domainAliasName' => array( 383 'location' => 'path', 384 'type' => 'string', 385 'required' => true, 386 ), 387 ), 388 ),'insert' => array( 389 'path' => 'customer/{customer}/domainaliases', 390 'httpMethod' => 'POST', 391 'parameters' => array( 392 'customer' => array( 393 'location' => 'path', 394 'type' => 'string', 395 'required' => true, 396 ), 397 ), 398 ),'list' => array( 399 'path' => 'customer/{customer}/domainaliases', 400 'httpMethod' => 'GET', 401 'parameters' => array( 402 'customer' => array( 403 'location' => 'path', 404 'type' => 'string', 405 'required' => true, 406 ), 407 'parentDomainName' => array( 408 'location' => 'query', 409 'type' => 'string', 410 ), 411 ), 412 ), 413 ) 414 ) 415 ); 416 $this->domains = new Google_Service_Directory_Domains_Resource( 417 $this, 418 $this->serviceName, 419 'domains', 420 array( 421 'methods' => array( 422 'delete' => array( 423 'path' => 'customer/{customer}/domains/{domainName}', 424 'httpMethod' => 'DELETE', 425 'parameters' => array( 426 'customer' => array( 427 'location' => 'path', 428 'type' => 'string', 429 'required' => true, 430 ), 431 'domainName' => array( 432 'location' => 'path', 433 'type' => 'string', 434 'required' => true, 435 ), 436 ), 437 ),'get' => array( 438 'path' => 'customer/{customer}/domains/{domainName}', 439 'httpMethod' => 'GET', 440 'parameters' => array( 441 'customer' => array( 442 'location' => 'path', 443 'type' => 'string', 444 'required' => true, 445 ), 446 'domainName' => array( 447 'location' => 'path', 448 'type' => 'string', 449 'required' => true, 450 ), 451 ), 452 ),'insert' => array( 453 'path' => 'customer/{customer}/domains', 454 'httpMethod' => 'POST', 455 'parameters' => array( 456 'customer' => array( 457 'location' => 'path', 458 'type' => 'string', 459 'required' => true, 460 ), 461 ), 462 ),'list' => array( 463 'path' => 'customer/{customer}/domains', 464 'httpMethod' => 'GET', 465 'parameters' => array( 466 'customer' => array( 467 'location' => 'path', 468 'type' => 'string', 469 'required' => true, 470 ), 471 ), 472 ), 473 ) 474 ) 475 ); 476 $this->groups = new Google_Service_Directory_Groups_Resource( 477 $this, 478 $this->serviceName, 479 'groups', 480 array( 481 'methods' => array( 482 'delete' => array( 483 'path' => 'groups/{groupKey}', 484 'httpMethod' => 'DELETE', 485 'parameters' => array( 486 'groupKey' => array( 487 'location' => 'path', 488 'type' => 'string', 489 'required' => true, 490 ), 491 ), 492 ),'get' => array( 493 'path' => 'groups/{groupKey}', 494 'httpMethod' => 'GET', 495 'parameters' => array( 496 'groupKey' => array( 497 'location' => 'path', 498 'type' => 'string', 499 'required' => true, 500 ), 501 ), 502 ),'insert' => array( 503 'path' => 'groups', 504 'httpMethod' => 'POST', 505 'parameters' => array(), 506 ),'list' => array( 507 'path' => 'groups', 508 'httpMethod' => 'GET', 509 'parameters' => array( 510 'customer' => array( 511 'location' => 'query', 512 'type' => 'string', 513 ), 514 'pageToken' => array( 515 'location' => 'query', 516 'type' => 'string', 517 ), 518 'domain' => array( 519 'location' => 'query', 520 'type' => 'string', 521 ), 522 'maxResults' => array( 523 'location' => 'query', 524 'type' => 'integer', 525 ), 526 'userKey' => array( 527 'location' => 'query', 528 'type' => 'string', 529 ), 530 ), 531 ),'patch' => array( 532 'path' => 'groups/{groupKey}', 533 'httpMethod' => 'PATCH', 534 'parameters' => array( 535 'groupKey' => array( 536 'location' => 'path', 537 'type' => 'string', 538 'required' => true, 539 ), 540 ), 541 ),'update' => array( 542 'path' => 'groups/{groupKey}', 543 'httpMethod' => 'PUT', 544 'parameters' => array( 545 'groupKey' => array( 546 'location' => 'path', 547 'type' => 'string', 548 'required' => true, 549 ), 550 ), 551 ), 552 ) 553 ) 554 ); 555 $this->groups_aliases = new Google_Service_Directory_GroupsAliases_Resource( 556 $this, 557 $this->serviceName, 558 'aliases', 559 array( 560 'methods' => array( 561 'delete' => array( 562 'path' => 'groups/{groupKey}/aliases/{alias}', 563 'httpMethod' => 'DELETE', 564 'parameters' => array( 565 'groupKey' => array( 566 'location' => 'path', 567 'type' => 'string', 568 'required' => true, 569 ), 570 'alias' => array( 571 'location' => 'path', 572 'type' => 'string', 573 'required' => true, 574 ), 575 ), 576 ),'insert' => array( 577 'path' => 'groups/{groupKey}/aliases', 578 'httpMethod' => 'POST', 579 'parameters' => array( 580 'groupKey' => array( 581 'location' => 'path', 582 'type' => 'string', 583 'required' => true, 584 ), 585 ), 586 ),'list' => array( 587 'path' => 'groups/{groupKey}/aliases', 588 'httpMethod' => 'GET', 589 'parameters' => array( 590 'groupKey' => array( 591 'location' => 'path', 592 'type' => 'string', 593 'required' => true, 594 ), 595 ), 596 ), 597 ) 598 ) 599 ); 600 $this->members = new Google_Service_Directory_Members_Resource( 601 $this, 602 $this->serviceName, 603 'members', 604 array( 605 'methods' => array( 606 'delete' => array( 607 'path' => 'groups/{groupKey}/members/{memberKey}', 608 'httpMethod' => 'DELETE', 609 'parameters' => array( 610 'groupKey' => array( 611 'location' => 'path', 612 'type' => 'string', 613 'required' => true, 614 ), 615 'memberKey' => array( 616 'location' => 'path', 617 'type' => 'string', 618 'required' => true, 619 ), 620 ), 621 ),'get' => array( 622 'path' => 'groups/{groupKey}/members/{memberKey}', 623 'httpMethod' => 'GET', 624 'parameters' => array( 625 'groupKey' => array( 626 'location' => 'path', 627 'type' => 'string', 628 'required' => true, 629 ), 630 'memberKey' => array( 631 'location' => 'path', 632 'type' => 'string', 633 'required' => true, 634 ), 635 ), 636 ),'insert' => array( 637 'path' => 'groups/{groupKey}/members', 638 'httpMethod' => 'POST', 639 'parameters' => array( 640 'groupKey' => array( 641 'location' => 'path', 642 'type' => 'string', 643 'required' => true, 644 ), 645 ), 646 ),'list' => array( 647 'path' => 'groups/{groupKey}/members', 648 'httpMethod' => 'GET', 649 'parameters' => array( 650 'groupKey' => array( 651 'location' => 'path', 652 'type' => 'string', 653 'required' => true, 654 ), 655 'pageToken' => array( 656 'location' => 'query', 657 'type' => 'string', 658 ), 659 'roles' => array( 660 'location' => 'query', 661 'type' => 'string', 662 ), 663 'maxResults' => array( 664 'location' => 'query', 665 'type' => 'integer', 666 ), 667 ), 668 ),'patch' => array( 669 'path' => 'groups/{groupKey}/members/{memberKey}', 670 'httpMethod' => 'PATCH', 671 'parameters' => array( 672 'groupKey' => array( 673 'location' => 'path', 674 'type' => 'string', 675 'required' => true, 676 ), 677 'memberKey' => array( 678 'location' => 'path', 679 'type' => 'string', 680 'required' => true, 681 ), 682 ), 683 ),'update' => array( 684 'path' => 'groups/{groupKey}/members/{memberKey}', 685 'httpMethod' => 'PUT', 686 'parameters' => array( 687 'groupKey' => array( 688 'location' => 'path', 689 'type' => 'string', 690 'required' => true, 691 ), 692 'memberKey' => array( 693 'location' => 'path', 694 'type' => 'string', 695 'required' => true, 696 ), 697 ), 698 ), 699 ) 700 ) 701 ); 702 $this->mobiledevices = new Google_Service_Directory_Mobiledevices_Resource( 703 $this, 704 $this->serviceName, 705 'mobiledevices', 706 array( 707 'methods' => array( 708 'action' => array( 709 'path' => 'customer/{customerId}/devices/mobile/{resourceId}/action', 710 'httpMethod' => 'POST', 711 'parameters' => array( 712 'customerId' => array( 713 'location' => 'path', 714 'type' => 'string', 715 'required' => true, 716 ), 717 'resourceId' => array( 718 'location' => 'path', 719 'type' => 'string', 720 'required' => true, 721 ), 722 ), 723 ),'delete' => array( 724 'path' => 'customer/{customerId}/devices/mobile/{resourceId}', 725 'httpMethod' => 'DELETE', 726 'parameters' => array( 727 'customerId' => array( 728 'location' => 'path', 729 'type' => 'string', 730 'required' => true, 731 ), 732 'resourceId' => array( 733 'location' => 'path', 734 'type' => 'string', 735 'required' => true, 736 ), 737 ), 738 ),'get' => array( 739 'path' => 'customer/{customerId}/devices/mobile/{resourceId}', 740 'httpMethod' => 'GET', 741 'parameters' => array( 742 'customerId' => array( 743 'location' => 'path', 744 'type' => 'string', 745 'required' => true, 746 ), 747 'resourceId' => array( 748 'location' => 'path', 749 'type' => 'string', 750 'required' => true, 751 ), 752 'projection' => array( 753 'location' => 'query', 754 'type' => 'string', 755 ), 756 ), 757 ),'list' => array( 758 'path' => 'customer/{customerId}/devices/mobile', 759 'httpMethod' => 'GET', 760 'parameters' => array( 761 'customerId' => array( 762 'location' => 'path', 763 'type' => 'string', 764 'required' => true, 765 ), 766 'orderBy' => array( 767 'location' => 'query', 768 'type' => 'string', 769 ), 770 'projection' => array( 771 'location' => 'query', 772 'type' => 'string', 773 ), 774 'maxResults' => array( 775 'location' => 'query', 776 'type' => 'integer', 777 ), 778 'pageToken' => array( 779 'location' => 'query', 780 'type' => 'string', 781 ), 782 'sortOrder' => array( 783 'location' => 'query', 784 'type' => 'string', 785 ), 786 'query' => array( 787 'location' => 'query', 788 'type' => 'string', 789 ), 790 ), 791 ), 792 ) 793 ) 794 ); 795 $this->notifications = new Google_Service_Directory_Notifications_Resource( 796 $this, 797 $this->serviceName, 798 'notifications', 799 array( 800 'methods' => array( 801 'delete' => array( 802 'path' => 'customer/{customer}/notifications/{notificationId}', 803 'httpMethod' => 'DELETE', 804 'parameters' => array( 805 'customer' => array( 806 'location' => 'path', 807 'type' => 'string', 808 'required' => true, 809 ), 810 'notificationId' => array( 811 'location' => 'path', 812 'type' => 'string', 813 'required' => true, 814 ), 815 ), 816 ),'get' => array( 817 'path' => 'customer/{customer}/notifications/{notificationId}', 818 'httpMethod' => 'GET', 819 'parameters' => array( 820 'customer' => array( 821 'location' => 'path', 822 'type' => 'string', 823 'required' => true, 824 ), 825 'notificationId' => array( 826 'location' => 'path', 827 'type' => 'string', 828 'required' => true, 829 ), 830 ), 831 ),'list' => array( 832 'path' => 'customer/{customer}/notifications', 833 'httpMethod' => 'GET', 834 'parameters' => array( 835 'customer' => array( 836 'location' => 'path', 837 'type' => 'string', 838 'required' => true, 839 ), 840 'pageToken' => array( 841 'location' => 'query', 842 'type' => 'string', 843 ), 844 'maxResults' => array( 845 'location' => 'query', 846 'type' => 'integer', 847 ), 848 'language' => array( 849 'location' => 'query', 850 'type' => 'string', 851 ), 852 ), 853 ),'patch' => array( 854 'path' => 'customer/{customer}/notifications/{notificationId}', 855 'httpMethod' => 'PATCH', 856 'parameters' => array( 857 'customer' => array( 858 'location' => 'path', 859 'type' => 'string', 860 'required' => true, 861 ), 862 'notificationId' => array( 863 'location' => 'path', 864 'type' => 'string', 865 'required' => true, 866 ), 867 ), 868 ),'update' => array( 869 'path' => 'customer/{customer}/notifications/{notificationId}', 870 'httpMethod' => 'PUT', 871 'parameters' => array( 872 'customer' => array( 873 'location' => 'path', 874 'type' => 'string', 875 'required' => true, 876 ), 877 'notificationId' => array( 878 'location' => 'path', 879 'type' => 'string', 880 'required' => true, 881 ), 882 ), 883 ), 884 ) 885 ) 886 ); 887 $this->orgunits = new Google_Service_Directory_Orgunits_Resource( 888 $this, 889 $this->serviceName, 890 'orgunits', 891 array( 892 'methods' => array( 893 'delete' => array( 894 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', 895 'httpMethod' => 'DELETE', 896 'parameters' => array( 897 'customerId' => array( 898 'location' => 'path', 899 'type' => 'string', 900 'required' => true, 901 ), 902 'orgUnitPath' => array( 903 'location' => 'path', 904 'type' => 'string', 905 'repeated' => true, 906 'required' => true, 907 ), 908 ), 909 ),'get' => array( 910 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', 911 'httpMethod' => 'GET', 912 'parameters' => array( 913 'customerId' => array( 914 'location' => 'path', 915 'type' => 'string', 916 'required' => true, 917 ), 918 'orgUnitPath' => array( 919 'location' => 'path', 920 'type' => 'string', 921 'repeated' => true, 922 'required' => true, 923 ), 924 ), 925 ),'insert' => array( 926 'path' => 'customer/{customerId}/orgunits', 927 'httpMethod' => 'POST', 928 'parameters' => array( 929 'customerId' => array( 930 'location' => 'path', 931 'type' => 'string', 932 'required' => true, 933 ), 934 ), 935 ),'list' => array( 936 'path' => 'customer/{customerId}/orgunits', 937 'httpMethod' => 'GET', 938 'parameters' => array( 939 'customerId' => array( 940 'location' => 'path', 941 'type' => 'string', 942 'required' => true, 943 ), 944 'type' => array( 945 'location' => 'query', 946 'type' => 'string', 947 ), 948 'orgUnitPath' => array( 949 'location' => 'query', 950 'type' => 'string', 951 ), 952 ), 953 ),'patch' => array( 954 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', 955 'httpMethod' => 'PATCH', 956 'parameters' => array( 957 'customerId' => array( 958 'location' => 'path', 959 'type' => 'string', 960 'required' => true, 961 ), 962 'orgUnitPath' => array( 963 'location' => 'path', 964 'type' => 'string', 965 'repeated' => true, 966 'required' => true, 967 ), 968 ), 969 ),'update' => array( 970 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', 971 'httpMethod' => 'PUT', 972 'parameters' => array( 973 'customerId' => array( 974 'location' => 'path', 975 'type' => 'string', 976 'required' => true, 977 ), 978 'orgUnitPath' => array( 979 'location' => 'path', 980 'type' => 'string', 981 'repeated' => true, 982 'required' => true, 983 ), 984 ), 985 ), 986 ) 987 ) 988 ); 989 $this->privileges = new Google_Service_Directory_Privileges_Resource( 990 $this, 991 $this->serviceName, 992 'privileges', 993 array( 994 'methods' => array( 995 'list' => array( 996 'path' => 'customer/{customer}/roles/ALL/privileges', 997 'httpMethod' => 'GET', 998 'parameters' => array( 999 'customer' => array( 1000 'location' => 'path', 1001 'type' => 'string', 1002 'required' => true, 1003 ), 1004 ), 1005 ), 1006 ) 1007 ) 1008 ); 1009 $this->roleAssignments = new Google_Service_Directory_RoleAssignments_Resource( 1010 $this, 1011 $this->serviceName, 1012 'roleAssignments', 1013 array( 1014 'methods' => array( 1015 'delete' => array( 1016 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}', 1017 'httpMethod' => 'DELETE', 1018 'parameters' => array( 1019 'customer' => array( 1020 'location' => 'path', 1021 'type' => 'string', 1022 'required' => true, 1023 ), 1024 'roleAssignmentId' => array( 1025 'location' => 'path', 1026 'type' => 'string', 1027 'required' => true, 1028 ), 1029 ), 1030 ),'get' => array( 1031 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}', 1032 'httpMethod' => 'GET', 1033 'parameters' => array( 1034 'customer' => array( 1035 'location' => 'path', 1036 'type' => 'string', 1037 'required' => true, 1038 ), 1039 'roleAssignmentId' => array( 1040 'location' => 'path', 1041 'type' => 'string', 1042 'required' => true, 1043 ), 1044 ), 1045 ),'insert' => array( 1046 'path' => 'customer/{customer}/roleassignments', 1047 'httpMethod' => 'POST', 1048 'parameters' => array( 1049 'customer' => array( 1050 'location' => 'path', 1051 'type' => 'string', 1052 'required' => true, 1053 ), 1054 ), 1055 ),'list' => array( 1056 'path' => 'customer/{customer}/roleassignments', 1057 'httpMethod' => 'GET', 1058 'parameters' => array( 1059 'customer' => array( 1060 'location' => 'path', 1061 'type' => 'string', 1062 'required' => true, 1063 ), 1064 'pageToken' => array( 1065 'location' => 'query', 1066 'type' => 'string', 1067 ), 1068 'userKey' => array( 1069 'location' => 'query', 1070 'type' => 'string', 1071 ), 1072 'maxResults' => array( 1073 'location' => 'query', 1074 'type' => 'integer', 1075 ), 1076 'roleId' => array( 1077 'location' => 'query', 1078 'type' => 'string', 1079 ), 1080 ), 1081 ), 1082 ) 1083 ) 1084 ); 1085 $this->roles = new Google_Service_Directory_Roles_Resource( 1086 $this, 1087 $this->serviceName, 1088 'roles', 1089 array( 1090 'methods' => array( 1091 'delete' => array( 1092 'path' => 'customer/{customer}/roles/{roleId}', 1093 'httpMethod' => 'DELETE', 1094 'parameters' => array( 1095 'customer' => array( 1096 'location' => 'path', 1097 'type' => 'string', 1098 'required' => true, 1099 ), 1100 'roleId' => array( 1101 'location' => 'path', 1102 'type' => 'string', 1103 'required' => true, 1104 ), 1105 ), 1106 ),'get' => array( 1107 'path' => 'customer/{customer}/roles/{roleId}', 1108 'httpMethod' => 'GET', 1109 'parameters' => array( 1110 'customer' => array( 1111 'location' => 'path', 1112 'type' => 'string', 1113 'required' => true, 1114 ), 1115 'roleId' => array( 1116 'location' => 'path', 1117 'type' => 'string', 1118 'required' => true, 1119 ), 1120 ), 1121 ),'insert' => array( 1122 'path' => 'customer/{customer}/roles', 1123 'httpMethod' => 'POST', 1124 'parameters' => array( 1125 'customer' => array( 1126 'location' => 'path', 1127 'type' => 'string', 1128 'required' => true, 1129 ), 1130 ), 1131 ),'list' => array( 1132 'path' => 'customer/{customer}/roles', 1133 'httpMethod' => 'GET', 1134 'parameters' => array( 1135 'customer' => array( 1136 'location' => 'path', 1137 'type' => 'string', 1138 'required' => true, 1139 ), 1140 'pageToken' => array( 1141 'location' => 'query', 1142 'type' => 'string', 1143 ), 1144 'maxResults' => array( 1145 'location' => 'query', 1146 'type' => 'integer', 1147 ), 1148 ), 1149 ),'patch' => array( 1150 'path' => 'customer/{customer}/roles/{roleId}', 1151 'httpMethod' => 'PATCH', 1152 'parameters' => array( 1153 'customer' => array( 1154 'location' => 'path', 1155 'type' => 'string', 1156 'required' => true, 1157 ), 1158 'roleId' => array( 1159 'location' => 'path', 1160 'type' => 'string', 1161 'required' => true, 1162 ), 1163 ), 1164 ),'update' => array( 1165 'path' => 'customer/{customer}/roles/{roleId}', 1166 'httpMethod' => 'PUT', 1167 'parameters' => array( 1168 'customer' => array( 1169 'location' => 'path', 1170 'type' => 'string', 1171 'required' => true, 1172 ), 1173 'roleId' => array( 1174 'location' => 'path', 1175 'type' => 'string', 1176 'required' => true, 1177 ), 1178 ), 1179 ), 1180 ) 1181 ) 1182 ); 1183 $this->schemas = new Google_Service_Directory_Schemas_Resource( 1184 $this, 1185 $this->serviceName, 1186 'schemas', 1187 array( 1188 'methods' => array( 1189 'delete' => array( 1190 'path' => 'customer/{customerId}/schemas/{schemaKey}', 1191 'httpMethod' => 'DELETE', 1192 'parameters' => array( 1193 'customerId' => array( 1194 'location' => 'path', 1195 'type' => 'string', 1196 'required' => true, 1197 ), 1198 'schemaKey' => array( 1199 'location' => 'path', 1200 'type' => 'string', 1201 'required' => true, 1202 ), 1203 ), 1204 ),'get' => array( 1205 'path' => 'customer/{customerId}/schemas/{schemaKey}', 1206 'httpMethod' => 'GET', 1207 'parameters' => array( 1208 'customerId' => array( 1209 'location' => 'path', 1210 'type' => 'string', 1211 'required' => true, 1212 ), 1213 'schemaKey' => array( 1214 'location' => 'path', 1215 'type' => 'string', 1216 'required' => true, 1217 ), 1218 ), 1219 ),'insert' => array( 1220 'path' => 'customer/{customerId}/schemas', 1221 'httpMethod' => 'POST', 1222 'parameters' => array( 1223 'customerId' => array( 1224 'location' => 'path', 1225 'type' => 'string', 1226 'required' => true, 1227 ), 1228 ), 1229 ),'list' => array( 1230 'path' => 'customer/{customerId}/schemas', 1231 'httpMethod' => 'GET', 1232 'parameters' => array( 1233 'customerId' => array( 1234 'location' => 'path', 1235 'type' => 'string', 1236 'required' => true, 1237 ), 1238 ), 1239 ),'patch' => array( 1240 'path' => 'customer/{customerId}/schemas/{schemaKey}', 1241 'httpMethod' => 'PATCH', 1242 'parameters' => array( 1243 'customerId' => array( 1244 'location' => 'path', 1245 'type' => 'string', 1246 'required' => true, 1247 ), 1248 'schemaKey' => array( 1249 'location' => 'path', 1250 'type' => 'string', 1251 'required' => true, 1252 ), 1253 ), 1254 ),'update' => array( 1255 'path' => 'customer/{customerId}/schemas/{schemaKey}', 1256 'httpMethod' => 'PUT', 1257 'parameters' => array( 1258 'customerId' => array( 1259 'location' => 'path', 1260 'type' => 'string', 1261 'required' => true, 1262 ), 1263 'schemaKey' => array( 1264 'location' => 'path', 1265 'type' => 'string', 1266 'required' => true, 1267 ), 1268 ), 1269 ), 1270 ) 1271 ) 1272 ); 1273 $this->tokens = new Google_Service_Directory_Tokens_Resource( 1274 $this, 1275 $this->serviceName, 1276 'tokens', 1277 array( 1278 'methods' => array( 1279 'delete' => array( 1280 'path' => 'users/{userKey}/tokens/{clientId}', 1281 'httpMethod' => 'DELETE', 1282 'parameters' => array( 1283 'userKey' => array( 1284 'location' => 'path', 1285 'type' => 'string', 1286 'required' => true, 1287 ), 1288 'clientId' => array( 1289 'location' => 'path', 1290 'type' => 'string', 1291 'required' => true, 1292 ), 1293 ), 1294 ),'get' => array( 1295 'path' => 'users/{userKey}/tokens/{clientId}', 1296 'httpMethod' => 'GET', 1297 'parameters' => array( 1298 'userKey' => array( 1299 'location' => 'path', 1300 'type' => 'string', 1301 'required' => true, 1302 ), 1303 'clientId' => array( 1304 'location' => 'path', 1305 'type' => 'string', 1306 'required' => true, 1307 ), 1308 ), 1309 ),'list' => array( 1310 'path' => 'users/{userKey}/tokens', 1311 'httpMethod' => 'GET', 1312 'parameters' => array( 1313 'userKey' => array( 1314 'location' => 'path', 1315 'type' => 'string', 1316 'required' => true, 1317 ), 1318 ), 1319 ), 1320 ) 1321 ) 1322 ); 1323 $this->users = new Google_Service_Directory_Users_Resource( 1324 $this, 1325 $this->serviceName, 1326 'users', 1327 array( 1328 'methods' => array( 1329 'delete' => array( 1330 'path' => 'users/{userKey}', 1331 'httpMethod' => 'DELETE', 1332 'parameters' => array( 1333 'userKey' => array( 1334 'location' => 'path', 1335 'type' => 'string', 1336 'required' => true, 1337 ), 1338 ), 1339 ),'get' => array( 1340 'path' => 'users/{userKey}', 1341 'httpMethod' => 'GET', 1342 'parameters' => array( 1343 'userKey' => array( 1344 'location' => 'path', 1345 'type' => 'string', 1346 'required' => true, 1347 ), 1348 'viewType' => array( 1349 'location' => 'query', 1350 'type' => 'string', 1351 ), 1352 'customFieldMask' => array( 1353 'location' => 'query', 1354 'type' => 'string', 1355 ), 1356 'projection' => array( 1357 'location' => 'query', 1358 'type' => 'string', 1359 ), 1360 ), 1361 ),'insert' => array( 1362 'path' => 'users', 1363 'httpMethod' => 'POST', 1364 'parameters' => array(), 1365 ),'list' => array( 1366 'path' => 'users', 1367 'httpMethod' => 'GET', 1368 'parameters' => array( 1369 'customer' => array( 1370 'location' => 'query', 1371 'type' => 'string', 1372 ), 1373 'orderBy' => array( 1374 'location' => 'query', 1375 'type' => 'string', 1376 ), 1377 'domain' => array( 1378 'location' => 'query', 1379 'type' => 'string', 1380 ), 1381 'projection' => array( 1382 'location' => 'query', 1383 'type' => 'string', 1384 ), 1385 'showDeleted' => array( 1386 'location' => 'query', 1387 'type' => 'string', 1388 ), 1389 'customFieldMask' => array( 1390 'location' => 'query', 1391 'type' => 'string', 1392 ), 1393 'maxResults' => array( 1394 'location' => 'query', 1395 'type' => 'integer', 1396 ), 1397 'pageToken' => array( 1398 'location' => 'query', 1399 'type' => 'string', 1400 ), 1401 'sortOrder' => array( 1402 'location' => 'query', 1403 'type' => 'string', 1404 ), 1405 'query' => array( 1406 'location' => 'query', 1407 'type' => 'string', 1408 ), 1409 'viewType' => array( 1410 'location' => 'query', 1411 'type' => 'string', 1412 ), 1413 'event' => array( 1414 'location' => 'query', 1415 'type' => 'string', 1416 ), 1417 ), 1418 ),'makeAdmin' => array( 1419 'path' => 'users/{userKey}/makeAdmin', 1420 'httpMethod' => 'POST', 1421 'parameters' => array( 1422 'userKey' => array( 1423 'location' => 'path', 1424 'type' => 'string', 1425 'required' => true, 1426 ), 1427 ), 1428 ),'patch' => array( 1429 'path' => 'users/{userKey}', 1430 'httpMethod' => 'PATCH', 1431 'parameters' => array( 1432 'userKey' => array( 1433 'location' => 'path', 1434 'type' => 'string', 1435 'required' => true, 1436 ), 1437 ), 1438 ),'undelete' => array( 1439 'path' => 'users/{userKey}/undelete', 1440 'httpMethod' => 'POST', 1441 'parameters' => array( 1442 'userKey' => array( 1443 'location' => 'path', 1444 'type' => 'string', 1445 'required' => true, 1446 ), 1447 ), 1448 ),'update' => array( 1449 'path' => 'users/{userKey}', 1450 'httpMethod' => 'PUT', 1451 'parameters' => array( 1452 'userKey' => array( 1453 'location' => 'path', 1454 'type' => 'string', 1455 'required' => true, 1456 ), 1457 ), 1458 ),'watch' => array( 1459 'path' => 'users/watch', 1460 'httpMethod' => 'POST', 1461 'parameters' => array( 1462 'customer' => array( 1463 'location' => 'query', 1464 'type' => 'string', 1465 ), 1466 'orderBy' => array( 1467 'location' => 'query', 1468 'type' => 'string', 1469 ), 1470 'domain' => array( 1471 'location' => 'query', 1472 'type' => 'string', 1473 ), 1474 'projection' => array( 1475 'location' => 'query', 1476 'type' => 'string', 1477 ), 1478 'showDeleted' => array( 1479 'location' => 'query', 1480 'type' => 'string', 1481 ), 1482 'customFieldMask' => array( 1483 'location' => 'query', 1484 'type' => 'string', 1485 ), 1486 'maxResults' => array( 1487 'location' => 'query', 1488 'type' => 'integer', 1489 ), 1490 'pageToken' => array( 1491 'location' => 'query', 1492 'type' => 'string', 1493 ), 1494 'sortOrder' => array( 1495 'location' => 'query', 1496 'type' => 'string', 1497 ), 1498 'query' => array( 1499 'location' => 'query', 1500 'type' => 'string', 1501 ), 1502 'viewType' => array( 1503 'location' => 'query', 1504 'type' => 'string', 1505 ), 1506 'event' => array( 1507 'location' => 'query', 1508 'type' => 'string', 1509 ), 1510 ), 1511 ), 1512 ) 1513 ) 1514 ); 1515 $this->users_aliases = new Google_Service_Directory_UsersAliases_Resource( 1516 $this, 1517 $this->serviceName, 1518 'aliases', 1519 array( 1520 'methods' => array( 1521 'delete' => array( 1522 'path' => 'users/{userKey}/aliases/{alias}', 1523 'httpMethod' => 'DELETE', 1524 'parameters' => array( 1525 'userKey' => array( 1526 'location' => 'path', 1527 'type' => 'string', 1528 'required' => true, 1529 ), 1530 'alias' => array( 1531 'location' => 'path', 1532 'type' => 'string', 1533 'required' => true, 1534 ), 1535 ), 1536 ),'insert' => array( 1537 'path' => 'users/{userKey}/aliases', 1538 'httpMethod' => 'POST', 1539 'parameters' => array( 1540 'userKey' => array( 1541 'location' => 'path', 1542 'type' => 'string', 1543 'required' => true, 1544 ), 1545 ), 1546 ),'list' => array( 1547 'path' => 'users/{userKey}/aliases', 1548 'httpMethod' => 'GET', 1549 'parameters' => array( 1550 'userKey' => array( 1551 'location' => 'path', 1552 'type' => 'string', 1553 'required' => true, 1554 ), 1555 'event' => array( 1556 'location' => 'query', 1557 'type' => 'string', 1558 ), 1559 ), 1560 ),'watch' => array( 1561 'path' => 'users/{userKey}/aliases/watch', 1562 'httpMethod' => 'POST', 1563 'parameters' => array( 1564 'userKey' => array( 1565 'location' => 'path', 1566 'type' => 'string', 1567 'required' => true, 1568 ), 1569 'event' => array( 1570 'location' => 'query', 1571 'type' => 'string', 1572 ), 1573 ), 1574 ), 1575 ) 1576 ) 1577 ); 1578 $this->users_photos = new Google_Service_Directory_UsersPhotos_Resource( 1579 $this, 1580 $this->serviceName, 1581 'photos', 1582 array( 1583 'methods' => array( 1584 'delete' => array( 1585 'path' => 'users/{userKey}/photos/thumbnail', 1586 'httpMethod' => 'DELETE', 1587 'parameters' => array( 1588 'userKey' => array( 1589 'location' => 'path', 1590 'type' => 'string', 1591 'required' => true, 1592 ), 1593 ), 1594 ),'get' => array( 1595 'path' => 'users/{userKey}/photos/thumbnail', 1596 'httpMethod' => 'GET', 1597 'parameters' => array( 1598 'userKey' => array( 1599 'location' => 'path', 1600 'type' => 'string', 1601 'required' => true, 1602 ), 1603 ), 1604 ),'patch' => array( 1605 'path' => 'users/{userKey}/photos/thumbnail', 1606 'httpMethod' => 'PATCH', 1607 'parameters' => array( 1608 'userKey' => array( 1609 'location' => 'path', 1610 'type' => 'string', 1611 'required' => true, 1612 ), 1613 ), 1614 ),'update' => array( 1615 'path' => 'users/{userKey}/photos/thumbnail', 1616 'httpMethod' => 'PUT', 1617 'parameters' => array( 1618 'userKey' => array( 1619 'location' => 'path', 1620 'type' => 'string', 1621 'required' => true, 1622 ), 1623 ), 1624 ), 1625 ) 1626 ) 1627 ); 1628 $this->verificationCodes = new Google_Service_Directory_VerificationCodes_Resource( 1629 $this, 1630 $this->serviceName, 1631 'verificationCodes', 1632 array( 1633 'methods' => array( 1634 'generate' => array( 1635 'path' => 'users/{userKey}/verificationCodes/generate', 1636 'httpMethod' => 'POST', 1637 'parameters' => array( 1638 'userKey' => array( 1639 'location' => 'path', 1640 'type' => 'string', 1641 'required' => true, 1642 ), 1643 ), 1644 ),'invalidate' => array( 1645 'path' => 'users/{userKey}/verificationCodes/invalidate', 1646 'httpMethod' => 'POST', 1647 'parameters' => array( 1648 'userKey' => array( 1649 'location' => 'path', 1650 'type' => 'string', 1651 'required' => true, 1652 ), 1653 ), 1654 ),'list' => array( 1655 'path' => 'users/{userKey}/verificationCodes', 1656 'httpMethod' => 'GET', 1657 'parameters' => array( 1658 'userKey' => array( 1659 'location' => 'path', 1660 'type' => 'string', 1661 'required' => true, 1662 ), 1663 ), 1664 ), 1665 ) 1666 ) 1667 ); 1668 } 1669 } 1670 1671 1672 /** 1673 * The "asps" collection of methods. 1674 * Typical usage is: 1675 * <code> 1676 * $adminService = new Google_Service_Directory(...); 1677 * $asps = $adminService->asps; 1678 * </code> 1679 */ 1680 class Google_Service_Directory_Asps_Resource extends Google_Service_Resource 1681 { 1682 1683 /** 1684 * Delete an ASP issued by a user. (asps.delete) 1685 * 1686 * @param string $userKey Identifies the user in the API request. The value can 1687 * be the user's primary email address, alias email address, or unique user ID. 1688 * @param int $codeId The unique ID of the ASP to be deleted. 1689 * @param array $optParams Optional parameters. 1690 */ 1691 public function delete($userKey, $codeId, $optParams = array()) 1692 { 1693 $params = array('userKey' => $userKey, 'codeId' => $codeId); 1694 $params = array_merge($params, $optParams); 1695 return $this->call('delete', array($params)); 1696 } 1697 1698 /** 1699 * Get information about an ASP issued by a user. (asps.get) 1700 * 1701 * @param string $userKey Identifies the user in the API request. The value can 1702 * be the user's primary email address, alias email address, or unique user ID. 1703 * @param int $codeId The unique ID of the ASP. 1704 * @param array $optParams Optional parameters. 1705 * @return Google_Service_Directory_Asp 1706 */ 1707 public function get($userKey, $codeId, $optParams = array()) 1708 { 1709 $params = array('userKey' => $userKey, 'codeId' => $codeId); 1710 $params = array_merge($params, $optParams); 1711 return $this->call('get', array($params), "Google_Service_Directory_Asp"); 1712 } 1713 1714 /** 1715 * List the ASPs issued by a user. (asps.listAsps) 1716 * 1717 * @param string $userKey Identifies the user in the API request. The value can 1718 * be the user's primary email address, alias email address, or unique user ID. 1719 * @param array $optParams Optional parameters. 1720 * @return Google_Service_Directory_Asps 1721 */ 1722 public function listAsps($userKey, $optParams = array()) 1723 { 1724 $params = array('userKey' => $userKey); 1725 $params = array_merge($params, $optParams); 1726 return $this->call('list', array($params), "Google_Service_Directory_Asps"); 1727 } 1728 } 1729 1730 /** 1731 * The "channels" collection of methods. 1732 * Typical usage is: 1733 * <code> 1734 * $adminService = new Google_Service_Directory(...); 1735 * $channels = $adminService->channels; 1736 * </code> 1737 */ 1738 class Google_Service_Directory_Channels_Resource extends Google_Service_Resource 1739 { 1740 1741 /** 1742 * Stop watching resources through this channel (channels.stop) 1743 * 1744 * @param Google_Channel $postBody 1745 * @param array $optParams Optional parameters. 1746 */ 1747 public function stop(Google_Service_Directory_Channel $postBody, $optParams = array()) 1748 { 1749 $params = array('postBody' => $postBody); 1750 $params = array_merge($params, $optParams); 1751 return $this->call('stop', array($params)); 1752 } 1753 } 1754 1755 /** 1756 * The "chromeosdevices" collection of methods. 1757 * Typical usage is: 1758 * <code> 1759 * $adminService = new Google_Service_Directory(...); 1760 * $chromeosdevices = $adminService->chromeosdevices; 1761 * </code> 1762 */ 1763 class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_Resource 1764 { 1765 1766 /** 1767 * Retrieve Chrome OS Device (chromeosdevices.get) 1768 * 1769 * @param string $customerId Immutable id of the Google Apps account 1770 * @param string $deviceId Immutable id of Chrome OS Device 1771 * @param array $optParams Optional parameters. 1772 * 1773 * @opt_param string projection Restrict information returned to a set of 1774 * selected fields. 1775 * @return Google_Service_Directory_ChromeOsDevice 1776 */ 1777 public function get($customerId, $deviceId, $optParams = array()) 1778 { 1779 $params = array('customerId' => $customerId, 'deviceId' => $deviceId); 1780 $params = array_merge($params, $optParams); 1781 return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice"); 1782 } 1783 1784 /** 1785 * Retrieve all Chrome OS Devices of a customer (paginated) 1786 * (chromeosdevices.listChromeosdevices) 1787 * 1788 * @param string $customerId Immutable id of the Google Apps account 1789 * @param array $optParams Optional parameters. 1790 * 1791 * @opt_param string orderBy Column to use for sorting results 1792 * @opt_param string projection Restrict information returned to a set of 1793 * selected fields. 1794 * @opt_param int maxResults Maximum number of results to return. Default is 100 1795 * @opt_param string pageToken Token to specify next page in the list 1796 * @opt_param string sortOrder Whether to return results in ascending or 1797 * descending order. Only of use when orderBy is also used 1798 * @opt_param string query Search string in the format given at 1799 * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333 1800 * @return Google_Service_Directory_ChromeOsDevices 1801 */ 1802 public function listChromeosdevices($customerId, $optParams = array()) 1803 { 1804 $params = array('customerId' => $customerId); 1805 $params = array_merge($params, $optParams); 1806 return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices"); 1807 } 1808 1809 /** 1810 * Update Chrome OS Device. This method supports patch semantics. 1811 * (chromeosdevices.patch) 1812 * 1813 * @param string $customerId Immutable id of the Google Apps account 1814 * @param string $deviceId Immutable id of Chrome OS Device 1815 * @param Google_ChromeOsDevice $postBody 1816 * @param array $optParams Optional parameters. 1817 * 1818 * @opt_param string projection Restrict information returned to a set of 1819 * selected fields. 1820 * @return Google_Service_Directory_ChromeOsDevice 1821 */ 1822 public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) 1823 { 1824 $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody); 1825 $params = array_merge($params, $optParams); 1826 return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice"); 1827 } 1828 1829 /** 1830 * Update Chrome OS Device (chromeosdevices.update) 1831 * 1832 * @param string $customerId Immutable id of the Google Apps account 1833 * @param string $deviceId Immutable id of Chrome OS Device 1834 * @param Google_ChromeOsDevice $postBody 1835 * @param array $optParams Optional parameters. 1836 * 1837 * @opt_param string projection Restrict information returned to a set of 1838 * selected fields. 1839 * @return Google_Service_Directory_ChromeOsDevice 1840 */ 1841 public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) 1842 { 1843 $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody); 1844 $params = array_merge($params, $optParams); 1845 return $this->call('update', array($params), "Google_Service_Directory_ChromeOsDevice"); 1846 } 1847 } 1848 1849 /** 1850 * The "customers" collection of methods. 1851 * Typical usage is: 1852 * <code> 1853 * $adminService = new Google_Service_Directory(...); 1854 * $customers = $adminService->customers; 1855 * </code> 1856 */ 1857 class Google_Service_Directory_Customers_Resource extends Google_Service_Resource 1858 { 1859 1860 /** 1861 * Retrives a customer. (customers.get) 1862 * 1863 * @param string $customerKey Id of the customer to be retrieved 1864 * @param array $optParams Optional parameters. 1865 * @return Google_Service_Directory_Customer 1866 */ 1867 public function get($customerKey, $optParams = array()) 1868 { 1869 $params = array('customerKey' => $customerKey); 1870 $params = array_merge($params, $optParams); 1871 return $this->call('get', array($params), "Google_Service_Directory_Customer"); 1872 } 1873 1874 /** 1875 * Updates a customer. This method supports patch semantics. (customers.patch) 1876 * 1877 * @param string $customerKey Id of the customer to be updated 1878 * @param Google_Customer $postBody 1879 * @param array $optParams Optional parameters. 1880 * @return Google_Service_Directory_Customer 1881 */ 1882 public function patch($customerKey, Google_Service_Directory_Customer $postBody, $optParams = array()) 1883 { 1884 $params = array('customerKey' => $customerKey, 'postBody' => $postBody); 1885 $params = array_merge($params, $optParams); 1886 return $this->call('patch', array($params), "Google_Service_Directory_Customer"); 1887 } 1888 1889 /** 1890 * Updates a customer. (customers.update) 1891 * 1892 * @param string $customerKey Id of the customer to be updated 1893 * @param Google_Customer $postBody 1894 * @param array $optParams Optional parameters. 1895 * @return Google_Service_Directory_Customer 1896 */ 1897 public function update($customerKey, Google_Service_Directory_Customer $postBody, $optParams = array()) 1898 { 1899 $params = array('customerKey' => $customerKey, 'postBody' => $postBody); 1900 $params = array_merge($params, $optParams); 1901 return $this->call('update', array($params), "Google_Service_Directory_Customer"); 1902 } 1903 } 1904 1905 /** 1906 * The "domainAliases" collection of methods. 1907 * Typical usage is: 1908 * <code> 1909 * $adminService = new Google_Service_Directory(...); 1910 * $domainAliases = $adminService->domainAliases; 1911 * </code> 1912 */ 1913 class Google_Service_Directory_DomainAliases_Resource extends Google_Service_Resource 1914 { 1915 1916 /** 1917 * Deletes a Domain Alias of the customer. (domainAliases.delete) 1918 * 1919 * @param string $customer Immutable id of the Google Apps account. 1920 * @param string $domainAliasName Name of domain alias to be retrieved. 1921 * @param array $optParams Optional parameters. 1922 */ 1923 public function delete($customer, $domainAliasName, $optParams = array()) 1924 { 1925 $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName); 1926 $params = array_merge($params, $optParams); 1927 return $this->call('delete', array($params)); 1928 } 1929 1930 /** 1931 * Retrieves a domain alias of the customer. (domainAliases.get) 1932 * 1933 * @param string $customer Immutable id of the Google Apps account. 1934 * @param string $domainAliasName Name of domain alias to be retrieved. 1935 * @param array $optParams Optional parameters. 1936 * @return Google_Service_Directory_DomainAlias 1937 */ 1938 public function get($customer, $domainAliasName, $optParams = array()) 1939 { 1940 $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName); 1941 $params = array_merge($params, $optParams); 1942 return $this->call('get', array($params), "Google_Service_Directory_DomainAlias"); 1943 } 1944 1945 /** 1946 * Inserts a Domain alias of the customer. (domainAliases.insert) 1947 * 1948 * @param string $customer Immutable id of the Google Apps account. 1949 * @param Google_DomainAlias $postBody 1950 * @param array $optParams Optional parameters. 1951 * @return Google_Service_Directory_DomainAlias 1952 */ 1953 public function insert($customer, Google_Service_Directory_DomainAlias $postBody, $optParams = array()) 1954 { 1955 $params = array('customer' => $customer, 'postBody' => $postBody); 1956 $params = array_merge($params, $optParams); 1957 return $this->call('insert', array($params), "Google_Service_Directory_DomainAlias"); 1958 } 1959 1960 /** 1961 * Lists the domain aliases of the customer. (domainAliases.listDomainAliases) 1962 * 1963 * @param string $customer Immutable id of the Google Apps account. 1964 * @param array $optParams Optional parameters. 1965 * 1966 * @opt_param string parentDomainName Name of the parent domain for which domain 1967 * aliases are to be fetched. 1968 * @return Google_Service_Directory_DomainAliases 1969 */ 1970 public function listDomainAliases($customer, $optParams = array()) 1971 { 1972 $params = array('customer' => $customer); 1973 $params = array_merge($params, $optParams); 1974 return $this->call('list', array($params), "Google_Service_Directory_DomainAliases"); 1975 } 1976 } 1977 1978 /** 1979 * The "domains" collection of methods. 1980 * Typical usage is: 1981 * <code> 1982 * $adminService = new Google_Service_Directory(...); 1983 * $domains = $adminService->domains; 1984 * </code> 1985 */ 1986 class Google_Service_Directory_Domains_Resource extends Google_Service_Resource 1987 { 1988 1989 /** 1990 * Deletes a domain of the customer. (domains.delete) 1991 * 1992 * @param string $customer Immutable id of the Google Apps account. 1993 * @param string $domainName Name of domain to be deleted 1994 * @param array $optParams Optional parameters. 1995 */ 1996 public function delete($customer, $domainName, $optParams = array()) 1997 { 1998 $params = array('customer' => $customer, 'domainName' => $domainName); 1999 $params = array_merge($params, $optParams); 2000 return $this->call('delete', array($params)); 2001 } 2002 2003 /** 2004 * Retrives a domain of the customer. (domains.get) 2005 * 2006 * @param string $customer Immutable id of the Google Apps account. 2007 * @param string $domainName Name of domain to be retrieved 2008 * @param array $optParams Optional parameters. 2009 * @return Google_Service_Directory_Domains 2010 */ 2011 public function get($customer, $domainName, $optParams = array()) 2012 { 2013 $params = array('customer' => $customer, 'domainName' => $domainName); 2014 $params = array_merge($params, $optParams); 2015 return $this->call('get', array($params), "Google_Service_Directory_Domains"); 2016 } 2017 2018 /** 2019 * Inserts a domain of the customer. (domains.insert) 2020 * 2021 * @param string $customer Immutable id of the Google Apps account. 2022 * @param Google_Domains $postBody 2023 * @param array $optParams Optional parameters. 2024 * @return Google_Service_Directory_Domains 2025 */ 2026 public function insert($customer, Google_Service_Directory_Domains $postBody, $optParams = array()) 2027 { 2028 $params = array('customer' => $customer, 'postBody' => $postBody); 2029 $params = array_merge($params, $optParams); 2030 return $this->call('insert', array($params), "Google_Service_Directory_Domains"); 2031 } 2032 2033 /** 2034 * Lists the domains of the customer. (domains.listDomains) 2035 * 2036 * @param string $customer Immutable id of the Google Apps account. 2037 * @param array $optParams Optional parameters. 2038 * @return Google_Service_Directory_Domains2 2039 */ 2040 public function listDomains($customer, $optParams = array()) 2041 { 2042 $params = array('customer' => $customer); 2043 $params = array_merge($params, $optParams); 2044 return $this->call('list', array($params), "Google_Service_Directory_Domains2"); 2045 } 2046 } 2047 2048 /** 2049 * The "groups" collection of methods. 2050 * Typical usage is: 2051 * <code> 2052 * $adminService = new Google_Service_Directory(...); 2053 * $groups = $adminService->groups; 2054 * </code> 2055 */ 2056 class Google_Service_Directory_Groups_Resource extends Google_Service_Resource 2057 { 2058 2059 /** 2060 * Delete Group (groups.delete) 2061 * 2062 * @param string $groupKey Email or immutable Id of the group 2063 * @param array $optParams Optional parameters. 2064 */ 2065 public function delete($groupKey, $optParams = array()) 2066 { 2067 $params = array('groupKey' => $groupKey); 2068 $params = array_merge($params, $optParams); 2069 return $this->call('delete', array($params)); 2070 } 2071 2072 /** 2073 * Retrieve Group (groups.get) 2074 * 2075 * @param string $groupKey Email or immutable Id of the group 2076 * @param array $optParams Optional parameters. 2077 * @return Google_Service_Directory_Group 2078 */ 2079 public function get($groupKey, $optParams = array()) 2080 { 2081 $params = array('groupKey' => $groupKey); 2082 $params = array_merge($params, $optParams); 2083 return $this->call('get', array($params), "Google_Service_Directory_Group"); 2084 } 2085 2086 /** 2087 * Create Group (groups.insert) 2088 * 2089 * @param Google_Group $postBody 2090 * @param array $optParams Optional parameters. 2091 * @return Google_Service_Directory_Group 2092 */ 2093 public function insert(Google_Service_Directory_Group $postBody, $optParams = array()) 2094 { 2095 $params = array('postBody' => $postBody); 2096 $params = array_merge($params, $optParams); 2097 return $this->call('insert', array($params), "Google_Service_Directory_Group"); 2098 } 2099 2100 /** 2101 * Retrieve all groups in a domain (paginated) (groups.listGroups) 2102 * 2103 * @param array $optParams Optional parameters. 2104 * 2105 * @opt_param string customer Immutable id of the Google Apps account. In case 2106 * of multi-domain, to fetch all groups for a customer, fill this field instead 2107 * of domain. 2108 * @opt_param string pageToken Token to specify next page in the list 2109 * @opt_param string domain Name of the domain. Fill this field to get groups 2110 * from only this domain. To return all groups in a multi-domain fill customer 2111 * field instead. 2112 * @opt_param int maxResults Maximum number of results to return. Default is 200 2113 * @opt_param string userKey Email or immutable Id of the user if only those 2114 * groups are to be listed, the given user is a member of. If Id, it should 2115 * match with id of user object 2116 * @return Google_Service_Directory_Groups 2117 */ 2118 public function listGroups($optParams = array()) 2119 { 2120 $params = array(); 2121 $params = array_merge($params, $optParams); 2122 return $this->call('list', array($params), "Google_Service_Directory_Groups"); 2123 } 2124 2125 /** 2126 * Update Group. This method supports patch semantics. (groups.patch) 2127 * 2128 * @param string $groupKey Email or immutable Id of the group. If Id, it should 2129 * match with id of group object 2130 * @param Google_Group $postBody 2131 * @param array $optParams Optional parameters. 2132 * @return Google_Service_Directory_Group 2133 */ 2134 public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) 2135 { 2136 $params = array('groupKey' => $groupKey, 'postBody' => $postBody); 2137 $params = array_merge($params, $optParams); 2138 return $this->call('patch', array($params), "Google_Service_Directory_Group"); 2139 } 2140 2141 /** 2142 * Update Group (groups.update) 2143 * 2144 * @param string $groupKey Email or immutable Id of the group. If Id, it should 2145 * match with id of group object 2146 * @param Google_Group $postBody 2147 * @param array $optParams Optional parameters. 2148 * @return Google_Service_Directory_Group 2149 */ 2150 public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) 2151 { 2152 $params = array('groupKey' => $groupKey, 'postBody' => $postBody); 2153 $params = array_merge($params, $optParams); 2154 return $this->call('update', array($params), "Google_Service_Directory_Group"); 2155 } 2156 } 2157 2158 /** 2159 * The "aliases" collection of methods. 2160 * Typical usage is: 2161 * <code> 2162 * $adminService = new Google_Service_Directory(...); 2163 * $aliases = $adminService->aliases; 2164 * </code> 2165 */ 2166 class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Resource 2167 { 2168 2169 /** 2170 * Remove a alias for the group (aliases.delete) 2171 * 2172 * @param string $groupKey Email or immutable Id of the group 2173 * @param string $alias The alias to be removed 2174 * @param array $optParams Optional parameters. 2175 */ 2176 public function delete($groupKey, $alias, $optParams = array()) 2177 { 2178 $params = array('groupKey' => $groupKey, 'alias' => $alias); 2179 $params = array_merge($params, $optParams); 2180 return $this->call('delete', array($params)); 2181 } 2182 2183 /** 2184 * Add a alias for the group (aliases.insert) 2185 * 2186 * @param string $groupKey Email or immutable Id of the group 2187 * @param Google_Alias $postBody 2188 * @param array $optParams Optional parameters. 2189 * @return Google_Service_Directory_Alias 2190 */ 2191 public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array()) 2192 { 2193 $params = array('groupKey' => $groupKey, 'postBody' => $postBody); 2194 $params = array_merge($params, $optParams); 2195 return $this->call('insert', array($params), "Google_Service_Directory_Alias"); 2196 } 2197 2198 /** 2199 * List all aliases for a group (aliases.listGroupsAliases) 2200 * 2201 * @param string $groupKey Email or immutable Id of the group 2202 * @param array $optParams Optional parameters. 2203 * @return Google_Service_Directory_Aliases 2204 */ 2205 public function listGroupsAliases($groupKey, $optParams = array()) 2206 { 2207 $params = array('groupKey' => $groupKey); 2208 $params = array_merge($params, $optParams); 2209 return $this->call('list', array($params), "Google_Service_Directory_Aliases"); 2210 } 2211 } 2212 2213 /** 2214 * The "members" collection of methods. 2215 * Typical usage is: 2216 * <code> 2217 * $adminService = new Google_Service_Directory(...); 2218 * $members = $adminService->members; 2219 * </code> 2220 */ 2221 class Google_Service_Directory_Members_Resource extends Google_Service_Resource 2222 { 2223 2224 /** 2225 * Remove membership. (members.delete) 2226 * 2227 * @param string $groupKey Email or immutable Id of the group 2228 * @param string $memberKey Email or immutable Id of the member 2229 * @param array $optParams Optional parameters. 2230 */ 2231 public function delete($groupKey, $memberKey, $optParams = array()) 2232 { 2233 $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey); 2234 $params = array_merge($params, $optParams); 2235 return $this->call('delete', array($params)); 2236 } 2237 2238 /** 2239 * Retrieve Group Member (members.get) 2240 * 2241 * @param string $groupKey Email or immutable Id of the group 2242 * @param string $memberKey Email or immutable Id of the member 2243 * @param array $optParams Optional parameters. 2244 * @return Google_Service_Directory_Member 2245 */ 2246 public function get($groupKey, $memberKey, $optParams = array()) 2247 { 2248 $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey); 2249 $params = array_merge($params, $optParams); 2250 return $this->call('get', array($params), "Google_Service_Directory_Member"); 2251 } 2252 2253 /** 2254 * Add user to the specified group. (members.insert) 2255 * 2256 * @param string $groupKey Email or immutable Id of the group 2257 * @param Google_Member $postBody 2258 * @param array $optParams Optional parameters. 2259 * @return Google_Service_Directory_Member 2260 */ 2261 public function insert($groupKey, Google_Service_Directory_Member $postBody, $optParams = array()) 2262 { 2263 $params = array('groupKey' => $groupKey, 'postBody' => $postBody); 2264 $params = array_merge($params, $optParams); 2265 return $this->call('insert', array($params), "Google_Service_Directory_Member"); 2266 } 2267 2268 /** 2269 * Retrieve all members in a group (paginated) (members.listMembers) 2270 * 2271 * @param string $groupKey Email or immutable Id of the group 2272 * @param array $optParams Optional parameters. 2273 * 2274 * @opt_param string pageToken Token to specify next page in the list 2275 * @opt_param string roles Comma separated role values to filter list results 2276 * on. 2277 * @opt_param int maxResults Maximum number of results to return. Default is 200 2278 * @return Google_Service_Directory_Members 2279 */ 2280 public function listMembers($groupKey, $optParams = array()) 2281 { 2282 $params = array('groupKey' => $groupKey); 2283 $params = array_merge($params, $optParams); 2284 return $this->call('list', array($params), "Google_Service_Directory_Members"); 2285 } 2286 2287 /** 2288 * Update membership of a user in the specified group. This method supports 2289 * patch semantics. (members.patch) 2290 * 2291 * @param string $groupKey Email or immutable Id of the group. If Id, it should 2292 * match with id of group object 2293 * @param string $memberKey Email or immutable Id of the user. If Id, it should 2294 * match with id of member object 2295 * @param Google_Member $postBody 2296 * @param array $optParams Optional parameters. 2297 * @return Google_Service_Directory_Member 2298 */ 2299 public function patch($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array()) 2300 { 2301 $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody); 2302 $params = array_merge($params, $optParams); 2303 return $this->call('patch', array($params), "Google_Service_Directory_Member"); 2304 } 2305 2306 /** 2307 * Update membership of a user in the specified group. (members.update) 2308 * 2309 * @param string $groupKey Email or immutable Id of the group. If Id, it should 2310 * match with id of group object 2311 * @param string $memberKey Email or immutable Id of the user. If Id, it should 2312 * match with id of member object 2313 * @param Google_Member $postBody 2314 * @param array $optParams Optional parameters. 2315 * @return Google_Service_Directory_Member 2316 */ 2317 public function update($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array()) 2318 { 2319 $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody); 2320 $params = array_merge($params, $optParams); 2321 return $this->call('update', array($params), "Google_Service_Directory_Member"); 2322 } 2323 } 2324 2325 /** 2326 * The "mobiledevices" collection of methods. 2327 * Typical usage is: 2328 * <code> 2329 * $adminService = new Google_Service_Directory(...); 2330 * $mobiledevices = $adminService->mobiledevices; 2331 * </code> 2332 */ 2333 class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Resource 2334 { 2335 2336 /** 2337 * Take action on Mobile Device (mobiledevices.action) 2338 * 2339 * @param string $customerId Immutable id of the Google Apps account 2340 * @param string $resourceId Immutable id of Mobile Device 2341 * @param Google_MobileDeviceAction $postBody 2342 * @param array $optParams Optional parameters. 2343 */ 2344 public function action($customerId, $resourceId, Google_Service_Directory_MobileDeviceAction $postBody, $optParams = array()) 2345 { 2346 $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody); 2347 $params = array_merge($params, $optParams); 2348 return $this->call('action', array($params)); 2349 } 2350 2351 /** 2352 * Delete Mobile Device (mobiledevices.delete) 2353 * 2354 * @param string $customerId Immutable id of the Google Apps account 2355 * @param string $resourceId Immutable id of Mobile Device 2356 * @param array $optParams Optional parameters. 2357 */ 2358 public function delete($customerId, $resourceId, $optParams = array()) 2359 { 2360 $params = array('customerId' => $customerId, 'resourceId' => $resourceId); 2361 $params = array_merge($params, $optParams); 2362 return $this->call('delete', array($params)); 2363 } 2364 2365 /** 2366 * Retrieve Mobile Device (mobiledevices.get) 2367 * 2368 * @param string $customerId Immutable id of the Google Apps account 2369 * @param string $resourceId Immutable id of Mobile Device 2370 * @param array $optParams Optional parameters. 2371 * 2372 * @opt_param string projection Restrict information returned to a set of 2373 * selected fields. 2374 * @return Google_Service_Directory_MobileDevice 2375 */ 2376 public function get($customerId, $resourceId, $optParams = array()) 2377 { 2378 $params = array('customerId' => $customerId, 'resourceId' => $resourceId); 2379 $params = array_merge($params, $optParams); 2380 return $this->call('get', array($params), "Google_Service_Directory_MobileDevice"); 2381 } 2382 2383 /** 2384 * Retrieve all Mobile Devices of a customer (paginated) 2385 * (mobiledevices.listMobiledevices) 2386 * 2387 * @param string $customerId Immutable id of the Google Apps account 2388 * @param array $optParams Optional parameters. 2389 * 2390 * @opt_param string orderBy Column to use for sorting results 2391 * @opt_param string projection Restrict information returned to a set of 2392 * selected fields. 2393 * @opt_param int maxResults Maximum number of results to return. Default is 100 2394 * @opt_param string pageToken Token to specify next page in the list 2395 * @opt_param string sortOrder Whether to return results in ascending or 2396 * descending order. Only of use when orderBy is also used 2397 * @opt_param string query Search string in the format given at 2398 * http://support.google.com/a/bin/answer.py?hl=en=1408863#search 2399 * @return Google_Service_Directory_MobileDevices 2400 */ 2401 public function listMobiledevices($customerId, $optParams = array()) 2402 { 2403 $params = array('customerId' => $customerId); 2404 $params = array_merge($params, $optParams); 2405 return $this->call('list', array($params), "Google_Service_Directory_MobileDevices"); 2406 } 2407 } 2408 2409 /** 2410 * The "notifications" collection of methods. 2411 * Typical usage is: 2412 * <code> 2413 * $adminService = new Google_Service_Directory(...); 2414 * $notifications = $adminService->notifications; 2415 * </code> 2416 */ 2417 class Google_Service_Directory_Notifications_Resource extends Google_Service_Resource 2418 { 2419 2420 /** 2421 * Deletes a notification (notifications.delete) 2422 * 2423 * @param string $customer The unique ID for the customer's Google account. The 2424 * customerId is also returned as part of the Users resource. 2425 * @param string $notificationId The unique ID of the notification. 2426 * @param array $optParams Optional parameters. 2427 */ 2428 public function delete($customer, $notificationId, $optParams = array()) 2429 { 2430 $params = array('customer' => $customer, 'notificationId' => $notificationId); 2431 $params = array_merge($params, $optParams); 2432 return $this->call('delete', array($params)); 2433 } 2434 2435 /** 2436 * Retrieves a notification. (notifications.get) 2437 * 2438 * @param string $customer The unique ID for the customer's Google account. The 2439 * customerId is also returned as part of the Users resource. 2440 * @param string $notificationId The unique ID of the notification. 2441 * @param array $optParams Optional parameters. 2442 * @return Google_Service_Directory_Notification 2443 */ 2444 public function get($customer, $notificationId, $optParams = array()) 2445 { 2446 $params = array('customer' => $customer, 'notificationId' => $notificationId); 2447 $params = array_merge($params, $optParams); 2448 return $this->call('get', array($params), "Google_Service_Directory_Notification"); 2449 } 2450 2451 /** 2452 * Retrieves a list of notifications. (notifications.listNotifications) 2453 * 2454 * @param string $customer The unique ID for the customer's Google account. 2455 * @param array $optParams Optional parameters. 2456 * 2457 * @opt_param string pageToken The token to specify the page of results to 2458 * retrieve. 2459 * @opt_param string maxResults Maximum number of notifications to return per 2460 * page. The default is 100. 2461 * @opt_param string language The ISO 639-1 code of the language notifications 2462 * are returned in. The default is English (en). 2463 * @return Google_Service_Directory_Notifications 2464 */ 2465 public function listNotifications($customer, $optParams = array()) 2466 { 2467 $params = array('customer' => $customer); 2468 $params = array_merge($params, $optParams); 2469 return $this->call('list', array($params), "Google_Service_Directory_Notifications"); 2470 } 2471 2472 /** 2473 * Updates a notification. This method supports patch semantics. 2474 * (notifications.patch) 2475 * 2476 * @param string $customer The unique ID for the customer's Google account. 2477 * @param string $notificationId The unique ID of the notification. 2478 * @param Google_Notification $postBody 2479 * @param array $optParams Optional parameters. 2480 * @return Google_Service_Directory_Notification 2481 */ 2482 public function patch($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array()) 2483 { 2484 $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody); 2485 $params = array_merge($params, $optParams); 2486 return $this->call('patch', array($params), "Google_Service_Directory_Notification"); 2487 } 2488 2489 /** 2490 * Updates a notification. (notifications.update) 2491 * 2492 * @param string $customer The unique ID for the customer's Google account. 2493 * @param string $notificationId The unique ID of the notification. 2494 * @param Google_Notification $postBody 2495 * @param array $optParams Optional parameters. 2496 * @return Google_Service_Directory_Notification 2497 */ 2498 public function update($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array()) 2499 { 2500 $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody); 2501 $params = array_merge($params, $optParams); 2502 return $this->call('update', array($params), "Google_Service_Directory_Notification"); 2503 } 2504 } 2505 2506 /** 2507 * The "orgunits" collection of methods. 2508 * Typical usage is: 2509 * <code> 2510 * $adminService = new Google_Service_Directory(...); 2511 * $orgunits = $adminService->orgunits; 2512 * </code> 2513 */ 2514 class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource 2515 { 2516 2517 /** 2518 * Remove Organization Unit (orgunits.delete) 2519 * 2520 * @param string $customerId Immutable id of the Google Apps account 2521 * @param string $orgUnitPath Full path of the organization unit or its Id 2522 * @param array $optParams Optional parameters. 2523 */ 2524 public function delete($customerId, $orgUnitPath, $optParams = array()) 2525 { 2526 $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath); 2527 $params = array_merge($params, $optParams); 2528 return $this->call('delete', array($params)); 2529 } 2530 2531 /** 2532 * Retrieve Organization Unit (orgunits.get) 2533 * 2534 * @param string $customerId Immutable id of the Google Apps account 2535 * @param string $orgUnitPath Full path of the organization unit or its Id 2536 * @param array $optParams Optional parameters. 2537 * @return Google_Service_Directory_OrgUnit 2538 */ 2539 public function get($customerId, $orgUnitPath, $optParams = array()) 2540 { 2541 $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath); 2542 $params = array_merge($params, $optParams); 2543 return $this->call('get', array($params), "Google_Service_Directory_OrgUnit"); 2544 } 2545 2546 /** 2547 * Add Organization Unit (orgunits.insert) 2548 * 2549 * @param string $customerId Immutable id of the Google Apps account 2550 * @param Google_OrgUnit $postBody 2551 * @param array $optParams Optional parameters. 2552 * @return Google_Service_Directory_OrgUnit 2553 */ 2554 public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) 2555 { 2556 $params = array('customerId' => $customerId, 'postBody' => $postBody); 2557 $params = array_merge($params, $optParams); 2558 return $this->call('insert', array($params), "Google_Service_Directory_OrgUnit"); 2559 } 2560 2561 /** 2562 * Retrieve all Organization Units (orgunits.listOrgunits) 2563 * 2564 * @param string $customerId Immutable id of the Google Apps account 2565 * @param array $optParams Optional parameters. 2566 * 2567 * @opt_param string type Whether to return all sub-organizations or just 2568 * immediate children 2569 * @opt_param string orgUnitPath the URL-encoded organization unit's path or its 2570 * Id 2571 * @return Google_Service_Directory_OrgUnits 2572 */ 2573 public function listOrgunits($customerId, $optParams = array()) 2574 { 2575 $params = array('customerId' => $customerId); 2576 $params = array_merge($params, $optParams); 2577 return $this->call('list', array($params), "Google_Service_Directory_OrgUnits"); 2578 } 2579 2580 /** 2581 * Update Organization Unit. This method supports patch semantics. 2582 * (orgunits.patch) 2583 * 2584 * @param string $customerId Immutable id of the Google Apps account 2585 * @param string $orgUnitPath Full path of the organization unit or its Id 2586 * @param Google_OrgUnit $postBody 2587 * @param array $optParams Optional parameters. 2588 * @return Google_Service_Directory_OrgUnit 2589 */ 2590 public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) 2591 { 2592 $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody); 2593 $params = array_merge($params, $optParams); 2594 return $this->call('patch', array($params), "Google_Service_Directory_OrgUnit"); 2595 } 2596 2597 /** 2598 * Update Organization Unit (orgunits.update) 2599 * 2600 * @param string $customerId Immutable id of the Google Apps account 2601 * @param string $orgUnitPath Full path of the organization unit or its Id 2602 * @param Google_OrgUnit $postBody 2603 * @param array $optParams Optional parameters. 2604 * @return Google_Service_Directory_OrgUnit 2605 */ 2606 public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) 2607 { 2608 $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody); 2609 $params = array_merge($params, $optParams); 2610 return $this->call('update', array($params), "Google_Service_Directory_OrgUnit"); 2611 } 2612 } 2613 2614 /** 2615 * The "privileges" collection of methods. 2616 * Typical usage is: 2617 * <code> 2618 * $adminService = new Google_Service_Directory(...); 2619 * $privileges = $adminService->privileges; 2620 * </code> 2621 */ 2622 class Google_Service_Directory_Privileges_Resource extends Google_Service_Resource 2623 { 2624 2625 /** 2626 * Retrieves a paginated list of all privileges for a customer. 2627 * (privileges.listPrivileges) 2628 * 2629 * @param string $customer Immutable ID of the Google Apps account. 2630 * @param array $optParams Optional parameters. 2631 * @return Google_Service_Directory_Privileges 2632 */ 2633 public function listPrivileges($customer, $optParams = array()) 2634 { 2635 $params = array('customer' => $customer); 2636 $params = array_merge($params, $optParams); 2637 return $this->call('list', array($params), "Google_Service_Directory_Privileges"); 2638 } 2639 } 2640 2641 /** 2642 * The "roleAssignments" collection of methods. 2643 * Typical usage is: 2644 * <code> 2645 * $adminService = new Google_Service_Directory(...); 2646 * $roleAssignments = $adminService->roleAssignments; 2647 * </code> 2648 */ 2649 class Google_Service_Directory_RoleAssignments_Resource extends Google_Service_Resource 2650 { 2651 2652 /** 2653 * Deletes a role assignment. (roleAssignments.delete) 2654 * 2655 * @param string $customer Immutable ID of the Google Apps account. 2656 * @param string $roleAssignmentId Immutable ID of the role assignment. 2657 * @param array $optParams Optional parameters. 2658 */ 2659 public function delete($customer, $roleAssignmentId, $optParams = array()) 2660 { 2661 $params = array('customer' => $customer, 'roleAssignmentId' => $roleAssignmentId); 2662 $params = array_merge($params, $optParams); 2663 return $this->call('delete', array($params)); 2664 } 2665 2666 /** 2667 * Retrieve a role assignment. (roleAssignments.get) 2668 * 2669 * @param string $customer Immutable ID of the Google Apps account. 2670 * @param string $roleAssignmentId Immutable ID of the role assignment. 2671 * @param array $optParams Optional parameters. 2672 * @return Google_Service_Directory_RoleAssignment 2673 */ 2674 public function get($customer, $roleAssignmentId, $optParams = array()) 2675 { 2676 $params = array('customer' => $customer, 'roleAssignmentId' => $roleAssignmentId); 2677 $params = array_merge($params, $optParams); 2678 return $this->call('get', array($params), "Google_Service_Directory_RoleAssignment"); 2679 } 2680 2681 /** 2682 * Creates a role assignment. (roleAssignments.insert) 2683 * 2684 * @param string $customer Immutable ID of the Google Apps account. 2685 * @param Google_RoleAssignment $postBody 2686 * @param array $optParams Optional parameters. 2687 * @return Google_Service_Directory_RoleAssignment 2688 */ 2689 public function insert($customer, Google_Service_Directory_RoleAssignment $postBody, $optParams = array()) 2690 { 2691 $params = array('customer' => $customer, 'postBody' => $postBody); 2692 $params = array_merge($params, $optParams); 2693 return $this->call('insert', array($params), "Google_Service_Directory_RoleAssignment"); 2694 } 2695 2696 /** 2697 * Retrieves a paginated list of all roleAssignments. 2698 * (roleAssignments.listRoleAssignments) 2699 * 2700 * @param string $customer Immutable ID of the Google Apps account. 2701 * @param array $optParams Optional parameters. 2702 * 2703 * @opt_param string pageToken Token to specify the next page in the list. 2704 * @opt_param string userKey The user's primary email address, alias email 2705 * address, or unique user ID. If included in the request, returns role 2706 * assignments only for this user. 2707 * @opt_param int maxResults Maximum number of results to return. 2708 * @opt_param string roleId Immutable ID of a role. If included in the request, 2709 * returns only role assignments containing this role ID. 2710 * @return Google_Service_Directory_RoleAssignments 2711 */ 2712 public function listRoleAssignments($customer, $optParams = array()) 2713 { 2714 $params = array('customer' => $customer); 2715 $params = array_merge($params, $optParams); 2716 return $this->call('list', array($params), "Google_Service_Directory_RoleAssignments"); 2717 } 2718 } 2719 2720 /** 2721 * The "roles" collection of methods. 2722 * Typical usage is: 2723 * <code> 2724 * $adminService = new Google_Service_Directory(...); 2725 * $roles = $adminService->roles; 2726 * </code> 2727 */ 2728 class Google_Service_Directory_Roles_Resource extends Google_Service_Resource 2729 { 2730 2731 /** 2732 * Deletes a role. (roles.delete) 2733 * 2734 * @param string $customer Immutable ID of the Google Apps account. 2735 * @param string $roleId Immutable ID of the role. 2736 * @param array $optParams Optional parameters. 2737 */ 2738 public function delete($customer, $roleId, $optParams = array()) 2739 { 2740 $params = array('customer' => $customer, 'roleId' => $roleId); 2741 $params = array_merge($params, $optParams); 2742 return $this->call('delete', array($params)); 2743 } 2744 2745 /** 2746 * Retrieves a role. (roles.get) 2747 * 2748 * @param string $customer Immutable ID of the Google Apps account. 2749 * @param string $roleId Immutable ID of the role. 2750 * @param array $optParams Optional parameters. 2751 * @return Google_Service_Directory_Role 2752 */ 2753 public function get($customer, $roleId, $optParams = array()) 2754 { 2755 $params = array('customer' => $customer, 'roleId' => $roleId); 2756 $params = array_merge($params, $optParams); 2757 return $this->call('get', array($params), "Google_Service_Directory_Role"); 2758 } 2759 2760 /** 2761 * Creates a role. (roles.insert) 2762 * 2763 * @param string $customer Immutable ID of the Google Apps account. 2764 * @param Google_Role $postBody 2765 * @param array $optParams Optional parameters. 2766 * @return Google_Service_Directory_Role 2767 */ 2768 public function insert($customer, Google_Service_Directory_Role $postBody, $optParams = array()) 2769 { 2770 $params = array('customer' => $customer, 'postBody' => $postBody); 2771 $params = array_merge($params, $optParams); 2772 return $this->call('insert', array($params), "Google_Service_Directory_Role"); 2773 } 2774 2775 /** 2776 * Retrieves a paginated list of all the roles in a domain. (roles.listRoles) 2777 * 2778 * @param string $customer Immutable id of the Google Apps account. 2779 * @param array $optParams Optional parameters. 2780 * 2781 * @opt_param string pageToken Token to specify the next page in the list. 2782 * @opt_param int maxResults Maximum number of results to return. 2783 * @return Google_Service_Directory_Roles 2784 */ 2785 public function listRoles($customer, $optParams = array()) 2786 { 2787 $params = array('customer' => $customer); 2788 $params = array_merge($params, $optParams); 2789 return $this->call('list', array($params), "Google_Service_Directory_Roles"); 2790 } 2791 2792 /** 2793 * Updates a role. This method supports patch semantics. (roles.patch) 2794 * 2795 * @param string $customer Immutable ID of the Google Apps account. 2796 * @param string $roleId Immutable ID of the role. 2797 * @param Google_Role $postBody 2798 * @param array $optParams Optional parameters. 2799 * @return Google_Service_Directory_Role 2800 */ 2801 public function patch($customer, $roleId, Google_Service_Directory_Role $postBody, $optParams = array()) 2802 { 2803 $params = array('customer' => $customer, 'roleId' => $roleId, 'postBody' => $postBody); 2804 $params = array_merge($params, $optParams); 2805 return $this->call('patch', array($params), "Google_Service_Directory_Role"); 2806 } 2807 2808 /** 2809 * Updates a role. (roles.update) 2810 * 2811 * @param string $customer Immutable ID of the Google Apps account. 2812 * @param string $roleId Immutable ID of the role. 2813 * @param Google_Role $postBody 2814 * @param array $optParams Optional parameters. 2815 * @return Google_Service_Directory_Role 2816 */ 2817 public function update($customer, $roleId, Google_Service_Directory_Role $postBody, $optParams = array()) 2818 { 2819 $params = array('customer' => $customer, 'roleId' => $roleId, 'postBody' => $postBody); 2820 $params = array_merge($params, $optParams); 2821 return $this->call('update', array($params), "Google_Service_Directory_Role"); 2822 } 2823 } 2824 2825 /** 2826 * The "schemas" collection of methods. 2827 * Typical usage is: 2828 * <code> 2829 * $adminService = new Google_Service_Directory(...); 2830 * $schemas = $adminService->schemas; 2831 * </code> 2832 */ 2833 class Google_Service_Directory_Schemas_Resource extends Google_Service_Resource 2834 { 2835 2836 /** 2837 * Delete schema (schemas.delete) 2838 * 2839 * @param string $customerId Immutable id of the Google Apps account 2840 * @param string $schemaKey Name or immutable Id of the schema 2841 * @param array $optParams Optional parameters. 2842 */ 2843 public function delete($customerId, $schemaKey, $optParams = array()) 2844 { 2845 $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey); 2846 $params = array_merge($params, $optParams); 2847 return $this->call('delete', array($params)); 2848 } 2849 2850 /** 2851 * Retrieve schema (schemas.get) 2852 * 2853 * @param string $customerId Immutable id of the Google Apps account 2854 * @param string $schemaKey Name or immutable Id of the schema 2855 * @param array $optParams Optional parameters. 2856 * @return Google_Service_Directory_Schema 2857 */ 2858 public function get($customerId, $schemaKey, $optParams = array()) 2859 { 2860 $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey); 2861 $params = array_merge($params, $optParams); 2862 return $this->call('get', array($params), "Google_Service_Directory_Schema"); 2863 } 2864 2865 /** 2866 * Create schema. (schemas.insert) 2867 * 2868 * @param string $customerId Immutable id of the Google Apps account 2869 * @param Google_Schema $postBody 2870 * @param array $optParams Optional parameters. 2871 * @return Google_Service_Directory_Schema 2872 */ 2873 public function insert($customerId, Google_Service_Directory_Schema $postBody, $optParams = array()) 2874 { 2875 $params = array('customerId' => $customerId, 'postBody' => $postBody); 2876 $params = array_merge($params, $optParams); 2877 return $this->call('insert', array($params), "Google_Service_Directory_Schema"); 2878 } 2879 2880 /** 2881 * Retrieve all schemas for a customer (schemas.listSchemas) 2882 * 2883 * @param string $customerId Immutable id of the Google Apps account 2884 * @param array $optParams Optional parameters. 2885 * @return Google_Service_Directory_Schemas 2886 */ 2887 public function listSchemas($customerId, $optParams = array()) 2888 { 2889 $params = array('customerId' => $customerId); 2890 $params = array_merge($params, $optParams); 2891 return $this->call('list', array($params), "Google_Service_Directory_Schemas"); 2892 } 2893 2894 /** 2895 * Update schema. This method supports patch semantics. (schemas.patch) 2896 * 2897 * @param string $customerId Immutable id of the Google Apps account 2898 * @param string $schemaKey Name or immutable Id of the schema. 2899 * @param Google_Schema $postBody 2900 * @param array $optParams Optional parameters. 2901 * @return Google_Service_Directory_Schema 2902 */ 2903 public function patch($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array()) 2904 { 2905 $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody); 2906 $params = array_merge($params, $optParams); 2907 return $this->call('patch', array($params), "Google_Service_Directory_Schema"); 2908 } 2909 2910 /** 2911 * Update schema (schemas.update) 2912 * 2913 * @param string $customerId Immutable id of the Google Apps account 2914 * @param string $schemaKey Name or immutable Id of the schema. 2915 * @param Google_Schema $postBody 2916 * @param array $optParams Optional parameters. 2917 * @return Google_Service_Directory_Schema 2918 */ 2919 public function update($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array()) 2920 { 2921 $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody); 2922 $params = array_merge($params, $optParams); 2923 return $this->call('update', array($params), "Google_Service_Directory_Schema"); 2924 } 2925 } 2926 2927 /** 2928 * The "tokens" collection of methods. 2929 * Typical usage is: 2930 * <code> 2931 * $adminService = new Google_Service_Directory(...); 2932 * $tokens = $adminService->tokens; 2933 * </code> 2934 */ 2935 class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource 2936 { 2937 2938 /** 2939 * Delete all access tokens issued by a user for an application. (tokens.delete) 2940 * 2941 * @param string $userKey Identifies the user in the API request. The value can 2942 * be the user's primary email address, alias email address, or unique user ID. 2943 * @param string $clientId The Client ID of the application the token is issued 2944 * to. 2945 * @param array $optParams Optional parameters. 2946 */ 2947 public function delete($userKey, $clientId, $optParams = array()) 2948 { 2949 $params = array('userKey' => $userKey, 'clientId' => $clientId); 2950 $params = array_merge($params, $optParams); 2951 return $this->call('delete', array($params)); 2952 } 2953 2954 /** 2955 * Get information about an access token issued by a user. (tokens.get) 2956 * 2957 * @param string $userKey Identifies the user in the API request. The value can 2958 * be the user's primary email address, alias email address, or unique user ID. 2959 * @param string $clientId The Client ID of the application the token is issued 2960 * to. 2961 * @param array $optParams Optional parameters. 2962 * @return Google_Service_Directory_Token 2963 */ 2964 public function get($userKey, $clientId, $optParams = array()) 2965 { 2966 $params = array('userKey' => $userKey, 'clientId' => $clientId); 2967 $params = array_merge($params, $optParams); 2968 return $this->call('get', array($params), "Google_Service_Directory_Token"); 2969 } 2970 2971 /** 2972 * Returns the set of tokens specified user has issued to 3rd party 2973 * applications. (tokens.listTokens) 2974 * 2975 * @param string $userKey Identifies the user in the API request. The value can 2976 * be the user's primary email address, alias email address, or unique user ID. 2977 * @param array $optParams Optional parameters. 2978 * @return Google_Service_Directory_Tokens 2979 */ 2980 public function listTokens($userKey, $optParams = array()) 2981 { 2982 $params = array('userKey' => $userKey); 2983 $params = array_merge($params, $optParams); 2984 return $this->call('list', array($params), "Google_Service_Directory_Tokens"); 2985 } 2986 } 2987 2988 /** 2989 * The "users" collection of methods. 2990 * Typical usage is: 2991 * <code> 2992 * $adminService = new Google_Service_Directory(...); 2993 * $users = $adminService->users; 2994 * </code> 2995 */ 2996 class Google_Service_Directory_Users_Resource extends Google_Service_Resource 2997 { 2998 2999 /** 3000 * Delete user (users.delete) 3001 * 3002 * @param string $userKey Email or immutable Id of the user 3003 * @param array $optParams Optional parameters. 3004 */ 3005 public function delete($userKey, $optParams = array()) 3006 { 3007 $params = array('userKey' => $userKey); 3008 $params = array_merge($params, $optParams); 3009 return $this->call('delete', array($params)); 3010 } 3011 3012 /** 3013 * retrieve user (users.get) 3014 * 3015 * @param string $userKey Email or immutable Id of the user 3016 * @param array $optParams Optional parameters. 3017 * 3018 * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC 3019 * view of the user. 3020 * @opt_param string customFieldMask Comma-separated list of schema names. All 3021 * fields from these schemas are fetched. This should only be set when 3022 * projection=custom. 3023 * @opt_param string projection What subset of fields to fetch for this user. 3024 * @return Google_Service_Directory_User 3025 */ 3026 public function get($userKey, $optParams = array()) 3027 { 3028 $params = array('userKey' => $userKey); 3029 $params = array_merge($params, $optParams); 3030 return $this->call('get', array($params), "Google_Service_Directory_User"); 3031 } 3032 3033 /** 3034 * create user. (users.insert) 3035 * 3036 * @param Google_User $postBody 3037 * @param array $optParams Optional parameters. 3038 * @return Google_Service_Directory_User 3039 */ 3040 public function insert(Google_Service_Directory_User $postBody, $optParams = array()) 3041 { 3042 $params = array('postBody' => $postBody); 3043 $params = array_merge($params, $optParams); 3044 return $this->call('insert', array($params), "Google_Service_Directory_User"); 3045 } 3046 3047 /** 3048 * Retrieve either deleted users or all users in a domain (paginated) 3049 * (users.listUsers) 3050 * 3051 * @param array $optParams Optional parameters. 3052 * 3053 * @opt_param string customer Immutable id of the Google Apps account. In case 3054 * of multi-domain, to fetch all users for a customer, fill this field instead 3055 * of domain. 3056 * @opt_param string orderBy Column to use for sorting results 3057 * @opt_param string domain Name of the domain. Fill this field to get users 3058 * from only this domain. To return all users in a multi-domain fill customer 3059 * field instead. 3060 * @opt_param string projection What subset of fields to fetch for this user. 3061 * @opt_param string showDeleted If set to true retrieves the list of deleted 3062 * users. Default is false 3063 * @opt_param string customFieldMask Comma-separated list of schema names. All 3064 * fields from these schemas are fetched. This should only be set when 3065 * projection=custom. 3066 * @opt_param int maxResults Maximum number of results to return. Default is 3067 * 100. Max allowed is 500 3068 * @opt_param string pageToken Token to specify next page in the list 3069 * @opt_param string sortOrder Whether to return results in ascending or 3070 * descending order. 3071 * @opt_param string query Query string search. Should be of the form "". 3072 * Complete documentation is at https://developers.google.com/admin- 3073 * sdk/directory/v1/guides/search-users 3074 * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC 3075 * view of the user. 3076 * @opt_param string event Event on which subscription is intended (if 3077 * subscribing) 3078 * @return Google_Service_Directory_Users 3079 */ 3080 public function listUsers($optParams = array()) 3081 { 3082 $params = array(); 3083 $params = array_merge($params, $optParams); 3084 return $this->call('list', array($params), "Google_Service_Directory_Users"); 3085 } 3086 3087 /** 3088 * change admin status of a user (users.makeAdmin) 3089 * 3090 * @param string $userKey Email or immutable Id of the user as admin 3091 * @param Google_UserMakeAdmin $postBody 3092 * @param array $optParams Optional parameters. 3093 */ 3094 public function makeAdmin($userKey, Google_Service_Directory_UserMakeAdmin $postBody, $optParams = array()) 3095 { 3096 $params = array('userKey' => $userKey, 'postBody' => $postBody); 3097 $params = array_merge($params, $optParams); 3098 return $this->call('makeAdmin', array($params)); 3099 } 3100 3101 /** 3102 * update user. This method supports patch semantics. (users.patch) 3103 * 3104 * @param string $userKey Email or immutable Id of the user. If Id, it should 3105 * match with id of user object 3106 * @param Google_User $postBody 3107 * @param array $optParams Optional parameters. 3108 * @return Google_Service_Directory_User 3109 */ 3110 public function patch($userKey, Google_Service_Directory_User $postBody, $optParams = array()) 3111 { 3112 $params = array('userKey' => $userKey, 'postBody' => $postBody); 3113 $params = array_merge($params, $optParams); 3114 return $this->call('patch', array($params), "Google_Service_Directory_User"); 3115 } 3116 3117 /** 3118 * Undelete a deleted user (users.undelete) 3119 * 3120 * @param string $userKey The immutable id of the user 3121 * @param Google_UserUndelete $postBody 3122 * @param array $optParams Optional parameters. 3123 */ 3124 public function undelete($userKey, Google_Service_Directory_UserUndelete $postBody, $optParams = array()) 3125 { 3126 $params = array('userKey' => $userKey, 'postBody' => $postBody); 3127 $params = array_merge($params, $optParams); 3128 return $this->call('undelete', array($params)); 3129 } 3130 3131 /** 3132 * update user (users.update) 3133 * 3134 * @param string $userKey Email or immutable Id of the user. If Id, it should 3135 * match with id of user object 3136 * @param Google_User $postBody 3137 * @param array $optParams Optional parameters. 3138 * @return Google_Service_Directory_User 3139 */ 3140 public function update($userKey, Google_Service_Directory_User $postBody, $optParams = array()) 3141 { 3142 $params = array('userKey' => $userKey, 'postBody' => $postBody); 3143 $params = array_merge($params, $optParams); 3144 return $this->call('update', array($params), "Google_Service_Directory_User"); 3145 } 3146 3147 /** 3148 * Watch for changes in users list (users.watch) 3149 * 3150 * @param Google_Channel $postBody 3151 * @param array $optParams Optional parameters. 3152 * 3153 * @opt_param string customer Immutable id of the Google Apps account. In case 3154 * of multi-domain, to fetch all users for a customer, fill this field instead 3155 * of domain. 3156 * @opt_param string orderBy Column to use for sorting results 3157 * @opt_param string domain Name of the domain. Fill this field to get users 3158 * from only this domain. To return all users in a multi-domain fill customer 3159 * field instead. 3160 * @opt_param string projection What subset of fields to fetch for this user. 3161 * @opt_param string showDeleted If set to true retrieves the list of deleted 3162 * users. Default is false 3163 * @opt_param string customFieldMask Comma-separated list of schema names. All 3164 * fields from these schemas are fetched. This should only be set when 3165 * projection=custom. 3166 * @opt_param int maxResults Maximum number of results to return. Default is 3167 * 100. Max allowed is 500 3168 * @opt_param string pageToken Token to specify next page in the list 3169 * @opt_param string sortOrder Whether to return results in ascending or 3170 * descending order. 3171 * @opt_param string query Query string search. Should be of the form "". 3172 * Complete documentation is at https://developers.google.com/admin- 3173 * sdk/directory/v1/guides/search-users 3174 * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC 3175 * view of the user. 3176 * @opt_param string event Event on which subscription is intended (if 3177 * subscribing) 3178 * @return Google_Service_Directory_Channel 3179 */ 3180 public function watch(Google_Service_Directory_Channel $postBody, $optParams = array()) 3181 { 3182 $params = array('postBody' => $postBody); 3183 $params = array_merge($params, $optParams); 3184 return $this->call('watch', array($params), "Google_Service_Directory_Channel"); 3185 } 3186 } 3187 3188 /** 3189 * The "aliases" collection of methods. 3190 * Typical usage is: 3191 * <code> 3192 * $adminService = new Google_Service_Directory(...); 3193 * $aliases = $adminService->aliases; 3194 * </code> 3195 */ 3196 class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Resource 3197 { 3198 3199 /** 3200 * Remove a alias for the user (aliases.delete) 3201 * 3202 * @param string $userKey Email or immutable Id of the user 3203 * @param string $alias The alias to be removed 3204 * @param array $optParams Optional parameters. 3205 */ 3206 public function delete($userKey, $alias, $optParams = array()) 3207 { 3208 $params = array('userKey' => $userKey, 'alias' => $alias); 3209 $params = array_merge($params, $optParams); 3210 return $this->call('delete', array($params)); 3211 } 3212 3213 /** 3214 * Add a alias for the user (aliases.insert) 3215 * 3216 * @param string $userKey Email or immutable Id of the user 3217 * @param Google_Alias $postBody 3218 * @param array $optParams Optional parameters. 3219 * @return Google_Service_Directory_Alias 3220 */ 3221 public function insert($userKey, Google_Service_Directory_Alias $postBody, $optParams = array()) 3222 { 3223 $params = array('userKey' => $userKey, 'postBody' => $postBody); 3224 $params = array_merge($params, $optParams); 3225 return $this->call('insert', array($params), "Google_Service_Directory_Alias"); 3226 } 3227 3228 /** 3229 * List all aliases for a user (aliases.listUsersAliases) 3230 * 3231 * @param string $userKey Email or immutable Id of the user 3232 * @param array $optParams Optional parameters. 3233 * 3234 * @opt_param string event Event on which subscription is intended (if 3235 * subscribing) 3236 * @return Google_Service_Directory_Aliases 3237 */ 3238 public function listUsersAliases($userKey, $optParams = array()) 3239 { 3240 $params = array('userKey' => $userKey); 3241 $params = array_merge($params, $optParams); 3242 return $this->call('list', array($params), "Google_Service_Directory_Aliases"); 3243 } 3244 3245 /** 3246 * Watch for changes in user aliases list (aliases.watch) 3247 * 3248 * @param string $userKey Email or immutable Id of the user 3249 * @param Google_Channel $postBody 3250 * @param array $optParams Optional parameters. 3251 * 3252 * @opt_param string event Event on which subscription is intended (if 3253 * subscribing) 3254 * @return Google_Service_Directory_Channel 3255 */ 3256 public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array()) 3257 { 3258 $params = array('userKey' => $userKey, 'postBody' => $postBody); 3259 $params = array_merge($params, $optParams); 3260 return $this->call('watch', array($params), "Google_Service_Directory_Channel"); 3261 } 3262 } 3263 /** 3264 * The "photos" collection of methods. 3265 * Typical usage is: 3266 * <code> 3267 * $adminService = new Google_Service_Directory(...); 3268 * $photos = $adminService->photos; 3269 * </code> 3270 */ 3271 class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resource 3272 { 3273 3274 /** 3275 * Remove photos for the user (photos.delete) 3276 * 3277 * @param string $userKey Email or immutable Id of the user 3278 * @param array $optParams Optional parameters. 3279 */ 3280 public function delete($userKey, $optParams = array()) 3281 { 3282 $params = array('userKey' => $userKey); 3283 $params = array_merge($params, $optParams); 3284 return $this->call('delete', array($params)); 3285 } 3286 3287 /** 3288 * Retrieve photo of a user (photos.get) 3289 * 3290 * @param string $userKey Email or immutable Id of the user 3291 * @param array $optParams Optional parameters. 3292 * @return Google_Service_Directory_UserPhoto 3293 */ 3294 public function get($userKey, $optParams = array()) 3295 { 3296 $params = array('userKey' => $userKey); 3297 $params = array_merge($params, $optParams); 3298 return $this->call('get', array($params), "Google_Service_Directory_UserPhoto"); 3299 } 3300 3301 /** 3302 * Add a photo for the user. This method supports patch semantics. 3303 * (photos.patch) 3304 * 3305 * @param string $userKey Email or immutable Id of the user 3306 * @param Google_UserPhoto $postBody 3307 * @param array $optParams Optional parameters. 3308 * @return Google_Service_Directory_UserPhoto 3309 */ 3310 public function patch($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array()) 3311 { 3312 $params = array('userKey' => $userKey, 'postBody' => $postBody); 3313 $params = array_merge($params, $optParams); 3314 return $this->call('patch', array($params), "Google_Service_Directory_UserPhoto"); 3315 } 3316 3317 /** 3318 * Add a photo for the user (photos.update) 3319 * 3320 * @param string $userKey Email or immutable Id of the user 3321 * @param Google_UserPhoto $postBody 3322 * @param array $optParams Optional parameters. 3323 * @return Google_Service_Directory_UserPhoto 3324 */ 3325 public function update($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array()) 3326 { 3327 $params = array('userKey' => $userKey, 'postBody' => $postBody); 3328 $params = array_merge($params, $optParams); 3329 return $this->call('update', array($params), "Google_Service_Directory_UserPhoto"); 3330 } 3331 } 3332 3333 /** 3334 * The "verificationCodes" collection of methods. 3335 * Typical usage is: 3336 * <code> 3337 * $adminService = new Google_Service_Directory(...); 3338 * $verificationCodes = $adminService->verificationCodes; 3339 * </code> 3340 */ 3341 class Google_Service_Directory_VerificationCodes_Resource extends Google_Service_Resource 3342 { 3343 3344 /** 3345 * Generate new backup verification codes for the user. 3346 * (verificationCodes.generate) 3347 * 3348 * @param string $userKey Email or immutable Id of the user 3349 * @param array $optParams Optional parameters. 3350 */ 3351 public function generate($userKey, $optParams = array()) 3352 { 3353 $params = array('userKey' => $userKey); 3354 $params = array_merge($params, $optParams); 3355 return $this->call('generate', array($params)); 3356 } 3357 3358 /** 3359 * Invalidate the current backup verification codes for the user. 3360 * (verificationCodes.invalidate) 3361 * 3362 * @param string $userKey Email or immutable Id of the user 3363 * @param array $optParams Optional parameters. 3364 */ 3365 public function invalidate($userKey, $optParams = array()) 3366 { 3367 $params = array('userKey' => $userKey); 3368 $params = array_merge($params, $optParams); 3369 return $this->call('invalidate', array($params)); 3370 } 3371 3372 /** 3373 * Returns the current set of valid backup verification codes for the specified 3374 * user. (verificationCodes.listVerificationCodes) 3375 * 3376 * @param string $userKey Identifies the user in the API request. The value can 3377 * be the user's primary email address, alias email address, or unique user ID. 3378 * @param array $optParams Optional parameters. 3379 * @return Google_Service_Directory_VerificationCodes 3380 */ 3381 public function listVerificationCodes($userKey, $optParams = array()) 3382 { 3383 $params = array('userKey' => $userKey); 3384 $params = array_merge($params, $optParams); 3385 return $this->call('list', array($params), "Google_Service_Directory_VerificationCodes"); 3386 } 3387 } 3388 3389 3390 3391 3392 class Google_Service_Directory_Alias extends Google_Model 3393 { 3394 protected $internal_gapi_mappings = array( 3395 ); 3396 public $alias; 3397 public $etag; 3398 public $id; 3399 public $kind; 3400 public $primaryEmail; 3401 3402 3403 public function setAlias($alias) 3404 { 3405 $this->alias = $alias; 3406 } 3407 public function getAlias() 3408 { 3409 return $this->alias; 3410 } 3411 public function setEtag($etag) 3412 { 3413 $this->etag = $etag; 3414 } 3415 public function getEtag() 3416 { 3417 return $this->etag; 3418 } 3419 public function setId($id) 3420 { 3421 $this->id = $id; 3422 } 3423 public function getId() 3424 { 3425 return $this->id; 3426 } 3427 public function setKind($kind) 3428 { 3429 $this->kind = $kind; 3430 } 3431 public function getKind() 3432 { 3433 return $this->kind; 3434 } 3435 public function setPrimaryEmail($primaryEmail) 3436 { 3437 $this->primaryEmail = $primaryEmail; 3438 } 3439 public function getPrimaryEmail() 3440 { 3441 return $this->primaryEmail; 3442 } 3443 } 3444 3445 class Google_Service_Directory_Aliases extends Google_Collection 3446 { 3447 protected $collection_key = 'aliases'; 3448 protected $internal_gapi_mappings = array( 3449 ); 3450 protected $aliasesType = 'Google_Service_Directory_Alias'; 3451 protected $aliasesDataType = 'array'; 3452 public $etag; 3453 public $kind; 3454 3455 3456 public function setAliases($aliases) 3457 { 3458 $this->aliases = $aliases; 3459 } 3460 public function getAliases() 3461 { 3462 return $this->aliases; 3463 } 3464 public function setEtag($etag) 3465 { 3466 $this->etag = $etag; 3467 } 3468 public function getEtag() 3469 { 3470 return $this->etag; 3471 } 3472 public function setKind($kind) 3473 { 3474 $this->kind = $kind; 3475 } 3476 public function getKind() 3477 { 3478 return $this->kind; 3479 } 3480 } 3481 3482 class Google_Service_Directory_Asp extends Google_Model 3483 { 3484 protected $internal_gapi_mappings = array( 3485 ); 3486 public $codeId; 3487 public $creationTime; 3488 public $etag; 3489 public $kind; 3490 public $lastTimeUsed; 3491 public $name; 3492 public $userKey; 3493 3494 3495 public function setCodeId($codeId) 3496 { 3497 $this->codeId = $codeId; 3498 } 3499 public function getCodeId() 3500 { 3501 return $this->codeId; 3502 } 3503 public function setCreationTime($creationTime) 3504 { 3505 $this->creationTime = $creationTime; 3506 } 3507 public function getCreationTime() 3508 { 3509 return $this->creationTime; 3510 } 3511 public function setEtag($etag) 3512 { 3513 $this->etag = $etag; 3514 } 3515 public function getEtag() 3516 { 3517 return $this->etag; 3518 } 3519 public function setKind($kind) 3520 { 3521 $this->kind = $kind; 3522 } 3523 public function getKind() 3524 { 3525 return $this->kind; 3526 } 3527 public function setLastTimeUsed($lastTimeUsed) 3528 { 3529 $this->lastTimeUsed = $lastTimeUsed; 3530 } 3531 public function getLastTimeUsed() 3532 { 3533 return $this->lastTimeUsed; 3534 } 3535 public function setName($name) 3536 { 3537 $this->name = $name; 3538 } 3539 public function getName() 3540 { 3541 return $this->name; 3542 } 3543 public function setUserKey($userKey) 3544 { 3545 $this->userKey = $userKey; 3546 } 3547 public function getUserKey() 3548 { 3549 return $this->userKey; 3550 } 3551 } 3552 3553 class Google_Service_Directory_Asps extends Google_Collection 3554 { 3555 protected $collection_key = 'items'; 3556 protected $internal_gapi_mappings = array( 3557 ); 3558 public $etag; 3559 protected $itemsType = 'Google_Service_Directory_Asp'; 3560 protected $itemsDataType = 'array'; 3561 public $kind; 3562 3563 3564 public function setEtag($etag) 3565 { 3566 $this->etag = $etag; 3567 } 3568 public function getEtag() 3569 { 3570 return $this->etag; 3571 } 3572 public function setItems($items) 3573 { 3574 $this->items = $items; 3575 } 3576 public function getItems() 3577 { 3578 return $this->items; 3579 } 3580 public function setKind($kind) 3581 { 3582 $this->kind = $kind; 3583 } 3584 public function getKind() 3585 { 3586 return $this->kind; 3587 } 3588 } 3589 3590 class Google_Service_Directory_Channel extends Google_Model 3591 { 3592 protected $internal_gapi_mappings = array( 3593 ); 3594 public $address; 3595 public $expiration; 3596 public $id; 3597 public $kind; 3598 public $params; 3599 public $payload; 3600 public $resourceId; 3601 public $resourceUri; 3602 public $token; 3603 public $type; 3604 3605 3606 public function setAddress($address) 3607 { 3608 $this->address = $address; 3609 } 3610 public function getAddress() 3611 { 3612 return $this->address; 3613 } 3614 public function setExpiration($expiration) 3615 { 3616 $this->expiration = $expiration; 3617 } 3618 public function getExpiration() 3619 { 3620 return $this->expiration; 3621 } 3622 public function setId($id) 3623 { 3624 $this->id = $id; 3625 } 3626 public function getId() 3627 { 3628 return $this->id; 3629 } 3630 public function setKind($kind) 3631 { 3632 $this->kind = $kind; 3633 } 3634 public function getKind() 3635 { 3636 return $this->kind; 3637 } 3638 public function setParams($params) 3639 { 3640 $this->params = $params; 3641 } 3642 public function getParams() 3643 { 3644 return $this->params; 3645 } 3646 public function setPayload($payload) 3647 { 3648 $this->payload = $payload; 3649 } 3650 public function getPayload() 3651 { 3652 return $this->payload; 3653 } 3654 public function setResourceId($resourceId) 3655 { 3656 $this->resourceId = $resourceId; 3657 } 3658 public function getResourceId() 3659 { 3660 return $this->resourceId; 3661 } 3662 public function setResourceUri($resourceUri) 3663 { 3664 $this->resourceUri = $resourceUri; 3665 } 3666 public function getResourceUri() 3667 { 3668 return $this->resourceUri; 3669 } 3670 public function setToken($token) 3671 { 3672 $this->token = $token; 3673 } 3674 public function getToken() 3675 { 3676 return $this->token; 3677 } 3678 public function setType($type) 3679 { 3680 $this->type = $type; 3681 } 3682 public function getType() 3683 { 3684 return $this->type; 3685 } 3686 } 3687 3688 class Google_Service_Directory_ChannelParams extends Google_Model 3689 { 3690 } 3691 3692 class Google_Service_Directory_ChromeOsDevice extends Google_Collection 3693 { 3694 protected $collection_key = 'recentUsers'; 3695 protected $internal_gapi_mappings = array( 3696 ); 3697 protected $activeTimeRangesType = 'Google_Service_Directory_ChromeOsDeviceActiveTimeRanges'; 3698 protected $activeTimeRangesDataType = 'array'; 3699 public $annotatedAssetId; 3700 public $annotatedLocation; 3701 public $annotatedUser; 3702 public $bootMode; 3703 public $deviceId; 3704 public $etag; 3705 public $ethernetMacAddress; 3706 public $firmwareVersion; 3707 public $kind; 3708 public $lastEnrollmentTime; 3709 public $lastSync; 3710 public $macAddress; 3711 public $meid; 3712 public $model; 3713 public $notes; 3714 public $orderNumber; 3715 public $orgUnitPath; 3716 public $osVersion; 3717 public $platformVersion; 3718 protected $recentUsersType = 'Google_Service_Directory_ChromeOsDeviceRecentUsers'; 3719 protected $recentUsersDataType = 'array'; 3720 public $serialNumber; 3721 public $status; 3722 public $supportEndDate; 3723 public $willAutoRenew; 3724 3725 3726 public function setActiveTimeRanges($activeTimeRanges) 3727 { 3728 $this->activeTimeRanges = $activeTimeRanges; 3729 } 3730 public function getActiveTimeRanges() 3731 { 3732 return $this->activeTimeRanges; 3733 } 3734 public function setAnnotatedAssetId($annotatedAssetId) 3735 { 3736 $this->annotatedAssetId = $annotatedAssetId; 3737 } 3738 public function getAnnotatedAssetId() 3739 { 3740 return $this->annotatedAssetId; 3741 } 3742 public function setAnnotatedLocation($annotatedLocation) 3743 { 3744 $this->annotatedLocation = $annotatedLocation; 3745 } 3746 public function getAnnotatedLocation() 3747 { 3748 return $this->annotatedLocation; 3749 } 3750 public function setAnnotatedUser($annotatedUser) 3751 { 3752 $this->annotatedUser = $annotatedUser; 3753 } 3754 public function getAnnotatedUser() 3755 { 3756 return $this->annotatedUser; 3757 } 3758 public function setBootMode($bootMode) 3759 { 3760 $this->bootMode = $bootMode; 3761 } 3762 public function getBootMode() 3763 { 3764 return $this->bootMode; 3765 } 3766 public function setDeviceId($deviceId) 3767 { 3768 $this->deviceId = $deviceId; 3769 } 3770 public function getDeviceId() 3771 { 3772 return $this->deviceId; 3773 } 3774 public function setEtag($etag) 3775 { 3776 $this->etag = $etag; 3777 } 3778 public function getEtag() 3779 { 3780 return $this->etag; 3781 } 3782 public function setEthernetMacAddress($ethernetMacAddress) 3783 { 3784 $this->ethernetMacAddress = $ethernetMacAddress; 3785 } 3786 public function getEthernetMacAddress() 3787 { 3788 return $this->ethernetMacAddress; 3789 } 3790 public function setFirmwareVersion($firmwareVersion) 3791 { 3792 $this->firmwareVersion = $firmwareVersion; 3793 } 3794 public function getFirmwareVersion() 3795 { 3796 return $this->firmwareVersion; 3797 } 3798 public function setKind($kind) 3799 { 3800 $this->kind = $kind; 3801 } 3802 public function getKind() 3803 { 3804 return $this->kind; 3805 } 3806 public function setLastEnrollmentTime($lastEnrollmentTime) 3807 { 3808 $this->lastEnrollmentTime = $lastEnrollmentTime; 3809 } 3810 public function getLastEnrollmentTime() 3811 { 3812 return $this->lastEnrollmentTime; 3813 } 3814 public function setLastSync($lastSync) 3815 { 3816 $this->lastSync = $lastSync; 3817 } 3818 public function getLastSync() 3819 { 3820 return $this->lastSync; 3821 } 3822 public function setMacAddress($macAddress) 3823 { 3824 $this->macAddress = $macAddress; 3825 } 3826 public function getMacAddress() 3827 { 3828 return $this->macAddress; 3829 } 3830 public function setMeid($meid) 3831 { 3832 $this->meid = $meid; 3833 } 3834 public function getMeid() 3835 { 3836 return $this->meid; 3837 } 3838 public function setModel($model) 3839 { 3840 $this->model = $model; 3841 } 3842 public function getModel() 3843 { 3844 return $this->model; 3845 } 3846 public function setNotes($notes) 3847 { 3848 $this->notes = $notes; 3849 } 3850 public function getNotes() 3851 { 3852 return $this->notes; 3853 } 3854 public function setOrderNumber($orderNumber) 3855 { 3856 $this->orderNumber = $orderNumber; 3857 } 3858 public function getOrderNumber() 3859 { 3860 return $this->orderNumber; 3861 } 3862 public function setOrgUnitPath($orgUnitPath) 3863 { 3864 $this->orgUnitPath = $orgUnitPath; 3865 } 3866 public function getOrgUnitPath() 3867 { 3868 return $this->orgUnitPath; 3869 } 3870 public function setOsVersion($osVersion) 3871 { 3872 $this->osVersion = $osVersion; 3873 } 3874 public function getOsVersion() 3875 { 3876 return $this->osVersion; 3877 } 3878 public function setPlatformVersion($platformVersion) 3879 { 3880 $this->platformVersion = $platformVersion; 3881 } 3882 public function getPlatformVersion() 3883 { 3884 return $this->platformVersion; 3885 } 3886 public function setRecentUsers($recentUsers) 3887 { 3888 $this->recentUsers = $recentUsers; 3889 } 3890 public function getRecentUsers() 3891 { 3892 return $this->recentUsers; 3893 } 3894 public function setSerialNumber($serialNumber) 3895 { 3896 $this->serialNumber = $serialNumber; 3897 } 3898 public function getSerialNumber() 3899 { 3900 return $this->serialNumber; 3901 } 3902 public function setStatus($status) 3903 { 3904 $this->status = $status; 3905 } 3906 public function getStatus() 3907 { 3908 return $this->status; 3909 } 3910 public function setSupportEndDate($supportEndDate) 3911 { 3912 $this->supportEndDate = $supportEndDate; 3913 } 3914 public function getSupportEndDate() 3915 { 3916 return $this->supportEndDate; 3917 } 3918 public function setWillAutoRenew($willAutoRenew) 3919 { 3920 $this->willAutoRenew = $willAutoRenew; 3921 } 3922 public function getWillAutoRenew() 3923 { 3924 return $this->willAutoRenew; 3925 } 3926 } 3927 3928 class Google_Service_Directory_ChromeOsDeviceActiveTimeRanges extends Google_Model 3929 { 3930 protected $internal_gapi_mappings = array( 3931 ); 3932 public $activeTime; 3933 public $date; 3934 3935 3936 public function setActiveTime($activeTime) 3937 { 3938 $this->activeTime = $activeTime; 3939 } 3940 public function getActiveTime() 3941 { 3942 return $this->activeTime; 3943 } 3944 public function setDate($date) 3945 { 3946 $this->date = $date; 3947 } 3948 public function getDate() 3949 { 3950 return $this->date; 3951 } 3952 } 3953 3954 class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model 3955 { 3956 protected $internal_gapi_mappings = array( 3957 ); 3958 public $email; 3959 public $type; 3960 3961 3962 public function setEmail($email) 3963 { 3964 $this->email = $email; 3965 } 3966 public function getEmail() 3967 { 3968 return $this->email; 3969 } 3970 public function setType($type) 3971 { 3972 $this->type = $type; 3973 } 3974 public function getType() 3975 { 3976 return $this->type; 3977 } 3978 } 3979 3980 class Google_Service_Directory_ChromeOsDevices extends Google_Collection 3981 { 3982 protected $collection_key = 'chromeosdevices'; 3983 protected $internal_gapi_mappings = array( 3984 ); 3985 protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice'; 3986 protected $chromeosdevicesDataType = 'array'; 3987 public $etag; 3988 public $kind; 3989 public $nextPageToken; 3990 3991 3992 public function setChromeosdevices($chromeosdevices) 3993 { 3994 $this->chromeosdevices = $chromeosdevices; 3995 } 3996 public function getChromeosdevices() 3997 { 3998 return $this->chromeosdevices; 3999 } 4000 public function setEtag($etag) 4001 { 4002 $this->etag = $etag; 4003 } 4004 public function getEtag() 4005 { 4006 return $this->etag; 4007 } 4008 public function setKind($kind) 4009 { 4010 $this->kind = $kind; 4011 } 4012 public function getKind() 4013 { 4014 return $this->kind; 4015 } 4016 public function setNextPageToken($nextPageToken) 4017 { 4018 $this->nextPageToken = $nextPageToken; 4019 } 4020 public function getNextPageToken() 4021 { 4022 return $this->nextPageToken; 4023 } 4024 } 4025 4026 class Google_Service_Directory_Customer extends Google_Model 4027 { 4028 protected $internal_gapi_mappings = array( 4029 ); 4030 public $alternateEmail; 4031 public $customerCreationTime; 4032 public $customerDomain; 4033 public $etag; 4034 public $id; 4035 public $kind; 4036 public $language; 4037 public $phoneNumber; 4038 protected $postalAddressType = 'Google_Service_Directory_CustomerPostalAddress'; 4039 protected $postalAddressDataType = ''; 4040 4041 4042 public function setAlternateEmail($alternateEmail) 4043 { 4044 $this->alternateEmail = $alternateEmail; 4045 } 4046 public function getAlternateEmail() 4047 { 4048 return $this->alternateEmail; 4049 } 4050 public function setCustomerCreationTime($customerCreationTime) 4051 { 4052 $this->customerCreationTime = $customerCreationTime; 4053 } 4054 public function getCustomerCreationTime() 4055 { 4056 return $this->customerCreationTime; 4057 } 4058 public function setCustomerDomain($customerDomain) 4059 { 4060 $this->customerDomain = $customerDomain; 4061 } 4062 public function getCustomerDomain() 4063 { 4064 return $this->customerDomain; 4065 } 4066 public function setEtag($etag) 4067 { 4068 $this->etag = $etag; 4069 } 4070 public function getEtag() 4071 { 4072 return $this->etag; 4073 } 4074 public function setId($id) 4075 { 4076 $this->id = $id; 4077 } 4078 public function getId() 4079 { 4080 return $this->id; 4081 } 4082 public function setKind($kind) 4083 { 4084 $this->kind = $kind; 4085 } 4086 public function getKind() 4087 { 4088 return $this->kind; 4089 } 4090 public function setLanguage($language) 4091 { 4092 $this->language = $language; 4093 } 4094 public function getLanguage() 4095 { 4096 return $this->language; 4097 } 4098 public function setPhoneNumber($phoneNumber) 4099 { 4100 $this->phoneNumber = $phoneNumber; 4101 } 4102 public function getPhoneNumber() 4103 { 4104 return $this->phoneNumber; 4105 } 4106 public function setPostalAddress(Google_Service_Directory_CustomerPostalAddress $postalAddress) 4107 { 4108 $this->postalAddress = $postalAddress; 4109 } 4110 public function getPostalAddress() 4111 { 4112 return $this->postalAddress; 4113 } 4114 } 4115 4116 class Google_Service_Directory_CustomerPostalAddress extends Google_Model 4117 { 4118 protected $internal_gapi_mappings = array( 4119 ); 4120 public $addressLine1; 4121 public $addressLine2; 4122 public $addressLine3; 4123 public $contactName; 4124 public $countryCode; 4125 public $locality; 4126 public $organizationName; 4127 public $postalCode; 4128 public $region; 4129 4130 4131 public function setAddressLine1($addressLine1) 4132 { 4133 $this->addressLine1 = $addressLine1; 4134 } 4135 public function getAddressLine1() 4136 { 4137 return $this->addressLine1; 4138 } 4139 public function setAddressLine2($addressLine2) 4140 { 4141 $this->addressLine2 = $addressLine2; 4142 } 4143 public function getAddressLine2() 4144 { 4145 return $this->addressLine2; 4146 } 4147 public function setAddressLine3($addressLine3) 4148 { 4149 $this->addressLine3 = $addressLine3; 4150 } 4151 public function getAddressLine3() 4152 { 4153 return $this->addressLine3; 4154 } 4155 public function setContactName($contactName) 4156 { 4157 $this->contactName = $contactName; 4158 } 4159 public function getContactName() 4160 { 4161 return $this->contactName; 4162 } 4163 public function setCountryCode($countryCode) 4164 { 4165 $this->countryCode = $countryCode; 4166 } 4167 public function getCountryCode() 4168 { 4169 return $this->countryCode; 4170 } 4171 public function setLocality($locality) 4172 { 4173 $this->locality = $locality; 4174 } 4175 public function getLocality() 4176 { 4177 return $this->locality; 4178 } 4179 public function setOrganizationName($organizationName) 4180 { 4181 $this->organizationName = $organizationName; 4182 } 4183 public function getOrganizationName() 4184 { 4185 return $this->organizationName; 4186 } 4187 public function setPostalCode($postalCode) 4188 { 4189 $this->postalCode = $postalCode; 4190 } 4191 public function getPostalCode() 4192 { 4193 return $this->postalCode; 4194 } 4195 public function setRegion($region) 4196 { 4197 $this->region = $region; 4198 } 4199 public function getRegion() 4200 { 4201 return $this->region; 4202 } 4203 } 4204 4205 class Google_Service_Directory_DomainAlias extends Google_Model 4206 { 4207 protected $internal_gapi_mappings = array( 4208 ); 4209 public $creationTime; 4210 public $domainAliasName; 4211 public $etag; 4212 public $kind; 4213 public $parentDomainName; 4214 public $verified; 4215 4216 4217 public function setCreationTime($creationTime) 4218 { 4219 $this->creationTime = $creationTime; 4220 } 4221 public function getCreationTime() 4222 { 4223 return $this->creationTime; 4224 } 4225 public function setDomainAliasName($domainAliasName) 4226 { 4227 $this->domainAliasName = $domainAliasName; 4228 } 4229 public function getDomainAliasName() 4230 { 4231 return $this->domainAliasName; 4232 } 4233 public function setEtag($etag) 4234 { 4235 $this->etag = $etag; 4236 } 4237 public function getEtag() 4238 { 4239 return $this->etag; 4240 } 4241 public function setKind($kind) 4242 { 4243 $this->kind = $kind; 4244 } 4245 public function getKind() 4246 { 4247 return $this->kind; 4248 } 4249 public function setParentDomainName($parentDomainName) 4250 { 4251 $this->parentDomainName = $parentDomainName; 4252 } 4253 public function getParentDomainName() 4254 { 4255 return $this->parentDomainName; 4256 } 4257 public function setVerified($verified) 4258 { 4259 $this->verified = $verified; 4260 } 4261 public function getVerified() 4262 { 4263 return $this->verified; 4264 } 4265 } 4266 4267 class Google_Service_Directory_DomainAliases extends Google_Collection 4268 { 4269 protected $collection_key = 'domainAliases'; 4270 protected $internal_gapi_mappings = array( 4271 ); 4272 protected $domainAliasesType = 'Google_Service_Directory_DomainAlias'; 4273 protected $domainAliasesDataType = 'array'; 4274 public $etag; 4275 public $kind; 4276 4277 4278 public function setDomainAliases($domainAliases) 4279 { 4280 $this->domainAliases = $domainAliases; 4281 } 4282 public function getDomainAliases() 4283 { 4284 return $this->domainAliases; 4285 } 4286 public function setEtag($etag) 4287 { 4288 $this->etag = $etag; 4289 } 4290 public function getEtag() 4291 { 4292 return $this->etag; 4293 } 4294 public function setKind($kind) 4295 { 4296 $this->kind = $kind; 4297 } 4298 public function getKind() 4299 { 4300 return $this->kind; 4301 } 4302 } 4303 4304 class Google_Service_Directory_Domains extends Google_Collection 4305 { 4306 protected $collection_key = 'domainAliases'; 4307 protected $internal_gapi_mappings = array( 4308 ); 4309 public $creationTime; 4310 protected $domainAliasesType = 'Google_Service_Directory_DomainAlias'; 4311 protected $domainAliasesDataType = 'array'; 4312 public $domainName; 4313 public $etag; 4314 public $isPrimary; 4315 public $kind; 4316 public $verified; 4317 4318 4319 public function setCreationTime($creationTime) 4320 { 4321 $this->creationTime = $creationTime; 4322 } 4323 public function getCreationTime() 4324 { 4325 return $this->creationTime; 4326 } 4327 public function setDomainAliases($domainAliases) 4328 { 4329 $this->domainAliases = $domainAliases; 4330 } 4331 public function getDomainAliases() 4332 { 4333 return $this->domainAliases; 4334 } 4335 public function setDomainName($domainName) 4336 { 4337 $this->domainName = $domainName; 4338 } 4339 public function getDomainName() 4340 { 4341 return $this->domainName; 4342 } 4343 public function setEtag($etag) 4344 { 4345 $this->etag = $etag; 4346 } 4347 public function getEtag() 4348 { 4349 return $this->etag; 4350 } 4351 public function setIsPrimary($isPrimary) 4352 { 4353 $this->isPrimary = $isPrimary; 4354 } 4355 public function getIsPrimary() 4356 { 4357 return $this->isPrimary; 4358 } 4359 public function setKind($kind) 4360 { 4361 $this->kind = $kind; 4362 } 4363 public function getKind() 4364 { 4365 return $this->kind; 4366 } 4367 public function setVerified($verified) 4368 { 4369 $this->verified = $verified; 4370 } 4371 public function getVerified() 4372 { 4373 return $this->verified; 4374 } 4375 } 4376 4377 class Google_Service_Directory_Domains2 extends Google_Collection 4378 { 4379 protected $collection_key = 'domains'; 4380 protected $internal_gapi_mappings = array( 4381 ); 4382 protected $domainsType = 'Google_Service_Directory_Domains'; 4383 protected $domainsDataType = 'array'; 4384 public $etag; 4385 public $kind; 4386 4387 4388 public function setDomains($domains) 4389 { 4390 $this->domains = $domains; 4391 } 4392 public function getDomains() 4393 { 4394 return $this->domains; 4395 } 4396 public function setEtag($etag) 4397 { 4398 $this->etag = $etag; 4399 } 4400 public function getEtag() 4401 { 4402 return $this->etag; 4403 } 4404 public function setKind($kind) 4405 { 4406 $this->kind = $kind; 4407 } 4408 public function getKind() 4409 { 4410 return $this->kind; 4411 } 4412 } 4413 4414 class Google_Service_Directory_Group extends Google_Collection 4415 { 4416 protected $collection_key = 'nonEditableAliases'; 4417 protected $internal_gapi_mappings = array( 4418 ); 4419 public $adminCreated; 4420 public $aliases; 4421 public $description; 4422 public $directMembersCount; 4423 public $email; 4424 public $etag; 4425 public $id; 4426 public $kind; 4427 public $name; 4428 public $nonEditableAliases; 4429 4430 4431 public function setAdminCreated($adminCreated) 4432 { 4433 $this->adminCreated = $adminCreated; 4434 } 4435 public function getAdminCreated() 4436 { 4437 return $this->adminCreated; 4438 } 4439 public function setAliases($aliases) 4440 { 4441 $this->aliases = $aliases; 4442 } 4443 public function getAliases() 4444 { 4445 return $this->aliases; 4446 } 4447 public function setDescription($description) 4448 { 4449 $this->description = $description; 4450 } 4451 public function getDescription() 4452 { 4453 return $this->description; 4454 } 4455 public function setDirectMembersCount($directMembersCount) 4456 { 4457 $this->directMembersCount = $directMembersCount; 4458 } 4459 public function getDirectMembersCount() 4460 { 4461 return $this->directMembersCount; 4462 } 4463 public function setEmail($email) 4464 { 4465 $this->email = $email; 4466 } 4467 public function getEmail() 4468 { 4469 return $this->email; 4470 } 4471 public function setEtag($etag) 4472 { 4473 $this->etag = $etag; 4474 } 4475 public function getEtag() 4476 { 4477 return $this->etag; 4478 } 4479 public function setId($id) 4480 { 4481 $this->id = $id; 4482 } 4483 public function getId() 4484 { 4485 return $this->id; 4486 } 4487 public function setKind($kind) 4488 { 4489 $this->kind = $kind; 4490 } 4491 public function getKind() 4492 { 4493 return $this->kind; 4494 } 4495 public function setName($name) 4496 { 4497 $this->name = $name; 4498 } 4499 public function getName() 4500 { 4501 return $this->name; 4502 } 4503 public function setNonEditableAliases($nonEditableAliases) 4504 { 4505 $this->nonEditableAliases = $nonEditableAliases; 4506 } 4507 public function getNonEditableAliases() 4508 { 4509 return $this->nonEditableAliases; 4510 } 4511 } 4512 4513 class Google_Service_Directory_Groups extends Google_Collection 4514 { 4515 protected $collection_key = 'groups'; 4516 protected $internal_gapi_mappings = array( 4517 ); 4518 public $etag; 4519 protected $groupsType = 'Google_Service_Directory_Group'; 4520 protected $groupsDataType = 'array'; 4521 public $kind; 4522 public $nextPageToken; 4523 4524 4525 public function setEtag($etag) 4526 { 4527 $this->etag = $etag; 4528 } 4529 public function getEtag() 4530 { 4531 return $this->etag; 4532 } 4533 public function setGroups($groups) 4534 { 4535 $this->groups = $groups; 4536 } 4537 public function getGroups() 4538 { 4539 return $this->groups; 4540 } 4541 public function setKind($kind) 4542 { 4543 $this->kind = $kind; 4544 } 4545 public function getKind() 4546 { 4547 return $this->kind; 4548 } 4549 public function setNextPageToken($nextPageToken) 4550 { 4551 $this->nextPageToken = $nextPageToken; 4552 } 4553 public function getNextPageToken() 4554 { 4555 return $this->nextPageToken; 4556 } 4557 } 4558 4559 class Google_Service_Directory_Member extends Google_Model 4560 { 4561 protected $internal_gapi_mappings = array( 4562 ); 4563 public $email; 4564 public $etag; 4565 public $id; 4566 public $kind; 4567 public $role; 4568 public $type; 4569 4570 4571 public function setEmail($email) 4572 { 4573 $this->email = $email; 4574 } 4575 public function getEmail() 4576 { 4577 return $this->email; 4578 } 4579 public function setEtag($etag) 4580 { 4581 $this->etag = $etag; 4582 } 4583 public function getEtag() 4584 { 4585 return $this->etag; 4586 } 4587 public function setId($id) 4588 { 4589 $this->id = $id; 4590 } 4591 public function getId() 4592 { 4593 return $this->id; 4594 } 4595 public function setKind($kind) 4596 { 4597 $this->kind = $kind; 4598 } 4599 public function getKind() 4600 { 4601 return $this->kind; 4602 } 4603 public function setRole($role) 4604 { 4605 $this->role = $role; 4606 } 4607 public function getRole() 4608 { 4609 return $this->role; 4610 } 4611 public function setType($type) 4612 { 4613 $this->type = $type; 4614 } 4615 public function getType() 4616 { 4617 return $this->type; 4618 } 4619 } 4620 4621 class Google_Service_Directory_Members extends Google_Collection 4622 { 4623 protected $collection_key = 'members'; 4624 protected $internal_gapi_mappings = array( 4625 ); 4626 public $etag; 4627 public $kind; 4628 protected $membersType = 'Google_Service_Directory_Member'; 4629 protected $membersDataType = 'array'; 4630 public $nextPageToken; 4631 4632 4633 public function setEtag($etag) 4634 { 4635 $this->etag = $etag; 4636 } 4637 public function getEtag() 4638 { 4639 return $this->etag; 4640 } 4641 public function setKind($kind) 4642 { 4643 $this->kind = $kind; 4644 } 4645 public function getKind() 4646 { 4647 return $this->kind; 4648 } 4649 public function setMembers($members) 4650 { 4651 $this->members = $members; 4652 } 4653 public function getMembers() 4654 { 4655 return $this->members; 4656 } 4657 public function setNextPageToken($nextPageToken) 4658 { 4659 $this->nextPageToken = $nextPageToken; 4660 } 4661 public function getNextPageToken() 4662 { 4663 return $this->nextPageToken; 4664 } 4665 } 4666 4667 class Google_Service_Directory_MobileDevice extends Google_Collection 4668 { 4669 protected $collection_key = 'otherAccountsInfo'; 4670 protected $internal_gapi_mappings = array( 4671 ); 4672 public $adbStatus; 4673 protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications'; 4674 protected $applicationsDataType = 'array'; 4675 public $basebandVersion; 4676 public $buildNumber; 4677 public $defaultLanguage; 4678 public $developerOptionsStatus; 4679 public $deviceCompromisedStatus; 4680 public $deviceId; 4681 public $email; 4682 public $etag; 4683 public $firstSync; 4684 public $hardwareId; 4685 public $imei; 4686 public $kernelVersion; 4687 public $kind; 4688 public $lastSync; 4689 public $managedAccountIsOnOwnerProfile; 4690 public $meid; 4691 public $model; 4692 public $name; 4693 public $networkOperator; 4694 public $os; 4695 public $otherAccountsInfo; 4696 public $resourceId; 4697 public $serialNumber; 4698 public $status; 4699 public $supportsWorkProfile; 4700 public $type; 4701 public $unknownSourcesStatus; 4702 public $userAgent; 4703 public $wifiMacAddress; 4704 4705 4706 public function setAdbStatus($adbStatus) 4707 { 4708 $this->adbStatus = $adbStatus; 4709 } 4710 public function getAdbStatus() 4711 { 4712 return $this->adbStatus; 4713 } 4714 public function setApplications($applications) 4715 { 4716 $this->applications = $applications; 4717 } 4718 public function getApplications() 4719 { 4720 return $this->applications; 4721 } 4722 public function setBasebandVersion($basebandVersion) 4723 { 4724 $this->basebandVersion = $basebandVersion; 4725 } 4726 public function getBasebandVersion() 4727 { 4728 return $this->basebandVersion; 4729 } 4730 public function setBuildNumber($buildNumber) 4731 { 4732 $this->buildNumber = $buildNumber; 4733 } 4734 public function getBuildNumber() 4735 { 4736 return $this->buildNumber; 4737 } 4738 public function setDefaultLanguage($defaultLanguage) 4739 { 4740 $this->defaultLanguage = $defaultLanguage; 4741 } 4742 public function getDefaultLanguage() 4743 { 4744 return $this->defaultLanguage; 4745 } 4746 public function setDeveloperOptionsStatus($developerOptionsStatus) 4747 { 4748 $this->developerOptionsStatus = $developerOptionsStatus; 4749 } 4750 public function getDeveloperOptionsStatus() 4751 { 4752 return $this->developerOptionsStatus; 4753 } 4754 public function setDeviceCompromisedStatus($deviceCompromisedStatus) 4755 { 4756 $this->deviceCompromisedStatus = $deviceCompromisedStatus; 4757 } 4758 public function getDeviceCompromisedStatus() 4759 { 4760 return $this->deviceCompromisedStatus; 4761 } 4762 public function setDeviceId($deviceId) 4763 { 4764 $this->deviceId = $deviceId; 4765 } 4766 public function getDeviceId() 4767 { 4768 return $this->deviceId; 4769 } 4770 public function setEmail($email) 4771 { 4772 $this->email = $email; 4773 } 4774 public function getEmail() 4775 { 4776 return $this->email; 4777 } 4778 public function setEtag($etag) 4779 { 4780 $this->etag = $etag; 4781 } 4782 public function getEtag() 4783 { 4784 return $this->etag; 4785 } 4786 public function setFirstSync($firstSync) 4787 { 4788 $this->firstSync = $firstSync; 4789 } 4790 public function getFirstSync() 4791 { 4792 return $this->firstSync; 4793 } 4794 public function setHardwareId($hardwareId) 4795 { 4796 $this->hardwareId = $hardwareId; 4797 } 4798 public function getHardwareId() 4799 { 4800 return $this->hardwareId; 4801 } 4802 public function setImei($imei) 4803 { 4804 $this->imei = $imei; 4805 } 4806 public function getImei() 4807 { 4808 return $this->imei; 4809 } 4810 public function setKernelVersion($kernelVersion) 4811 { 4812 $this->kernelVersion = $kernelVersion; 4813 } 4814 public function getKernelVersion() 4815 { 4816 return $this->kernelVersion; 4817 } 4818 public function setKind($kind) 4819 { 4820 $this->kind = $kind; 4821 } 4822 public function getKind() 4823 { 4824 return $this->kind; 4825 } 4826 public function setLastSync($lastSync) 4827 { 4828 $this->lastSync = $lastSync; 4829 } 4830 public function getLastSync() 4831 { 4832 return $this->lastSync; 4833 } 4834 public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile) 4835 { 4836 $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile; 4837 } 4838 public function getManagedAccountIsOnOwnerProfile() 4839 { 4840 return $this->managedAccountIsOnOwnerProfile; 4841 } 4842 public function setMeid($meid) 4843 { 4844 $this->meid = $meid; 4845 } 4846 public function getMeid() 4847 { 4848 return $this->meid; 4849 } 4850 public function setModel($model) 4851 { 4852 $this->model = $model; 4853 } 4854 public function getModel() 4855 { 4856 return $this->model; 4857 } 4858 public function setName($name) 4859 { 4860 $this->name = $name; 4861 } 4862 public function getName() 4863 { 4864 return $this->name; 4865 } 4866 public function setNetworkOperator($networkOperator) 4867 { 4868 $this->networkOperator = $networkOperator; 4869 } 4870 public function getNetworkOperator() 4871 { 4872 return $this->networkOperator; 4873 } 4874 public function setOs($os) 4875 { 4876 $this->os = $os; 4877 } 4878 public function getOs() 4879 { 4880 return $this->os; 4881 } 4882 public function setOtherAccountsInfo($otherAccountsInfo) 4883 { 4884 $this->otherAccountsInfo = $otherAccountsInfo; 4885 } 4886 public function getOtherAccountsInfo() 4887 { 4888 return $this->otherAccountsInfo; 4889 } 4890 public function setResourceId($resourceId) 4891 { 4892 $this->resourceId = $resourceId; 4893 } 4894 public function getResourceId() 4895 { 4896 return $this->resourceId; 4897 } 4898 public function setSerialNumber($serialNumber) 4899 { 4900 $this->serialNumber = $serialNumber; 4901 } 4902 public function getSerialNumber() 4903 { 4904 return $this->serialNumber; 4905 } 4906 public function setStatus($status) 4907 { 4908 $this->status = $status; 4909 } 4910 public function getStatus() 4911 { 4912 return $this->status; 4913 } 4914 public function setSupportsWorkProfile($supportsWorkProfile) 4915 { 4916 $this->supportsWorkProfile = $supportsWorkProfile; 4917 } 4918 public function getSupportsWorkProfile() 4919 { 4920 return $this->supportsWorkProfile; 4921 } 4922 public function setType($type) 4923 { 4924 $this->type = $type; 4925 } 4926 public function getType() 4927 { 4928 return $this->type; 4929 } 4930 public function setUnknownSourcesStatus($unknownSourcesStatus) 4931 { 4932 $this->unknownSourcesStatus = $unknownSourcesStatus; 4933 } 4934 public function getUnknownSourcesStatus() 4935 { 4936 return $this->unknownSourcesStatus; 4937 } 4938 public function setUserAgent($userAgent) 4939 { 4940 $this->userAgent = $userAgent; 4941 } 4942 public function getUserAgent() 4943 { 4944 return $this->userAgent; 4945 } 4946 public function setWifiMacAddress($wifiMacAddress) 4947 { 4948 $this->wifiMacAddress = $wifiMacAddress; 4949 } 4950 public function getWifiMacAddress() 4951 { 4952 return $this->wifiMacAddress; 4953 } 4954 } 4955 4956 class Google_Service_Directory_MobileDeviceAction extends Google_Model 4957 { 4958 protected $internal_gapi_mappings = array( 4959 ); 4960 public $action; 4961 4962 4963 public function setAction($action) 4964 { 4965 $this->action = $action; 4966 } 4967 public function getAction() 4968 { 4969 return $this->action; 4970 } 4971 } 4972 4973 class Google_Service_Directory_MobileDeviceApplications extends Google_Collection 4974 { 4975 protected $collection_key = 'permission'; 4976 protected $internal_gapi_mappings = array( 4977 ); 4978 public $displayName; 4979 public $packageName; 4980 public $permission; 4981 public $versionCode; 4982 public $versionName; 4983 4984 4985 public function setDisplayName($displayName) 4986 { 4987 $this->displayName = $displayName; 4988 } 4989 public function getDisplayName() 4990 { 4991 return $this->displayName; 4992 } 4993 public function setPackageName($packageName) 4994 { 4995 $this->packageName = $packageName; 4996 } 4997 public function getPackageName() 4998 { 4999 return $this->packageName; 5000 } 5001 public function setPermission($permission) 5002 { 5003 $this->permission = $permission; 5004 } 5005 public function getPermission() 5006 { 5007 return $this->permission; 5008 } 5009 public function setVersionCode($versionCode) 5010 { 5011 $this->versionCode = $versionCode; 5012 } 5013 public function getVersionCode() 5014 { 5015 return $this->versionCode; 5016 } 5017 public function setVersionName($versionName) 5018 { 5019 $this->versionName = $versionName; 5020 } 5021 public function getVersionName() 5022 { 5023 return $this->versionName; 5024 } 5025 } 5026 5027 class Google_Service_Directory_MobileDevices extends Google_Collection 5028 { 5029 protected $collection_key = 'mobiledevices'; 5030 protected $internal_gapi_mappings = array( 5031 ); 5032 public $etag; 5033 public $kind; 5034 protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice'; 5035 protected $mobiledevicesDataType = 'array'; 5036 public $nextPageToken; 5037 5038 5039 public function setEtag($etag) 5040 { 5041 $this->etag = $etag; 5042 } 5043 public function getEtag() 5044 { 5045 return $this->etag; 5046 } 5047 public function setKind($kind) 5048 { 5049 $this->kind = $kind; 5050 } 5051 public function getKind() 5052 { 5053 return $this->kind; 5054 } 5055 public function setMobiledevices($mobiledevices) 5056 { 5057 $this->mobiledevices = $mobiledevices; 5058 } 5059 public function getMobiledevices() 5060 { 5061 return $this->mobiledevices; 5062 } 5063 public function setNextPageToken($nextPageToken) 5064 { 5065 $this->nextPageToken = $nextPageToken; 5066 } 5067 public function getNextPageToken() 5068 { 5069 return $this->nextPageToken; 5070 } 5071 } 5072 5073 class Google_Service_Directory_Notification extends Google_Model 5074 { 5075 protected $internal_gapi_mappings = array( 5076 ); 5077 public $body; 5078 public $etag; 5079 public $fromAddress; 5080 public $isUnread; 5081 public $kind; 5082 public $notificationId; 5083 public $sendTime; 5084 public $subject; 5085 5086 5087 public function setBody($body) 5088 { 5089 $this->body = $body; 5090 } 5091 public function getBody() 5092 { 5093 return $this->body; 5094 } 5095 public function setEtag($etag) 5096 { 5097 $this->etag = $etag; 5098 } 5099 public function getEtag() 5100 { 5101 return $this->etag; 5102 } 5103 public function setFromAddress($fromAddress) 5104 { 5105 $this->fromAddress = $fromAddress; 5106 } 5107 public function getFromAddress() 5108 { 5109 return $this->fromAddress; 5110 } 5111 public function setIsUnread($isUnread) 5112 { 5113 $this->isUnread = $isUnread; 5114 } 5115 public function getIsUnread() 5116 { 5117 return $this->isUnread; 5118 } 5119 public function setKind($kind) 5120 { 5121 $this->kind = $kind; 5122 } 5123 public function getKind() 5124 { 5125 return $this->kind; 5126 } 5127 public function setNotificationId($notificationId) 5128 { 5129 $this->notificationId = $notificationId; 5130 } 5131 public function getNotificationId() 5132 { 5133 return $this->notificationId; 5134 } 5135 public function setSendTime($sendTime) 5136 { 5137 $this->sendTime = $sendTime; 5138 } 5139 public function getSendTime() 5140 { 5141 return $this->sendTime; 5142 } 5143 public function setSubject($subject) 5144 { 5145 $this->subject = $subject; 5146 } 5147 public function getSubject() 5148 { 5149 return $this->subject; 5150 } 5151 } 5152 5153 class Google_Service_Directory_Notifications extends Google_Collection 5154 { 5155 protected $collection_key = 'items'; 5156 protected $internal_gapi_mappings = array( 5157 ); 5158 public $etag; 5159 protected $itemsType = 'Google_Service_Directory_Notification'; 5160 protected $itemsDataType = 'array'; 5161 public $kind; 5162 public $nextPageToken; 5163 public $unreadNotificationsCount; 5164 5165 5166 public function setEtag($etag) 5167 { 5168 $this->etag = $etag; 5169 } 5170 public function getEtag() 5171 { 5172 return $this->etag; 5173 } 5174 public function setItems($items) 5175 { 5176 $this->items = $items; 5177 } 5178 public function getItems() 5179 { 5180 return $this->items; 5181 } 5182 public function setKind($kind) 5183 { 5184 $this->kind = $kind; 5185 } 5186 public function getKind() 5187 { 5188 return $this->kind; 5189 } 5190 public function setNextPageToken($nextPageToken) 5191 { 5192 $this->nextPageToken = $nextPageToken; 5193 } 5194 public function getNextPageToken() 5195 { 5196 return $this->nextPageToken; 5197 } 5198 public function setUnreadNotificationsCount($unreadNotificationsCount) 5199 { 5200 $this->unreadNotificationsCount = $unreadNotificationsCount; 5201 } 5202 public function getUnreadNotificationsCount() 5203 { 5204 return $this->unreadNotificationsCount; 5205 } 5206 } 5207 5208 class Google_Service_Directory_OrgUnit extends Google_Model 5209 { 5210 protected $internal_gapi_mappings = array( 5211 ); 5212 public $blockInheritance; 5213 public $description; 5214 public $etag; 5215 public $kind; 5216 public $name; 5217 public $orgUnitId; 5218 public $orgUnitPath; 5219 public $parentOrgUnitId; 5220 public $parentOrgUnitPath; 5221 5222 5223 public function setBlockInheritance($blockInheritance) 5224 { 5225 $this->blockInheritance = $blockInheritance; 5226 } 5227 public function getBlockInheritance() 5228 { 5229 return $this->blockInheritance; 5230 } 5231 public function setDescription($description) 5232 { 5233 $this->description = $description; 5234 } 5235 public function getDescription() 5236 { 5237 return $this->description; 5238 } 5239 public function setEtag($etag) 5240 { 5241 $this->etag = $etag; 5242 } 5243 public function getEtag() 5244 { 5245 return $this->etag; 5246 } 5247 public function setKind($kind) 5248 { 5249 $this->kind = $kind; 5250 } 5251 public function getKind() 5252 { 5253 return $this->kind; 5254 } 5255 public function setName($name) 5256 { 5257 $this->name = $name; 5258 } 5259 public function getName() 5260 { 5261 return $this->name; 5262 } 5263 public function setOrgUnitId($orgUnitId) 5264 { 5265 $this->orgUnitId = $orgUnitId; 5266 } 5267 public function getOrgUnitId() 5268 { 5269 return $this->orgUnitId; 5270 } 5271 public function setOrgUnitPath($orgUnitPath) 5272 { 5273 $this->orgUnitPath = $orgUnitPath; 5274 } 5275 public function getOrgUnitPath() 5276 { 5277 return $this->orgUnitPath; 5278 } 5279 public function setParentOrgUnitId($parentOrgUnitId) 5280 { 5281 $this->parentOrgUnitId = $parentOrgUnitId; 5282 } 5283 public function getParentOrgUnitId() 5284 { 5285 return $this->parentOrgUnitId; 5286 } 5287 public function setParentOrgUnitPath($parentOrgUnitPath) 5288 { 5289 $this->parentOrgUnitPath = $parentOrgUnitPath; 5290 } 5291 public function getParentOrgUnitPath() 5292 { 5293 return $this->parentOrgUnitPath; 5294 } 5295 } 5296 5297 class Google_Service_Directory_OrgUnits extends Google_Collection 5298 { 5299 protected $collection_key = 'organizationUnits'; 5300 protected $internal_gapi_mappings = array( 5301 ); 5302 public $etag; 5303 public $kind; 5304 protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit'; 5305 protected $organizationUnitsDataType = 'array'; 5306 5307 5308 public function setEtag($etag) 5309 { 5310 $this->etag = $etag; 5311 } 5312 public function getEtag() 5313 { 5314 return $this->etag; 5315 } 5316 public function setKind($kind) 5317 { 5318 $this->kind = $kind; 5319 } 5320 public function getKind() 5321 { 5322 return $this->kind; 5323 } 5324 public function setOrganizationUnits($organizationUnits) 5325 { 5326 $this->organizationUnits = $organizationUnits; 5327 } 5328 public function getOrganizationUnits() 5329 { 5330 return $this->organizationUnits; 5331 } 5332 } 5333 5334 class Google_Service_Directory_Privilege extends Google_Collection 5335 { 5336 protected $collection_key = 'childPrivileges'; 5337 protected $internal_gapi_mappings = array( 5338 ); 5339 protected $childPrivilegesType = 'Google_Service_Directory_Privilege'; 5340 protected $childPrivilegesDataType = 'array'; 5341 public $etag; 5342 public $isOuScopable; 5343 public $kind; 5344 public $privilegeName; 5345 public $serviceId; 5346 public $serviceName; 5347 5348 5349 public function setChildPrivileges($childPrivileges) 5350 { 5351 $this->childPrivileges = $childPrivileges; 5352 } 5353 public function getChildPrivileges() 5354 { 5355 return $this->childPrivileges; 5356 } 5357 public function setEtag($etag) 5358 { 5359 $this->etag = $etag; 5360 } 5361 public function getEtag() 5362 { 5363 return $this->etag; 5364 } 5365 public function setIsOuScopable($isOuScopable) 5366 { 5367 $this->isOuScopable = $isOuScopable; 5368 } 5369 public function getIsOuScopable() 5370 { 5371 return $this->isOuScopable; 5372 } 5373 public function setKind($kind) 5374 { 5375 $this->kind = $kind; 5376 } 5377 public function getKind() 5378 { 5379 return $this->kind; 5380 } 5381 public function setPrivilegeName($privilegeName) 5382 { 5383 $this->privilegeName = $privilegeName; 5384 } 5385 public function getPrivilegeName() 5386 { 5387 return $this->privilegeName; 5388 } 5389 public function setServiceId($serviceId) 5390 { 5391 $this->serviceId = $serviceId; 5392 } 5393 public function getServiceId() 5394 { 5395 return $this->serviceId; 5396 } 5397 public function setServiceName($serviceName) 5398 { 5399 $this->serviceName = $serviceName; 5400 } 5401 public function getServiceName() 5402 { 5403 return $this->serviceName; 5404 } 5405 } 5406 5407 class Google_Service_Directory_Privileges extends Google_Collection 5408 { 5409 protected $collection_key = 'items'; 5410 protected $internal_gapi_mappings = array( 5411 ); 5412 public $etag; 5413 protected $itemsType = 'Google_Service_Directory_Privilege'; 5414 protected $itemsDataType = 'array'; 5415 public $kind; 5416 5417 5418 public function setEtag($etag) 5419 { 5420 $this->etag = $etag; 5421 } 5422 public function getEtag() 5423 { 5424 return $this->etag; 5425 } 5426 public function setItems($items) 5427 { 5428 $this->items = $items; 5429 } 5430 public function getItems() 5431 { 5432 return $this->items; 5433 } 5434 public function setKind($kind) 5435 { 5436 $this->kind = $kind; 5437 } 5438 public function getKind() 5439 { 5440 return $this->kind; 5441 } 5442 } 5443 5444 class Google_Service_Directory_Role extends Google_Collection 5445 { 5446 protected $collection_key = 'rolePrivileges'; 5447 protected $internal_gapi_mappings = array( 5448 ); 5449 public $etag; 5450 public $isSuperAdminRole; 5451 public $isSystemRole; 5452 public $kind; 5453 public $roleDescription; 5454 public $roleId; 5455 public $roleName; 5456 protected $rolePrivilegesType = 'Google_Service_Directory_RoleRolePrivileges'; 5457 protected $rolePrivilegesDataType = 'array'; 5458 5459 5460 public function setEtag($etag) 5461 { 5462 $this->etag = $etag; 5463 } 5464 public function getEtag() 5465 { 5466 return $this->etag; 5467 } 5468 public function setIsSuperAdminRole($isSuperAdminRole) 5469 { 5470 $this->isSuperAdminRole = $isSuperAdminRole; 5471 } 5472 public function getIsSuperAdminRole() 5473 { 5474 return $this->isSuperAdminRole; 5475 } 5476 public function setIsSystemRole($isSystemRole) 5477 { 5478 $this->isSystemRole = $isSystemRole; 5479 } 5480 public function getIsSystemRole() 5481 { 5482 return $this->isSystemRole; 5483 } 5484 public function setKind($kind) 5485 { 5486 $this->kind = $kind; 5487 } 5488 public function getKind() 5489 { 5490 return $this->kind; 5491 } 5492 public function setRoleDescription($roleDescription) 5493 { 5494 $this->roleDescription = $roleDescription; 5495 } 5496 public function getRoleDescription() 5497 { 5498 return $this->roleDescription; 5499 } 5500 public function setRoleId($roleId) 5501 { 5502 $this->roleId = $roleId; 5503 } 5504 public function getRoleId() 5505 { 5506 return $this->roleId; 5507 } 5508 public function setRoleName($roleName) 5509 { 5510 $this->roleName = $roleName; 5511 } 5512 public function getRoleName() 5513 { 5514 return $this->roleName; 5515 } 5516 public function setRolePrivileges($rolePrivileges) 5517 { 5518 $this->rolePrivileges = $rolePrivileges; 5519 } 5520 public function getRolePrivileges() 5521 { 5522 return $this->rolePrivileges; 5523 } 5524 } 5525 5526 class Google_Service_Directory_RoleAssignment extends Google_Model 5527 { 5528 protected $internal_gapi_mappings = array( 5529 ); 5530 public