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

Commit 013202c

Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#36)
PiperOrigin-RevId: 373649163 Source-Link: googleapis/googleapis@7e1b14e Source-Link: https://github.com/googleapis/googleapis-gen/commit/0a3c7d272d697796db75857bac73905c68e498c3 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
1 parent 07200ca commit 013202c

File tree

22 files changed

+844
-674
lines changed

22 files changed

+844
-674
lines changed

docs/networkconnectivity_v1alpha1/hub_service.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ HubService
55
:members:
66
:inherited-members:
77

8-
98
.. automodule:: google.cloud.networkconnectivity_v1alpha1.services.hub_service.pagers
109
:members:
1110
:inherited-members:

google/cloud/networkconnectivity/__init__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,12 +14,13 @@
1514
# limitations under the License.
1615
#
1716

18-
from google.cloud.networkconnectivity_v1alpha1.services.hub_service.async_client import (
19-
HubServiceAsyncClient,
20-
)
2117
from google.cloud.networkconnectivity_v1alpha1.services.hub_service.client import (
2218
HubServiceClient,
2319
)
20+
from google.cloud.networkconnectivity_v1alpha1.services.hub_service.async_client import (
21+
HubServiceAsyncClient,
22+
)
23+
2424
from google.cloud.networkconnectivity_v1alpha1.types.common import OperationMetadata
2525
from google.cloud.networkconnectivity_v1alpha1.types.hub import CreateHubRequest
2626
from google.cloud.networkconnectivity_v1alpha1.types.hub import CreateSpokeRequest
@@ -35,28 +35,28 @@
3535
from google.cloud.networkconnectivity_v1alpha1.types.hub import ListSpokesResponse
3636
from google.cloud.networkconnectivity_v1alpha1.types.hub import RouterApplianceInstance
3737
from google.cloud.networkconnectivity_v1alpha1.types.hub import Spoke
38-
from google.cloud.networkconnectivity_v1alpha1.types.hub import State
3938
from google.cloud.networkconnectivity_v1alpha1.types.hub import UpdateHubRequest
4039
from google.cloud.networkconnectivity_v1alpha1.types.hub import UpdateSpokeRequest
40+
from google.cloud.networkconnectivity_v1alpha1.types.hub import State
4141

4242
__all__ = (
43+
"HubServiceClient",
44+
"HubServiceAsyncClient",
45+
"OperationMetadata",
4346
"CreateHubRequest",
4447
"CreateSpokeRequest",
4548
"DeleteHubRequest",
4649
"DeleteSpokeRequest",
4750
"GetHubRequest",
4851
"GetSpokeRequest",
4952
"Hub",
50-
"HubServiceAsyncClient",
51-
"HubServiceClient",
5253
"ListHubsRequest",
5354
"ListHubsResponse",
5455
"ListSpokesRequest",
5556
"ListSpokesResponse",
56-
"OperationMetadata",
5757
"RouterApplianceInstance",
5858
"Spoke",
59-
"State",
6059
"UpdateHubRequest",
6160
"UpdateSpokeRequest",
61+
"State",
6262
)

google/cloud/networkconnectivity_v1alpha1/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +15,8 @@
1615
#
1716

1817
from .services.hub_service import HubServiceClient
18+
from .services.hub_service import HubServiceAsyncClient
19+
1920
from .types.common import OperationMetadata
2021
from .types.hub import CreateHubRequest
2122
from .types.hub import CreateSpokeRequest
@@ -30,19 +31,20 @@
3031
from .types.hub import ListSpokesResponse
3132
from .types.hub import RouterApplianceInstance
3233
from .types.hub import Spoke
33-
from .types.hub import State
3434
from .types.hub import UpdateHubRequest
3535
from .types.hub import UpdateSpokeRequest
36-
36+
from .types.hub import State
3737

3838
__all__ = (
39+
"HubServiceAsyncClient",
3940
"CreateHubRequest",
4041
"CreateSpokeRequest",
4142
"DeleteHubRequest",
4243
"DeleteSpokeRequest",
4344
"GetHubRequest",
4445
"GetSpokeRequest",
4546
"Hub",
47+
"HubServiceClient",
4648
"ListHubsRequest",
4749
"ListHubsResponse",
4850
"ListSpokesRequest",
@@ -53,5 +55,4 @@
5355
"State",
5456
"UpdateHubRequest",
5557
"UpdateSpokeRequest",
56-
"HubServiceClient",
5758
)
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.networkconnectivity_v1alpha1",
5+
"protoPackage": "google.cloud.networkconnectivity.v1alpha1",
6+
"schema": "1.0",
7+
"services": {
8+
"HubService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "HubServiceClient",
12+
"rpcs": {
13+
"CreateHub": {
14+
"methods": [
15+
"create_hub"
16+
]
17+
},
18+
"CreateSpoke": {
19+
"methods": [
20+
"create_spoke"
21+
]
22+
},
23+
"DeleteHub": {
24+
"methods": [
25+
"delete_hub"
26+
]
27+
},
28+
"DeleteSpoke": {
29+
"methods": [
30+
"delete_spoke"
31+
]
32+
},
33+
"GetHub": {
34+
"methods": [
35+
"get_hub"
36+
]
37+
},
38+
"GetSpoke": {
39+
"methods": [
40+
"get_spoke"
41+
]
42+
},
43+
"ListHubs": {
44+
"methods": [
45+
"list_hubs"
46+
]
47+
},
48+
"ListSpokes": {
49+
"methods": [
50+
"list_spokes"
51+
]
52+
},
53+
"UpdateHub": {
54+
"methods": [
55+
"update_hub"
56+
]
57+
},
58+
"UpdateSpoke": {
59+
"methods": [
60+
"update_spoke"
61+
]
62+
}
63+
}
64+
},
65+
"grpc-async": {
66+
"libraryClient": "HubServiceAsyncClient",
67+
"rpcs": {
68+
"CreateHub": {
69+
"methods": [
70+
"create_hub"
71+
]
72+
},
73+
"CreateSpoke": {
74+
"methods": [
75+
"create_spoke"
76+
]
77+
},
78+
"DeleteHub": {
79+
"methods": [
80+
"delete_hub"
81+
]
82+
},
83+
"DeleteSpoke": {
84+
"methods": [
85+
"delete_spoke"
86+
]
87+
},
88+
"GetHub": {
89+
"methods": [
90+
"get_hub"
91+
]
92+
},
93+
"GetSpoke": {
94+
"methods": [
95+
"get_spoke"
96+
]
97+
},
98+
"ListHubs": {
99+
"methods": [
100+
"list_hubs"
101+
]
102+
},
103+
"ListSpokes": {
104+
"methods": [
105+
"list_spokes"
106+
]
107+
},
108+
"UpdateHub": {
109+
"methods": [
110+
"update_hub"
111+
]
112+
},
113+
"UpdateSpoke": {
114+
"methods": [
115+
"update_spoke"
116+
]
117+
}
118+
}
119+
}
120+
}
121+
}
122+
}
123+
}

google/cloud/networkconnectivity_v1alpha1/services/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

google/cloud/networkconnectivity_v1alpha1/services/hub_service/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
1615
#
17-
1816
from .client import HubServiceClient
1917
from .async_client import HubServiceAsyncClient
2018

0 commit comments

Comments
 (0)