aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/cdn/v1/rule.proto
blob: 4d085f5ee5cf19bf98c1a65c110c3626cbd96e87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
syntax = "proto3";

package yandex.cloud.cdn.v1;

import "yandex/cloud/cdn/v1/resource.proto";
import "yandex/cloud/validation.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/cdn/v1;cdn";
option java_package = "yandex.cloud.api.cdn.v1";


// Resource rule.
message Rule {
    // Rule ID.
    int64 id = 1 [(value) = ">0"];

    // Rule name.
    string name = 2 [(required) = true, (length) = "<=50"];
    // Rule pattern.
    // Must be a valid regular expression.
    string rule_pattern = 3 [(required) = true, (length) = "<=100"];

    ResourceOptions options = 4;
}