github.com/cloudwan/edgelq-sdk@v1.15.4/logging/proto/v1/bucket.proto (about)

     1  syntax = "proto3";
     2  
     3  package ntt.logging.v1;
     4  
     5  import "google/api/resource.proto";
     6  import "goten-sdk/types/meta.proto";
     7  
     8  option go_package = "github.com/cloudwan/edgelq-sdk/logging/resources/v1/bucket;bucket";
     9  option java_multiple_files = true;
    10  option java_outer_classname = "BucketProto";
    11  option java_package = "com.ntt.logging.pb.v1";
    12  
    13  // Bucket Resource
    14  message Bucket {
    15    option (google.api.resource) = {
    16      type : "logging.edgelq.com/Bucket"
    17      pattern : "projects/{project}/regions/{region}/buckets/{bucket}"
    18      pattern : "organizations/{organization}/regions/{region}/buckets/{bucket}"
    19      pattern : "services/{service}/regions/{region}/buckets/{bucket}"
    20    };
    21  
    22    // Name of Bucket
    23    // When creating a new instance, this field is optional and if not provided,
    24    // it will be generated automatically. Last ID segment must conform to the
    25    // following regex: [\\w./-]{2,128}
    26    string name = 1;
    27  
    28    // Metadata is an object with information like create, update and delete time
    29    // (for async deleted resources), has user labels/annotations, sharding
    30    // information, multi-region syncing information and may have non-schema
    31    // owners (useful for taking ownership of resources belonging to lower level
    32    // services by higher ones).
    33    goten.types.Meta metadata = 2;
    34  
    35    // Optional service names (if required), for example "devices.edgelq.com"
    36    repeated string services = 3;
    37  
    38    // Oprional service versions (if required), for example "v1"
    39    repeated string versions = 4;
    40  
    41    // Allowed log combinations (OR). If empty, all log types are allowed.
    42    repeated RequiredTypedLabels logs = 5;
    43  
    44    // All combinations of key-values (in integer forms) - one of them must be
    45    // passed by every Log object for given bucket. Its computed by server
    46    // side and for internal use.
    47    repeated ResolvedKeysWithValues required_alt_kvs = 6;
    48  
    49    // ResolvedValues contains binary representation of types and labels and
    50    // possible values. Due to limitations in some db backends (looking at
    51    // firestore), we use int64 instead of uint64.
    52    message ResolvedValues {
    53      int64 key = 1;
    54  
    55      repeated int64 values = 2;
    56    }
    57  
    58    // ResolvedKeysWithValues binds multiple keys with possible values.
    59    message ResolvedKeysWithValues { repeated ResolvedValues resolved_kvs = 1; }
    60  
    61    // RequiredTypedLabels describes required label values for specified
    62    // log descriptors. All logs in Create operation must contain at least one
    63    // allowed type and then labels must match all the labels. For list queries,
    64    // filter must contain at least one type and all labels must be present in
    65    // condition containing all or subset of allowed label values.
    66    message RequiredTypedLabels {
    67      repeated string descriptors = 1;
    68  
    69      map<string, Strings> labels = 2;
    70  
    71      message Strings { repeated string strings = 1; }
    72    }
    73  }