github.com/cloudwan/edgelq-sdk@v1.15.4/alerting/proto/v1/policy_template.proto (about)

     1  syntax = "proto3";
     2  
     3  package ntt.alerting.v1;
     4  
     5  import "edgelq-sdk/alerting/proto/v1/specs.proto";
     6  import "google/api/resource.proto";
     7  import "goten-sdk/types/meta.proto";
     8  
     9  option go_package = "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/policy_template;policy_template";
    10  option java_multiple_files = true;
    11  option java_outer_classname = "PolicyTemplateProto";
    12  option java_package = "com.ntt.alerting.pb.v1";
    13  
    14  // PolicyTemplate provides pre-defined templates for Policy
    15  // resources. They may be public ones (available for all projects to be copied),
    16  // but also can be private and available in selected projects only.
    17  message PolicyTemplate {
    18    option (google.api.resource) = {
    19      type : "alerting.edgelq.com/PolicyTemplate"
    20      pattern : "projects/{project}/policyTemplates/{policy_template}"
    21    };
    22  
    23    // Name of PolicyTemplate
    24    // When creating a new instance, this field is optional and if not provided,
    25    // it will be generated automatically. Last ID segment must conform to the
    26    // following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9]
    27    string name = 1;
    28  
    29    // Metadata is an object with information like create, update and delete time
    30    // (for async deleted resources), has user labels/annotations, sharding
    31    // information, multi-region syncing information and may have non-schema
    32    // owners (useful for taking ownership of resources belonging to lower level
    33    // services by higher ones).
    34    goten.types.Meta metadata = 2;
    35  
    36    // Display Name
    37    string display_name = 3;
    38  
    39    // Long description
    40    string description = 4;
    41  
    42    // List of supporting documents. Pointed documents must be copied if Policy
    43    // is created in different project.
    44    repeated string supporting_docs = 5;
    45  
    46    // Spec template
    47    PolicySpec spec_template = 6;
    48  }