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.pb.go 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. // Code generated by protoc-gen-go.
  2. // source: security_group.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package oaktree is a generated protocol buffer package.
  6. It is generated from these files:
  7. security_group.proto
  8. It has these top-level messages:
  9. SecurityGroupRule
  10. SecurityGroupRuleList
  11. SecurityGroup
  12. SecurityGroupList
  13. */
  14. package oaktree
  15. import proto "github.com/golang/protobuf/proto"
  16. import fmt "fmt"
  17. import math "math"
  18. import oaktree1 "."
  19. // Reference imports to suppress errors if they are not otherwise used.
  20. var _ = proto.Marshal
  21. var _ = fmt.Errorf
  22. var _ = math.Inf
  23. // This is a compile-time assertion to ensure that this generated file
  24. // is compatible with the proto package it is being compiled against.
  25. // A compilation error at this line likely means your copy of the
  26. // proto package needs to be updated.
  27. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  28. type SecurityGroupRule_Direction int32
  29. const (
  30. SecurityGroupRule_ingress SecurityGroupRule_Direction = 0
  31. SecurityGroupRule_egress SecurityGroupRule_Direction = 1
  32. )
  33. var SecurityGroupRule_Direction_name = map[int32]string{
  34. 0: "ingress",
  35. 1: "egress",
  36. }
  37. var SecurityGroupRule_Direction_value = map[string]int32{
  38. "ingress": 0,
  39. "egress": 1,
  40. }
  41. func (x SecurityGroupRule_Direction) String() string {
  42. return proto.EnumName(SecurityGroupRule_Direction_name, int32(x))
  43. }
  44. func (SecurityGroupRule_Direction) EnumDescriptor() ([]byte, []int) {
  45. return fileDescriptor0, []int{0, 0}
  46. }
  47. type SecurityGroupRule struct {
  48. Location *oaktree1.Location `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"`
  49. Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
  50. Direction SecurityGroupRule_Direction `protobuf:"varint,3,opt,name=direction,enum=oaktree.SecurityGroupRule_Direction" json:"direction,omitempty"`
  51. Ethertype string `protobuf:"bytes,4,opt,name=ethertype" json:"ethertype,omitempty"`
  52. PortRangeMin uint32 `protobuf:"varint,5,opt,name=port_range_min,json=portRangeMin" json:"port_range_min,omitempty"`
  53. PortRangeMax uint32 `protobuf:"varint,6,opt,name=port_range_max,json=portRangeMax" json:"port_range_max,omitempty"`
  54. Protocol string `protobuf:"bytes,7,opt,name=protocol" json:"protocol,omitempty"`
  55. RemoteIpPrefix string `protobuf:"bytes,8,opt,name=remote_ip_prefix,json=remoteIpPrefix" json:"remote_ip_prefix,omitempty"`
  56. SecurityGroupId string `protobuf:"bytes,9,opt,name=security_group_id,json=securityGroupId" json:"security_group_id,omitempty"`
  57. RemoteGroupId string `protobuf:"bytes,10,opt,name=remote_group_id,json=remoteGroupId" json:"remote_group_id,omitempty"`
  58. Properties map[string]string `protobuf:"bytes,99,rep,name=properties" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  59. }
  60. func (m *SecurityGroupRule) Reset() { *m = SecurityGroupRule{} }
  61. func (m *SecurityGroupRule) String() string { return proto.CompactTextString(m) }
  62. func (*SecurityGroupRule) ProtoMessage() {}
  63. func (*SecurityGroupRule) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  64. func (m *SecurityGroupRule) GetLocation() *oaktree1.Location {
  65. if m != nil {
  66. return m.Location
  67. }
  68. return nil
  69. }
  70. func (m *SecurityGroupRule) GetProperties() map[string]string {
  71. if m != nil {
  72. return m.Properties
  73. }
  74. return nil
  75. }
  76. type SecurityGroupRuleList struct {
  77. Rules []*SecurityGroupRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"`
  78. }
  79. func (m *SecurityGroupRuleList) Reset() { *m = SecurityGroupRuleList{} }
  80. func (m *SecurityGroupRuleList) String() string { return proto.CompactTextString(m) }
  81. func (*SecurityGroupRuleList) ProtoMessage() {}
  82. func (*SecurityGroupRuleList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  83. func (m *SecurityGroupRuleList) GetRules() []*SecurityGroupRule {
  84. if m != nil {
  85. return m.Rules
  86. }
  87. return nil
  88. }
  89. type SecurityGroup struct {
  90. Location *oaktree1.Location `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"`
  91. Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
  92. Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
  93. Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
  94. Rules []*SecurityGroupRule `protobuf:"bytes,5,rep,name=rules" json:"rules,omitempty"`
  95. Properties map[string]string `protobuf:"bytes,99,rep,name=properties" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  96. }
  97. func (m *SecurityGroup) Reset() { *m = SecurityGroup{} }
  98. func (m *SecurityGroup) String() string { return proto.CompactTextString(m) }
  99. func (*SecurityGroup) ProtoMessage() {}
  100. func (*SecurityGroup) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  101. func (m *SecurityGroup) GetLocation() *oaktree1.Location {
  102. if m != nil {
  103. return m.Location
  104. }
  105. return nil
  106. }
  107. func (m *SecurityGroup) GetRules() []*SecurityGroupRule {
  108. if m != nil {
  109. return m.Rules
  110. }
  111. return nil
  112. }
  113. func (m *SecurityGroup) GetProperties() map[string]string {
  114. if m != nil {
  115. return m.Properties
  116. }
  117. return nil
  118. }
  119. type SecurityGroupList struct {
  120. SecurityGroups []*SecurityGroup `protobuf:"bytes,1,rep,name=security_groups,json=securityGroups" json:"security_groups,omitempty"`
  121. }
  122. func (m *SecurityGroupList) Reset() { *m = SecurityGroupList{} }
  123. func (m *SecurityGroupList) String() string { return proto.CompactTextString(m) }
  124. func (*SecurityGroupList) ProtoMessage() {}
  125. func (*SecurityGroupList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  126. func (m *SecurityGroupList) GetSecurityGroups() []*SecurityGroup {
  127. if m != nil {
  128. return m.SecurityGroups
  129. }
  130. return nil
  131. }
  132. func init() {
  133. proto.RegisterType((*SecurityGroupRule)(nil), "oaktree.SecurityGroupRule")
  134. proto.RegisterType((*SecurityGroupRuleList)(nil), "oaktree.SecurityGroupRuleList")
  135. proto.RegisterType((*SecurityGroup)(nil), "oaktree.SecurityGroup")
  136. proto.RegisterType((*SecurityGroupList)(nil), "oaktree.SecurityGroupList")
  137. proto.RegisterEnum("oaktree.SecurityGroupRule_Direction", SecurityGroupRule_Direction_name, SecurityGroupRule_Direction_value)
  138. }
  139. func init() { proto.RegisterFile("security_group.proto", fileDescriptor0) }
  140. var fileDescriptor0 = []byte{
  141. // 473 bytes of a gzipped FileDescriptorProto
  142. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x93, 0x6d, 0x8b, 0xd3, 0x40,
  143. 0x10, 0xc7, 0xed, 0x73, 0x33, 0xbd, 0xa6, 0xed, 0x70, 0x4a, 0x28, 0xbe, 0x28, 0xa5, 0x1c, 0xc7,
  144. 0x81, 0x45, 0xce, 0x37, 0x22, 0x88, 0x20, 0x3e, 0x50, 0x39, 0xe1, 0x58, 0x7d, 0x1f, 0x62, 0x3a,
  145. 0xd6, 0xe5, 0x9a, 0xec, 0xb2, 0xbb, 0x95, 0xf6, 0xc3, 0xf9, 0x09, 0xfc, 0x52, 0x6e, 0x36, 0x69,
  146. 0xfa, 0x70, 0x77, 0x22, 0xc8, 0xbd, 0x9b, 0xfc, 0xf7, 0x37, 0xbb, 0x33, 0xf3, 0x9f, 0xc0, 0xa9,
  147. 0xa6, 0x78, 0xa5, 0xb8, 0xd9, 0x84, 0x0b, 0x25, 0x56, 0x72, 0x2a, 0x95, 0x30, 0x02, 0x5b, 0x22,
  148. 0xba, 0x31, 0x8a, 0x68, 0x78, 0x12, 0x8b, 0x24, 0x11, 0x69, 0x2e, 0x8f, 0x7f, 0xd7, 0x61, 0xf0,
  149. 0xa5, 0xe0, 0x3f, 0x66, 0x38, 0x5b, 0x2d, 0x09, 0x9f, 0x41, 0x7b, 0x29, 0xe2, 0xc8, 0x70, 0x91,
  150. 0x06, 0x95, 0x51, 0xe5, 0xbc, 0x73, 0x39, 0x98, 0x16, 0xf9, 0xd3, 0xab, 0xe2, 0x80, 0x95, 0x08,
  151. 0xfa, 0x50, 0xe5, 0xf3, 0xa0, 0x6a, 0x41, 0x8f, 0xd9, 0x08, 0xdf, 0x82, 0x37, 0xe7, 0x8a, 0x62,
  152. 0x97, 0x5f, 0xb3, 0xb2, 0x7f, 0x39, 0x29, 0xf3, 0x6f, 0xbd, 0x36, 0x7d, 0xb7, 0x65, 0xd9, 0x2e,
  153. 0x0d, 0x9f, 0x82, 0x47, 0xe6, 0x07, 0x29, 0xb3, 0x91, 0x14, 0xd4, 0xdd, 0xd5, 0x3b, 0x01, 0x27,
  154. 0xe0, 0x4b, 0xa1, 0x4c, 0xa8, 0xa2, 0x74, 0x41, 0x61, 0xc2, 0xd3, 0xa0, 0x61, 0x91, 0x2e, 0x3b,
  155. 0xc9, 0x54, 0x96, 0x89, 0x9f, 0x79, 0x7a, 0x4c, 0x45, 0xeb, 0xa0, 0x79, 0x4c, 0x45, 0x6b, 0x1c,
  156. 0x42, 0xdb, 0xcd, 0x22, 0x16, 0xcb, 0xa0, 0xe5, 0x1e, 0x2a, 0xbf, 0xf1, 0x1c, 0xfa, 0x8a, 0x12,
  157. 0x61, 0x28, 0xe4, 0x32, 0x94, 0x8a, 0xbe, 0xf3, 0x75, 0xd0, 0x76, 0x8c, 0x9f, 0xeb, 0x33, 0x79,
  158. 0xed, 0x54, 0xbc, 0x80, 0xc1, 0xe1, 0xdc, 0x43, 0x3b, 0x12, 0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0xd0, 0x3b, 0x5c, 0xd2, 0xad, 0x21, 0x4f, 0xee,
  170. 0xe9, 0xcb, 0x3f, 0x58, 0x5d, 0xfd, 0xad, 0xe9, 0xfe, 0x8c, 0x17, 0x7f, 0x02, 0x00, 0x00, 0xff,
  171. 0xff, 0x3e, 0xd8, 0xb9, 0x74, 0x64, 0x04, 0x00, 0x00,
  172. }