PolicyTroubleshooter.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. namespace Google\Service;
  18. use Google\Client;
  19. /**
  20. * Service definition for PolicyTroubleshooter (v3).
  21. *
  22. * <p>
  23. </p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://cloud.google.com/iam/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class PolicyTroubleshooter extends \Google\Service
  33. {
  34. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  35. const CLOUD_PLATFORM =
  36. "https://www.googleapis.com/auth/cloud-platform";
  37. public $iam;
  38. public $rootUrlTemplate;
  39. /**
  40. * Constructs the internal representation of the PolicyTroubleshooter service.
  41. *
  42. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  43. * config array to pass to a new Client instance.
  44. * @param string $rootUrl The root URL used for requests to the service.
  45. */
  46. public function __construct($clientOrConfig = [], $rootUrl = null)
  47. {
  48. parent::__construct($clientOrConfig);
  49. $this->rootUrl = $rootUrl ?: 'https://policytroubleshooter.googleapis.com/';
  50. $this->rootUrlTemplate = $rootUrl ?: 'https://policytroubleshooter.UNIVERSE_DOMAIN/';
  51. $this->servicePath = '';
  52. $this->batchPath = 'batch';
  53. $this->version = 'v3';
  54. $this->serviceName = 'policytroubleshooter';
  55. $this->iam = new PolicyTroubleshooter\Resource\Iam(
  56. $this,
  57. $this->serviceName,
  58. 'iam',
  59. [
  60. 'methods' => [
  61. 'troubleshoot' => [
  62. 'path' => 'v3/iam:troubleshoot',
  63. 'httpMethod' => 'POST',
  64. 'parameters' => [],
  65. ],
  66. ]
  67. ]
  68. );
  69. }
  70. }
  71. // Adding a class alias for backwards compatibility with the previous class name.
  72. class_alias(PolicyTroubleshooter::class, 'Google_Service_PolicyTroubleshooter');