xref: /aosp_15_r20/external/googleapis/google/cloud/networkconnectivity/v1/common.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.cloud.networkconnectivity.v1;
18
19import "google/api/field_behavior.proto";
20import "google/api/resource.proto";
21import "google/protobuf/timestamp.proto";
22
23option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1";
24option go_package = "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb;networkconnectivitypb";
25option java_multiple_files = true;
26option java_outer_classname = "CommonProto";
27option java_package = "com.google.cloud.networkconnectivity.v1";
28option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1";
29option ruby_package = "Google::Cloud::NetworkConnectivity::V1";
30option (google.api.resource_definition) = {
31  type: "compute.googleapis.com/InterconnectAttachment"
32  pattern: "projects/{project}/regions/{region}/interconnectAttachments/{resource_id}"
33};
34option (google.api.resource_definition) = {
35  type: "compute.googleapis.com/Network"
36  pattern: "projects/{project}/global/networks/{resource_id}"
37};
38
39// Represents the metadata of the long-running operation.
40message OperationMetadata {
41  // Output only. The time the operation was created.
42  google.protobuf.Timestamp create_time = 1
43      [(google.api.field_behavior) = OUTPUT_ONLY];
44
45  // Output only. The time the operation finished running.
46  google.protobuf.Timestamp end_time = 2
47      [(google.api.field_behavior) = OUTPUT_ONLY];
48
49  // Output only. Server-defined resource path for the target of the operation.
50  string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
51
52  // Output only. Name of the verb executed by the operation.
53  string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
54
55  // Output only. Human-readable status of the operation, if any.
56  string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
57
58  // Output only. Identifies whether the user has requested cancellation
59  // 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`.
63  bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
64
65  // Output only. API version used to start the operation.
66  string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
67}
68