Skip to content

Commit c86a9cd

Browse files
feat: [google-cloud-network-management] add service_uri field to CloudRunRevisionEndpoint (#14210)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 793279699 Source-Link: googleapis/googleapis@f4902d9 Source-Link: googleapis/googleapis-gen@e941f68 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmstbWFuYWdlbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiZTk0MWY2OGE2NTg0YTc1NWU1Y2YxMDI4Zjk2YTIxODJkZWMwYmRjMSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 249a63d commit c86a9cd

File tree

7 files changed

+28
-26
lines changed

7 files changed

+28
-26
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.27.0" # {x-release-please-version}
16+
__version__ = "0.0.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.27.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -200,18 +200,14 @@ class Endpoint(proto.Message):
200200
instance (str):
201201
A Compute Engine instance URI.
202202
forwarding_rule (str):
203-
A forwarding rule and its corresponding IP
204-
address represent the frontend configuration of
205-
a Google Cloud load balancer. Forwarding rules
206-
are also used for protocol forwarding, Private
207-
Service Connect and other network services to
208-
provide forwarding information in the control
209-
plane. Applicable only to destination endpoint.
210-
Format:
211-
212-
projects/{project}/global/forwardingRules/{id}
213-
or
214-
projects/{project}/regions/{region}/forwardingRules/{id}
203+
A forwarding rule and its corresponding IP address represent
204+
the frontend configuration of a Google Cloud load balancer.
205+
Forwarding rules are also used for protocol forwarding,
206+
Private Service Connect and other network services to
207+
provide forwarding information in the control plane.
208+
Applicable only to destination endpoint. Format:
209+
``projects/{project}/global/forwardingRules/{id}`` or
210+
``projects/{project}/regions/{region}/forwardingRules/{id}``
215211
forwarding_rule_target (google.cloud.network_management_v1.types.Endpoint.ForwardingRuleTarget):
216212
Output only. Specifies the type of the target
217213
of the forwarding rule.
@@ -366,13 +362,21 @@ class CloudRunRevisionEndpoint(proto.Message):
366362
A `Cloud Run <https://cloud.google.com/run>`__
367363
`revision <https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get>`__
368364
URI. The format is:
369-
projects/{project}/locations/{location}/revisions/{revision}
365+
``projects/{project}/locations/{location}/revisions/{revision}``
366+
service_uri (str):
367+
Output only. The URI of the Cloud Run service that the
368+
revision belongs to. The format is:
369+
``projects/{project}/locations/{location}/services/{service}``
370370
"""
371371

372372
uri: str = proto.Field(
373373
proto.STRING,
374374
number=1,
375375
)
376+
service_uri: str = proto.Field(
377+
proto.STRING,
378+
number=2,
379+
)
376380

377381
ip_address: str = proto.Field(
378382
proto.STRING,

packages/google-cloud-network-management/samples/generated_samples/snippet_metadata_google.cloud.networkmanagement.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-network-management",
11-
"version": "1.27.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-network-management/scripts/client-post-processing/doc-formatting.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/google-cloud-network-management/tests/unit/gapic/network_management_v1/test_reachability_service.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5387,7 +5387,10 @@ def test_create_connectivity_test_rest_call_success(request_type):
53875387
"redis_cluster": "redis_cluster_value",
53885388
"cloud_function": {"uri": "uri_value"},
53895389
"app_engine_version": {"uri": "uri_value"},
5390-
"cloud_run_revision": {"uri": "uri_value"},
5390+
"cloud_run_revision": {
5391+
"uri": "uri_value",
5392+
"service_uri": "service_uri_value",
5393+
},
53915394
"network": "network_value",
53925395
"network_type": 1,
53935396
"project_id": "project_id_value",
@@ -5939,7 +5942,10 @@ def test_update_connectivity_test_rest_call_success(request_type):
59395942
"redis_cluster": "redis_cluster_value",
59405943
"cloud_function": {"uri": "uri_value"},
59415944
"app_engine_version": {"uri": "uri_value"},
5942-
"cloud_run_revision": {"uri": "uri_value"},
5945+
"cloud_run_revision": {
5946+
"uri": "uri_value",
5947+
"service_uri": "service_uri_value",
5948+
},
59435949
"network": "network_value",
59445950
"network_type": 1,
59455951
"project_id": "project_id_value",

scripts/client-post-processing/doc-formatting.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,6 @@ replacements:
299299
- whether a representative will be available
300300
during site visits\n
301301
count: 1
302-
- paths: [
303-
packages/google-cloud-network-management/google/cloud/network_management_v1/types/connectivity_test.py,
304-
]
305-
before: |
306-
\ projects\/\{project\}\/global\/forwardingRules\/\{id\}
307-
after: " projects/{project}/global/forwardingRules/{id}\n"
308-
count: 1
309302
- paths: [
310303
packages/google-cloud-oracledatabase/google/cloud/oracledatabase_v1/types/exadata_infra.py,
311304
]

0 commit comments

Comments
 (0)