* $dialogflowService = new Google\Service\Dialogflow(...); * $deployments = $dialogflowService->deployments; * */ class ProjectsLocationsAgentsEnvironmentsDeployments extends \Google\Service\Resource { /** * Retrieves the specified Deployment. (deployments.get) * * @param string $name Required. The name of the Deployment. Format: * `projects//locations//agents//environments//deployments/`. * @param array $optParams Optional parameters. * @return GoogleCloudDialogflowCxV3Deployment */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GoogleCloudDialogflowCxV3Deployment::class); } /** * Returns the list of all deployments in the specified Environment. * (deployments.listProjectsLocationsAgentsEnvironmentsDeployments) * * @param string $parent Required. The Environment to list all environments for. * Format: `projects//locations//agents//environments/`. * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of items to return in a single * page. By default 20 and at most 100. * @opt_param string pageToken The next_page_token value returned from a * previous list request. * @return GoogleCloudDialogflowCxV3ListDeploymentsResponse */ public function listProjectsLocationsAgentsEnvironmentsDeployments($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], GoogleCloudDialogflowCxV3ListDeploymentsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsAgentsEnvironmentsDeployments::class, 'Google_Service_Dialogflow_Resource_ProjectsLocationsAgentsEnvironmentsDeployments');