* $aiplatformService = new Google\Service\Aiplatform(...); * $media = $aiplatformService->media; * */ class Media extends \Google\Service\Resource { /** * Upload a file into a RagCorpus. (media.upload) * * @param string $parent Required. The name of the RagCorpus resource into which * to upload the file. Format: * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` * @param GoogleCloudAiplatformV1UploadRagFileRequest $postBody * @param array $optParams Optional parameters. * @return GoogleCloudAiplatformV1UploadRagFileResponse * @throws \Google\Service\Exception */ public function upload($parent, GoogleCloudAiplatformV1UploadRagFileRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('upload', [$params], GoogleCloudAiplatformV1UploadRagFileResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Media::class, 'Google_Service_Aiplatform_Resource_Media');