Skip to content

Commit 046e080

Browse files
feat: [google-cloud-network-management] add messages and fields related to Redis Instances (#13170)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: add messages and fields related to Redis Instances feat: add messages and fields related to Redis Clusters feat: add PSC network attachment URI to the InstanceInfo proto feat: add subnet URI and region name to the NetworkInfo proto feat: add firewall policy URI to the FirewallInfo proto feat: add fields related to advertised routes to the RouteInfo proto feat: add region name field to the RouteInfo proto feat: add region name to the ForwardingRuleInfo proto feat: add load balancer name to the ForwardingRuleInfo proto feat: add PSC target fields to the ForwardingRuleInfo proto feat: add more detailed abort and drop causes to corresponding enums chore: update Google API field annotations format docs: update outdated comments in the FirewallInfo proto END_COMMIT_OVERRIDE feat: add messages and fields related to Redis Clusters feat: add PSC network attachment URI to the InstanceInfo proto feat: add subnet URI and region name to the NetworkInfo proto feat: add firewall policy URI to the FirewallInfo proto feat: add fields related to advertised routes to the RouteInfo proto feat: add region name field to the RouteInfo proto feat: add region name to the ForwardingRuleInfo proto feat: add load balancer name to the ForwardingRuleInfo proto feat: add PSC target fields to the ForwardingRuleInfo proto feat: add more detailed abort and drop causes to corresponding enums chore: update Google API field annotations format docs: update outdated comments in the FirewallInfo proto PiperOrigin-RevId: 686129238 Source-Link: googleapis/googleapis@cab65d5 Source-Link: googleapis/googleapis-gen@cd5b0a2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmstbWFuYWdlbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiY2Q1YjBhMjRhY2M0YzI4MjRkY2IwZGI0ZTk2OWMzNTUxYTk0NzBjZiJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
1 parent 3fe76c8 commit 046e080

15 files changed

Lines changed: 566 additions & 91 deletions

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@
6464
NatInfo,
6565
NetworkInfo,
6666
ProxyConnectionInfo,
67+
RedisClusterInfo,
68+
RedisInstanceInfo,
6769
RouteInfo,
70+
ServerlessNegInfo,
6871
Step,
6972
StorageBucketInfo,
7073
Trace,
@@ -110,7 +113,10 @@
110113
"NatInfo",
111114
"NetworkInfo",
112115
"ProxyConnectionInfo",
116+
"RedisClusterInfo",
117+
"RedisInstanceInfo",
113118
"RouteInfo",
119+
"ServerlessNegInfo",
114120
"Step",
115121
"StorageBucketInfo",
116122
"Trace",

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@
6262
NatInfo,
6363
NetworkInfo,
6464
ProxyConnectionInfo,
65+
RedisClusterInfo,
66+
RedisInstanceInfo,
6567
RouteInfo,
68+
ServerlessNegInfo,
6669
Step,
6770
StorageBucketInfo,
6871
Trace,
@@ -107,8 +110,11 @@
107110
"ProxyConnectionInfo",
108111
"ReachabilityDetails",
109112
"ReachabilityServiceClient",
113+
"RedisClusterInfo",
114+
"RedisInstanceInfo",
110115
"RerunConnectivityTestRequest",
111116
"RouteInfo",
117+
"ServerlessNegInfo",
112118
"Step",
113119
"StorageBucketInfo",
114120
"Trace",

packages/google-cloud-network-management/google/cloud/network_management_v1/services/reachability_service/async_client.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,9 @@ async def sample_create_connectivity_test():
553553
client = network_management_v1.ReachabilityServiceAsyncClient()
554554
555555
# Initialize request argument(s)
556-
resource = network_management_v1.ConnectivityTest()
557-
resource.name = "name_value"
558-
559556
request = network_management_v1.CreateConnectivityTestRequest(
560557
parent="parent_value",
561558
test_id="test_id_value",
562-
resource=resource,
563559
)
564560
565561
# Make the request
@@ -701,7 +697,7 @@ async def update_connectivity_test(
701697
If the endpoint specifications in ``ConnectivityTest`` are
702698
incomplete, the reachability result returns a value of
703699
``AMBIGUOUS``. See the documentation in ``ConnectivityTest`` for
704-
for more details.
700+
more details.
705701
706702
.. code-block:: python
707703
@@ -719,11 +715,7 @@ async def sample_update_connectivity_test():
719715
client = network_management_v1.ReachabilityServiceAsyncClient()
720716
721717
# Initialize request argument(s)
722-
resource = network_management_v1.ConnectivityTest()
723-
resource.name = "name_value"
724-
725718
request = network_management_v1.UpdateConnectivityTestRequest(
726-
resource=resource,
727719
)
728720
729721
# Make the request

packages/google-cloud-network-management/google/cloud/network_management_v1/services/reachability_service/client.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -965,13 +965,9 @@ def sample_create_connectivity_test():
965965
client = network_management_v1.ReachabilityServiceClient()
966966
967967
# Initialize request argument(s)
968-
resource = network_management_v1.ConnectivityTest()
969-
resource.name = "name_value"
970-
971968
request = network_management_v1.CreateConnectivityTestRequest(
972969
parent="parent_value",
973970
test_id="test_id_value",
974-
resource=resource,
975971
)
976972
977973
# Make the request
@@ -1110,7 +1106,7 @@ def update_connectivity_test(
11101106
If the endpoint specifications in ``ConnectivityTest`` are
11111107
incomplete, the reachability result returns a value of
11121108
``AMBIGUOUS``. See the documentation in ``ConnectivityTest`` for
1113-
for more details.
1109+
more details.
11141110
11151111
.. code-block:: python
11161112
@@ -1128,11 +1124,7 @@ def sample_update_connectivity_test():
11281124
client = network_management_v1.ReachabilityServiceClient()
11291125
11301126
# Initialize request argument(s)
1131-
resource = network_management_v1.ConnectivityTest()
1132-
resource.name = "name_value"
1133-
11341127
request = network_management_v1.UpdateConnectivityTestRequest(
1135-
resource=resource,
11361128
)
11371129
11381130
# Make the request

packages/google-cloud-network-management/google/cloud/network_management_v1/services/reachability_service/transports/grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def update_connectivity_test(
383383
If the endpoint specifications in ``ConnectivityTest`` are
384384
incomplete, the reachability result returns a value of
385385
``AMBIGUOUS``. See the documentation in ``ConnectivityTest`` for
386-
for more details.
386+
more details.
387387
388388
Returns:
389389
Callable[[~.UpdateConnectivityTestRequest],

packages/google-cloud-network-management/google/cloud/network_management_v1/services/reachability_service/transports/grpc_asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def update_connectivity_test(
396396
If the endpoint specifications in ``ConnectivityTest`` are
397397
incomplete, the reachability result returns a value of
398398
``AMBIGUOUS``. See the documentation in ``ConnectivityTest`` for
399-
for more details.
399+
more details.
400400
401401
Returns:
402402
Callable[[~.UpdateConnectivityTestRequest],

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
NatInfo,
5454
NetworkInfo,
5555
ProxyConnectionInfo,
56+
RedisClusterInfo,
57+
RedisInstanceInfo,
5658
RouteInfo,
59+
ServerlessNegInfo,
5760
Step,
5861
StorageBucketInfo,
5962
Trace,
@@ -97,7 +100,10 @@
97100
"NatInfo",
98101
"NetworkInfo",
99102
"ProxyConnectionInfo",
103+
"RedisClusterInfo",
104+
"RedisInstanceInfo",
100105
"RouteInfo",
106+
"ServerlessNegInfo",
101107
"Step",
102108
"StorageBucketInfo",
103109
"Trace",

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ConnectivityTest(proto.Message):
4141
4242
Attributes:
4343
name (str):
44-
Required. Unique name of the resource using the form:
44+
Identifier. Unique name of the resource using the form:
4545
``projects/{project_id}/locations/global/connectivityTests/{test_id}``
4646
description (str):
4747
The user-supplied description of the
@@ -245,6 +245,14 @@ class Endpoint(proto.Message):
245245
master <https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture>`__.
246246
cloud_sql_instance (str):
247247
A `Cloud SQL <https://cloud.google.com/sql>`__ instance URI.
248+
redis_instance (str):
249+
A `Redis
250+
Instance <https://cloud.google.com/memorystore/docs/redis>`__
251+
URI.
252+
redis_cluster (str):
253+
A `Redis
254+
Cluster <https://cloud.google.com/memorystore/docs/cluster>`__
255+
URI.
248256
cloud_function (google.cloud.network_management_v1.types.Endpoint.CloudFunctionEndpoint):
249257
A `Cloud Function <https://cloud.google.com/functions>`__.
250258
app_engine_version (google.cloud.network_management_v1.types.Endpoint.AppEngineVersionEndpoint):
@@ -409,6 +417,14 @@ class CloudRunRevisionEndpoint(proto.Message):
409417
proto.STRING,
410418
number=8,
411419
)
420+
redis_instance: str = proto.Field(
421+
proto.STRING,
422+
number=17,
423+
)
424+
redis_cluster: str = proto.Field(
425+
proto.STRING,
426+
number=18,
427+
)
412428
cloud_function: CloudFunctionEndpoint = proto.Field(
413429
proto.MESSAGE,
414430
number=10,

0 commit comments

Comments
 (0)