1- // Copyright 2021 Google LLC
1+ // Copyright 2022 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -16,12 +16,12 @@ syntax = "proto3";
1616
1717package google.cloud.networkmanagement.v1beta1 ;
1818
19+ import "google/api/annotations.proto" ;
1920import "google/api/field_behavior.proto" ;
2021import "google/api/resource.proto" ;
2122import "google/cloud/networkmanagement/v1beta1/trace.proto" ;
2223import "google/protobuf/timestamp.proto" ;
2324import "google/rpc/status.proto" ;
24- import "google/api/annotations.proto" ;
2525
2626option csharp_namespace = "Google.Cloud.NetworkManagement.V1Beta1" ;
2727option go_package = "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1beta1;networkmanagement" ;
@@ -104,21 +104,25 @@ message ConnectivityTest {
104104 map <string , string > labels = 8 ;
105105
106106 // Output only. The time the test was created.
107- google.protobuf.Timestamp create_time = 10 [(google.api.field_behavior ) = OUTPUT_ONLY ];
107+ google.protobuf.Timestamp create_time = 10
108+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
108109
109110 // Output only. The time the test's configuration was updated.
110- google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior ) = OUTPUT_ONLY ];
111+ google.protobuf.Timestamp update_time = 11
112+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
111113
112114 // Output only. The reachability details of this test from the latest run.
113115 // The details are updated when creating a new test, updating an
114116 // existing test, or triggering a one-time rerun of an existing test.
115- ReachabilityDetails reachability_details = 12 [(google.api.field_behavior ) = OUTPUT_ONLY ];
116-
117- // Output only. The probing details of this test from the latest run, present for
118- // applicable tests only. The details are updated when creating a new test,
119- // updating an existing test, or triggering a one-time rerun of an existing
120- // test.
121- ProbingDetails probing_details = 14 [(google.api.field_behavior ) = OUTPUT_ONLY ];
117+ ReachabilityDetails reachability_details = 12
118+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
119+
120+ // Output only. The probing details of this test from the latest run, present
121+ // for applicable tests only. The details are updated when creating a new
122+ // test, updating an existing test, or triggering a one-time rerun of an
123+ // existing test.
124+ ProbingDetails probing_details = 14
125+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
122126}
123127
124128// Source or destination of the Connectivity Test.
@@ -285,6 +289,13 @@ message ProbingDetails {
285289 NO_SOURCE_LOCATION = 2 ;
286290 }
287291
292+ // Representation of a network edge location as per
293+ // https://cloud.google.com/vpc/docs/edge-locations.
294+ message EdgeLocation {
295+ // Name of the metropolitan area.
296+ string metropolitan_area = 1 ;
297+ }
298+
288299 // The overall result of active probing.
289300 ProbingResult result = 1 ;
290301
@@ -310,4 +321,12 @@ message ProbingDetails {
310321 // Latency as measured by active probing in one direction:
311322 // from the source to the destination endpoint.
312323 LatencyDistribution probing_latency = 8 ;
324+
325+ // The EdgeLocation from which a packet destined for/originating from the
326+ // internet will egress/ingress the Google network.
327+ // This will only be populated for a connectivity test which has an internet
328+ // destination/source address.
329+ // The absence of this field *must not* be used as an indication that the
330+ // destination/source is part of the Google network.
331+ EdgeLocation destination_egress_location = 9 ;
313332}
0 commit comments