summaryrefslogtreecommitdiff
path: root/oaktreemodel/security_group.pb.go
blob: f9ceb24431c273849f94b621e6ebeb9e3d3be75e (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
// Code generated by protoc-gen-go.
// source: security_group.proto
// DO NOT EDIT!

/*
Package oaktree is a generated protocol buffer package.

It is generated from these files:
	security_group.proto

It has these top-level messages:
	SecurityGroupRule
	SecurityGroupRuleList
	SecurityGroup
	SecurityGroupList
*/
package oaktree

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import oaktree1 "."

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package

type SecurityGroupRule_Direction int32

const (
	SecurityGroupRule_ingress SecurityGroupRule_Direction = 0
	SecurityGroupRule_egress  SecurityGroupRule_Direction = 1
)

var SecurityGroupRule_Direction_name = map[int32]string{
	0: "ingress",
	1: "egress",
}
var SecurityGroupRule_Direction_value = map[string]int32{
	"ingress": 0,
	"egress":  1,
}

func (x SecurityGroupRule_Direction) String() string {
	return proto.EnumName(SecurityGroupRule_Direction_name, int32(x))
}
func (SecurityGroupRule_Direction) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor0, []int{0, 0}
}

type SecurityGroupRule struct {
	Location        *oaktree1.Location          `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"`
	Id              string                      `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Direction       SecurityGroupRule_Direction `protobuf:"varint,3,opt,name=direction,enum=oaktree.SecurityGroupRule_Direction" json:"direction,omitempty"`
	Ethertype       string                      `protobuf:"bytes,4,opt,name=ethertype" json:"ethertype,omitempty"`
	PortRangeMin    uint32                      `protobuf:"varint,5,opt,name=port_range_min,json=portRangeMin" json:"port_range_min,omitempty"`
	PortRangeMax    uint32                      `protobuf:"varint,6,opt,name=port_range_max,json=portRangeMax" json:"port_range_max,omitempty"`
	Protocol        string                      `protobuf:"bytes,7,opt,name=protocol" json:"protocol,omitempty"`
	RemoteIpPrefix  string                      `protobuf:"bytes,8,opt,name=remote_ip_prefix,json=remoteIpPrefix" json:"remote_ip_prefix,omitempty"`
	SecurityGroupId string                      `protobuf:"bytes,9,opt,name=security_group_id,json=securityGroupId" json:"security_group_id,omitempty"`
	RemoteGroupId   string                      `protobuf:"bytes,10,opt,name=remote_group_id,json=remoteGroupId" json:"remote_group_id,omitempty"`
	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"`
}

func (m *SecurityGroupRule) Reset()                    { *m = SecurityGroupRule{} }
func (m *SecurityGroupRule) String() string            { return proto.CompactTextString(m) }
func (*SecurityGroupRule) ProtoMessage()               {}
func (*SecurityGroupRule) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }

func (m *SecurityGroupRule) GetLocation() *oaktree1.Location {
	if m != nil {
		return m.Location
	}
	return nil
}

func (m *SecurityGroupRule) GetProperties() map[string]string {
	if m != nil {
		return m.Properties
	}
	return nil
}

type SecurityGroupRuleList struct {
	Rules []*SecurityGroupRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"`
}

func (m *SecurityGroupRuleList) Reset()                    { *m = SecurityGroupRuleList{} }
func (m *SecurityGroupRuleList) String() string            { return proto.CompactTextString(m) }
func (*SecurityGroupRuleList) ProtoMessage()               {}
func (*SecurityGroupRuleList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }

func (m *SecurityGroupRuleList) GetRules() []*SecurityGroupRule {
	if m != nil {
		return m.Rules
	}
	return nil
}

type SecurityGroup struct {
	Location    *oaktree1.Location   `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"`
	Id          string               `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Name        string               `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	Description string               `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	Rules       []*SecurityGroupRule `protobuf:"bytes,5,rep,name=rules" json:"rules,omitempty"`
	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"`
}

func (m *SecurityGroup) Reset()                    { *m = SecurityGroup{} }
func (m *SecurityGroup) String() string            { return proto.CompactTextString(m) }
func (*SecurityGroup) ProtoMessage()               {}
func (*SecurityGroup) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }

func (m *SecurityGroup) GetLocation() *oaktree1.Location {
	if m != nil {
		return m.Location
	}
	return nil
}

func (m *SecurityGroup) GetRules() []*SecurityGroupRule {
	if m != nil {
		return m.Rules
	}
	return nil
}

func (m *SecurityGroup) GetProperties() map[string]string {
	if m != nil {
		return m.Properties
	}
	return nil
}

type SecurityGroupList struct {
	SecurityGroups []*SecurityGroup `protobuf:"bytes,1,rep,name=security_groups,json=securityGroups" json:"security_groups,omitempty"`
}

func (m *SecurityGroupList) Reset()                    { *m = SecurityGroupList{} }
func (m *SecurityGroupList) String() string            { return proto.CompactTextString(m) }
func (*SecurityGroupList) ProtoMessage()               {}
func (*SecurityGroupList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }

func (m *SecurityGroupList) GetSecurityGroups() []*SecurityGroup {
	if m != nil {
		return m.SecurityGroups
	}
	return nil
}

func init() {
	proto.RegisterType((*SecurityGroupRule)(nil), "oaktree.SecurityGroupRule")
	proto.RegisterType((*SecurityGroupRuleList)(nil), "oaktree.SecurityGroupRuleList")
	proto.RegisterType((*SecurityGroup)(nil), "oaktree.SecurityGroup")
	proto.RegisterType((*SecurityGroupList)(nil), "oaktree.SecurityGroupList")
	proto.RegisterEnum("oaktree.SecurityGroupRule_Direction", SecurityGroupRule_Direction_name, SecurityGroupRule_Direction_value)
}

func init() { proto.RegisterFile("security_group.proto", fileDescriptor0) }

var fileDescriptor0 = []byte{
	// 473 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x93, 0x6d, 0x8b, 0xd3, 0x40,
	0x10, 0xc7, 0xed, 0x73, 0x33, 0xbd, 0xa6, 0xed, 0x70, 0x4a, 0x28, 0xbe, 0x28, 0xa5, 0x1c, 0xc7,
	0x81, 0x45, 0xce, 0x37, 0x22, 0x88, 0x20, 0x3e, 0x50, 0x39, 0xe1, 0x58, 0x7d, 0x1f, 0x62, 0x3a,
	0xd6, 0xe5, 0x9a, 0xec, 0xb2, 0xbb, 0x95, 0xf6, 0xc3, 0xf9, 0x09, 0xfc, 0x52, 0x6e, 0x36, 0x69,
	0xfa, 0x70, 0x77, 0x22, 0xc8, 0xbd, 0x9b, 0xfc, 0xf7, 0x37, 0xbb, 0x33, 0xf3, 0x9f, 0xc0, 0xa9,
	0xa6, 0x78, 0xa5, 0xb8, 0xd9, 0x84, 0x0b, 0x25, 0x56, 0x72, 0x2a, 0x95, 0x30, 0x02, 0x5b, 0x22,
	0xba, 0x31, 0x8a, 0x68, 0x78, 0x12, 0x8b, 0x24, 0x11, 0x69, 0x2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