CloudLifeSciences.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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 CloudLifeSciences (v2beta).
  21. *
  22. * <p>
  23. * Cloud Life Sciences is a suite of services and tools for managing,
  24. * processing, and transforming life sciences data.</p>
  25. *
  26. * <p>
  27. * For more information about this service, see the API
  28. * <a href="https://cloud.google.com/life-sciences" target="_blank">Documentation</a>
  29. * </p>
  30. *
  31. * @author Google, Inc.
  32. */
  33. class CloudLifeSciences extends \Google\Service
  34. {
  35. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  36. const CLOUD_PLATFORM =
  37. "https://www.googleapis.com/auth/cloud-platform";
  38. public $projects_locations;
  39. public $projects_locations_operations;
  40. public $projects_locations_pipelines;
  41. public $rootUrlTemplate;
  42. /**
  43. * Constructs the internal representation of the CloudLifeSciences service.
  44. *
  45. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  46. * config array to pass to a new Client instance.
  47. * @param string $rootUrl The root URL used for requests to the service.
  48. */
  49. public function __construct($clientOrConfig = [], $rootUrl = null)
  50. {
  51. parent::__construct($clientOrConfig);
  52. $this->rootUrl = $rootUrl ?: 'https://lifesciences.googleapis.com/';
  53. $this->rootUrlTemplate = $rootUrl ?: 'https://lifesciences.UNIVERSE_DOMAIN/';
  54. $this->servicePath = '';
  55. $this->batchPath = 'batch';
  56. $this->version = 'v2beta';
  57. $this->serviceName = 'lifesciences';
  58. $this->projects_locations = new CloudLifeSciences\Resource\ProjectsLocations(
  59. $this,
  60. $this->serviceName,
  61. 'locations',
  62. [
  63. 'methods' => [
  64. 'get' => [
  65. 'path' => 'v2beta/{+name}',
  66. 'httpMethod' => 'GET',
  67. 'parameters' => [
  68. 'name' => [
  69. 'location' => 'path',
  70. 'type' => 'string',
  71. 'required' => true,
  72. ],
  73. ],
  74. ],'list' => [
  75. 'path' => 'v2beta/{+name}/locations',
  76. 'httpMethod' => 'GET',
  77. 'parameters' => [
  78. 'name' => [
  79. 'location' => 'path',
  80. 'type' => 'string',
  81. 'required' => true,
  82. ],
  83. 'extraLocationTypes' => [
  84. 'location' => 'query',
  85. 'type' => 'string',
  86. 'repeated' => true,
  87. ],
  88. 'filter' => [
  89. 'location' => 'query',
  90. 'type' => 'string',
  91. ],
  92. 'pageSize' => [
  93. 'location' => 'query',
  94. 'type' => 'integer',
  95. ],
  96. 'pageToken' => [
  97. 'location' => 'query',
  98. 'type' => 'string',
  99. ],
  100. ],
  101. ],
  102. ]
  103. ]
  104. );
  105. $this->projects_locations_operations = new CloudLifeSciences\Resource\ProjectsLocationsOperations(
  106. $this,
  107. $this->serviceName,
  108. 'operations',
  109. [
  110. 'methods' => [
  111. 'cancel' => [
  112. 'path' => 'v2beta/{+name}:cancel',
  113. 'httpMethod' => 'POST',
  114. 'parameters' => [
  115. 'name' => [
  116. 'location' => 'path',
  117. 'type' => 'string',
  118. 'required' => true,
  119. ],
  120. ],
  121. ],'get' => [
  122. 'path' => 'v2beta/{+name}',
  123. 'httpMethod' => 'GET',
  124. 'parameters' => [
  125. 'name' => [
  126. 'location' => 'path',
  127. 'type' => 'string',
  128. 'required' => true,
  129. ],
  130. ],
  131. ],'list' => [
  132. 'path' => 'v2beta/{+name}/operations',
  133. 'httpMethod' => 'GET',
  134. 'parameters' => [
  135. 'name' => [
  136. 'location' => 'path',
  137. 'type' => 'string',
  138. 'required' => true,
  139. ],
  140. 'filter' => [
  141. 'location' => 'query',
  142. 'type' => 'string',
  143. ],
  144. 'pageSize' => [
  145. 'location' => 'query',
  146. 'type' => 'integer',
  147. ],
  148. 'pageToken' => [
  149. 'location' => 'query',
  150. 'type' => 'string',
  151. ],
  152. ],
  153. ],
  154. ]
  155. ]
  156. );
  157. $this->projects_locations_pipelines = new CloudLifeSciences\Resource\ProjectsLocationsPipelines(
  158. $this,
  159. $this->serviceName,
  160. 'pipelines',
  161. [
  162. 'methods' => [
  163. 'run' => [
  164. 'path' => 'v2beta/{+parent}/pipelines:run',
  165. 'httpMethod' => 'POST',
  166. 'parameters' => [
  167. 'parent' => [
  168. 'location' => 'path',
  169. 'type' => 'string',
  170. 'required' => true,
  171. ],
  172. ],
  173. ],
  174. ]
  175. ]
  176. );
  177. }
  178. }
  179. // Adding a class alias for backwards compatibility with the previous class name.
  180. class_alias(CloudLifeSciences::class, 'Google_Service_CloudLifeSciences');