Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
feat: add Artifact Registry v1 (#80)
Browse files Browse the repository at this point in the history
Closes #29 

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 398566070

Source-Link: googleapis/googleapis@aa73c56

Source-Link: googleapis/googleapis-gen@3106a9f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzEwNmE5ZmM0MWQwNGNiZjBiNzY4YzYwYzE4YmZhZjY4ZGM3Njc2ZiJ9

chore: use gapic-generator-python 0.51.2
feat: set artifactregistry_v1 as the default import
fix: add 'dict' annotation type to 'request'
  • Loading branch information
gcf-owl-bot[bot] committed Sep 24, 2021
1 parent 54bbb01 commit 43413eb
Show file tree
Hide file tree
Showing 34 changed files with 5,140 additions and 144 deletions.
10 changes: 10 additions & 0 deletions docs/artifactregistry_v1/artifact_registry.rst
@@ -0,0 +1,10 @@
ArtifactRegistry
----------------------------------

.. automodule:: google.cloud.artifactregistry_v1.services.artifact_registry
:members:
:inherited-members:

.. automodule:: google.cloud.artifactregistry_v1.services.artifact_registry.pagers
:members:
:inherited-members:
6 changes: 6 additions & 0 deletions docs/artifactregistry_v1/services.rst
@@ -0,0 +1,6 @@
Services for Google Cloud Artifactregistry v1 API
=================================================
.. toctree::
:maxdepth: 2

artifact_registry
7 changes: 7 additions & 0 deletions docs/artifactregistry_v1/types.rst
@@ -0,0 +1,7 @@
Types for Google Cloud Artifactregistry v1 API
==============================================

.. automodule:: google.cloud.artifactregistry_v1.types
:members:
:undoc-members:
:show-inheritance:
11 changes: 11 additions & 0 deletions docs/index.rst
Expand Up @@ -2,6 +2,17 @@

.. include:: multiprocessing.rst

This package includes clients for multiple versions of Artifact Registry.
By default, you will get version ``v1``.

API Reference
-------------
.. toctree::
:maxdepth: 2

artifactregistry_v1/services
artifactregistry_v1/types

API Reference
-------------
.. toctree::
Expand Down
82 changes: 12 additions & 70 deletions google/cloud/artifactregistry/__init__.py
Expand Up @@ -14,87 +14,29 @@
# limitations under the License.
#

from google.cloud.artifactregistry_v1beta2.services.artifact_registry.client import (
from google.cloud.artifactregistry_v1.services.artifact_registry.client import (
ArtifactRegistryClient,
)
from google.cloud.artifactregistry_v1beta2.services.artifact_registry.async_client import (
from google.cloud.artifactregistry_v1.services.artifact_registry.async_client import (
ArtifactRegistryAsyncClient,
)

from google.cloud.artifactregistry_v1beta2.types.file import File
from google.cloud.artifactregistry_v1beta2.types.file import GetFileRequest
from google.cloud.artifactregistry_v1beta2.types.file import Hash
from google.cloud.artifactregistry_v1beta2.types.file import ListFilesRequest
from google.cloud.artifactregistry_v1beta2.types.file import ListFilesResponse
from google.cloud.artifactregistry_v1beta2.types.package import DeletePackageRequest
from google.cloud.artifactregistry_v1beta2.types.package import GetPackageRequest
from google.cloud.artifactregistry_v1beta2.types.package import ListPackagesRequest
from google.cloud.artifactregistry_v1beta2.types.package import ListPackagesResponse
from google.cloud.artifactregistry_v1beta2.types.package import Package
from google.cloud.artifactregistry_v1beta2.types.repository import (
CreateRepositoryRequest,
)
from google.cloud.artifactregistry_v1beta2.types.repository import (
DeleteRepositoryRequest,
)
from google.cloud.artifactregistry_v1beta2.types.repository import GetRepositoryRequest
from google.cloud.artifactregistry_v1beta2.types.repository import (
ListRepositoriesRequest,
)
from google.cloud.artifactregistry_v1beta2.types.repository import (
ListRepositoriesResponse,
)
from google.cloud.artifactregistry_v1beta2.types.repository import Repository
from google.cloud.artifactregistry_v1beta2.types.repository import (
UpdateRepositoryRequest,
)
from google.cloud.artifactregistry_v1beta2.types.service import OperationMetadata
from google.cloud.artifactregistry_v1beta2.types.tag import CreateTagRequest
from google.cloud.artifactregistry_v1beta2.types.tag import DeleteTagRequest
from google.cloud.artifactregistry_v1beta2.types.tag import GetTagRequest
from google.cloud.artifactregistry_v1beta2.types.tag import ListTagsRequest
from google.cloud.artifactregistry_v1beta2.types.tag import ListTagsResponse
from google.cloud.artifactregistry_v1beta2.types.tag import Tag
from google.cloud.artifactregistry_v1beta2.types.tag import UpdateTagRequest
from google.cloud.artifactregistry_v1beta2.types.version import DeleteVersionRequest
from google.cloud.artifactregistry_v1beta2.types.version import GetVersionRequest
from google.cloud.artifactregistry_v1beta2.types.version import ListVersionsRequest
from google.cloud.artifactregistry_v1beta2.types.version import ListVersionsResponse
from google.cloud.artifactregistry_v1beta2.types.version import Version
from google.cloud.artifactregistry_v1beta2.types.version import VersionView
from google.cloud.artifactregistry_v1.types.artifact import DockerImage
from google.cloud.artifactregistry_v1.types.artifact import ListDockerImagesRequest
from google.cloud.artifactregistry_v1.types.artifact import ListDockerImagesResponse
from google.cloud.artifactregistry_v1.types.repository import GetRepositoryRequest
from google.cloud.artifactregistry_v1.types.repository import ListRepositoriesRequest
from google.cloud.artifactregistry_v1.types.repository import ListRepositoriesResponse
from google.cloud.artifactregistry_v1.types.repository import Repository

__all__ = (
"ArtifactRegistryClient",
"ArtifactRegistryAsyncClient",
"File",
"GetFileRequest",
"Hash",
"ListFilesRequest",
"ListFilesResponse",
"DeletePackageRequest",
"GetPackageRequest",
"ListPackagesRequest",
"ListPackagesResponse",
"Package",
"CreateRepositoryRequest",
"DeleteRepositoryRequest",
"DockerImage",
"ListDockerImagesRequest",
"ListDockerImagesResponse",
"GetRepositoryRequest",
"ListRepositoriesRequest",
"ListRepositoriesResponse",
"Repository",
"UpdateRepositoryRequest",
"OperationMetadata",
"CreateTagRequest",
"DeleteTagRequest",
"GetTagRequest",
"ListTagsRequest",
"ListTagsResponse",
"Tag",
"UpdateTagRequest",
"DeleteVersionRequest",
"GetVersionRequest",
"ListVersionsRequest",
"ListVersionsResponse",
"Version",
"VersionView",
)
38 changes: 38 additions & 0 deletions google/cloud/artifactregistry_v1/__init__.py
@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .services.artifact_registry import ArtifactRegistryClient
from .services.artifact_registry import ArtifactRegistryAsyncClient

from .types.artifact import DockerImage
from .types.artifact import ListDockerImagesRequest
from .types.artifact import ListDockerImagesResponse
from .types.repository import GetRepositoryRequest
from .types.repository import ListRepositoriesRequest
from .types.repository import ListRepositoriesResponse
from .types.repository import Repository

__all__ = (
"ArtifactRegistryAsyncClient",
"ArtifactRegistryClient",
"DockerImage",
"GetRepositoryRequest",
"ListDockerImagesRequest",
"ListDockerImagesResponse",
"ListRepositoriesRequest",
"ListRepositoriesResponse",
"Repository",
)
53 changes: 53 additions & 0 deletions google/cloud/artifactregistry_v1/gapic_metadata.json
@@ -0,0 +1,53 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.artifactregistry_v1",
"protoPackage": "google.devtools.artifactregistry.v1",
"schema": "1.0",
"services": {
"ArtifactRegistry": {
"clients": {
"grpc": {
"libraryClient": "ArtifactRegistryClient",
"rpcs": {
"GetRepository": {
"methods": [
"get_repository"
]
},
"ListDockerImages": {
"methods": [
"list_docker_images"
]
},
"ListRepositories": {
"methods": [
"list_repositories"
]
}
}
},
"grpc-async": {
"libraryClient": "ArtifactRegistryAsyncClient",
"rpcs": {
"GetRepository": {
"methods": [
"get_repository"
]
},
"ListDockerImages": {
"methods": [
"list_docker_images"
]
},
"ListRepositories": {
"methods": [
"list_repositories"
]
}
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions google/cloud/artifactregistry_v1/py.typed
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-artifact-registry package uses inline types.
15 changes: 15 additions & 0 deletions google/cloud/artifactregistry_v1/services/__init__.py
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import ArtifactRegistryClient
from .async_client import ArtifactRegistryAsyncClient

__all__ = (
"ArtifactRegistryClient",
"ArtifactRegistryAsyncClient",
)

0 comments on commit 43413eb

Please sign in to comment.