Protobuf model and library code for oaktree
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

security_group.proto 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright (c) 2016 Red Hat, Inc
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  12. // implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. syntax = "proto3";
  16. import "common.proto";
  17. package oaktree;
  18. message SecurityGroupRule {
  19. enum Direction {
  20. ingress = 0;
  21. egress = 1;
  22. }
  23. Location location = 1;
  24. string id = 2;
  25. Direction direction = 3;
  26. string ethertype = 4;
  27. uint32 port_range_min = 5;
  28. uint32 port_range_max = 6;
  29. string protocol = 7;
  30. string remote_ip_prefix = 8;
  31. string security_group_id = 9;
  32. string remote_group_id = 10;
  33. map<string, string> properties = 99;
  34. }
  35. message SecurityGroupRuleList {
  36. repeated SecurityGroupRule rules = 1;
  37. }
  38. message SecurityGroup {
  39. Location location = 1;
  40. string id = 2;
  41. string name = 3;
  42. string description = 4;
  43. repeated SecurityGroupRule rules = 5;
  44. map<string, string> properties = 99;
  45. }
  46. message SecurityGroupList {
  47. repeated SecurityGroup security_groups = 1;
  48. }