Content-Length: 661102 | pFad | http://github.com/googleapis/google-cloud-python/pull/11430/files

7E feat: add forwarding_rule field to Connectivity Test Endpoint proto by gcf-owl-bot[bot] · Pull Request #11430 · googleapis/google-cloud-python · GitHub
Skip to content

feat: add forwarding_rule field to Connectivity Test Endpoint proto #11430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.8.2" # {x-release-please-version}
__version__ = "0.1.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.8.2" # {x-release-please-version}
__version__ = "0.1.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,17 @@ class Endpoint(proto.Message):
Only applicable when protocol is TCP or UDP.
instance (str):
A Compute Engine instance URI.
forwarding_rule (str):
A forwarding rule and its corresponding IP
address represent the frontend configuration of
a Google Cloud load balancer. Forwarding rules
are also used for protocol forwarding, Private
Service Connect and other network services to
provide forwarding information in the control
plane. Format:
projects/{project}/global/forwardingRules/{id}
or
projects/{project}/regions/{region}/forwardingRules/{id}
gke_master_cluster (str):
A cluster URI for `Google Kubernetes Engine
master <https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture>`__.
Expand Down Expand Up @@ -246,6 +257,10 @@ class NetworkType(proto.Enum):
proto.STRING,
number=3,
)
forwarding_rule: str = proto.Field(
proto.STRING,
number=13,
)
gke_master_cluster: str = proto.Field(
proto.STRING,
number=7,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for CreateConnectivityTest
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-cloud-network-management


# [START networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_async]
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import network_management_v1


async def sample_create_connectivity_test():
# Create a client
client = network_management_v1.ReachabilityServiceAsyncClient()

# Initialize request argument(s)
resource = network_management_v1.ConnectivityTest()
resource.name = "name_value"

request = network_management_v1.CreateConnectivityTestRequest(
parent="parent_value",
test_id="test_id_value",
resource=resource,
)

# Make the request
operation = client.create_connectivity_test(request=request)

print("Waiting for operation to complete...")

response = (await operation).result()

# Handle the response
print(response)

# [END networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_async]
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for CreateConnectivityTest
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-cloud-network-management


# [START networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_sync]
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import network_management_v1


def sample_create_connectivity_test():
# Create a client
client = network_management_v1.ReachabilityServiceClient()

# Initialize request argument(s)
resource = network_management_v1.ConnectivityTest()
resource.name = "name_value"

request = network_management_v1.CreateConnectivityTestRequest(
parent="parent_value",
test_id="test_id_value",
resource=resource,
)

# Make the request
operation = client.create_connectivity_test(request=request)

print("Waiting for operation to complete...")

response = operation.result()

# Handle the response
print(response)

# [END networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for DeleteConnectivityTest
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-cloud-network-management


# [START networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_async]
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import network_management_v1


async def sample_delete_connectivity_test():
# Create a client
client = network_management_v1.ReachabilityServiceAsyncClient()

# Initialize request argument(s)
request = network_management_v1.DeleteConnectivityTestRequest(
name="name_value",
)

# Make the request
operation = client.delete_connectivity_test(request=request)

print("Waiting for operation to complete...")

response = (await operation).result()

# Handle the response
print(response)

# [END networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_async]
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for DeleteConnectivityTest
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-cloud-network-management


# [START networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_sync]
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import network_management_v1


def sample_delete_connectivity_test():
# Create a client
client = network_management_v1.ReachabilityServiceClient()

# Initialize request argument(s)
request = network_management_v1.DeleteConnectivityTestRequest(
name="name_value",
)

# Make the request
operation = client.delete_connectivity_test(request=request)

print("Waiting for operation to complete...")

response = operation.result()

# Handle the response
print(response)

# [END networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for GetConnectivityTest
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-cloud-network-management


# [START networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_async]
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import network_management_v1


async def sample_get_connectivity_test():
# Create a client
client = network_management_v1.ReachabilityServiceAsyncClient()

# Initialize request argument(s)
request = network_management_v1.GetConnectivityTestRequest(
name="name_value",
)

# Make the request
response = await client.get_connectivity_test(request=request)

# Handle the response
print(response)

# [END networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_async]
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
# Generated code. DO NOT EDIT!
#
# Snippet for GetConnectivityTest
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.

# To install the latest published package dependency, execute the following:
# python3 -m pip install google-cloud-network-management


# [START networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_sync]
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import network_management_v1


def sample_get_connectivity_test():
# Create a client
client = network_management_v1.ReachabilityServiceClient()

# Initialize request argument(s)
request = network_management_v1.GetConnectivityTestRequest(
name="name_value",
)

# Make the request
response = client.get_connectivity_test(request=request)

# Handle the response
print(response)

# [END networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_sync]
Loading








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: http://github.com/googleapis/google-cloud-python/pull/11430/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy