From fb8fa8c6347265d40143ce53e657db25e2ced2c5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 12 Mar 2024 07:08:23 +0000 Subject: [PATCH] feat(artifactregistry): update the api #### artifactregistry:v1 The following keys were added: - resources.media.methods.download (Total Keys: 13) - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch (Total Keys: 15) - schemas.AptRepository.properties.customRepository.$ref (Total Keys: 1) - schemas.DockerRepository.properties.customRepository.$ref (Total Keys: 1) - schemas.DownloadFileResponse (Total Keys: 2) - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository (Total Keys: 3) - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository (Total Keys: 3) - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository (Total Keys: 3) - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository (Total Keys: 3) - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository (Total Keys: 3) - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository (Total Keys: 3) - schemas.MavenRepository.properties.customRepository.$ref (Total Keys: 1) - schemas.NpmRepository.properties.customRepository.$ref (Total Keys: 1) - schemas.Package.properties.annotations (Total Keys: 2) - schemas.PythonRepository.properties.customRepository.$ref (Total Keys: 1) - schemas.RemoteRepositoryConfig.properties.disableUpstreamValidation.type (Total Keys: 1) - schemas.YumRepository.properties.customRepository.$ref (Total Keys: 1) #### artifactregistry:v1beta2 The following keys were added: - resources.media.methods.download (Total Keys: 13) - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch (Total Keys: 15) - schemas.DownloadFileResponse (Total Keys: 2) - schemas.Package.properties.annotations (Total Keys: 2) --- docs/dyn/artifactregistry_v1.html | 5 + docs/dyn/artifactregistry_v1.media.html | 127 ++++++++++++ ...ry_v1.projects.locations.repositories.html | 95 +++++++++ ...jects.locations.repositories.packages.html | 48 +++++ docs/dyn/artifactregistry_v1beta2.html | 5 + docs/dyn/artifactregistry_v1beta2.media.html | 127 ++++++++++++ ...jects.locations.repositories.packages.html | 48 +++++ .../documents/artifactregistry.v1.json | 184 +++++++++++++++++- .../documents/artifactregistry.v1beta1.json | 2 +- .../documents/artifactregistry.v1beta2.json | 90 ++++++++- 10 files changed, 722 insertions(+), 9 deletions(-) create mode 100644 docs/dyn/artifactregistry_v1.media.html create mode 100644 docs/dyn/artifactregistry_v1beta2.media.html diff --git a/docs/dyn/artifactregistry_v1.html b/docs/dyn/artifactregistry_v1.html index 9cd086ebfb3..a1711d3d629 100644 --- a/docs/dyn/artifactregistry_v1.html +++ b/docs/dyn/artifactregistry_v1.html @@ -74,6 +74,11 @@

Artifact Registry API

Instance Methods

+

+ media() +

+

Returns the media Resource.

+

projects()

diff --git a/docs/dyn/artifactregistry_v1.media.html b/docs/dyn/artifactregistry_v1.media.html new file mode 100644 index 00000000000..2ece2bd9453 --- /dev/null +++ b/docs/dyn/artifactregistry_v1.media.html @@ -0,0 +1,127 @@ + + + +

Artifact Registry API . media

+

Instance Methods

+

+ close()

+

Close httplib2 connections.

+

+ download(name, x__xgafv=None)

+

Download a file.

+

+ download_media(name, x__xgafv=None)

+

Download a file.

+

Method Details

