Skip to content
Permalink
Browse files
feat: support self-signed JWT flow for service accounts (#25)
* chore: upgrade gapic-generator-python to 0.46.3

PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: googleapis/googleapis-gen@0a3c7d2

* 🦉 Updates from OwlBot

* add workaround for gapic generator docstring bug

* run post processor

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Dina Graves Portman <dinagraves@google.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people committed May 20, 2021
1 parent b1e4de0 commit fade594980fa8f389abc0e3f84e34cb1bcda1f1e
Showing with 1,367 additions and 1,195 deletions.
  1. +0 −1 docs/artifactregistry_v1beta2/artifact_registry.rst
  2. +21 −21 google/cloud/artifactregistry/__init__.py
  3. +4 −3 google/cloud/artifactregistry_v1beta2/__init__.py
  4. +233 −0 google/cloud/artifactregistry_v1beta2/gapic_metadata.json
  5. +0 −1 google/cloud/artifactregistry_v1beta2/services/__init__.py
  6. +0 −2 google/cloud/artifactregistry_v1beta2/services/artifact_registry/__init__.py
  7. +72 −92 google/cloud/artifactregistry_v1beta2/services/artifact_registry/async_client.py
  8. +56 −113 google/cloud/artifactregistry_v1beta2/services/artifact_registry/client.py
  9. +5 −7 google/cloud/artifactregistry_v1beta2/services/artifact_registry/pagers.py
  10. +0 −2 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/__init__.py
  11. +174 −98 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/base.py
  12. +35 −34 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/grpc.py
  13. +37 −36 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/grpc_asyncio.py
  14. +0 −2 google/cloud/artifactregistry_v1beta2/types/__init__.py
  15. +13 −26 google/cloud/artifactregistry_v1beta2/types/file.py
  16. +11 −25 google/cloud/artifactregistry_v1beta2/types/package.py
  17. +19 −39 google/cloud/artifactregistry_v1beta2/types/repository.py
  18. +1 −3 google/cloud/artifactregistry_v1beta2/types/service.py
  19. +0 −1 google/cloud/artifactregistry_v1beta2/types/settings.py
  20. +15 −30 google/cloud/artifactregistry_v1beta2/types/tag.py
  21. +12 −29 google/cloud/artifactregistry_v1beta2/types/version.py
  22. +8 −0 owlbot.py
  23. +22 −25 scripts/fixup_artifactregistry_v1beta2_keywords.py
  24. +15 −0 tests/__init__.py
  25. +15 −0 tests/unit/__init__.py
  26. +15 −0 tests/unit/gapic/__init__.py
  27. +0 −1 tests/unit/gapic/artifactregistry_v1beta2/__init__.py
  28. +584 −604 tests/unit/gapic/artifactregistry_v1beta2/test_artifact_registry.py
@@ -5,7 +5,6 @@ ArtifactRegistry
:members:
:inherited-members:


.. automodule:: google.cloud.artifactregistry_v1beta2.services.artifact_registry.pagers
:members:
:inherited-members:
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,12 +14,13 @@
# limitations under the License.
#

from google.cloud.artifactregistry_v1beta2.services.artifact_registry.async_client import (
ArtifactRegistryAsyncClient,
)
from google.cloud.artifactregistry_v1beta2.services.artifact_registry.client import (
ArtifactRegistryClient,
)
from google.cloud.artifactregistry_v1beta2.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
@@ -64,37 +64,37 @@
from google.cloud.artifactregistry_v1beta2.types.version import VersionView

__all__ = (
"ArtifactRegistryAsyncClient",
"ArtifactRegistryClient",
"CreateRepositoryRequest",
"CreateTagRequest",
"DeletePackageRequest",
"DeleteRepositoryRequest",
"DeleteTagRequest",
"DeleteVersionRequest",
"ArtifactRegistryAsyncClient",
"File",
"GetFileRequest",
"GetPackageRequest",
"GetRepositoryRequest",
"GetTagRequest",
"GetVersionRequest",
"Hash",
"ListFilesRequest",
"ListFilesResponse",
"DeletePackageRequest",
"GetPackageRequest",
"ListPackagesRequest",
"ListPackagesResponse",
"Package",
"CreateRepositoryRequest",
"DeleteRepositoryRequest",
"GetRepositoryRequest",
"ListRepositoriesRequest",
"ListRepositoriesResponse",
"Repository",
"UpdateRepositoryRequest",
"OperationMetadata",
"CreateTagRequest",
"DeleteTagRequest",
"GetTagRequest",
"ListTagsRequest",
"ListTagsResponse",
"ListVersionsRequest",
"ListVersionsResponse",
"OperationMetadata",
"Package",
"Repository",
"Tag",
"UpdateRepositoryRequest",
"UpdateTagRequest",
"DeleteVersionRequest",
"GetVersionRequest",
"ListVersionsRequest",
"ListVersionsResponse",
"Version",
"VersionView",
)
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +15,8 @@
#

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

from .types.file import File
from .types.file import GetFileRequest
from .types.file import Hash
@@ -48,8 +49,9 @@
from .types.version import Version
from .types.version import VersionView


__all__ = (
"ArtifactRegistryAsyncClient",
"ArtifactRegistryClient",
"CreateRepositoryRequest",
"CreateTagRequest",
"DeletePackageRequest",
@@ -81,5 +83,4 @@
"UpdateTagRequest",
"Version",
"VersionView",
"ArtifactRegistryClient",
)
@@ -0,0 +1,233 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.artifactregistry_v1beta2",
"protoPackage": "google.devtools.artifactregistry.v1beta2",
"schema": "1.0",
"services": {
"ArtifactRegistry": {
"clients": {
"grpc": {
"libraryClient": "ArtifactRegistryClient",
"rpcs": {
"CreateRepository": {
"methods": [
"create_repository"
]
},
"CreateTag": {
"methods": [
"create_tag"
]
},
"DeletePackage": {
"methods": [
"delete_package"
]
},
"DeleteRepository": {
"methods": [
"delete_repository"
]
},
"DeleteTag": {
"methods": [
"delete_tag"
]
},
"DeleteVersion": {
"methods": [
"delete_version"
]
},
"GetFile": {
"methods": [
"get_file"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetPackage": {
"methods": [
"get_package"
]
},
"GetRepository": {
"methods": [
"get_repository"
]
},
"GetTag": {
"methods": [
"get_tag"
]
},
"GetVersion": {
"methods": [
"get_version"
]
},
"ListFiles": {
"methods": [
"list_files"
]
},
"ListPackages": {
"methods": [
"list_packages"
]
},
"ListRepositories": {
"methods": [
"list_repositories"
]
},
"ListTags": {
"methods": [
"list_tags"
]
},
"ListVersions": {
"methods": [
"list_versions"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateRepository": {
"methods": [
"update_repository"
]
},
"UpdateTag": {
"methods": [
"update_tag"
]
}
}
},
"grpc-async": {
"libraryClient": "ArtifactRegistryAsyncClient",
"rpcs": {
"CreateRepository": {
"methods": [
"create_repository"
]
},
"CreateTag": {
"methods": [
"create_tag"
]
},
"DeletePackage": {
"methods": [
"delete_package"
]
},
"DeleteRepository": {
"methods": [
"delete_repository"
]
},
"DeleteTag": {
"methods": [
"delete_tag"
]
},
"DeleteVersion": {
"methods": [
"delete_version"
]
},
"GetFile": {
"methods": [
"get_file"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetPackage": {
"methods": [
"get_package"
]
},
"GetRepository": {
"methods": [
"get_repository"
]
},
"GetTag": {
"methods": [
"get_tag"
]
},
"GetVersion": {
"methods": [
"get_version"
]
},
"ListFiles": {
"methods": [
"list_files"
]
},
"ListPackages": {
"methods": [
"list_packages"
]
},
"ListRepositories": {
"methods": [
"list_repositories"
]
},
"ListTags": {
"methods": [
"list_tags"
]
},
"ListVersions": {
"methods": [
"list_versions"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateRepository": {
"methods": [
"update_repository"
]
},
"UpdateTag": {
"methods": [
"update_tag"
]
}
}
}
}
}
}
}
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import ArtifactRegistryClient
from .async_client import ArtifactRegistryAsyncClient

Loading

0 comments on commit fade594

Please sign in to comment.