Skip to content
Permalink
Browse files
feat: add Artifact Registry v1 (#80)
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 committed Sep 24, 2021
1 parent 54bbb01 commit 43413ebd0d6823233573ab88c0340e4165ee4487
Showing with 5,140 additions and 144 deletions.
  1. +10 −0 docs/artifactregistry_v1/artifact_registry.rst
  2. +6 −0 docs/artifactregistry_v1/services.rst
  3. +7 −0 docs/artifactregistry_v1/types.rst
  4. +11 −0 docs/index.rst
  5. +12 −70 google/cloud/artifactregistry/__init__.py
  6. +38 −0 google/cloud/artifactregistry_v1/__init__.py
  7. +53 −0 google/cloud/artifactregistry_v1/gapic_metadata.json
  8. +2 −0 google/cloud/artifactregistry_v1/py.typed
  9. +15 −0 google/cloud/artifactregistry_v1/services/__init__.py
  10. +22 −0 google/cloud/artifactregistry_v1/services/artifact_registry/__init__.py
  11. +425 −0 google/cloud/artifactregistry_v1/services/artifact_registry/async_client.py
  12. +631 −0 google/cloud/artifactregistry_v1/services/artifact_registry/client.py
  13. +284 −0 google/cloud/artifactregistry_v1/services/artifact_registry/pagers.py
  14. +33 −0 google/cloud/artifactregistry_v1/services/artifact_registry/transports/__init__.py
  15. +206 −0 google/cloud/artifactregistry_v1/services/artifact_registry/transports/base.py
  16. +324 −0 google/cloud/artifactregistry_v1/services/artifact_registry/transports/grpc.py
  17. +328 −0 google/cloud/artifactregistry_v1/services/artifact_registry/transports/grpc_asyncio.py
  18. +36 −0 google/cloud/artifactregistry_v1/types/__init__.py
  19. +127 −0 google/cloud/artifactregistry_v1/types/artifact.py
  20. +138 −0 google/cloud/artifactregistry_v1/types/repository.py
  21. +21 −0 google/cloud/artifactregistry_v1/types/service.py
  22. +43 −43 google/cloud/artifactregistry_v1beta2/services/artifact_registry/client.py
  23. +1 −1 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/base.py
  24. +3 −3 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/grpc.py
  25. +3 −3 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/grpc_asyncio.py
  26. +5 −0 google/cloud/artifactregistry_v1beta2/types/package.py
  27. +7 −0 google/cloud/artifactregistry_v1beta2/types/repository.py
  28. +6 −0 google/cloud/artifactregistry_v1beta2/types/tag.py
  29. +4 −0 google/cloud/artifactregistry_v1beta2/types/version.py
  30. +8 −2 owlbot.py
  31. +178 −0 scripts/fixup_artifactregistry_v1_keywords.py
  32. +22 −22 scripts/fixup_artifactregistry_v1beta2_keywords.py
  33. +15 −0 tests/unit/gapic/artifactregistry_v1/__init__.py
  34. +2,116 −0 tests/unit/gapic/artifactregistry_v1/test_artifact_registry.py
@@ -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:
@@ -0,0 +1,6 @@
Services for Google Cloud Artifactregistry v1 API
=================================================
.. toctree::
:maxdepth: 2

artifact_registry
@@ -0,0 +1,7 @@
Types for Google Cloud Artifactregistry v1 API
==============================================

.. automodule:: google.cloud.artifactregistry_v1.types
:members:
:undoc-members:
:show-inheritance:
@@ -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::
@@ -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",
)
@@ -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",
)
@@ -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"
]
}
}
}
}
}
}
}
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-artifact-registry package uses inline types.
@@ -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",
)
Loading

0 comments on commit 43413eb

Please sign in to comment.