+
+ close() +
Close httplib2 connections.
+
+ +
+ download(name, x__xgafv=None) +
Download a file.
+
+Args:
+  name: string, Required. The name of the file to download. (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # The response to download a file.
+}
+
+ +
+ download_media(name, x__xgafv=None) +
Download a file.
+
+Args:
+  name: string, Required. The name of the file to download. (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  The media object as a string.
+
+    
+
+ + \ No newline at end of file diff --git a/docs/dyn/artifactregistry_v1.projects.locations.repositories.html b/docs/dyn/artifactregistry_v1.projects.locations.repositories.html index 30b6791b7b5..892dd803a5d 100644 --- a/docs/dyn/artifactregistry_v1.projects.locations.repositories.html +++ b/docs/dyn/artifactregistry_v1.projects.locations.repositories.html @@ -221,22 +221,38 @@

Method Details

"name": "A String", # The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. "remoteRepositoryConfig": { # Remote repository configuration. # Configuration specific for a Remote Repository. "aptRepository": { # Configuration for an Apt remote repository. # Specific settings for an Apt remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.apt.registry/". + }, "publicRepository": { # Publicly available Apt repositories constructed from a common repository base and a custom repository path. # One of the publicly available Apt repositories supported by Artifact Registry. "repositoryBase": "A String", # A common public repository base for Apt. "repositoryPath": "A String", # A custom field to define a path to a specific repository from the base. }, }, "description": "A String", # The description of the remote source. + "disableUpstreamValidation": True or False, # Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials. "dockerRepository": { # Configuration for a Docker remote repository. # Specific settings for a Docker remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the custom remote repository, for ex: "https://registry-1.docker.io". + }, "publicRepository": "A String", # One of the publicly available Docker repositories supported by Artifact Registry. }, "mavenRepository": { # Configuration for a Maven remote repository. # Specific settings for a Maven remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.maven.registry/". + }, "publicRepository": "A String", # One of the publicly available Maven repositories supported by Artifact Registry. }, "npmRepository": { # Configuration for a Npm remote repository. # Specific settings for an Npm remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.npm.registry/". + }, "publicRepository": "A String", # One of the publicly available Npm repositories supported by Artifact Registry. }, "pythonRepository": { # Configuration for a Python remote repository. # Specific settings for a Python remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.python.registry/". + }, "publicRepository": "A String", # One of the publicly available Python repositories supported by Artifact Registry. }, "upstreamCredentials": { # The credentials to access the remote repository. # Optional. The credentials used to access the remote repository. @@ -246,6 +262,9 @@

Method Details

}, }, "yumRepository": { # Configuration for a Yum remote repository. # Specific settings for a Yum remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.yum.registry/". + }, "publicRepository": { # Publicly available Yum repositories constructed from a common repository base and a custom repository path. # One of the publicly available Yum repositories supported by Artifact Registry. "repositoryBase": "A String", # A common public repository base for Yum. "repositoryPath": "A String", # A custom field to define a path to a specific repository from the base. @@ -392,22 +411,38 @@

Method Details

"name": "A String", # The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. "remoteRepositoryConfig": { # Remote repository configuration. # Configuration specific for a Remote Repository. "aptRepository": { # Configuration for an Apt remote repository. # Specific settings for an Apt remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.apt.registry/". + }, "publicRepository": { # Publicly available Apt repositories constructed from a common repository base and a custom repository path. # One of the publicly available Apt repositories supported by Artifact Registry. "repositoryBase": "A String", # A common public repository base for Apt. "repositoryPath": "A String", # A custom field to define a path to a specific repository from the base. }, }, "description": "A String", # The description of the remote source. + "disableUpstreamValidation": True or False, # Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials. "dockerRepository": { # Configuration for a Docker remote repository. # Specific settings for a Docker remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the custom remote repository, for ex: "https://registry-1.docker.io". + }, "publicRepository": "A String", # One of the publicly available Docker repositories supported by Artifact Registry. }, "mavenRepository": { # Configuration for a Maven remote repository. # Specific settings for a Maven remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.maven.registry/". + }, "publicRepository": "A String", # One of the publicly available Maven repositories supported by Artifact Registry. }, "npmRepository": { # Configuration for a Npm remote repository. # Specific settings for an Npm remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.npm.registry/". + }, "publicRepository": "A String", # One of the publicly available Npm repositories supported by Artifact Registry. }, "pythonRepository": { # Configuration for a Python remote repository. # Specific settings for a Python remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.python.registry/". + }, "publicRepository": "A String", # One of the publicly available Python repositories supported by Artifact Registry. }, "upstreamCredentials": { # The credentials to access the remote repository. # Optional. The credentials used to access the remote repository. @@ -417,6 +452,9 @@

Method Details

}, }, "yumRepository": { # Configuration for a Yum remote repository. # Specific settings for a Yum remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.yum.registry/". + }, "publicRepository": { # Publicly available Yum repositories constructed from a common repository base and a custom repository path. # One of the publicly available Yum repositories supported by Artifact Registry. "repositoryBase": "A String", # A common public repository base for Yum. "repositoryPath": "A String", # A custom field to define a path to a specific repository from the base. @@ -539,22 +577,38 @@

Method Details

"name": "A String", # The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. "remoteRepositoryConfig": { # Remote repository configuration. # Configuration specific for a Remote Repository. "aptRepository": { # Configuration for an Apt remote repository. # Specific settings for an Apt remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.apt.registry/". + }, "publicRepository": { # Publicly available Apt repositories constructed from a common repository base and a custom repository path. # One of the publicly available Apt repositories supported by Artifact Registry. "repositoryBase": "A String", # A common public repository base for Apt. "repositoryPath": "A String", # A custom field to define a path to a specific repository from the base. }, }, "description": "A String", # The description of the remote source. + "disableUpstreamValidation": True or False, # Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials. "dockerRepository": { # Configuration for a Docker remote repository. # Specific settings for a Docker remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the custom remote repository, for ex: "https://registry-1.docker.io". + }, "publicRepository": "A String", # One of the publicly available Docker repositories supported by Artifact Registry. }, "mavenRepository": { # Configuration for a Maven remote repository. # Specific settings for a Maven remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.maven.registry/". + }, "publicRepository": "A String", # One of the publicly available Maven repositories supported by Artifact Registry. }, "npmRepository": { # Configuration for a Npm remote repository. # Specific settings for an Npm remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.npm.registry/". + }, "publicRepository": "A String", # One of the publicly available Npm repositories supported by Artifact Registry. }, "pythonRepository": { # Configuration for a Python remote repository. # Specific settings for a Python remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.python.registry/". + }, "publicRepository": "A String", # One of the publicly available Python repositories supported by Artifact Registry. }, "upstreamCredentials": { # The credentials to access the remote repository. # Optional. The credentials used to access the remote repository. @@ -564,6 +618,9 @@

Method Details

}, }, "yumRepository": { # Configuration for a Yum remote repository. # Specific settings for a Yum remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.yum.registry/". + }, "publicRepository": { # Publicly available Yum repositories constructed from a common repository base and a custom repository path. # One of the publicly available Yum repositories supported by Artifact Registry. "repositoryBase": "A String", # A common public repository base for Yum. "repositoryPath": "A String", # A custom field to define a path to a specific repository from the base. @@ -657,22 +714,38 @@

Method Details

"name": "A String", # The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. "remoteRepositoryConfig": { # Remote repository configuration. # Configuration specific for a Remote Repository. "aptRepository": { # Configuration for an Apt remote repository. # Specific settings for an Apt remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.apt.registry/". + }, "publicRepository": { # Publicly available Apt repositories constructed from a common repository base and a custom repository path. # One of the publicly available Apt repositories supported by Artifact Registry. "repositoryBase": "A String", # A common public repository base for Apt. "repositoryPath": "A String", # A custom field to define a path to a specific repository from the base. }, }, "description": "A String", # The description of the remote source. + "disableUpstreamValidation": True or False, # Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials. "dockerRepository": { # Configuration for a Docker remote repository. # Specific settings for a Docker remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the custom remote repository, for ex: "https://registry-1.docker.io". + }, "publicRepository": "A String", # One of the publicly available Docker repositories supported by Artifact Registry. }, "mavenRepository": { # Configuration for a Maven remote repository. # Specific settings for a Maven remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.maven.registry/". + }, "publicRepository": "A String", # One of the publicly available Maven repositories supported by Artifact Registry. }, "npmRepository": { # Configuration for a Npm remote repository. # Specific settings for an Npm remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.npm.registry/". + }, "publicRepository": "A String", # One of the publicly available Npm repositories supported by Artifact Registry. }, "pythonRepository": { # Configuration for a Python remote repository. # Specific settings for a Python remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.python.registry/". + }, "publicRepository": "A String", # One of the publicly available Python repositories supported by Artifact Registry. }, "upstreamCredentials": { # The credentials to access the remote repository. # Optional. The credentials used to access the remote repository. @@ -682,6 +755,9 @@

Method Details

}, }, "yumRepository": { # Configuration for a Yum remote repository. # Specific settings for a Yum remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.yum.registry/". + }, "publicRepository": { # Publicly available Yum repositories constructed from a common repository base and a custom repository path. # One of the publicly available Yum repositories supported by Artifact Registry. "repositoryBase": "A String", # A common public repository base for Yum. "repositoryPath": "A String", # A custom field to define a path to a specific repository from the base. @@ -758,22 +834,38 @@

Method Details

"name": "A String", # The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. "remoteRepositoryConfig": { # Remote repository configuration. # Configuration specific for a Remote Repository. "aptRepository": { # Configuration for an Apt remote repository. # Specific settings for an Apt remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.apt.registry/". + }, "publicRepository": { # Publicly available Apt repositories constructed from a common repository base and a custom repository path. # One of the publicly available Apt repositories supported by Artifact Registry. "repositoryBase": "A String", # A common public repository base for Apt. "repositoryPath": "A String", # A custom field to define a path to a specific repository from the base. }, }, "description": "A String", # The description of the remote source. + "disableUpstreamValidation": True or False, # Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials. "dockerRepository": { # Configuration for a Docker remote repository. # Specific settings for a Docker remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the custom remote repository, for ex: "https://registry-1.docker.io". + }, "publicRepository": "A String", # One of the publicly available Docker repositories supported by Artifact Registry. }, "mavenRepository": { # Configuration for a Maven remote repository. # Specific settings for a Maven remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.maven.registry/". + }, "publicRepository": "A String", # One of the publicly available Maven repositories supported by Artifact Registry. }, "npmRepository": { # Configuration for a Npm remote repository. # Specific settings for an Npm remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.npm.registry/". + }, "publicRepository": "A String", # One of the publicly available Npm repositories supported by Artifact Registry. }, "pythonRepository": { # Configuration for a Python remote repository. # Specific settings for a Python remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.python.registry/". + }, "publicRepository": "A String", # One of the publicly available Python repositories supported by Artifact Registry. }, "upstreamCredentials": { # The credentials to access the remote repository. # Optional. The credentials used to access the remote repository. @@ -783,6 +875,9 @@

Method Details

}, }, "yumRepository": { # Configuration for a Yum remote repository. # Specific settings for a Yum remote repository. + "customRepository": { # Customer-specified publicly available remote repository. # Customer-specified remote repository. + "uri": "A String", # An http/https uri reference to the upstream remote repository, for ex: "https://my.yum.registry/". + }, "publicRepository": { # Publicly available Yum repositories constructed from a common repository base and a custom repository path. # One of the publicly available Yum repositories supported by Artifact Registry. "repositoryBase": "A String", # A common public repository base for Yum. "repositoryPath": "A String", # A custom field to define a path to a specific repository from the base. diff --git a/docs/dyn/artifactregistry_v1.projects.locations.repositories.packages.html b/docs/dyn/artifactregistry_v1.projects.locations.repositories.packages.html index 2626875b654..178e1e4caad 100644 --- a/docs/dyn/artifactregistry_v1.projects.locations.repositories.packages.html +++ b/docs/dyn/artifactregistry_v1.projects.locations.repositories.packages.html @@ -99,6 +99,9 @@

Instance Methods

list_next()

Retrieves the next page of results.

+

+ patch(name, body=None, updateMask=None, x__xgafv=None)

+

Updates a package.

Method Details

close() @@ -155,6 +158,9 @@

Method Details

An object of the form: { # Packages are named collections of versions. + "annotations": { # Optional. Client specified annotations. + "a_key": "A String", + }, "createTime": "A String", # The time when the package was created. "displayName": "A String", # The display name of the package. "name": "A String", # The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped. @@ -182,6 +188,9 @@

Method Details

"nextPageToken": "A String", # The token to retrieve the next page of packages, or empty if there are no more packages to return. "packages": [ # The packages returned. { # Packages are named collections of versions. + "annotations": { # Optional. Client specified annotations. + "a_key": "A String", + }, "createTime": "A String", # The time when the package was created. "displayName": "A String", # The display name of the package. "name": "A String", # The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped. @@ -205,4 +214,43 @@

Method Details

+
+ patch(name, body=None, updateMask=None, x__xgafv=None) +
Updates a package.
+
+Args:
+  name: string, The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Packages are named collections of versions.
+  "annotations": { # Optional. Client specified annotations.
+    "a_key": "A String",
+  },
+  "createTime": "A String", # The time when the package was created.
+  "displayName": "A String", # The display name of the package.
+  "name": "A String", # The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped.
+  "updateTime": "A String", # The time when the package was last updated. This includes publishing a new version of the package.
+}
+
+  updateMask: string, The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Packages are named collections of versions.
+  "annotations": { # Optional. Client specified annotations.
+    "a_key": "A String",
+  },
+  "createTime": "A String", # The time when the package was created.
+  "displayName": "A String", # The display name of the package.
+  "name": "A String", # The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped.
+  "updateTime": "A String", # The time when the package was last updated. This includes publishing a new version of the package.
+}
+
+ \ No newline at end of file diff --git a/docs/dyn/artifactregistry_v1beta2.html b/docs/dyn/artifactregistry_v1beta2.html index 9275536b988..820fcde465e 100644 --- a/docs/dyn/artifactregistry_v1beta2.html +++ b/docs/dyn/artifactregistry_v1beta2.html @@ -74,6 +74,11 @@

