* $artifactregistryService = new Google\Service\ArtifactRegistry(...); * $aptArtifacts = $artifactregistryService->aptArtifacts; * */ class ProjectsLocationsRepositoriesAptArtifacts extends \Google\Service\Resource { /** * Imports Apt artifacts. The returned Operation will complete once the * resources are imported. Package, Version, and File resources are created * based on the imported artifacts. Imported artifacts that conflict with * existing resources are ignored. (aptArtifacts.import) * * @param string $parent The name of the parent resource where the artifacts * will be imported. * @param ImportAptArtifactsRequest $postBody * @param array $optParams Optional parameters. * @return Operation */ public function import($parent, ImportAptArtifactsRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('import', [$params], Operation::class); } /** * Directly uploads an Apt artifact. The returned Operation will complete once * the resources are uploaded. Package, Version, and File resources are created * based on the imported artifact. Imported artifacts that conflict with * existing resources are ignored. (aptArtifacts.upload) * * @param string $parent The name of the parent resource where the artifacts * will be uploaded. * @param UploadAptArtifactRequest $postBody * @param array $optParams Optional parameters. * @return UploadAptArtifactMediaResponse */ public function upload($parent, UploadAptArtifactRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('upload', [$params], UploadAptArtifactMediaResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsRepositoriesAptArtifacts::class, 'Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesAptArtifacts');