github.com/microsoft/moc@v0.17.1/rpc/cloudagent/network/networksecuritygroup/moc_cloudagent_networksecuritygroup.proto (about)

     1  // Copyright (c) Microsoft Corporation.
     2  // Licensed under the Apache v2.0 license.
     3  
     4  syntax = "proto3";
     5  option go_package = "github.com/microsoft/moc/rpc/cloudagent/network";
     6  package moc.cloudagent.network;
     7  
     8  import "google/protobuf/wrappers.proto";
     9  import "moc_common_common.proto";
    10  import "moc_common_networkcommon.proto";
    11  
    12  enum Action {
    13  	Allow = 0;
    14  	Deny = 1;
    15  }
    16  
    17  enum Direction {
    18  	Inbound = 0;
    19  	Outbound = 1;
    20  }
    21  
    22  message NetworkSecurityGroupRequest {
    23  	repeated NetworkSecurityGroup NetworkSecurityGroups = 1;
    24  	Operation OperationType = 2;
    25  }
    26  
    27  message NetworkSecurityGroupResponse {
    28  	repeated NetworkSecurityGroup NetworkSecurityGroups = 1;
    29  	google.protobuf.BoolValue Result = 2;
    30  	string  Error = 3;
    31  }
    32  
    33  message NetworkSecurityGroupRule {
    34  	string name = 1;
    35  	string description = 2;
    36  	Action action = 3;
    37  	Direction direction = 4;
    38  	string sourceAddressPrefix = 5;
    39  	string destinationAddressPrefix = 6;
    40  	string sourcePortRange = 7;
    41  	string destinationPortRange = 8;
    42  	Protocol protocol = 9;
    43  	uint32 priority = 10;
    44  	bool logging = 11;
    45  	bool isDefaultRule = 12;
    46  }
    47  
    48  message NetworkSecurityGroup {
    49  	reserved 5; // deprecated group name (now parented to location)
    50  	string name = 1;
    51  	string id = 2;
    52  	repeated NetworkSecurityGroupRule networksecuritygrouprules = 3;
    53  	string locationName = 6;
    54  	Status status = 7;
    55  	Tags tags = 8;
    56  }
    57  
    58  service NetworkSecurityGroupAgent {
    59  	rpc Invoke(NetworkSecurityGroupRequest) returns (NetworkSecurityGroupResponse) {}
    60  }