Content-Length: 1139638 | pFad | https://github.com/googleapis/google-cloud-python/commit/312f3e7c5b2f042a68befde80e52cf7ec4f8e182

B3 feat: add forwarding_rule field to Connectivity Test Endpoint proto (… · googleapis/google-cloud-python@312f3e7 · GitHub
Skip to content

Commit 312f3e7

Browse files
feat: add forwarding_rule field to Connectivity Test Endpoint proto (#11430)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 3efd11b commit 312f3e7

17 files changed

+1692
-2
lines changed

packages/google-cloud-network-management/google/cloud/network_management/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.8.2" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

packages/google-cloud-network-management/google/cloud/network_management_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.8.2" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

packages/google-cloud-network-management/google/cloud/network_management_v1/types/connectivity_test.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,17 @@ class Endpoint(proto.Message):
187187
Only applicable when protocol is TCP or UDP.
188188
instance (str):
189189
A Compute Engine instance URI.
190+
forwarding_rule (str):
191+
A forwarding rule and its corresponding IP
192+
address represent the frontend configuration of
193+
a Google Cloud load balancer. Forwarding rules
194+
are also used for protocol forwarding, Private
195+
Service Connect and other network services to
196+
provide forwarding information in the control
197+
plane. Format:
198+
projects/{project}/global/forwardingRules/{id}
199+
or
200+
projects/{project}/regions/{region}/forwardingRules/{id}
190201
gke_master_cluster (str):
191202
A cluster URI for `Google Kubernetes Engine
192203
master <https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture>`__.
@@ -246,6 +257,10 @@ class NetworkType(proto.Enum):
246257
proto.STRING,
247258
number=3,
248259
)
260+
forwarding_rule: str = proto.Field(
261+
proto.STRING,
262+
number=13,
263+
)
249264
gke_master_cluster: str = proto.Field(
250265
proto.STRING,
251266
number=7,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 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+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateConnectivityTest
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-network-management
24+
25+
26+
# [START networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_async]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
34+
from google.cloud import network_management_v1
35+
36+
37+
async def sample_create_connectivity_test():
38+
# Create a client
39+
client = network_management_v1.ReachabilityServiceAsyncClient()
40+
41+
# Initialize request argument(s)
42+
resource = network_management_v1.ConnectivityTest()
43+
resource.name = "name_value"
44+
45+
request = network_management_v1.CreateConnectivityTestRequest(
46+
parent="parent_value",
47+
test_id="test_id_value",
48+
resource=resource,
49+
)
50+
51+
# Make the request
52+
operation = client.create_connectivity_test(request=request)
53+
54+
print("Waiting for operation to complete...")
55+
56+
response = (await operation).result()
57+
58+
# Handle the response
59+
print(response)
60+
61+
# [END networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 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+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateConnectivityTest
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-network-management
24+
25+
26+
# [START networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_sync]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
34+
from google.cloud import network_management_v1
35+
36+
37+
def sample_create_connectivity_test():
38+
# Create a client
39+
client = network_management_v1.ReachabilityServiceClient()
40+
41+
# Initialize request argument(s)
42+
resource = network_management_v1.ConnectivityTest()
43+
resource.name = "name_value"
44+
45+
request = network_management_v1.CreateConnectivityTestRequest(
46+
parent="parent_value",
47+
test_id="test_id_value",
48+
resource=resource,
49+
)
50+
51+
# Make the request
52+
operation = client.create_connectivity_test(request=request)
53+
54+
print("Waiting for operation to complete...")
55+
56+
response = operation.result()
57+
58+
# Handle the response
59+
print(response)
60+
61+
# [END networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 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+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for DeleteConnectivityTest
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-network-management
24+
25+
26+
# [START networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_async]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
34+
from google.cloud import network_management_v1
35+
36+
37+
async def sample_delete_connectivity_test():
38+
# Create a client
39+
client = network_management_v1.ReachabilityServiceAsyncClient()
40+
41+
# Initialize request argument(s)
42+
request = network_management_v1.DeleteConnectivityTestRequest(
43+
name="name_value",
44+
)
45+
46+
# Make the request
47+
operation = client.delete_connectivity_test(request=request)
48+
49+
print("Waiting for operation to complete...")
50+
51+
response = (await operation).result()
52+
53+
# Handle the response
54+
print(response)
55+
56+
# [END networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 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+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for DeleteConnectivityTest
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-network-management
24+
25+
26+
# [START networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_sync]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
34+
from google.cloud import network_management_v1
35+
36+
37+
def sample_delete_connectivity_test():
38+
# Create a client
39+
client = network_management_v1.ReachabilityServiceClient()
40+
41+
# Initialize request argument(s)
42+
request = network_management_v1.DeleteConnectivityTestRequest(
43+
name="name_value",
44+
)
45+
46+
# Make the request
47+
operation = client.delete_connectivity_test(request=request)
48+
49+
print("Waiting for operation to complete...")
50+
51+
response = operation.result()
52+
53+
# Handle the response
54+
print(response)
55+
56+
# [END networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 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+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for GetConnectivityTest
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-network-management
24+
25+
26+
# [START networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_async]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
34+
from google.cloud import network_management_v1
35+
36+
37+
async def sample_get_connectivity_test():
38+
# Create a client
39+
client = network_management_v1.ReachabilityServiceAsyncClient()
40+
41+
# Initialize request argument(s)
42+
request = network_management_v1.GetConnectivityTestRequest(
43+
name="name_value",
44+
)
45+
46+
# Make the request
47+
response = await client.get_connectivity_test(request=request)
48+
49+
# Handle the response
50+
print(response)
51+
52+
# [END networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 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+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for GetConnectivityTest
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-network-management
24+
25+
26+
# [START networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_sync]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
34+
from google.cloud import network_management_v1
35+
36+
37+
def sample_get_connectivity_test():
38+
# Create a client
39+
client = network_management_v1.ReachabilityServiceClient()
40+
41+
# Initialize request argument(s)
42+
request = network_management_v1.GetConnectivityTestRequest(
43+
name="name_value",
44+
)
45+
46+
# Make the request
47+
response = client.get_connectivity_test(request=request)
48+
49+
# Handle the response
50+
print(response)
51+
52+
# [END networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_sync]

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-python/commit/312f3e7c5b2f042a68befde80e52cf7ec4f8e182

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy