Google_Service_Genomics_Datasets_Resource

The "datasets" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/Genomics.php  
  1. class Google_Service_Genomics_Datasets_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Creates a new dataset. (datasets.create) 
  5. * @param Google_Dataset $postBody 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_Service_Genomics_Dataset 
  8. */ 
  9. public function create(Google_Service_Genomics_Dataset $postBody, $optParams = array()) 
  10. $params = array('postBody' => $postBody); 
  11. $params = array_merge($params, $optParams); 
  12. return $this->call('create', array($params), "Google_Service_Genomics_Dataset"); 
  13.  
  14. /** 
  15. * Deletes a dataset. (datasets.delete) 
  16. * @param string $datasetId The ID of the dataset to be deleted. 
  17. * @param array $optParams Optional parameters. 
  18. */ 
  19. public function delete($datasetId, $optParams = array()) 
  20. $params = array('datasetId' => $datasetId); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('delete', array($params)); 
  23.  
  24. /** 
  25. * Gets a dataset by ID. (datasets.get) 
  26. * @param string $datasetId The ID of the dataset. 
  27. * @param array $optParams Optional parameters. 
  28. * @return Google_Service_Genomics_Dataset 
  29. */ 
  30. public function get($datasetId, $optParams = array()) 
  31. $params = array('datasetId' => $datasetId); 
  32. $params = array_merge($params, $optParams); 
  33. return $this->call('get', array($params), "Google_Service_Genomics_Dataset"); 
  34.  
  35. /** 
  36. * Lists all datasets. (datasets.listDatasets) 
  37. * @param array $optParams Optional parameters. 
  38. * @opt_param string pageToken The continuation token, which is used to page 
  39. * through large result sets. To get the next page of results, set this 
  40. * parameter to the value of nextPageToken from the previous response. 
  41. * @opt_param string projectNumber Only return datasets which belong to this 
  42. * Google Developers Console project. Only accepts project numbers. Returns all 
  43. * public projects if no project number is specified. 
  44. * @opt_param int pageSize The maximum number of results returned by this 
  45. * request. 
  46. * @return Google_Service_Genomics_ListDatasetsResponse 
  47. */ 
  48. public function listDatasets($optParams = array()) 
  49. $params = array(); 
  50. $params = array_merge($params, $optParams); 
  51. return $this->call('list', array($params), "Google_Service_Genomics_ListDatasetsResponse"); 
  52.  
  53. /** 
  54. * Updates a dataset. This method supports patch semantics. (datasets.patch) 
  55. * @param string $datasetId The ID of the dataset to be updated. 
  56. * @param Google_Dataset $postBody 
  57. * @param array $optParams Optional parameters. 
  58. * @return Google_Service_Genomics_Dataset 
  59. */ 
  60. public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) 
  61. $params = array('datasetId' => $datasetId, 'postBody' => $postBody); 
  62. $params = array_merge($params, $optParams); 
  63. return $this->call('patch', array($params), "Google_Service_Genomics_Dataset"); 
  64.  
  65. /** 
  66. * Undeletes a dataset by restoring a dataset which was deleted via this API. 
  67. * This operation is only possible for a week after the deletion occurred. 
  68. * (datasets.undelete) 
  69. * @param string $datasetId The ID of the dataset to be undeleted. 
  70. * @param array $optParams Optional parameters. 
  71. * @return Google_Service_Genomics_Dataset 
  72. */ 
  73. public function undelete($datasetId, $optParams = array()) 
  74. $params = array('datasetId' => $datasetId); 
  75. $params = array_merge($params, $optParams); 
  76. return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset"); 
  77.  
  78. /** 
  79. * Updates a dataset. (datasets.update) 
  80. * @param string $datasetId The ID of the dataset to be updated. 
  81. * @param Google_Dataset $postBody 
  82. * @param array $optParams Optional parameters. 
  83. * @return Google_Service_Genomics_Dataset 
  84. */ 
  85. public function update($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) 
  86. $params = array('datasetId' => $datasetId, 'postBody' => $postBody); 
  87. $params = array_merge($params, $optParams); 
  88. return $this->call('update', array($params), "Google_Service_Genomics_Dataset");