aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/containerregistry/v1/ip_permission.proto
blob: 3e8c0b57031d888aeae357869912d5949633681d (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
25
26
27
28
29
30
31
32
33
34
35
36
syntax = "proto3";

package yandex.cloud.containerregistry.v1;

import "yandex/cloud/validation.proto";

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

message IpPermission {
    enum Action {
        ACTION_UNSPECIFIED = 0;
        PULL = 1;
        PUSH = 2;
    }
    Action action = 1;
    string ip = 2;
}

enum IpPermissionAction {
    IP_PERMISSION_ACTION_UNSPECIFIED = 0;

    // Addition of an ip permission.
    ADD = 1;

    // Removal of an ip permission.
    REMOVE = 2;
}

message IpPermissionDelta {
    // The action that is being performed on an ip permission.
    IpPermissionAction action = 1 [(required) = true];

    // Ip permission.
    IpPermission ip_permission = 2 [(required) = true];
}