* $workloadmanagerService = new Google\Service\WorkloadManager(...); * $insights = $workloadmanagerService->projects_locations_insights; * */ class ProjectsLocationsInsights extends \Google\Service\Resource { /** * Write the data insights to workload manager data warehouse. * (insights.writeInsight) * * @param string $location Required. The GCP location. The format is: * projects/{project}/locations/{location}. * @param WriteInsightRequest $postBody * @param array $optParams Optional parameters. * @return WriteInsightResponse * @throws \Google\Service\Exception */ public function writeInsight($location, WriteInsightRequest $postBody, $optParams = []) { $params = ['location' => $location, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('writeInsight', [$params], WriteInsightResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsInsights::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsInsights');