Skip to content
Permalink
Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#74)
PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

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

fix: add async client to %name_%version/init.py
chore: add autogenerated snippets
chore: remove auth, policy, and options from the reserved names list
feat: support self-signed JWT flow for service accounts
chore: enable GAPIC metadata generation
chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot committed May 21, 2021
1 parent b267e2f commit a0387dd9d4fd8303e96f2d028b5c450546e26ec0
Showing with 3,191 additions and 2,209 deletions.
  1. +0 −1 docs/servicedirectory_v1/registration_service.rst
  2. +0 −1 docs/servicedirectory_v1beta1/registration_service.rst
  3. +15 −15 google/cloud/servicedirectory/__init__.py
  4. +6 −3 google/cloud/servicedirectory_v1/__init__.py
  5. +227 −0 google/cloud/servicedirectory_v1/gapic_metadata.json
  6. +0 −1 google/cloud/servicedirectory_v1/services/__init__.py
  7. +0 −2 google/cloud/servicedirectory_v1/services/lookup_service/__init__.py
  8. +8 −18 google/cloud/servicedirectory_v1/services/lookup_service/async_client.py
  9. +34 −33 google/cloud/servicedirectory_v1/services/lookup_service/client.py
  10. +0 −2 google/cloud/servicedirectory_v1/services/lookup_service/transports/__init__.py
  11. +82 −22 google/cloud/servicedirectory_v1/services/lookup_service/transports/base.py
  12. +11 −11 google/cloud/servicedirectory_v1/services/lookup_service/transports/grpc.py
  13. +11 −12 google/cloud/servicedirectory_v1/services/lookup_service/transports/grpc_asyncio.py
  14. +0 −2 google/cloud/servicedirectory_v1/services/registration_service/__init__.py
  15. +23 −67 google/cloud/servicedirectory_v1/services/registration_service/async_client.py
  16. +54 −102 google/cloud/servicedirectory_v1/services/registration_service/client.py
  17. +3 −5 google/cloud/servicedirectory_v1/services/registration_service/pagers.py
  18. +0 −2 google/cloud/servicedirectory_v1/services/registration_service/transports/__init__.py
  19. +126 −70 google/cloud/servicedirectory_v1/services/registration_service/transports/base.py
  20. +30 −29 google/cloud/servicedirectory_v1/services/registration_service/transports/grpc.py
  21. +34 −31 google/cloud/servicedirectory_v1/services/registration_service/transports/grpc_asyncio.py
  22. +0 −2 google/cloud/servicedirectory_v1/types/__init__.py
  23. +4 −9 google/cloud/servicedirectory_v1/types/endpoint.py
  24. +3 −8 google/cloud/servicedirectory_v1/types/lookup_service.py
  25. +2 −5 google/cloud/servicedirectory_v1/types/namespace.py
  26. +40 −61 google/cloud/servicedirectory_v1/types/registration_service.py
  27. +2 −7 google/cloud/servicedirectory_v1/types/service.py
  28. +6 −3 google/cloud/servicedirectory_v1beta1/__init__.py
  29. +227 −0 google/cloud/servicedirectory_v1beta1/gapic_metadata.json
  30. +0 −1 google/cloud/servicedirectory_v1beta1/services/__init__.py
  31. +0 −2 google/cloud/servicedirectory_v1beta1/services/lookup_service/__init__.py
  32. +8 −18 google/cloud/servicedirectory_v1beta1/services/lookup_service/async_client.py
  33. +34 −33 google/cloud/servicedirectory_v1beta1/services/lookup_service/client.py
  34. +0 −2 google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/__init__.py
  35. +82 −22 google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/base.py
  36. +11 −11 google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/grpc.py
  37. +11 −12 google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/grpc_asyncio.py
  38. +0 −2 google/cloud/servicedirectory_v1beta1/services/registration_service/__init__.py
  39. +23 −67 google/cloud/servicedirectory_v1beta1/services/registration_service/async_client.py
  40. +54 −102 google/cloud/servicedirectory_v1beta1/services/registration_service/client.py
  41. +3 −5 google/cloud/servicedirectory_v1beta1/services/registration_service/pagers.py
  42. +0 −2 google/cloud/servicedirectory_v1beta1/services/registration_service/transports/__init__.py
  43. +126 −70 google/cloud/servicedirectory_v1beta1/services/registration_service/transports/base.py
  44. +30 −29 google/cloud/servicedirectory_v1beta1/services/registration_service/transports/grpc.py
  45. +34 −31 google/cloud/servicedirectory_v1beta1/services/registration_service/transports/grpc_asyncio.py
  46. +0 −2 google/cloud/servicedirectory_v1beta1/types/__init__.py
  47. +4 −9 google/cloud/servicedirectory_v1beta1/types/endpoint.py
  48. +3 −8 google/cloud/servicedirectory_v1beta1/types/lookup_service.py
  49. +2 −5 google/cloud/servicedirectory_v1beta1/types/namespace.py
  50. +40 −61 google/cloud/servicedirectory_v1beta1/types/registration_service.py
  51. +2 −7 google/cloud/servicedirectory_v1beta1/types/service.py
  52. +1 −0 setup.py
  53. +2 −0 testing/constraints-3.6.txt
  54. +15 −0 tests/__init__.py
  55. +15 −0 tests/unit/__init__.py
  56. +15 −0 tests/unit/gapic/__init__.py
  57. +0 −1 tests/unit/gapic/servicedirectory_v1/__init__.py
  58. +249 −59 tests/unit/gapic/servicedirectory_v1/test_lookup_service.py
  59. +615 −532 tests/unit/gapic/servicedirectory_v1/test_registration_service.py
  60. +0 −1 tests/unit/gapic/servicedirectory_v1beta1/__init__.py
  61. +249 −59 tests/unit/gapic/servicedirectory_v1beta1/test_lookup_service.py
  62. +615 −532 tests/unit/gapic/servicedirectory_v1beta1/test_registration_service.py
