* $genomicsService = new Google\Service\Genomics(...); * $pipelines = $genomicsService->pipelines; * */ class Pipelines extends \Google\Service\Resource { /** * Runs a pipeline. The returned Operation's metadata field will contain a * google.genomics.v2alpha1.Metadata object describing the status of the * pipeline execution. The [response] field will contain a * google.genomics.v2alpha1.RunPipelineResponse object if the pipeline completes * successfully. **Note:** Before you can use this method, the Genomics Service * Agent must have access to your project. This is done automatically when the * Cloud Genomics API is first enabled, but if you delete this permission, or if * you enabled the Cloud Genomics API before the v2alpha1 API launch, you must * disable and re-enable the API to grant the Genomics Service Agent the * required permissions. Authorization requires the following [Google * IAM](https://cloud.google.com/iam/) permission: * * `genomics.operations.create` [1]: /genomics/gsa (pipelines.run) * * @param RunPipelineRequest $postBody * @param array $optParams Optional parameters. * @return Operation */ public function run(RunPipelineRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('run', [$params], Operation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Pipelines::class, 'Google_Service_Genomics_Resource_Pipelines');