diff --git a/src/ArtifactRegistry.php b/src/ArtifactRegistry.php index d0672d9ad4..deb9daeb2a 100644 --- a/src/ArtifactRegistry.php +++ b/src/ArtifactRegistry.php @@ -42,7 +42,6 @@ class ArtifactRegistry extends \Google\Service const CLOUD_PLATFORM_READ_ONLY = "https://www.googleapis.com/auth/cloud-platform.read-only"; - public $media; public $projects; public $projects_locations; public $projects_locations_operations; @@ -80,26 +79,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null) $this->version = 'v1'; $this->serviceName = 'artifactregistry'; - $this->media = new ArtifactRegistry\Resource\Media( - $this, - $this->serviceName, - 'media', - [ - 'methods' => [ - 'download' => [ - 'path' => 'v1/{+name}:download', - 'httpMethod' => 'GET', - 'parameters' => [ - 'name' => [ - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ], - ], - ], - ] - ] - ); $this->projects = new ArtifactRegistry\Resource\Projects( $this, $this->serviceName, @@ -408,7 +387,17 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'files', [ 'methods' => [ - 'get' => [ + 'download' => [ + 'path' => 'v1/{+name}:download', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ diff --git a/src/ArtifactRegistry/Repository.php b/src/ArtifactRegistry/Repository.php index 8079d81755..0c766f328d 100644 --- a/src/ArtifactRegistry/Repository.php +++ b/src/ArtifactRegistry/Repository.php @@ -63,6 +63,10 @@ class Repository extends \Google\Model public $name; protected $remoteRepositoryConfigType = RemoteRepositoryConfig::class; protected $remoteRepositoryConfigDataType = ''; + /** + * @var bool + */ + public $satisfiesPzi; /** * @var bool */ @@ -260,6 +264,20 @@ public function getRemoteRepositoryConfig() { return $this->remoteRepositoryConfig; } + /** + * @param bool + */ + public function setSatisfiesPzi($satisfiesPzi) + { + $this->satisfiesPzi = $satisfiesPzi; + } + /** + * @return bool + */ + public function getSatisfiesPzi() + { + return $this->satisfiesPzi; + } /** * @param bool */ diff --git a/src/ArtifactRegistry/Resource/ProjectsLocationsRepositories.php b/src/ArtifactRegistry/Resource/ProjectsLocationsRepositories.php index 64b5fd7ba5..8bc77e7459 100644 --- a/src/ArtifactRegistry/Resource/ProjectsLocationsRepositories.php +++ b/src/ArtifactRegistry/Resource/ProjectsLocationsRepositories.php @@ -141,7 +141,8 @@ public function listProjectsLocationsRepositories($parent, $optParams = []) * Updates a repository. (repositories.patch) * * @param string $name The name of the repository, for example: - * `projects/p1/locations/us-central1/repositories/repo1`. + * `projects/p1/locations/us-central1/repositories/repo1`. For each location in + * a project, repository names must be unique. * @param Repository $postBody * @param array $optParams Optional parameters. * diff --git a/src/ArtifactRegistry/Resource/ProjectsLocationsRepositoriesFiles.php b/src/ArtifactRegistry/Resource/ProjectsLocationsRepositoriesFiles.php index 34b2774d1c..c120ad6dfc 100644 --- a/src/ArtifactRegistry/Resource/ProjectsLocationsRepositoriesFiles.php +++ b/src/ArtifactRegistry/Resource/ProjectsLocationsRepositoriesFiles.php @@ -17,6 +17,7 @@ namespace Google\Service\ArtifactRegistry\Resource; +use Google\Service\ArtifactRegistry\DownloadFileResponse; use Google\Service\ArtifactRegistry\GoogleDevtoolsArtifactregistryV1File; use Google\Service\ArtifactRegistry\ListFilesResponse; @@ -30,6 +31,20 @@ */ class ProjectsLocationsRepositoriesFiles extends \Google\Service\Resource { + /** + * Download a file. (files.download) + * + * @param string $name Required. The name of the file to download. + * @param array $optParams Optional parameters. + * @return DownloadFileResponse + * @throws \Google\Service\Exception + */ + public function download($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('download', [$params], DownloadFileResponse::class); + } /** * Gets a file. (files.get) *