Skip to content

Commit 0976a4c

Browse files
feat: add PolicyBasedRouting APIs (googleapis#11640)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 564481387 Source-Link: https://togithub.com/googleapis/googleapis/commit/fd39f204d3f72f58da5de1ad5f854b6c256bad23 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/3ca3ed0cec66660bdfcd96e48570761360a44af1 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmstY29ubmVjdGl2aXR5Ly5Pd2xCb3QueWFtbCIsImgiOiIzY2EzZWQwY2VjNjY2NjBiZGZjZDk2ZTQ4NTcwNzYxMzYwYTQ0YWYxIn0=
1 parent 09cf3ae commit 0976a4c

26 files changed

Lines changed: 10068 additions & 15 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
PolicyBasedRoutingService
2+
-------------------------------------------
3+
4+
.. automodule:: google.cloud.networkconnectivity_v1.services.policy_based_routing_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.networkconnectivity_v1.services.policy_based_routing_service.pagers
9+
:members:
10+
:inherited-members:

packages/google-cloud-network-connectivity/docs/networkconnectivity_v1/services.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Services for Google Cloud Networkconnectivity v1 API
44
:maxdepth: 2
55

66
hub_service
7+
policy_based_routing_service

packages/google-cloud-network-connectivity/google/cloud/networkconnectivity/__init__.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
from google.cloud.networkconnectivity_v1.services.hub_service.client import (
2525
HubServiceClient,
2626
)
27+
from google.cloud.networkconnectivity_v1.services.policy_based_routing_service.async_client import (
28+
PolicyBasedRoutingServiceAsyncClient,
29+
)
30+
from google.cloud.networkconnectivity_v1.services.policy_based_routing_service.client import (
31+
PolicyBasedRoutingServiceClient,
32+
)
2733
from google.cloud.networkconnectivity_v1.types.common import OperationMetadata
2834
from google.cloud.networkconnectivity_v1.types.hub import (
2935
CreateHubRequest,
@@ -49,10 +55,20 @@
4955
UpdateHubRequest,
5056
UpdateSpokeRequest,
5157
)
58+
from google.cloud.networkconnectivity_v1.types.policy_based_routing import (
59+
CreatePolicyBasedRouteRequest,
60+
DeletePolicyBasedRouteRequest,
61+
GetPolicyBasedRouteRequest,
62+
ListPolicyBasedRoutesRequest,
63+
ListPolicyBasedRoutesResponse,
64+
PolicyBasedRoute,
65+
)
5266

5367
__all__ = (
5468
"HubServiceClient",
5569
"HubServiceAsyncClient",
70+
"PolicyBasedRoutingServiceClient",
71+
"PolicyBasedRoutingServiceAsyncClient",
5672
"OperationMetadata",
5773
"CreateHubRequest",
5874
"CreateSpokeRequest",
@@ -76,4 +92,10 @@
7692
"UpdateSpokeRequest",
7793
"LocationFeature",
7894
"State",
95+
"CreatePolicyBasedRouteRequest",
96+
"DeletePolicyBasedRouteRequest",
97+
"GetPolicyBasedRouteRequest",
98+
"ListPolicyBasedRoutesRequest",
99+
"ListPolicyBasedRoutesResponse",
100+
"PolicyBasedRoute",
79101
)

packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020

2121
from .services.hub_service import HubServiceAsyncClient, HubServiceClient
22+
from .services.policy_based_routing_service import (
23+
PolicyBasedRoutingServiceAsyncClient,
24+
PolicyBasedRoutingServiceClient,
25+
)
2226
from .types.common import OperationMetadata
2327
from .types.hub import (
2428
CreateHubRequest,
@@ -44,14 +48,26 @@
4448
UpdateHubRequest,
4549
UpdateSpokeRequest,
4650
)
51+
from .types.policy_based_routing import (
52+
CreatePolicyBasedRouteRequest,
53+
DeletePolicyBasedRouteRequest,
54+
GetPolicyBasedRouteRequest,
55+
ListPolicyBasedRoutesRequest,
56+
ListPolicyBasedRoutesResponse,
57+
PolicyBasedRoute,
58+
)
4759

4860
__all__ = (
4961
"HubServiceAsyncClient",
62+
"PolicyBasedRoutingServiceAsyncClient",
5063
"CreateHubRequest",
64+
"CreatePolicyBasedRouteRequest",
5165
"CreateSpokeRequest",
5266
"DeleteHubRequest",
67+
"DeletePolicyBasedRouteRequest",
5368
"DeleteSpokeRequest",
5469
"GetHubRequest",
70+
"GetPolicyBasedRouteRequest",
5571
"GetSpokeRequest",
5672
"Hub",
5773
"HubServiceClient",
@@ -60,11 +76,15 @@
6076
"LinkedVpnTunnels",
6177
"ListHubsRequest",
6278
"ListHubsResponse",
79+
"ListPolicyBasedRoutesRequest",
80+
"ListPolicyBasedRoutesResponse",
6381
"ListSpokesRequest",
6482
"ListSpokesResponse",
6583
"LocationFeature",
6684
"LocationMetadata",
6785
"OperationMetadata",
86+
"PolicyBasedRoute",
87+
"PolicyBasedRoutingServiceClient",
6888
"RouterApplianceInstance",
6989
"RoutingVPC",
7090
"Spoke",

packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/gapic_metadata.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,60 @@
118118
}
119119
}
120120
}
121+
},
122+
"PolicyBasedRoutingService": {
123+
"clients": {
124+
"grpc": {
125+
"libraryClient": "PolicyBasedRoutingServiceClient",
126+
"rpcs": {
127+
"CreatePolicyBasedRoute": {
128+
"methods": [
129+
"create_policy_based_route"
130+
]
131+
},
132+
"DeletePolicyBasedRoute": {
133+
"methods": [
134+
"delete_policy_based_route"
135+
]
136+
},
137+
"GetPolicyBasedRoute": {
138+
"methods": [
139+
"get_policy_based_route"
140+
]
141+
},
142+
"ListPolicyBasedRoutes": {
143+
"methods": [
144+
"list_policy_based_routes"
145+
]
146+
}
147+
}
148+
},
149+
"grpc-async": {
150+
"libraryClient": "PolicyBasedRoutingServiceAsyncClient",
151+
"rpcs": {
152+
"CreatePolicyBasedRoute": {
153+
"methods": [
154+
"create_policy_based_route"
155+
]
156+
},
157+
"DeletePolicyBasedRoute": {
158+
"methods": [
159+
"delete_policy_based_route"
160+
]
161+
},
162+
"GetPolicyBasedRoute": {
163+
"methods": [
164+
"get_policy_based_route"
165+
]
166+
},
167+
"ListPolicyBasedRoutes": {
168+
"methods": [
169+
"list_policy_based_routes"
170+
]
171+
}
172+
}
173+
}
174+
}
121175
}
122176
}
123177
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2023 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from .async_client import PolicyBasedRoutingServiceAsyncClient
17+
from .client import PolicyBasedRoutingServiceClient
18+
19+
__all__ = (
20+
"PolicyBasedRoutingServiceClient",
21+
"PolicyBasedRoutingServiceAsyncClient",
22+
)

0 commit comments

Comments
 (0)