* $dataportabilityService = new Google\Service\DataPortability(...); * $archiveJobs = $dataportabilityService->archiveJobs; * */ class ArchiveJobs extends \Google\Service\Resource { /** * Retrieves the state of an Archive job for the Portability API. * (archiveJobs.getPortabilityArchiveState) * * @param string $name Required. The archive job ID that is returned when you * request the state of the job. The format is: * archiveJobs/{archive_job}/portabilityArchiveState. archive_job is the job ID * returned by the InitiatePortabilityArchiveResponse. * @param array $optParams Optional parameters. * @return PortabilityArchiveState * @throws \Google\Service\Exception */ public function getPortabilityArchiveState($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('getPortabilityArchiveState', [$params], PortabilityArchiveState::class); } /** * Retries a failed Portability Archive job. (archiveJobs.retry) * * @param string $name Required. The Archive job ID you're retrying. This is * returned by the InitiatePortabilityArchiveResponse. Retrying is only executed * if the initial job failed. * @param RetryPortabilityArchiveRequest $postBody * @param array $optParams Optional parameters. * @return RetryPortabilityArchiveResponse * @throws \Google\Service\Exception */ public function retry($name, RetryPortabilityArchiveRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('retry', [$params], RetryPortabilityArchiveResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ArchiveJobs::class, 'Google_Service_DataPortability_Resource_ArchiveJobs');