* $vmmigrationService = new Google\Service\VMMigrationService(...); * $diskMigrationJobs = $vmmigrationService->projects_locations_sources_diskMigrationJobs; * */ class ProjectsLocationsSourcesDiskMigrationJobs extends \Google\Service\Resource { /** * Cancels the disk migration job. (diskMigrationJobs.cancel) * * @param string $name Required. The name of the DiskMigrationJob. * @param CancelDiskMigrationJobRequest $postBody * @param array $optParams Optional parameters. * @return Operation * @throws \Google\Service\Exception */ public function cancel($name, CancelDiskMigrationJobRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('cancel', [$params], Operation::class); } /** * Runs the disk migration job. (diskMigrationJobs.run) * * @param string $name Required. The name of the DiskMigrationJob. * @param RunDiskMigrationJobRequest $postBody * @param array $optParams Optional parameters. * @return Operation * @throws \Google\Service\Exception */ public function run($name, RunDiskMigrationJobRequest $postBody, $optParams = []) { $params = ['name' => $name, '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(ProjectsLocationsSourcesDiskMigrationJobs::class, 'Google_Service_VMMigrationService_Resource_ProjectsLocationsSourcesDiskMigrationJobs');