暂无描述

CloudComposer.php 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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 CloudComposer (v1beta1).
  19. *
  20. * <p>
  21. * Manages Apache Airflow environments on Google Cloud Platform.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://cloud.google.com/composer/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_CloudComposer extends Google_Service
  31. {
  32. /** View and manage your data across Google Cloud Platform services. */
  33. const CLOUD_PLATFORM =
  34. "https://www.googleapis.com/auth/cloud-platform";
  35. public $projects_locations_environments;
  36. public $projects_locations_operations;
  37. /**
  38. * Constructs the internal representation of the CloudComposer service.
  39. *
  40. * @param Google_Client $client
  41. */
  42. public function __construct(Google_Client $client)
  43. {
  44. parent::__construct($client);
  45. $this->rootUrl = 'https://composer.googleapis.com/';
  46. $this->servicePath = '';
  47. $this->version = 'v1beta1';
  48. $this->serviceName = 'composer';
  49. $this->projects_locations_environments = new Google_Service_CloudComposer_Resource_ProjectsLocationsEnvironments(
  50. $this,
  51. $this->serviceName,
  52. 'environments',
  53. array(
  54. 'methods' => array(
  55. 'create' => array(
  56. 'path' => 'v1beta1/{+parent}/environments',
  57. 'httpMethod' => 'POST',
  58. 'parameters' => array(
  59. 'parent' => array(
  60. 'location' => 'path',
  61. 'type' => 'string',
  62. 'required' => true,
  63. ),
  64. ),
  65. ),'delete' => array(
  66. 'path' => 'v1beta1/{+name}',
  67. 'httpMethod' => 'DELETE',
  68. 'parameters' => array(
  69. 'name' => array(
  70. 'location' => 'path',
  71. 'type' => 'string',
  72. 'required' => true,
  73. ),
  74. ),
  75. ),'get' => array(
  76. 'path' => 'v1beta1/{+name}',
  77. 'httpMethod' => 'GET',
  78. 'parameters' => array(
  79. 'name' => array(
  80. 'location' => 'path',
  81. 'type' => 'string',
  82. 'required' => true,
  83. ),
  84. ),
  85. ),'list' => array(
  86. 'path' => 'v1beta1/{+parent}/environments',
  87. 'httpMethod' => 'GET',
  88. 'parameters' => array(
  89. 'parent' => array(
  90. 'location' => 'path',
  91. 'type' => 'string',
  92. 'required' => true,
  93. ),
  94. 'pageToken' => array(
  95. 'location' => 'query',
  96. 'type' => 'string',
  97. ),
  98. 'pageSize' => array(
  99. 'location' => 'query',
  100. 'type' => 'integer',
  101. ),
  102. ),
  103. ),'patch' => array(
  104. 'path' => 'v1beta1/{+name}',
  105. 'httpMethod' => 'PATCH',
  106. 'parameters' => array(
  107. 'name' => array(
  108. 'location' => 'path',
  109. 'type' => 'string',
  110. 'required' => true,
  111. ),
  112. 'updateMask' => array(
  113. 'location' => 'query',
  114. 'type' => 'string',
  115. ),
  116. ),
  117. ),
  118. )
  119. )
  120. );
  121. $this->projects_locations_operations = new Google_Service_CloudComposer_Resource_ProjectsLocationsOperations(
  122. $this,
  123. $this->serviceName,
  124. 'operations',
  125. array(
  126. 'methods' => array(
  127. 'delete' => array(
  128. 'path' => 'v1beta1/{+name}',
  129. 'httpMethod' => 'DELETE',
  130. 'parameters' => array(
  131. 'name' => array(
  132. 'location' => 'path',
  133. 'type' => 'string',
  134. 'required' => true,
  135. ),
  136. ),
  137. ),'get' => array(
  138. 'path' => 'v1beta1/{+name}',
  139. 'httpMethod' => 'GET',
  140. 'parameters' => array(
  141. 'name' => array(
  142. 'location' => 'path',
  143. 'type' => 'string',
  144. 'required' => true,
  145. ),
  146. ),
  147. ),'list' => array(
  148. 'path' => 'v1beta1/{+name}/operations',
  149. 'httpMethod' => 'GET',
  150. 'parameters' => array(
  151. 'name' => array(
  152. 'location' => 'path',
  153. 'type' => 'string',
  154. 'required' => true,
  155. ),
  156. 'filter' => array(
  157. 'location' => 'query',
  158. 'type' => 'string',
  159. ),
  160. 'pageToken' => array(
  161. 'location' => 'query',
  162. 'type' => 'string',
  163. ),
  164. 'pageSize' => array(
  165. 'location' => 'query',
  166. 'type' => 'integer',
  167. ),
  168. ),
  169. ),
  170. )
  171. )
  172. );
  173. }
  174. }