Skip to content

Commit

Permalink
Regenerate artifactregistry client (#5074)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored May 6, 2024
1 parent d99c807 commit c93e191
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 23 deletions.
33 changes: 11 additions & 22 deletions src/ArtifactRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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' => [
Expand Down
18 changes: 18 additions & 0 deletions src/ArtifactRegistry/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ class Repository extends \Google\Model
public $name;
protected $remoteRepositoryConfigType = RemoteRepositoryConfig::class;
protected $remoteRepositoryConfigDataType = '';
/**
* @var bool
*/
public $satisfiesPzi;
/**
* @var bool
*/
Expand Down Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

namespace Google\Service\ArtifactRegistry\Resource;

use Google\Service\ArtifactRegistry\DownloadFileResponse;
use Google\Service\ArtifactRegistry\GoogleDevtoolsArtifactregistryV1File;
use Google\Service\ArtifactRegistry\ListFilesResponse;

Expand All @@ -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)
*
Expand Down

0 comments on commit c93e191

Please sign in to comment.