xref: /aosp_15_r20/external/googleapis/google/cloud/networksecurity/v1/common.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2022 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.networksecurity.v1;
18
19import "google/api/field_behavior.proto";
20import "google/protobuf/timestamp.proto";
21
22option csharp_namespace = "Google.Cloud.NetworkSecurity.V1";
23option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb";
24option java_multiple_files = true;
25option java_outer_classname = "CommonProto";
26option java_package = "com.google.cloud.networksecurity.v1";
27option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1";
28option ruby_package = "Google::Cloud::NetworkSecurity::V1";
29
30// Represents the metadata of the long-running operation.
31message OperationMetadata {
32  // Output only. The time the operation was created.
33  google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
34
35  // Output only. The time the operation finished running.
36  google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
37
38  // Output only. Server-defined resource path for the target of the operation.
39  string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
40
41  // Output only. Name of the verb executed by the operation.
42  string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
43
44  // Output only. Human-readable status of the operation, if any.
45  string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
46
47  // Output only. Identifies whether the user has requested cancellation
48  // of the operation. Operations that have successfully been cancelled
49  // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
50  // corresponding to `Code.CANCELLED`.
51  bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
52
53  // Output only. API version used to start the operation.
54  string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
55}
56