Artifact Registry API

Instance Methods

+

+ media() +

+

Returns the media Resource.

+

projects()

diff --git a/docs/dyn/artifactregistry_v1beta2.media.html b/docs/dyn/artifactregistry_v1beta2.media.html new file mode 100644 index 00000000000..7448011a9d1 --- /dev/null +++ b/docs/dyn/artifactregistry_v1beta2.media.html @@ -0,0 +1,127 @@ + + + +

Artifact Registry API . media

+

Instance Methods

+

+ close()

+

Close httplib2 connections.

+

+ download(name, x__xgafv=None)

+

Download a file.

+

+ download_media(name, x__xgafv=None)

+

Download a file.

+

Method Details

+
+ close() +
Close httplib2 connections.
+
+ +
+ download(name, x__xgafv=None) +
Download a file.
+
+Args:
+  name: string, Required. The name of the file to download. (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # The response to download a file.
+}
+
+ +
+ download_media(name, x__xgafv=None) +
Download a file.
+
+Args:
+  name: string, Required. The name of the file to download. (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  The media object as a string.
+
+    
+
+ + \ No newline at end of file diff --git a/docs/dyn/artifactregistry_v1beta2.projects.locations.repositories.packages.html b/docs/dyn/artifactregistry_v1beta2.projects.locations.repositories.packages.html index 30a1283aa27..bada6275af8 100644 --- a/docs/dyn/artifactregistry_v1beta2.projects.locations.repositories.packages.html +++ b/docs/dyn/artifactregistry_v1beta2.projects.locations.repositories.packages.html @@ -99,6 +99,9 @@

Instance Methods

list_next()

Retrieves the next page of results.

+

+ patch(name, body=None, updateMask=None, x__xgafv=None)

+

Updates a package.

Method Details

close() @@ -155,6 +158,9 @@

Method Details

An object of the form: { # Packages are named collections of versions. + "annotations": { # Optional. Client specified annotations. + "a_key": "A String", + }, "createTime": "A String", # The time when the package was created. "displayName": "A String", # The display name of the package. "name": "A String", # The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped. @@ -182,6 +188,9 @@

Method Details

"nextPageToken": "A String", # The token to retrieve the next page of packages, or empty if there are no more packages to return. "packages": [ # The packages returned. { # Packages are named collections of versions. + "annotations": { # Optional. Client specified annotations. + "a_key": "A String", + }, "createTime": "A String", # The time when the package was created. "displayName": "A String", # The display name of the package. "name": "A String", # The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped. @@ -205,4 +214,43 @@

Method Details

+
+ patch(name, body=None, updateMask=None, x__xgafv=None) +
Updates a package.
+
+Args:
+  name: string, The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Packages are named collections of versions.
+  "annotations": { # Optional. Client specified annotations.
+    "a_key": "A String",
+  },
+  "createTime": "A String", # The time when the package was created.
+  "displayName": "A String", # The display name of the package.
+  "name": "A String", # The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped.
+  "updateTime": "A String", # The time when the package was last updated. This includes publishing a new version of the package.
+}
+
+  updateMask: string, The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Packages are named collections of versions.
+  "annotations": { # Optional. Client specified annotations.
+    "a_key": "A String",
+  },
+  "createTime": "A String", # The time when the package was created.
+  "displayName": "A String", # The display name of the package.
+  "name": "A String", # The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped.
+  "updateTime": "A String", # The time when the package was last updated. This includes publishing a new version of the package.
+}
+
+ \ No newline at end of file diff --git a/googleapiclient/discovery_cache/documents/artifactregistry.v1.json b/googleapiclient/discovery_cache/documents/artifactregistry.v1.json index 0f0fde2df19..cfffd58e0a6 100644 --- a/googleapiclient/discovery_cache/documents/artifactregistry.v1.json +++ b/googleapiclient/discovery_cache/documents/artifactregistry.v1.json @@ -115,6 +115,38 @@ }, "protocol": "rest", "resources": { +"media": { +"methods": { +"download": { +"description": "Download a file.", +"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}:download", +"httpMethod": "GET", +"id": "artifactregistry.media.download", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "Required. The name of the file to download.", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v1/{+name}:download", +"response": { +"$ref": "DownloadFileResponse" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform", +"https://www.googleapis.com/auth/cloud-platform.read-only" +], +"supportsMediaDownload": true, +"useMediaDownloadService": true +} +} +}, "projects": { "methods": { "getProjectSettings": { @@ -1193,6 +1225,40 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only" ] +}, +"patch": { +"description": "Updates a package.", +"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", +"httpMethod": "PATCH", +"id": "artifactregistry.projects.locations.repositories.packages.patch", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped.", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", +"required": true, +"type": "string" +}, +"updateMask": { +"description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", +"format": "google-fieldmask", +"location": "query", +"type": "string" +} +}, +"path": "v1/{+name}", +"request": { +"$ref": "Package" +}, +"response": { +"$ref": "Package" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] } }, "resources": { @@ -1668,7 +1734,7 @@ } } }, -"revision": "20240213", +"revision": "20240308", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1723,6 +1789,10 @@ "description": "Configuration for an Apt remote repository.", "id": "AptRepository", "properties": { +"customRepository": { +"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository", +"description": "Customer-specified remote repository." +}, "publicRepository": { "$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository", "description": "One of the publicly available Apt repositories supported by Artifact Registry." @@ -1941,6 +2011,10 @@ "description": "Configuration for a Docker remote repository.", "id": "DockerRepository", "properties": { +"customRepository": { +"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository", +"description": "Customer-specified remote repository." +}, "publicRepository": { "description": "One of the publicly available Docker repositories supported by Artifact Registry.", "enum": [ @@ -1967,6 +2041,12 @@ }, "type": "object" }, +"DownloadFileResponse": { +"description": "The response to download a file.", +"id": "DownloadFileResponse", +"properties": {}, +"type": "object" +}, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -2090,6 +2170,17 @@ }, "type": "object" }, +"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository": { +"description": "Customer-specified publicly available remote repository.", +"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository", +"properties": { +"uri": { +"description": "An http/https uri reference to the upstream remote repository, for ex: \"https://my.apt.registry/\".", +"type": "string" +} +}, +"type": "object" +}, "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository": { "description": "Publicly available Apt repositories constructed from a common repository base and a custom repository path.", "id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository", @@ -2117,6 +2208,61 @@ }, "type": "object" }, +"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository": { +"description": "Customer-specified publicly available remote repository.", +"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository", +"properties": { +"uri": { +"description": "An http/https uri reference to the custom remote repository, for ex: \"https://registry-1.docker.io\".", +"type": "string" +} +}, +"type": "object" +}, +"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository": { +"description": "Customer-specified publicly available remote repository.", +"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository", +"properties": { +"uri": { +"description": "An http/https uri reference to the upstream remote repository, for ex: \"https://my.maven.registry/\".", +"type": "string" +} +}, +"type": "object" +}, +"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository": { +"description": "Customer-specified publicly available remote repository.", +"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository", +"properties": { +"uri": { +"description": "An http/https uri reference to the upstream remote repository, for ex: \"https://my.npm.registry/\".", +"type": "string" +} +}, +"type": "object" +}, +"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository": { +"description": "Customer-specified publicly available remote repository.", +"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository", +"properties": { +"uri": { +"description": "An http/https uri reference to the upstream remote repository, for ex: \"https://my.python.registry/\".", +"type": "string" +} +}, +"type": "object" +}, +"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository": { +"description": "Customer-specified publicly available remote repository.", +"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository", +"properties": { +"uri": { +"description": "An http/https uri reference to the upstream remote repository, for ex: \"https://my.yum.registry/\".", +"type": "string" +} +}, +"type": "object" +}, "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository": { "description": "Publicly available Yum repositories constructed from a common repository base and a custom repository path.", "id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository", @@ -2662,6 +2808,10 @@ "description": "Configuration for a Maven remote repository.", "id": "MavenRepository", "properties": { +"customRepository": { +"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository", +"description": "Customer-specified remote repository." +}, "publicRepository": { "description": "One of the publicly available Maven repositories supported by Artifact Registry.", "enum": [ @@ -2744,6 +2894,10 @@ "description": "Configuration for a Npm remote repository.", "id": "NpmRepository", "properties": { +"customRepository": { +"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository", +"description": "Customer-specified remote repository." +}, "publicRepository": { "description": "One of the publicly available Npm repositories supported by Artifact Registry.", "enum": [ @@ -2804,6 +2958,13 @@ "description": "Packages are named collections of versions.", "id": "Package", "properties": { +"annotations": { +"additionalProperties": { +"type": "string" +}, +"description": "Optional. Client specified annotations.", +"type": "object" +}, "createTime": { "description": "The time when the package was created.", "format": "google-datetime", @@ -2859,19 +3020,22 @@ "REDIRECTION_STATE_UNSPECIFIED", "REDIRECTION_FROM_GCR_IO_DISABLED", "REDIRECTION_FROM_GCR_IO_ENABLED", -"REDIRECTION_FROM_GCR_IO_FINALIZED" +"REDIRECTION_FROM_GCR_IO_FINALIZED", +"REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING" ], "enumDeprecated": [ false, false, false, -true +true, +false ], "enumDescriptions": [ "No redirection status has been set.", "Redirection is disabled.", "Redirection is enabled.", -"Redirection is enabled, and has been finalized so cannot be reverted." +"Redirection is enabled, and has been finalized so cannot be reverted.", +"Redirection is enabled and missing images are copied from GCR" ], "type": "string" }, @@ -2921,6 +3085,10 @@ true "description": "Configuration for a Python remote repository.", "id": "PythonRepository", "properties": { +"customRepository": { +"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository", +"description": "Customer-specified remote repository." +}, "publicRepository": { "description": "One of the publicly available Python repositories supported by Artifact Registry.", "enum": [ @@ -2948,6 +3116,10 @@ true "description": "The description of the remote source.", "type": "string" }, +"disableUpstreamValidation": { +"description": "Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials.", +"type": "boolean" +}, "dockerRepository": { "$ref": "DockerRepository", "description": "Specific settings for a Docker remote repository." @@ -3516,6 +3688,10 @@ true "description": "Configuration for a Yum remote repository.", "id": "YumRepository", "properties": { +"customRepository": { +"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository", +"description": "Customer-specified remote repository." +}, "publicRepository": { "$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository", "description": "One of the publicly available Yum repositories supported by Artifact Registry." diff --git a/googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json b/googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json index 4e3211198b7..c7a6cd21953 100644 --- a/googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json +++ b/googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json @@ -936,7 +936,7 @@ } } }, -"revision": "20240213", +"revision": "20240308", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "Binding": { diff --git a/googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json b/googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json index e45ee63bbf4..fcbfd2a398b 100644 --- a/googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json +++ b/googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json @@ -115,6 +115,38 @@ }, "protocol": "rest", "resources": { +"media": { +"methods": { +"download": { +"description": "Download a file.", +"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}:download", +"httpMethod": "GET", +"id": "artifactregistry.media.download", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "Required. The name of the file to download.", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v1beta2/{+name}:download", +"response": { +"$ref": "DownloadFileResponse" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform", +"https://www.googleapis.com/auth/cloud-platform.read-only" +], +"supportsMediaDownload": true, +"useMediaDownloadService": true +} +} +}, "projects": { "methods": { "getProjectSettings": { @@ -762,6 +794,40 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only" ] +}, +"patch": { +"description": "Updates a package.", +"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", +"httpMethod": "PATCH", +"id": "artifactregistry.projects.locations.repositories.packages.patch", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped.", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$", +"required": true, +"type": "string" +}, +"updateMask": { +"description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", +"format": "google-fieldmask", +"location": "query", +"type": "string" +} +}, +"path": "v1beta2/{+name}", +"request": { +"$ref": "Package" +}, +"response": { +"$ref": "Package" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] } }, "resources": { @@ -1142,7 +1208,7 @@ } } }, -"revision": "20240213", +"revision": "20240308", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1215,6 +1281,12 @@ }, "type": "object" }, +"DownloadFileResponse": { +"description": "The response to download a file.", +"id": "DownloadFileResponse", +"properties": {}, +"type": "object" +}, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -1663,6 +1735,13 @@ "description": "Packages are named collections of versions.", "id": "Package", "properties": { +"annotations": { +"additionalProperties": { +"type": "string" +}, +"description": "Optional. Client specified annotations.", +"type": "object" +}, "createTime": { "description": "The time when the package was created.", "format": "google-datetime", @@ -1718,19 +1797,22 @@ "REDIRECTION_STATE_UNSPECIFIED", "REDIRECTION_FROM_GCR_IO_DISABLED", "REDIRECTION_FROM_GCR_IO_ENABLED", -"REDIRECTION_FROM_GCR_IO_FINALIZED" +"REDIRECTION_FROM_GCR_IO_FINALIZED", +"REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING" ], "enumDeprecated": [ false, false, false, -true +true, +false ], "enumDescriptions": [ "No redirection status has been set.", "Redirection is disabled.", "Redirection is enabled.", -"Redirection is enabled, and has been finalized so cannot be reverted." +"Redirection is enabled, and has been finalized so cannot be reverted.", +"Redirection is enabled and missing images are copied from GCR" ], "type": "string" },