* $apigeeService = new Google\Service\Apigee(...); * $exports = $apigeeService->exports; * */ class OrganizationsEnvironmentsAnalyticsExports extends \Google\Service\Resource { /** * Submit a data export job to be processed in the background. If the request is * successful, the API returns a 201 status, a URI that can be used to retrieve * the status of the export job, and the `state` value of "enqueued". * (exports.create) * * @param string $parent Required. Names of the parent organization and * environment. Must be of the form `organizations/{org}/environments/{env}`. * @param GoogleCloudApigeeV1ExportRequest $postBody * @param array $optParams Optional parameters. * @return GoogleCloudApigeeV1Export */ public function create($parent, GoogleCloudApigeeV1ExportRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], GoogleCloudApigeeV1Export::class); } /** * Gets the details and status of an analytics export job. If the export job is * still in progress, its `state` is set to "running". After the export job has * completed successfully, its `state` is set to "completed". If the export job * fails, its `state` is set to `failed`. (exports.get) * * @param string $name Required. Resource name of the export to get. * @param array $optParams Optional parameters. * @return GoogleCloudApigeeV1Export */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GoogleCloudApigeeV1Export::class); } /** * Lists the details and status of all analytics export jobs belonging to the * parent organization and environment. * (exports.listOrganizationsEnvironmentsAnalyticsExports) * * @param string $parent Required. Names of the parent organization and * environment. Must be of the form `organizations/{org}/environments/{env}`. * @param array $optParams Optional parameters. * @return GoogleCloudApigeeV1ListExportsResponse */ public function listOrganizationsEnvironmentsAnalyticsExports($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], GoogleCloudApigeeV1ListExportsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(OrganizationsEnvironmentsAnalyticsExports::class, 'Google_Service_Apigee_Resource_OrganizationsEnvironmentsAnalyticsExports');