Нет описания

Groupssettings.php 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Groupssettings (v1).
  19. *
  20. * <p>
  21. * Lets you manage permission levels and related settings of a group.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/google-apps/groups-settings/get_started" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_Groupssettings extends Google_Service
  31. {
  32. /** View and manage the settings of a G Suite group. */
  33. const APPS_GROUPS_SETTINGS =
  34. "https://www.googleapis.com/auth/apps.groups.settings";
  35. public $groups;
  36. /**
  37. * Constructs the internal representation of the Groupssettings service.
  38. *
  39. * @param Google_Client $client
  40. */
  41. public function __construct(Google_Client $client)
  42. {
  43. parent::__construct($client);
  44. $this->rootUrl = 'https://www.googleapis.com/';
  45. $this->servicePath = 'groups/v1/groups/';
  46. $this->version = 'v1';
  47. $this->serviceName = 'groupssettings';
  48. $this->groups = new Google_Service_Groupssettings_Resource_Groups(
  49. $this,
  50. $this->serviceName,
  51. 'groups',
  52. array(
  53. 'methods' => array(
  54. 'get' => array(
  55. 'path' => '{groupUniqueId}',
  56. 'httpMethod' => 'GET',
  57. 'parameters' => array(
  58. 'groupUniqueId' => array(
  59. 'location' => 'path',
  60. 'type' => 'string',
  61. 'required' => true,
  62. ),
  63. ),
  64. ),'patch' => array(
  65. 'path' => '{groupUniqueId}',
  66. 'httpMethod' => 'PATCH',
  67. 'parameters' => array(
  68. 'groupUniqueId' => array(
  69. 'location' => 'path',
  70. 'type' => 'string',
  71. 'required' => true,
  72. ),
  73. ),
  74. ),'update' => array(
  75. 'path' => '{groupUniqueId}',
  76. 'httpMethod' => 'PUT',
  77. 'parameters' => array(
  78. 'groupUniqueId' => array(
  79. 'location' => 'path',
  80. 'type' => 'string',
  81. 'required' => true,
  82. ),
  83. ),
  84. ),
  85. )
  86. )
  87. );
  88. }
  89. }