PolicyAnalyzer.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 PolicyAnalyzer (v1).
  21. *
  22. * <p>
  23. </p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://www.google.com" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class PolicyAnalyzer 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 $folders_locations_activityTypes_activities;
  38. public $organizations_locations_activityTypes_activities;
  39. public $projects_locations_activityTypes_activities;
  40. public $rootUrlTemplate;
  41. /**
  42. * Constructs the internal representation of the PolicyAnalyzer service.
  43. *
  44. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  45. * config array to pass to a new Client instance.
  46. * @param string $rootUrl The root URL used for requests to the service.
  47. */
  48. public function __construct($clientOrConfig = [], $rootUrl = null)
  49. {
  50. parent::__construct($clientOrConfig);
  51. $this->rootUrl = $rootUrl ?: 'https://policyanalyzer.googleapis.com/';
  52. $this->rootUrlTemplate = $rootUrl ?: 'https://policyanalyzer.UNIVERSE_DOMAIN/';
  53. $this->servicePath = '';
  54. $this->batchPath = 'batch';
  55. $this->version = 'v1';
  56. $this->serviceName = 'policyanalyzer';
  57. $this->folders_locations_activityTypes_activities = new PolicyAnalyzer\Resource\FoldersLocationsActivityTypesActivities(
  58. $this,
  59. $this->serviceName,
  60. 'activities',
  61. [
  62. 'methods' => [
  63. 'query' => [
  64. 'path' => 'v1/{+parent}/activities:query',
  65. 'httpMethod' => 'GET',
  66. 'parameters' => [
  67. 'parent' => [
  68. 'location' => 'path',
  69. 'type' => 'string',
  70. 'required' => true,
  71. ],
  72. 'filter' => [
  73. 'location' => 'query',
  74. 'type' => 'string',
  75. ],
  76. 'pageSize' => [
  77. 'location' => 'query',
  78. 'type' => 'integer',
  79. ],
  80. 'pageToken' => [
  81. 'location' => 'query',
  82. 'type' => 'string',
  83. ],
  84. ],
  85. ],
  86. ]
  87. ]
  88. );
  89. $this->organizations_locations_activityTypes_activities = new PolicyAnalyzer\Resource\OrganizationsLocationsActivityTypesActivities(
  90. $this,
  91. $this->serviceName,
  92. 'activities',
  93. [
  94. 'methods' => [
  95. 'query' => [
  96. 'path' => 'v1/{+parent}/activities:query',
  97. 'httpMethod' => 'GET',
  98. 'parameters' => [
  99. 'parent' => [
  100. 'location' => 'path',
  101. 'type' => 'string',
  102. 'required' => true,
  103. ],
  104. 'filter' => [
  105. 'location' => 'query',
  106. 'type' => 'string',
  107. ],
  108. 'pageSize' => [
  109. 'location' => 'query',
  110. 'type' => 'integer',
  111. ],
  112. 'pageToken' => [
  113. 'location' => 'query',
  114. 'type' => 'string',
  115. ],
  116. ],
  117. ],
  118. ]
  119. ]
  120. );
  121. $this->projects_locations_activityTypes_activities = new PolicyAnalyzer\Resource\ProjectsLocationsActivityTypesActivities(
  122. $this,
  123. $this->serviceName,
  124. 'activities',
  125. [
  126. 'methods' => [
  127. 'query' => [
  128. 'path' => 'v1/{+parent}/activities:query',
  129. 'httpMethod' => 'GET',
  130. 'parameters' => [
  131. 'parent' => [
  132. 'location' => 'path',
  133. 'type' => 'string',
  134. 'required' => true,
  135. ],
  136. 'filter' => [
  137. 'location' => 'query',
  138. 'type' => 'string',
  139. ],
  140. 'pageSize' => [
  141. 'location' => 'query',
  142. 'type' => 'integer',
  143. ],
  144. 'pageToken' => [
  145. 'location' => 'query',
  146. 'type' => 'string',
  147. ],
  148. ],
  149. ],
  150. ]
  151. ]
  152. );
  153. }
  154. }
  155. // Adding a class alias for backwards compatibility with the previous class name.
  156. class_alias(PolicyAnalyzer::class, 'Google_Service_PolicyAnalyzer');