Skip to content

Commit

Permalink
feat: add PolicyBasedRouting APIs (#11640)
Browse files Browse the repository at this point in the history
- [ ] 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=
  • Loading branch information
gcf-owl-bot[bot] committed Sep 13, 2023
1 parent 09cf3ae commit 0976a4c
Show file tree
Hide file tree
Showing 26 changed files with 10,068 additions and 15 deletions.
@@ -0,0 +1,10 @@
PolicyBasedRoutingService
-------------------------------------------

.. automodule:: google.cloud.networkconnectivity_v1.services.policy_based_routing_service
:members:
:inherited-members:

.. automodule:: google.cloud.networkconnectivity_v1.services.policy_based_routing_service.pagers
:members:
:inherited-members:
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Networkconnectivity v1 API
:maxdepth: 2

hub_service
policy_based_routing_service
Expand Up @@ -24,6 +24,12 @@
from google.cloud.networkconnectivity_v1.services.hub_service.client import (
HubServiceClient,
)
from google.cloud.networkconnectivity_v1.services.policy_based_routing_service.async_client import (
PolicyBasedRoutingServiceAsyncClient,
)
from google.cloud.networkconnectivity_v1.services.policy_based_routing_service.client import (
PolicyBasedRoutingServiceClient,
)
from google.cloud.networkconnectivity_v1.types.common import OperationMetadata
from google.cloud.networkconnectivity_v1.types.hub import (
CreateHubRequest,
Expand All @@ -49,10 +55,20 @@
UpdateHubRequest,
UpdateSpokeRequest,
)
from google.cloud.networkconnectivity_v1.types.policy_based_routing import (
CreatePolicyBasedRouteRequest,
DeletePolicyBasedRouteRequest,
GetPolicyBasedRouteRequest,
ListPolicyBasedRoutesRequest,
ListPolicyBasedRoutesResponse,
PolicyBasedRoute,
)

__all__ = (
"HubServiceClient",
"HubServiceAsyncClient",
"PolicyBasedRoutingServiceClient",
"PolicyBasedRoutingServiceAsyncClient",
"OperationMetadata",
"CreateHubRequest",
"CreateSpokeRequest",
Expand All @@ -76,4 +92,10 @@
"UpdateSpokeRequest",
"LocationFeature",
"State",
"CreatePolicyBasedRouteRequest",
"DeletePolicyBasedRouteRequest",
"GetPolicyBasedRouteRequest",
"ListPolicyBasedRoutesRequest",
"ListPolicyBasedRoutesResponse",
"PolicyBasedRoute",
)
Expand Up @@ -19,6 +19,10 @@


from .services.hub_service import HubServiceAsyncClient, HubServiceClient
from .services.policy_based_routing_service import (
PolicyBasedRoutingServiceAsyncClient,
PolicyBasedRoutingServiceClient,
)
from .types.common import OperationMetadata
from .types.hub import (
CreateHubRequest,
Expand All @@ -44,14 +48,26 @@
UpdateHubRequest,
UpdateSpokeRequest,
)
from .types.policy_based_routing import (
CreatePolicyBasedRouteRequest,
DeletePolicyBasedRouteRequest,
GetPolicyBasedRouteRequest,
ListPolicyBasedRoutesRequest,
ListPolicyBasedRoutesResponse,
PolicyBasedRoute,
)

__all__ = (
"HubServiceAsyncClient",
"PolicyBasedRoutingServiceAsyncClient",
"CreateHubRequest",
"CreatePolicyBasedRouteRequest",
"CreateSpokeRequest",
"DeleteHubRequest",
"DeletePolicyBasedRouteRequest",
"DeleteSpokeRequest",
"GetHubRequest",
"GetPolicyBasedRouteRequest",
"GetSpokeRequest",
"Hub",
"HubServiceClient",
Expand All @@ -60,11 +76,15 @@
"LinkedVpnTunnels",
"ListHubsRequest",
"ListHubsResponse",
"ListPolicyBasedRoutesRequest",
"ListPolicyBasedRoutesResponse",
"ListSpokesRequest",
"ListSpokesResponse",
"LocationFeature",
"LocationMetadata",
"OperationMetadata",
"PolicyBasedRoute",
"PolicyBasedRoutingServiceClient",
"RouterApplianceInstance",
"RoutingVPC",
"Spoke",
Expand Down
Expand Up @@ -118,6 +118,60 @@
}
}
}
},
"PolicyBasedRoutingService": {
"clients": {
"grpc": {
"libraryClient": "PolicyBasedRoutingServiceClient",
"rpcs": {
"CreatePolicyBasedRoute": {
"methods": [
"create_policy_based_route"
]
},
"DeletePolicyBasedRoute": {
"methods": [
"delete_policy_based_route"
]
},
"GetPolicyBasedRoute": {
"methods": [
"get_policy_based_route"
]
},
"ListPolicyBasedRoutes": {
"methods": [
"list_policy_based_routes"
]
}
}
},
"grpc-async": {
"libraryClient": "PolicyBasedRoutingServiceAsyncClient",
"rpcs": {
"CreatePolicyBasedRoute": {
"methods": [
"create_policy_based_route"
]
},
"DeletePolicyBasedRoute": {
"methods": [
"delete_policy_based_route"
]
},
"GetPolicyBasedRoute": {
"methods": [
"get_policy_based_route"
]
},
"ListPolicyBasedRoutes": {
"methods": [
"list_policy_based_routes"
]
}
}
}
}
}
}
}
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .async_client import PolicyBasedRoutingServiceAsyncClient
from .client import PolicyBasedRoutingServiceClient

__all__ = (
"PolicyBasedRoutingServiceClient",
"PolicyBasedRoutingServiceAsyncClient",
)

0 comments on commit 0976a4c

Please sign in to comment.