• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2020 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.securitycenter.v1beta1;
18
19import "google/protobuf/duration.proto";
20
21option go_package = "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb";
22option java_multiple_files = true;
23option java_package = "com.google.cloud.securitycenter.v1beta1";
24
25// Response of asset discovery run
26message RunAssetDiscoveryResponse {
27  // The state of an asset discovery run.
28  enum State {
29    // Asset discovery run state was unspecified.
30    STATE_UNSPECIFIED = 0;
31
32    // Asset discovery run completed successfully.
33    COMPLETED = 1;
34
35    // Asset discovery run was cancelled with tasks still pending, as another
36    // run for the same organization was started with a higher priority.
37    SUPERSEDED = 2;
38
39    // Asset discovery run was killed and terminated.
40    TERMINATED = 3;
41  }
42
43  // The state of an asset discovery run.
44  State state = 1;
45
46  // The duration between asset discovery run start and end
47  google.protobuf.Duration duration = 2;
48}
49