PageRenderTime 42ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/application/third_party/Dompdf/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/Datasets.php

https://bitbucket.org/shehan_jay/invoice_mgt
PHP | 214 lines | 58 code | 1 blank | 155 comment | 0 complexity | 8498f709fc1a9d360ba14d9ea331b26f MD5 | raw file
Possible License(s): Unlicense, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause, Apache-2.0
  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. * The "datasets" collection of methods.
  19. * Typical usage is:
  20. * <code>
  21. * $genomicsService = new Google_Service_Genomics(...);
  22. * $datasets = $genomicsService->datasets;
  23. * </code>
  24. */
  25. class Google_Service_Genomics_Resource_Datasets extends Google_Service_Resource
  26. {
  27. /**
  28. * Creates a new dataset.
  29. *
  30. * For the definitions of datasets and other genomics resources, see
  31. * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
  32. * /fundamentals-of-google-genomics) (datasets.create)
  33. *
  34. * @param Google_Service_Genomics_Dataset $postBody
  35. * @param array $optParams Optional parameters.
  36. * @return Google_Service_Genomics_Dataset
  37. */
  38. public function create(Google_Service_Genomics_Dataset $postBody, $optParams = array())
  39. {
  40. $params = array('postBody' => $postBody);
  41. $params = array_merge($params, $optParams);
  42. return $this->call('create', array($params), "Google_Service_Genomics_Dataset");
  43. }
  44. /**
  45. * Deletes a dataset and all of its contents (all read group sets, reference
  46. * sets, variant sets, call sets, annotation sets, etc.) This is reversible (up
  47. * to one week after the deletion) via the datasets.undelete operation.
  48. *
  49. * For the definitions of datasets and other genomics resources, see
  50. * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
  51. * /fundamentals-of-google-genomics) (datasets.delete)
  52. *
  53. * @param string $datasetId The ID of the dataset to be deleted.
  54. * @param array $optParams Optional parameters.
  55. * @return Google_Service_Genomics_GenomicsEmpty
  56. */
  57. public function delete($datasetId, $optParams = array())
  58. {
  59. $params = array('datasetId' => $datasetId);
  60. $params = array_merge($params, $optParams);
  61. return $this->call('delete', array($params), "Google_Service_Genomics_GenomicsEmpty");
  62. }
  63. /**
  64. * Gets a dataset by ID.
  65. *
  66. * For the definitions of datasets and other genomics resources, see
  67. * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
  68. * /fundamentals-of-google-genomics) (datasets.get)
  69. *
  70. * @param string $datasetId The ID of the dataset.
  71. * @param array $optParams Optional parameters.
  72. * @return Google_Service_Genomics_Dataset
  73. */
  74. public function get($datasetId, $optParams = array())
  75. {
  76. $params = array('datasetId' => $datasetId);
  77. $params = array_merge($params, $optParams);
  78. return $this->call('get', array($params), "Google_Service_Genomics_Dataset");
  79. }
  80. /**
  81. * Gets the access control policy for the dataset. This is empty if the policy
  82. * or resource does not exist.
  83. *
  84. * See Getting a Policy for more information.
  85. *
  86. * For the definitions of datasets and other genomics resources, see
  87. * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
  88. * /fundamentals-of-google-genomics) (datasets.getIamPolicy)
  89. *
  90. * @param string $resource REQUIRED: The resource for which policy is being
  91. * specified. Format is `datasets/`.
  92. * @param Google_Service_Genomics_GetIamPolicyRequest $postBody
  93. * @param array $optParams Optional parameters.
  94. * @return Google_Service_Genomics_Policy
  95. */
  96. public function getIamPolicy($resource, Google_Service_Genomics_GetIamPolicyRequest $postBody, $optParams = array())
  97. {
  98. $params = array('resource' => $resource, 'postBody' => $postBody);
  99. $params = array_merge($params, $optParams);
  100. return $this->call('getIamPolicy', array($params), "Google_Service_Genomics_Policy");
  101. }
  102. /**
  103. * Lists datasets within a project.
  104. *
  105. * For the definitions of datasets and other genomics resources, see
  106. * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
  107. * /fundamentals-of-google-genomics) (datasets.listDatasets)
  108. *
  109. * @param array $optParams Optional parameters.
  110. *
  111. * @opt_param string pageToken The continuation token, which is used to page
  112. * through large result sets. To get the next page of results, set this
  113. * parameter to the value of `nextPageToken` from the previous response.
  114. * @opt_param int pageSize The maximum number of results to return in a single
  115. * page. If unspecified, defaults to 50. The maximum value is 1024.
  116. * @opt_param string projectId Required. The Google Cloud project ID to list
  117. * datasets for.
  118. * @return Google_Service_Genomics_ListDatasetsResponse
  119. */
  120. public function listDatasets($optParams = array())
  121. {
  122. $params = array();
  123. $params = array_merge($params, $optParams);
  124. return $this->call('list', array($params), "Google_Service_Genomics_ListDatasetsResponse");
  125. }
  126. /**
  127. * Updates a dataset.
  128. *
  129. * For the definitions of datasets and other genomics resources, see
  130. * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
  131. * /fundamentals-of-google-genomics)
  132. *
  133. * This method supports patch semantics. (datasets.patch)
  134. *
  135. * @param string $datasetId The ID of the dataset to be updated.
  136. * @param Google_Service_Genomics_Dataset $postBody
  137. * @param array $optParams Optional parameters.
  138. *
  139. * @opt_param string updateMask An optional mask specifying which fields to
  140. * update. At this time, the only mutable field is name. The only acceptable
  141. * value is "name". If unspecified, all mutable fields will be updated.
  142. * @return Google_Service_Genomics_Dataset
  143. */
  144. public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array())
  145. {
  146. $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
  147. $params = array_merge($params, $optParams);
  148. return $this->call('patch', array($params), "Google_Service_Genomics_Dataset");
  149. }
  150. /**
  151. * Sets the access control policy on the specified dataset. Replaces any
  152. * existing policy.
  153. *
  154. * For the definitions of datasets and other genomics resources, see
  155. * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
  156. * /fundamentals-of-google-genomics)
  157. *
  158. * See Setting a Policy for more information. (datasets.setIamPolicy)
  159. *
  160. * @param string $resource REQUIRED: The resource for which policy is being
  161. * specified. Format is `datasets/`.
  162. * @param Google_Service_Genomics_SetIamPolicyRequest $postBody
  163. * @param array $optParams Optional parameters.
  164. * @return Google_Service_Genomics_Policy
  165. */
  166. public function setIamPolicy($resource, Google_Service_Genomics_SetIamPolicyRequest $postBody, $optParams = array())
  167. {
  168. $params = array('resource' => $resource, 'postBody' => $postBody);
  169. $params = array_merge($params, $optParams);
  170. return $this->call('setIamPolicy', array($params), "Google_Service_Genomics_Policy");
  171. }
  172. /**
  173. * Returns permissions that a caller has on the specified resource. See Testing
  174. * Permissions for more information.
  175. *
  176. * For the definitions of datasets and other genomics resources, see
  177. * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
  178. * /fundamentals-of-google-genomics) (datasets.testIamPermissions)
  179. *
  180. * @param string $resource REQUIRED: The resource for which policy is being
  181. * specified. Format is `datasets/`.
  182. * @param Google_Service_Genomics_TestIamPermissionsRequest $postBody
  183. * @param array $optParams Optional parameters.
  184. * @return Google_Service_Genomics_TestIamPermissionsResponse
  185. */
  186. public function testIamPermissions($resource, Google_Service_Genomics_TestIamPermissionsRequest $postBody, $optParams = array())
  187. {
  188. $params = array('resource' => $resource, 'postBody' => $postBody);
  189. $params = array_merge($params, $optParams);
  190. return $this->call('testIamPermissions', array($params), "Google_Service_Genomics_TestIamPermissionsResponse");
  191. }
  192. /**
  193. * Undeletes a dataset by restoring a dataset which was deleted via this API.
  194. *
  195. * For the definitions of datasets and other genomics resources, see
  196. * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
  197. * /fundamentals-of-google-genomics)
  198. *
  199. * This operation is only possible for a week after the deletion occurred.
  200. * (datasets.undelete)
  201. *
  202. * @param string $datasetId The ID of the dataset to be undeleted.
  203. * @param Google_Service_Genomics_UndeleteDatasetRequest $postBody
  204. * @param array $optParams Optional parameters.
  205. * @return Google_Service_Genomics_Dataset
  206. */
  207. public function undelete($datasetId, Google_Service_Genomics_UndeleteDatasetRequest $postBody, $optParams = array())
  208. {
  209. $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
  210. $params = array_merge($params, $optParams);
  211. return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset");
  212. }
  213. }