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

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: upgrade gapic-generator-python to 0.46.3 (#36)
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[bot] committed May 14, 2021
1 parent 07200ca commit 013202c
Show file tree
Hide file tree
Showing 22 changed files with 844 additions and 674 deletions.
1 change: 0 additions & 1 deletion docs/networkconnectivity_v1alpha1/hub_service.rst
Expand Up @@ -5,7 +5,6 @@ HubService
:members:
:inherited-members:


.. automodule:: google.cloud.networkconnectivity_v1alpha1.services.hub_service.pagers
:members:
:inherited-members:
18 changes: 9 additions & 9 deletions google/cloud/networkconnectivity/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

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

from google.cloud.networkconnectivity_v1alpha1.services.hub_service.async_client import (
HubServiceAsyncClient,
)
from google.cloud.networkconnectivity_v1alpha1.services.hub_service.client import (
HubServiceClient,
)
from google.cloud.networkconnectivity_v1alpha1.services.hub_service.async_client import (
HubServiceAsyncClient,
)

from google.cloud.networkconnectivity_v1alpha1.types.common import OperationMetadata
from google.cloud.networkconnectivity_v1alpha1.types.hub import CreateHubRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import CreateSpokeRequest
Expand All @@ -35,28 +35,28 @@
from google.cloud.networkconnectivity_v1alpha1.types.hub import ListSpokesResponse
from google.cloud.networkconnectivity_v1alpha1.types.hub import RouterApplianceInstance
from google.cloud.networkconnectivity_v1alpha1.types.hub import Spoke
from google.cloud.networkconnectivity_v1alpha1.types.hub import State
from google.cloud.networkconnectivity_v1alpha1.types.hub import UpdateHubRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import UpdateSpokeRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import State

__all__ = (
"HubServiceClient",
"HubServiceAsyncClient",
"OperationMetadata",
"CreateHubRequest",
"CreateSpokeRequest",
"DeleteHubRequest",
"DeleteSpokeRequest",
"GetHubRequest",
"GetSpokeRequest",
"Hub",
"HubServiceAsyncClient",
"HubServiceClient",
"ListHubsRequest",
"ListHubsResponse",
"ListSpokesRequest",
"ListSpokesResponse",
"OperationMetadata",
"RouterApplianceInstance",
"Spoke",
"State",
"UpdateHubRequest",
"UpdateSpokeRequest",
"State",
)
9 changes: 5 additions & 4 deletions google/cloud/networkconnectivity_v1alpha1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

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

from .services.hub_service import HubServiceClient
from .services.hub_service import HubServiceAsyncClient

from .types.common import OperationMetadata
from .types.hub import CreateHubRequest
from .types.hub import CreateSpokeRequest
Expand All @@ -30,19 +31,20 @@
from .types.hub import ListSpokesResponse
from .types.hub import RouterApplianceInstance
from .types.hub import Spoke
from .types.hub import State
from .types.hub import UpdateHubRequest
from .types.hub import UpdateSpokeRequest

from .types.hub import State

__all__ = (
"HubServiceAsyncClient",
"CreateHubRequest",
"CreateSpokeRequest",
"DeleteHubRequest",
"DeleteSpokeRequest",
"GetHubRequest",
"GetSpokeRequest",
"Hub",
"HubServiceClient",
"ListHubsRequest",
"ListHubsResponse",
"ListSpokesRequest",
Expand All @@ -53,5 +55,4 @@
"State",
"UpdateHubRequest",
"UpdateSpokeRequest",
"HubServiceClient",
)
123 changes: 123 additions & 0 deletions google/cloud/networkconnectivity_v1alpha1/gapic_metadata.json
@@ -0,0 +1,123 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.networkconnectivity_v1alpha1",
"protoPackage": "google.cloud.networkconnectivity.v1alpha1",
"schema": "1.0",
"services": {
"HubService": {
"clients": {
"grpc": {
"libraryClient": "HubServiceClient",
"rpcs": {
"CreateHub": {
"methods": [
"create_hub"
]
},
"CreateSpoke": {
"methods": [
"create_spoke"
]
},
"DeleteHub": {
"methods": [
"delete_hub"
]
},
"DeleteSpoke": {
"methods": [
"delete_spoke"
]
},
"GetHub": {
"methods": [
"get_hub"
]
},
"GetSpoke": {
"methods": [
"get_spoke"
]
},
"ListHubs": {
"methods": [
"list_hubs"
]
},
"ListSpokes": {
"methods": [
"list_spokes"
]
},
"UpdateHub": {
"methods": [
"update_hub"
]
},
"UpdateSpoke": {
"methods": [
"update_spoke"
]
}
}
},
"grpc-async": {
"libraryClient": "HubServiceAsyncClient",
"rpcs": {
"CreateHub": {
"methods": [
"create_hub"
]
},
"CreateSpoke": {
"methods": [
"create_spoke"
]
},
"DeleteHub": {
"methods": [
"delete_hub"
]
},
"DeleteSpoke": {
"methods": [
"delete_spoke"
]
},
"GetHub": {
"methods": [
"get_hub"
]
},
"GetSpoke": {
"methods": [
"get_spoke"
]
},
"ListHubs": {
"methods": [
"list_hubs"
]
},
"ListSpokes": {
"methods": [
"list_spokes"
]
},
"UpdateHub": {
"methods": [
"update_hub"
]
},
"UpdateSpoke": {
"methods": [
"update_spoke"
]
}
}
}
}
}
}
}
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

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

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

from .client import HubServiceClient
from .async_client import HubServiceAsyncClient

Expand Down

0 comments on commit 013202c

Please sign in to comment.