Skip to content

Commit cab65d5

Browse files
Google APIscopybara-github
authored andcommitted
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 PiperOrigin-RevId: 686129238
1 parent 2f49d44 commit cab65d5

6 files changed

Lines changed: 608 additions & 54 deletions

File tree

google/cloud/networkmanagement/v1/connectivity_test.proto

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ message ConnectivityTest {
3737
pattern: "projects/{project}/locations/global/connectivityTests/{test}"
3838
};
3939

40-
// Required. Unique name of the resource using the form:
40+
// Identifier. Unique name of the resource using the form:
4141
// `projects/{project_id}/locations/global/connectivityTests/{test_id}`
42-
string name = 1 [(google.api.field_behavior) = REQUIRED];
42+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
4343

4444
// The user-supplied description of the Connectivity Test.
4545
// Maximum of 512 characters.
@@ -227,6 +227,14 @@ message Endpoint {
227227
// A [Cloud SQL](https://cloud.google.com/sql) instance URI.
228228
string cloud_sql_instance = 8;
229229

230+
// A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
231+
// URI.
232+
string redis_instance = 17;
233+
234+
// A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
235+
// URI.
236+
string redis_cluster = 18;
237+
230238
// A [Cloud Function](https://cloud.google.com/functions).
231239
CloudFunctionEndpoint cloud_function = 10;
232240

google/cloud/networkmanagement/v1/reachability.proto

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ service ReachabilityService {
106106
//
107107
// If the endpoint specifications in `ConnectivityTest` are incomplete, the
108108
// reachability result returns a value of `AMBIGUOUS`. See the documentation
109-
// in `ConnectivityTest` for for more details.
109+
// in `ConnectivityTest` for more details.
110110
rpc UpdateConnectivityTest(UpdateConnectivityTestRequest)
111111
returns (google.longrunning.Operation) {
112112
option (google.api.http) = {
@@ -162,7 +162,12 @@ service ReachabilityService {
162162
message ListConnectivityTestsRequest {
163163
// Required. The parent resource of the Connectivity Tests:
164164
// `projects/{project_id}/locations/global`
165-
string parent = 1 [(google.api.field_behavior) = REQUIRED];
165+
string parent = 1 [
166+
(google.api.field_behavior) = REQUIRED,
167+
(google.api.resource_reference) = {
168+
type: "cloudresourcemanager.googleapis.com/Project"
169+
}
170+
];
166171

167172
// Number of `ConnectivityTests` to return.
168173
int32 page_size = 2;
@@ -210,14 +215,24 @@ message ListConnectivityTestsResponse {
210215
message GetConnectivityTestRequest {
211216
// Required. `ConnectivityTest` resource name using the form:
212217
// `projects/{project_id}/locations/global/connectivityTests/{test_id}`
213-
string name = 1 [(google.api.field_behavior) = REQUIRED];
218+
string name = 1 [
219+
(google.api.field_behavior) = REQUIRED,
220+
(google.api.resource_reference) = {
221+
type: "networkmanagement.googleapis.com/ConnectivityTest"
222+
}
223+
];
214224
}
215225

216226
// Request for the `CreateConnectivityTest` method.
217227
message CreateConnectivityTestRequest {
218228
// Required. The parent resource of the Connectivity Test to create:
219229
// `projects/{project_id}/locations/global`
220-
string parent = 1 [(google.api.field_behavior) = REQUIRED];
230+
string parent = 1 [
231+
(google.api.field_behavior) = REQUIRED,
232+
(google.api.resource_reference) = {
233+
type: "cloudresourcemanager.googleapis.com/Project"
234+
}
235+
];
221236

222237
// Required. The logical name of the Connectivity Test in your project
223238
// with the following restrictions:
@@ -248,14 +263,24 @@ message UpdateConnectivityTestRequest {
248263
message DeleteConnectivityTestRequest {
249264
// Required. Connectivity Test resource name using the form:
250265
// `projects/{project_id}/locations/global/connectivityTests/{test_id}`
251-
string name = 1 [(google.api.field_behavior) = REQUIRED];
266+
string name = 1 [
267+
(google.api.field_behavior) = REQUIRED,
268+
(google.api.resource_reference) = {
269+
type: "networkmanagement.googleapis.com/ConnectivityTest"
270+
}
271+
];
252272
}
253273

254274
// Request for the `RerunConnectivityTest` method.
255275
message RerunConnectivityTestRequest {
256276
// Required. Connectivity Test resource name using the form:
257277
// `projects/{project_id}/locations/global/connectivityTests/{test_id}`
258-
string name = 1 [(google.api.field_behavior) = REQUIRED];
278+
string name = 1 [
279+
(google.api.field_behavior) = REQUIRED,
280+
(google.api.resource_reference) = {
281+
type: "networkmanagement.googleapis.com/ConnectivityTest"
282+
}
283+
];
259284
}
260285

261286
// Metadata describing an [Operation][google.longrunning.Operation]

0 commit comments

Comments
 (0)