@@ -5,7 +5,6 @@ RegistrationService
:members:
:inherited-members:


.. automodule:: google.cloud.servicedirectory_v1.services.registration_service.pagers
:members:
:inherited-members:
@@ -5,7 +5,6 @@ RegistrationService
:members:
:inherited-members:


.. automodule:: google.cloud.servicedirectory_v1beta1.services.registration_service.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,18 +14,19 @@
# limitations under the License.
#

from google.cloud.servicedirectory_v1.services.lookup_service.async_client import (
LookupServiceAsyncClient,
)
from google.cloud.servicedirectory_v1.services.lookup_service.client import (
LookupServiceClient,
)
from google.cloud.servicedirectory_v1.services.registration_service.async_client import (
RegistrationServiceAsyncClient,
from google.cloud.servicedirectory_v1.services.lookup_service.async_client import (
LookupServiceAsyncClient,
)
from google.cloud.servicedirectory_v1.services.registration_service.client import (
RegistrationServiceClient,
)
from google.cloud.servicedirectory_v1.services.registration_service.async_client import (
RegistrationServiceAsyncClient,
)

from google.cloud.servicedirectory_v1.types.endpoint import Endpoint
from google.cloud.servicedirectory_v1.types.lookup_service import ResolveServiceRequest
from google.cloud.servicedirectory_v1.types.lookup_service import ResolveServiceResponse
@@ -88,13 +88,20 @@
from google.cloud.servicedirectory_v1.types.service import Service

__all__ = (
"LookupServiceClient",
"LookupServiceAsyncClient",
"RegistrationServiceClient",
"RegistrationServiceAsyncClient",
"Endpoint",
"ResolveServiceRequest",
"ResolveServiceResponse",
"Namespace",
"CreateEndpointRequest",
"CreateNamespaceRequest",
"CreateServiceRequest",
"DeleteEndpointRequest",
"DeleteNamespaceRequest",
"DeleteServiceRequest",
"Endpoint",
"GetEndpointRequest",
"GetNamespaceRequest",
"GetServiceRequest",
@@ -104,15 +111,8 @@
"ListNamespacesResponse",
"ListServicesRequest",
"ListServicesResponse",
"LookupServiceAsyncClient",
"LookupServiceClient",
"Namespace",
"RegistrationServiceAsyncClient",
"RegistrationServiceClient",
"ResolveServiceRequest",
"ResolveServiceResponse",
"Service",
"UpdateEndpointRequest",
"UpdateNamespaceRequest",
"UpdateServiceRequest",
"Service",
)
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

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

from .services.lookup_service import LookupServiceClient
from .services.lookup_service import LookupServiceAsyncClient
from .services.registration_service import RegistrationServiceClient
from .services.registration_service import RegistrationServiceAsyncClient

from .types.endpoint import Endpoint
from .types.lookup_service import ResolveServiceRequest
from .types.lookup_service import ResolveServiceResponse
@@ -41,8 +43,9 @@
from .types.registration_service import UpdateServiceRequest
from .types.service import Service


__all__ = (
"LookupServiceAsyncClient",
"RegistrationServiceAsyncClient",
"CreateEndpointRequest",
"CreateNamespaceRequest",
"CreateServiceRequest",
@@ -61,11 +64,11 @@
"ListServicesResponse",
"LookupServiceClient",
"Namespace",
"RegistrationServiceClient",
"ResolveServiceRequest",
"ResolveServiceResponse",
"Service",
"UpdateEndpointRequest",
"UpdateNamespaceRequest",
"UpdateServiceRequest",
"RegistrationServiceClient",
)
@@ -0,0 +1,227 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.servicedirectory_v1",
"protoPackage": "google.cloud.servicedirectory.v1",
"schema": "1.0",
"services": {
"LookupService": {
"clients": {
"grpc": {
"libraryClient": "LookupServiceClient",
"rpcs": {
"ResolveService": {
"methods": [
"resolve_service"
]
}
}
},
"grpc-async": {
"libraryClient": "LookupServiceAsyncClient",
"rpcs": {
"ResolveService": {
"methods": [
"resolve_service"
]
}
}
}
}
},
"RegistrationService": {
"clients": {
"grpc": {
"libraryClient": "RegistrationServiceClient",
"rpcs": {
"CreateEndpoint": {
"methods": [
"create_endpoint"
]
},
"CreateNamespace": {
"methods": [
"create_namespace"
]
},
"CreateService": {
"methods": [
"create_service"
]
},
"DeleteEndpoint": {
"methods": [
"delete_endpoint"
]
},
"DeleteNamespace": {
"methods": [
"delete_namespace"
]
},
"DeleteService": {
"methods": [
"delete_service"
]
},
"GetEndpoint": {
"methods": [
"get_endpoint"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetNamespace": {
"methods": [
"get_namespace"
]
},
"GetService": {
"methods": [
"get_service"
]
},
"ListEndpoints": {
"methods": [
"list_endpoints"
]
},
"ListNamespaces": {
"methods": [
"list_namespaces"
]
},
"ListServices": {
"methods": [
"list_services"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateEndpoint": {
"methods": [
"update_endpoint"
]
},
"UpdateNamespace": {
"methods": [
"update_namespace"
]
},
"UpdateService": {
"methods": [
"update_service"
]
}
}
},
"grpc-async": {
"libraryClient": "RegistrationServiceAsyncClient",
"rpcs": {
"CreateEndpoint": {
"methods": [
"create_endpoint"
]
},
"CreateNamespace": {
"methods": [
"create_namespace"
]
},
"CreateService": {
"methods": [
"create_service"
]
},
"DeleteEndpoint": {
"methods": [
"delete_endpoint"
]
},
"DeleteNamespace": {
"methods": [
"delete_namespace"
]
},
"DeleteService": {
"methods": [
"delete_service"
]
},
"GetEndpoint": {
"methods": [
"get_endpoint"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetNamespace": {
"methods": [
"get_namespace"
]
},
"GetService": {
"methods": [
"get_service"
]
},
"ListEndpoints": {
"methods": [
"list_endpoints"
]
},
"ListNamespaces": {
"methods": [
"list_namespaces"
]
},
"ListServices": {
"methods": [
"list_services"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateEndpoint": {
"methods": [
"update_endpoint"
]
},
"UpdateNamespace": {
"methods": [
"update_namespace"
]
},
"UpdateService": {
"methods": [
"update_service"
]
}
}
}
}
}
}
}
@@ -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 LookupServiceClient
from .async_client import LookupServiceAsyncClient

Loading

0 comments on commit a0387dd

Please sign in to comment.