Skip to content

Commit d2dcfcf

Browse files
Google APIscopybara-github
authored andcommitted
feat: add Network Connectivity Center APIs for PSC service automation
docs: update some documentation. PiperOrigin-RevId: 739170914
1 parent bad8d92 commit d2dcfcf

7 files changed

Lines changed: 1659 additions & 89 deletions

File tree

google/cloud/networkconnectivity/v1/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ proto_library(
2525
name = "networkconnectivity_proto",
2626
srcs = [
2727
"common.proto",
28+
"cross_network_automation.proto",
2829
"hub.proto",
2930
"policy_based_routing.proto",
3031
],
@@ -35,6 +36,8 @@ proto_library(
3536
"//google/api:field_info_proto",
3637
"//google/api:resource_proto",
3738
"//google/longrunning:operations_proto",
39+
"//google/rpc:error_details_proto",
40+
"//google/rpc:status_proto",
3841
"@com_google_protobuf//:empty_proto",
3942
"@com_google_protobuf//:field_mask_proto",
4043
"@com_google_protobuf//:timestamp_proto",
@@ -99,6 +102,7 @@ java_gapic_library(
99102
java_gapic_test(
100103
name = "networkconnectivity_java_gapic_test_suite",
101104
test_classes = [
105+
"com.google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClientTest",
102106
"com.google.cloud.networkconnectivity.v1.HubServiceClientTest",
103107
"com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClientTest",
104108
],
@@ -137,6 +141,8 @@ go_proto_library(
137141
deps = [
138142
"//google/api:annotations_go_proto",
139143
"//google/longrunning:longrunning_go_proto",
144+
"//google/rpc:errdetails_go_proto",
145+
"//google/rpc:status_go_proto",
140146
],
141147
)
142148

@@ -352,7 +358,6 @@ load(
352358

353359
csharp_proto_library(
354360
name = "networkconnectivity_csharp_proto",
355-
extra_opts = [],
356361
deps = [":networkconnectivity_proto"],
357362
)
358363

google/cloud/networkconnectivity/v1/common.proto

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ option (google.api.resource_definition) = {
3535
type: "compute.googleapis.com/Network"
3636
pattern: "projects/{project}/global/networks/{resource_id}"
3737
};
38+
option (google.api.resource_definition) = {
39+
type: "compute.googleapis.com/Subnetwork"
40+
pattern: "projects/{project}/regions/{region}/subnetworks/{subnetwork}"
41+
};
42+
option (google.api.resource_definition) = {
43+
type: "compute.googleapis.com/ServiceAttachment"
44+
pattern: "projects/{project}/regions/{region}/serviceAttachments/{service_attachment}"
45+
};
3846

3947
// Represents the metadata of the long-running operation.
4048
message OperationMetadata {
@@ -57,9 +65,10 @@ message OperationMetadata {
5765

5866
// Output only. Identifies whether the user has requested cancellation
5967
// of the operation. Operations that have been cancelled successfully
60-
// have [Operation.error][] value with a
61-
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
62-
// `Code.CANCELLED`.
68+
// have
69+
// [google.longrunning.Operation.error][google.longrunning.Operation.error]
70+
// value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
71+
// corresponding to `Code.CANCELLED`.
6372
bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
6473

6574
// Output only. API version used to start the operation.

0 commit comments

Comments
 (0)