* $artifactregistryService = new Google\Service\ArtifactRegistry(...); * $kfpArtifacts = $artifactregistryService->projects_locations_repositories_kfpArtifacts; * */ class ProjectsLocationsRepositoriesKfpArtifacts extends \Google\Service\Resource { /** * Directly uploads a KFP artifact. The returned Operation will complete once * the resource is uploaded. Package, Version, and File resources will be * created based on the uploaded artifact. Uploaded artifacts that conflict with * existing resources will be overwritten. (kfpArtifacts.upload) * * @param string $parent The resource name of the repository where the KFP * artifact will be uploaded. * @param UploadKfpArtifactRequest $postBody * @param array $optParams Optional parameters. * @return UploadKfpArtifactMediaResponse * @throws \Google\Service\Exception */ public function upload($parent, UploadKfpArtifactRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('upload', [$params], UploadKfpArtifactMediaResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsRepositoriesKfpArtifacts::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesKfpArtifacts');