Skip to content

Commit 4d45a59

Browse files
Google APIscopybara-github
authored andcommitted
docs: Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs
feat: Enable organization-level support for VPC Flow Logs feat: add field `service_uri` to message `Endpoint.CloudRunRevisionEndpoint` feat: add message `Endpoint.SingleEdgeResponse` feat: add http additional_bindings feat: add enum `Status` to message `InstanceInfo` feat: add field `running` to message `InstanceInfo` feat: add field `policy_priority` to message `NetworkInfo` feat: add enum value `RouteInfo.NextHopType.SECURE_WEB_PROXY_GATEWAY` feat: add enum `DeliverInfo.GoogleServiceType` feat: add field `google_service_type` to message `DeliverInfo` feat: add enum value `AbortInfo.Cause.GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT` feat: add enum values `NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS`, `TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED`, `NO_MATCHING_NAT64_GATEWAY`, `LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH`, and `NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION` to `DropInfo.Cause` feat: add rpc `VpcFlowLogsService.QueryOrgVpcFlowLogsConfigs` feat: add service `OrganizationVpcFlowLogsService` feat: add enum `VpcFlowLogsConfig.CrossProjectMetadata` feat: add enum `VpcFlowLogsConfig.TargetResourceState` feat: add fields `cross_project_metadata`, `target_resource_state`, `network`, and `subnet` to message `VpcFlowLogsConfig` PiperOrigin-RevId: 825895694
1 parent d0ccd99 commit 4d45a59

File tree

6 files changed

+679
-41
lines changed

6 files changed

+679
-41
lines changed

google/cloud/networkmanagement/v1/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ java_gapic_library(
102102
java_gapic_test(
103103
name = "networkmanagement_java_gapic_test_suite",
104104
test_classes = [
105+
# This test is temporarily disabled due to the issue:
106+
# https://github.com/googleapis/sdk-platform-java/issues/1839
107+
# "com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClientHttpJsonTest",
108+
"com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClientTest",
105109
# This test is temporarily disabled due to the issue:
106110
# https://github.com/googleapis/sdk-platform-java/issues/1839
107111
# "com.google.cloud.networkmanagement.v1.ReachabilityServiceClientHttpJsonTest",
@@ -364,6 +368,7 @@ load(
364368

365369
csharp_proto_library(
366370
name = "networkmanagement_csharp_proto",
371+
extra_opts = [],
367372
deps = [":networkmanagement_proto"],
368373
)
369374

google/cloud/networkmanagement/v1/connectivity_test.proto

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ message Endpoint {
171171
// A [Cloud Run](https://cloud.google.com/run)
172172
// [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
173173
// URI. The format is:
174-
// `projects/{project}/locations/{location}/revisions/{revision}`
174+
// projects/{project}/locations/{location}/revisions/{revision}
175175
string uri = 1;
176176

177177
// Output only. The URI of the Cloud Run service that the revision belongs
178178
// to. The format is:
179-
// `projects/{project}/locations/{location}/services/{service}`
179+
// projects/{project}/locations/{location}/services/{service}
180180
string service_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
181181
}
182182

@@ -195,8 +195,8 @@ message Endpoint {
195195
// used for protocol forwarding, Private Service Connect and other network
196196
// services to provide forwarding information in the control plane. Applicable
197197
// only to destination endpoint. Format:
198-
// `projects/{project}/global/forwardingRules/{id}` or
199-
// `projects/{project}/regions/{region}/forwardingRules/{id}`
198+
// `projects/{project}/global/forwardingRules/{id}` or
199+
// `projects/{project}/regions/{region}/forwardingRules/{id}`
200200
string forwarding_rule = 13;
201201

202202
// Output only. Specifies the type of the target of the forwarding rule.
@@ -381,6 +381,34 @@ message ProbingDetails {
381381
string metropolitan_area = 1;
382382
}
383383

384+
// Probing results for a single edge device.
385+
message SingleEdgeResponse {
386+
// The overall result of active probing for this egress device.
387+
ProbingResult result = 1;
388+
389+
// Number of probes sent.
390+
int32 sent_probe_count = 2;
391+
392+
// Number of probes that reached the destination.
393+
int32 successful_probe_count = 3;
394+
395+
// Latency as measured by active probing in one direction: from the source
396+
// to the destination endpoint.
397+
LatencyDistribution probing_latency = 4;
398+
399+
// The EdgeLocation from which a packet, destined to the internet, will
400+
// egress the Google network.
401+
// This will only be populated for a connectivity test which has an internet
402+
// destination address.
403+
// The absence of this field *must not* be used as an indication that the
404+
// destination is part of the Google network.
405+
EdgeLocation destination_egress_location = 5;
406+
407+
// Router name in the format '{router}.{metroshard}'. For example:
408+
// pf01.aaa01, pr02.aaa01.
409+
string destination_router = 6;
410+
}
411+
384412
// The overall result of active probing.
385413
ProbingResult result = 1;
386414

@@ -407,11 +435,17 @@ message ProbingDetails {
407435
// from the source to the destination endpoint.
408436
LatencyDistribution probing_latency = 8;
409437

410-
// The EdgeLocation from which a packet destined for/originating from the
411-
// internet will egress/ingress the Google network.
438+
// The EdgeLocation from which a packet, destined to the internet, will egress
439+
// the Google network.
412440
// This will only be populated for a connectivity test which has an internet
413-
// destination/source address.
441+
// destination address.
414442
// The absence of this field *must not* be used as an indication that the
415-
// destination/source is part of the Google network.
443+
// destination is part of the Google network.
416444
EdgeLocation destination_egress_location = 9;
445+
446+
// Probing results for all edge devices.
447+
repeated SingleEdgeResponse edge_responses = 10;
448+
449+
// Whether all relevant edge devices were probed.
450+
bool probed_all_devices = 11;
417451
}

google/cloud/networkmanagement/v1/networkmanagement_v1.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ title: Network Management API
55

66
apis:
77
- name: google.cloud.location.Locations
8+
- name: google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService
89
- name: google.cloud.networkmanagement.v1.ReachabilityService
910
- name: google.cloud.networkmanagement.v1.VpcFlowLogsService
1011
- name: google.iam.v1.IAMPolicy
@@ -51,8 +52,12 @@ http:
5152
rules:
5253
- selector: google.cloud.location.Locations.GetLocation
5354
get: '/v1/{name=projects/*/locations/*}'
55+
additional_bindings:
56+
- get: '/v1/{name=organizations/*/locations/*}'
5457
- selector: google.cloud.location.Locations.ListLocations
5558
get: '/v1/{name=projects/*}/locations'
59+
additional_bindings:
60+
- get: '/v1/{name=organizations/*}/locations'
5661
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
5762
get: '/v1/{resource=projects/*/locations/global/connectivityTests/*}:getIamPolicy'
5863
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
@@ -64,12 +69,21 @@ http:
6469
- selector: google.longrunning.Operations.CancelOperation
6570
post: '/v1/{name=projects/*/locations/global/operations/*}:cancel'
6671
body: '*'
72+
additional_bindings:
73+
- post: '/v1/{name=organizations/*/locations/*/operations/*}:cancel'
74+
body: '*'
6775
- selector: google.longrunning.Operations.DeleteOperation
6876
delete: '/v1/{name=projects/*/locations/global/operations/*}'
77+
additional_bindings:
78+
- delete: '/v1/{name=organizations/*/locations/*/operations/*}'
6979
- selector: google.longrunning.Operations.GetOperation
7080
get: '/v1/{name=projects/*/locations/global/operations/*}'
81+
additional_bindings:
82+
- get: '/v1/{name=organizations/*/locations/*/operations/*}'
7183
- selector: google.longrunning.Operations.ListOperations
7284
get: '/v1/{name=projects/*/locations/global}/operations'
85+
additional_bindings:
86+
- get: '/v1/{name=organizations/*/locations/*}/operations'
7387

7488
authentication:
7589
rules:
@@ -81,6 +95,10 @@ authentication:
8195
oauth:
8296
canonical_scopes: |-
8397
https://www.googleapis.com/auth/cloud-platform
98+
- selector: 'google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.*'
99+
oauth:
100+
canonical_scopes: |-
101+
https://www.googleapis.com/auth/cloud-platform
84102
- selector: 'google.cloud.networkmanagement.v1.ReachabilityService.*'
85103
oauth:
86104
canonical_scopes: |-

0 commit comments

Comments
 (0)