github.com/hashicorp/vault/sdk@v0.11.0/helper/clientcountutil/generation/generate_data.proto (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  syntax = "proto3";
     5  
     6  package generation;
     7  
     8  option go_package = "github.com/hashicorp/vault/sdk/clientcountutil/generation";
     9  enum WriteOptions {
    10    WRITE_UNKNOWN = 0;
    11    WRITE_PRECOMPUTED_QUERIES = 1;
    12    WRITE_DISTINCT_CLIENTS = 2;
    13    WRITE_ENTITIES = 3;
    14    WRITE_DIRECT_TOKENS = 4;
    15    WRITE_INTENT_LOGS = 5;
    16  }
    17  message ActivityLogMockInput {
    18    repeated WriteOptions write = 1;
    19    repeated Data data = 2;
    20  }
    21  message Data {
    22    oneof month {
    23      bool current_month = 1;
    24      int32 months_ago = 2;
    25    }
    26    oneof clients {
    27      Clients all = 3; // you can’t have repeated fields in a oneof, which is why these are separate message types
    28      Segments segments = 4;
    29    }
    30    repeated int32 empty_segment_indexes = 5;
    31    repeated int32 skip_segment_indexes = 6;
    32    int32 num_segments = 7;
    33  }
    34  
    35  message Segments {
    36    repeated Segment segments = 1;
    37  }
    38  
    39  message Segment {
    40    optional int32 segment_index = 1;
    41    Clients clients = 2;
    42  }
    43  
    44  message Clients {
    45    repeated Client clients = 1;
    46  }
    47  
    48  message Client {
    49    string id = 1;
    50    int32 count = 2;
    51    bool repeated = 3;
    52    int32 repeated_from_month = 4;
    53    string namespace = 5;
    54    string mount = 6;
    55    string client_type = 7;
    56  }