aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/google.golang.org/genproto/googleapis/iam
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/google.golang.org/genproto/googleapis/iam')
-rw-r--r--vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go411
-rw-r--r--vendor/google.golang.org/genproto/googleapis/iam/v1/policy.pb.go366
2 files changed, 777 insertions, 0 deletions
diff --git a/vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go b/vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go
new file mode 100644
index 0000000..dfc8796
--- /dev/null
+++ b/vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go
@@ -0,0 +1,411 @@
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/iam/v1/iam_policy.proto
3
4package iam // import "google.golang.org/genproto/googleapis/iam/v1"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9import _ "google.golang.org/genproto/googleapis/api/annotations"
10
11import (
12 context "golang.org/x/net/context"
13 grpc "google.golang.org/grpc"
14)
15
16// Reference imports to suppress errors if they are not otherwise used.
17var _ = proto.Marshal
18var _ = fmt.Errorf
19var _ = math.Inf
20
21// This is a compile-time assertion to ensure that this generated file
22// is compatible with the proto package it is being compiled against.
23// A compilation error at this line likely means your copy of the
24// proto package needs to be updated.
25const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
26
27// Request message for `SetIamPolicy` method.
28type SetIamPolicyRequest struct {
29 // REQUIRED: The resource for which the policy is being specified.
30 // `resource` is usually specified as a path. For example, a Project
31 // resource is specified as `projects/{project}`.
32 Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
33 // REQUIRED: The complete policy to be applied to the `resource`. The size of
34 // the policy is limited to a few 10s of KB. An empty policy is a
35 // valid policy but certain Cloud Platform services (such as Projects)
36 // might reject them.
37 Policy *Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
38 XXX_NoUnkeyedLiteral struct{} `json:"-"`
39 XXX_unrecognized []byte `json:"-"`
40 XXX_sizecache int32 `json:"-"`
41}
42
43func (m *SetIamPolicyRequest) Reset() { *m = SetIamPolicyRequest{} }
44func (m *SetIamPolicyRequest) String() string { return proto.CompactTextString(m) }
45func (*SetIamPolicyRequest) ProtoMessage() {}
46func (*SetIamPolicyRequest) Descriptor() ([]byte, []int) {
47 return fileDescriptor_iam_policy_58547b5cf2e9d67a, []int{0}
48}
49func (m *SetIamPolicyRequest) XXX_Unmarshal(b []byte) error {
50 return xxx_messageInfo_SetIamPolicyRequest.Unmarshal(m, b)
51}
52func (m *SetIamPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
53 return xxx_messageInfo_SetIamPolicyRequest.Marshal(b, m, deterministic)
54}
55func (dst *SetIamPolicyRequest) XXX_Merge(src proto.Message) {
56 xxx_messageInfo_SetIamPolicyRequest.Merge(dst, src)
57}
58func (m *SetIamPolicyRequest) XXX_Size() int {
59 return xxx_messageInfo_SetIamPolicyRequest.Size(m)
60}
61func (m *SetIamPolicyRequest) XXX_DiscardUnknown() {
62 xxx_messageInfo_SetIamPolicyRequest.DiscardUnknown(m)
63}
64
65var xxx_messageInfo_SetIamPolicyRequest proto.InternalMessageInfo
66
67func (m *SetIamPolicyRequest) GetResource() string {
68 if m != nil {
69 return m.Resource
70 }
71 return ""
72}
73
74func (m *SetIamPolicyRequest) GetPolicy() *Policy {
75 if m != nil {
76 return m.Policy
77 }
78 return nil
79}
80
81// Request message for `GetIamPolicy` method.
82type GetIamPolicyRequest struct {
83 // REQUIRED: The resource for which the policy is being requested.
84 // `resource` is usually specified as a path. For example, a Project
85 // resource is specified as `projects/{project}`.
86 Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
87 XXX_NoUnkeyedLiteral struct{} `json:"-"`
88 XXX_unrecognized []byte `json:"-"`
89 XXX_sizecache int32 `json:"-"`
90}
91
92func (m *GetIamPolicyRequest) Reset() { *m = GetIamPolicyRequest{} }
93func (m *GetIamPolicyRequest) String() string { return proto.CompactTextString(m) }
94func (*GetIamPolicyRequest) ProtoMessage() {}
95func (*GetIamPolicyRequest) Descriptor() ([]byte, []int) {
96 return fileDescriptor_iam_policy_58547b5cf2e9d67a, []int{1}
97}
98func (m *GetIamPolicyRequest) XXX_Unmarshal(b []byte) error {
99 return xxx_messageInfo_GetIamPolicyRequest.Unmarshal(m, b)
100}
101func (m *GetIamPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
102 return xxx_messageInfo_GetIamPolicyRequest.Marshal(b, m, deterministic)
103}
104func (dst *GetIamPolicyRequest) XXX_Merge(src proto.Message) {
105 xxx_messageInfo_GetIamPolicyRequest.Merge(dst, src)
106}
107func (m *GetIamPolicyRequest) XXX_Size() int {
108 return xxx_messageInfo_GetIamPolicyRequest.Size(m)
109}
110func (m *GetIamPolicyRequest) XXX_DiscardUnknown() {
111 xxx_messageInfo_GetIamPolicyRequest.DiscardUnknown(m)
112}
113
114var xxx_messageInfo_GetIamPolicyRequest proto.InternalMessageInfo
115
116func (m *GetIamPolicyRequest) GetResource() string {
117 if m != nil {
118 return m.Resource
119 }
120 return ""
121}
122
123// Request message for `TestIamPermissions` method.
124type TestIamPermissionsRequest struct {
125 // REQUIRED: The resource for which the policy detail is being requested.
126 // `resource` is usually specified as a path. For example, a Project
127 // resource is specified as `projects/{project}`.
128 Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
129 // The set of permissions to check for the `resource`. Permissions with
130 // wildcards (such as '*' or 'storage.*') are not allowed. For more
131 // information see
132 // [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
133 Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
134 XXX_NoUnkeyedLiteral struct{} `json:"-"`
135 XXX_unrecognized []byte `json:"-"`
136 XXX_sizecache int32 `json:"-"`
137}
138
139func (m *TestIamPermissionsRequest) Reset() { *m = TestIamPermissionsRequest{} }
140func (m *TestIamPermissionsRequest) String() string { return proto.CompactTextString(m) }
141func (*TestIamPermissionsRequest) ProtoMessage() {}
142func (*TestIamPermissionsRequest) Descriptor() ([]byte, []int) {
143 return fileDescriptor_iam_policy_58547b5cf2e9d67a, []int{2}
144}
145func (m *TestIamPermissionsRequest) XXX_Unmarshal(b []byte) error {
146 return xxx_messageInfo_TestIamPermissionsRequest.Unmarshal(m, b)
147}
148func (m *TestIamPermissionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
149 return xxx_messageInfo_TestIamPermissionsRequest.Marshal(b, m, deterministic)
150}
151func (dst *TestIamPermissionsRequest) XXX_Merge(src proto.Message) {
152 xxx_messageInfo_TestIamPermissionsRequest.Merge(dst, src)
153}
154func (m *TestIamPermissionsRequest) XXX_Size() int {
155 return xxx_messageInfo_TestIamPermissionsRequest.Size(m)
156}
157func (m *TestIamPermissionsRequest) XXX_DiscardUnknown() {
158 xxx_messageInfo_TestIamPermissionsRequest.DiscardUnknown(m)
159}
160
161var xxx_messageInfo_TestIamPermissionsRequest proto.InternalMessageInfo
162
163func (m *TestIamPermissionsRequest) GetResource() string {
164 if m != nil {
165 return m.Resource
166 }
167 return ""
168}
169
170func (m *TestIamPermissionsRequest) GetPermissions() []string {
171 if m != nil {
172 return m.Permissions
173 }
174 return nil
175}
176
177// Response message for `TestIamPermissions` method.
178type TestIamPermissionsResponse struct {
179 // A subset of `TestPermissionsRequest.permissions` that the caller is
180 // allowed.
181 Permissions []string `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
182 XXX_NoUnkeyedLiteral struct{} `json:"-"`
183 XXX_unrecognized []byte `json:"-"`
184 XXX_sizecache int32 `json:"-"`
185}
186
187func (m *TestIamPermissionsResponse) Reset() { *m = TestIamPermissionsResponse{} }
188func (m *TestIamPermissionsResponse) String() string { return proto.CompactTextString(m) }
189func (*TestIamPermissionsResponse) ProtoMessage() {}
190func (*TestIamPermissionsResponse) Descriptor() ([]byte, []int) {
191 return fileDescriptor_iam_policy_58547b5cf2e9d67a, []int{3}
192}
193func (m *TestIamPermissionsResponse) XXX_Unmarshal(b []byte) error {
194 return xxx_messageInfo_TestIamPermissionsResponse.Unmarshal(m, b)
195}
196func (m *TestIamPermissionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
197 return xxx_messageInfo_TestIamPermissionsResponse.Marshal(b, m, deterministic)
198}
199func (dst *TestIamPermissionsResponse) XXX_Merge(src proto.Message) {
200 xxx_messageInfo_TestIamPermissionsResponse.Merge(dst, src)
201}
202func (m *TestIamPermissionsResponse) XXX_Size() int {
203 return xxx_messageInfo_TestIamPermissionsResponse.Size(m)
204}
205func (m *TestIamPermissionsResponse) XXX_DiscardUnknown() {
206 xxx_messageInfo_TestIamPermissionsResponse.DiscardUnknown(m)
207}
208
209var xxx_messageInfo_TestIamPermissionsResponse proto.InternalMessageInfo
210
211func (m *TestIamPermissionsResponse) GetPermissions() []string {
212 if m != nil {
213 return m.Permissions
214 }
215 return nil
216}
217
218func init() {
219 proto.RegisterType((*SetIamPolicyRequest)(nil), "google.iam.v1.SetIamPolicyRequest")
220 proto.RegisterType((*GetIamPolicyRequest)(nil), "google.iam.v1.GetIamPolicyRequest")
221 proto.RegisterType((*TestIamPermissionsRequest)(nil), "google.iam.v1.TestIamPermissionsRequest")
222 proto.RegisterType((*TestIamPermissionsResponse)(nil), "google.iam.v1.TestIamPermissionsResponse")
223}
224
225// Reference imports to suppress errors if they are not otherwise used.
226var _ context.Context
227var _ grpc.ClientConn
228
229// This is a compile-time assertion to ensure that this generated file
230// is compatible with the grpc package it is being compiled against.
231const _ = grpc.SupportPackageIsVersion4
232
233// IAMPolicyClient is the client API for IAMPolicy service.
234//
235// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
236type IAMPolicyClient interface {
237 // Sets the access control policy on the specified resource. Replaces any
238 // existing policy.
239 SetIamPolicy(ctx context.Context, in *SetIamPolicyRequest, opts ...grpc.CallOption) (*Policy, error)
240 // Gets the access control policy for a resource.
241 // Returns an empty policy if the resource exists and does not have a policy
242 // set.
243 GetIamPolicy(ctx context.Context, in *GetIamPolicyRequest, opts ...grpc.CallOption) (*Policy, error)
244 // Returns permissions that a caller has on the specified resource.
245 // If the resource does not exist, this will return an empty set of
246 // permissions, not a NOT_FOUND error.
247 TestIamPermissions(ctx context.Context, in *TestIamPermissionsRequest, opts ...grpc.CallOption) (*TestIamPermissionsResponse, error)
248}
249
250type iAMPolicyClient struct {
251 cc *grpc.ClientConn
252}
253
254func NewIAMPolicyClient(cc *grpc.ClientConn) IAMPolicyClient {
255 return &iAMPolicyClient{cc}
256}
257
258func (c *iAMPolicyClient) SetIamPolicy(ctx context.Context, in *SetIamPolicyRequest, opts ...grpc.CallOption) (*Policy, error) {
259 out := new(Policy)
260 err := c.cc.Invoke(ctx, "/google.iam.v1.IAMPolicy/SetIamPolicy", in, out, opts...)
261 if err != nil {
262 return nil, err
263 }
264 return out, nil
265}
266
267func (c *iAMPolicyClient) GetIamPolicy(ctx context.Context, in *GetIamPolicyRequest, opts ...grpc.CallOption) (*Policy, error) {
268 out := new(Policy)
269 err := c.cc.Invoke(ctx, "/google.iam.v1.IAMPolicy/GetIamPolicy", in, out, opts...)
270 if err != nil {
271 return nil, err
272 }
273 return out, nil
274}
275
276func (c *iAMPolicyClient) TestIamPermissions(ctx context.Context, in *TestIamPermissionsRequest, opts ...grpc.CallOption) (*TestIamPermissionsResponse, error) {
277 out := new(TestIamPermissionsResponse)
278 err := c.cc.Invoke(ctx, "/google.iam.v1.IAMPolicy/TestIamPermissions", in, out, opts...)
279 if err != nil {
280 return nil, err
281 }
282 return out, nil
283}
284
285// IAMPolicyServer is the server API for IAMPolicy service.
286type IAMPolicyServer interface {
287 // Sets the access control policy on the specified resource. Replaces any
288 // existing policy.
289 SetIamPolicy(context.Context, *SetIamPolicyRequest) (*Policy, error)
290 // Gets the access control policy for a resource.
291 // Returns an empty policy if the resource exists and does not have a policy
292 // set.
293 GetIamPolicy(context.Context, *GetIamPolicyRequest) (*Policy, error)
294 // Returns permissions that a caller has on the specified resource.
295 // If the resource does not exist, this will return an empty set of
296 // permissions, not a NOT_FOUND error.
297 TestIamPermissions(context.Context, *TestIamPermissionsRequest) (*TestIamPermissionsResponse, error)
298}
299
300func RegisterIAMPolicyServer(s *grpc.Server, srv IAMPolicyServer) {
301 s.RegisterService(&_IAMPolicy_serviceDesc, srv)
302}
303
304func _IAMPolicy_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
305 in := new(SetIamPolicyRequest)
306 if err := dec(in); err != nil {
307 return nil, err
308 }
309 if interceptor == nil {
310 return srv.(IAMPolicyServer).SetIamPolicy(ctx, in)
311 }
312 info := &grpc.UnaryServerInfo{
313 Server: srv,
314 FullMethod: "/google.iam.v1.IAMPolicy/SetIamPolicy",
315 }
316 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
317 return srv.(IAMPolicyServer).SetIamPolicy(ctx, req.(*SetIamPolicyRequest))
318 }
319 return interceptor(ctx, in, info, handler)
320}
321
322func _IAMPolicy_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
323 in := new(GetIamPolicyRequest)
324 if err := dec(in); err != nil {
325 return nil, err
326 }
327 if interceptor == nil {
328 return srv.(IAMPolicyServer).GetIamPolicy(ctx, in)
329 }
330 info := &grpc.UnaryServerInfo{
331 Server: srv,
332 FullMethod: "/google.iam.v1.IAMPolicy/GetIamPolicy",
333 }
334 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
335 return srv.(IAMPolicyServer).GetIamPolicy(ctx, req.(*GetIamPolicyRequest))
336 }
337 return interceptor(ctx, in, info, handler)
338}
339
340func _IAMPolicy_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
341 in := new(TestIamPermissionsRequest)
342 if err := dec(in); err != nil {
343 return nil, err
344 }
345 if interceptor == nil {
346 return srv.(IAMPolicyServer).TestIamPermissions(ctx, in)
347 }
348 info := &grpc.UnaryServerInfo{
349 Server: srv,
350 FullMethod: "/google.iam.v1.IAMPolicy/TestIamPermissions",
351 }
352 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
353 return srv.(IAMPolicyServer).TestIamPermissions(ctx, req.(*TestIamPermissionsRequest))
354 }
355 return interceptor(ctx, in, info, handler)
356}
357
358var _IAMPolicy_serviceDesc = grpc.ServiceDesc{
359 ServiceName: "google.iam.v1.IAMPolicy",
360 HandlerType: (*IAMPolicyServer)(nil),
361 Methods: []grpc.MethodDesc{
362 {
363 MethodName: "SetIamPolicy",
364 Handler: _IAMPolicy_SetIamPolicy_Handler,
365 },
366 {
367 MethodName: "GetIamPolicy",
368 Handler: _IAMPolicy_GetIamPolicy_Handler,
369 },
370 {
371 MethodName: "TestIamPermissions",
372 Handler: _IAMPolicy_TestIamPermissions_Handler,
373 },
374 },
375 Streams: []grpc.StreamDesc{},
376 Metadata: "google/iam/v1/iam_policy.proto",
377}
378
379func init() {
380 proto.RegisterFile("google/iam/v1/iam_policy.proto", fileDescriptor_iam_policy_58547b5cf2e9d67a)
381}
382
383var fileDescriptor_iam_policy_58547b5cf2e9d67a = []byte{
384 // 411 bytes of a gzipped FileDescriptorProto
385 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xcf, 0xcf, 0x4f,
386 0xcf, 0x49, 0xd5, 0xcf, 0x4c, 0xcc, 0xd5, 0x2f, 0x33, 0x04, 0x51, 0xf1, 0x05, 0xf9, 0x39, 0x99,
387 0xc9, 0x95, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xbc, 0x10, 0x79, 0xbd, 0xcc, 0xc4, 0x5c,
388 0xbd, 0x32, 0x43, 0x29, 0x19, 0xa8, 0xf2, 0xc4, 0x82, 0x4c, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92,
389 0xc4, 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0x88, 0x62, 0x29, 0x29, 0x54, 0xc3, 0x90, 0x0d, 0x52, 0x4a,
390 0xe0, 0x12, 0x0e, 0x4e, 0x2d, 0xf1, 0x4c, 0xcc, 0x0d, 0x00, 0x8b, 0x06, 0xa5, 0x16, 0x96, 0xa6,
391 0x16, 0x97, 0x08, 0x49, 0x71, 0x71, 0x14, 0xa5, 0x16, 0xe7, 0x97, 0x16, 0x25, 0xa7, 0x4a, 0x30,
392 0x2a, 0x30, 0x6a, 0x70, 0x06, 0xc1, 0xf9, 0x42, 0xba, 0x5c, 0x6c, 0x10, 0x23, 0x24, 0x98, 0x14,
393 0x18, 0x35, 0xb8, 0x8d, 0x44, 0xf5, 0x50, 0x1c, 0xa3, 0x07, 0x35, 0x09, 0xaa, 0x48, 0xc9, 0x90,
394 0x4b, 0xd8, 0x9d, 0x34, 0x1b, 0x94, 0x22, 0xb9, 0x24, 0x43, 0x52, 0x8b, 0xc1, 0x7a, 0x52, 0x8b,
395 0x72, 0x33, 0x8b, 0x8b, 0x41, 0x9e, 0x21, 0xc6, 0x69, 0x0a, 0x5c, 0xdc, 0x05, 0x08, 0x1d, 0x12,
396 0x4c, 0x0a, 0xcc, 0x1a, 0x9c, 0x41, 0xc8, 0x42, 0x4a, 0x76, 0x5c, 0x52, 0xd8, 0x8c, 0x2e, 0x2e,
397 0xc8, 0xcf, 0x2b, 0xc6, 0xd0, 0xcf, 0x88, 0xa1, 0xdf, 0x68, 0x0a, 0x33, 0x17, 0xa7, 0xa7, 0xa3,
398 0x2f, 0xc4, 0x2f, 0x42, 0x25, 0x5c, 0x3c, 0xc8, 0xa1, 0x27, 0xa4, 0x84, 0x16, 0x14, 0x58, 0x82,
399 0x56, 0x0a, 0x7b, 0x70, 0x29, 0x69, 0x36, 0x5d, 0x7e, 0x32, 0x99, 0x49, 0x59, 0x49, 0x0e, 0x14,
400 0x45, 0xd5, 0x30, 0x1f, 0xd9, 0x6a, 0x69, 0xd5, 0x5a, 0x15, 0x23, 0x99, 0x62, 0xc5, 0xa8, 0x05,
401 0xb2, 0xd5, 0x1d, 0x9f, 0xad, 0xee, 0x54, 0xb1, 0x35, 0x1d, 0xcd, 0xd6, 0x59, 0x8c, 0x5c, 0x42,
402 0x98, 0x41, 0x27, 0xa4, 0x81, 0x66, 0x30, 0xce, 0x88, 0x93, 0xd2, 0x24, 0x42, 0x25, 0x24, 0x1e,
403 0x94, 0xf4, 0xc1, 0xce, 0xd2, 0x54, 0x52, 0xc1, 0x74, 0x56, 0x09, 0x86, 0x2e, 0x2b, 0x46, 0x2d,
404 0xa7, 0x36, 0x46, 0x2e, 0xc1, 0xe4, 0xfc, 0x5c, 0x54, 0x1b, 0x9c, 0xf8, 0xe0, 0x1e, 0x08, 0x00,
405 0x25, 0xf6, 0x00, 0xc6, 0x28, 0x03, 0xa8, 0x82, 0xf4, 0xfc, 0x9c, 0xc4, 0xbc, 0x74, 0xbd, 0xfc,
406 0xa2, 0x74, 0xfd, 0xf4, 0xd4, 0x3c, 0x70, 0x56, 0xd0, 0x87, 0x48, 0x25, 0x16, 0x64, 0x16, 0x43,
407 0x73, 0x8a, 0x75, 0x66, 0x62, 0xee, 0x0f, 0x46, 0xc6, 0x55, 0x4c, 0xc2, 0xee, 0x10, 0x5d, 0xce,
408 0x39, 0xf9, 0xa5, 0x29, 0x7a, 0x9e, 0x89, 0xb9, 0x7a, 0x61, 0x86, 0xa7, 0x60, 0xa2, 0x31, 0x60,
409 0xd1, 0x18, 0xcf, 0xc4, 0xdc, 0x98, 0x30, 0xc3, 0x24, 0x36, 0xb0, 0x59, 0xc6, 0x80, 0x00, 0x00,
410 0x00, 0xff, 0xff, 0xea, 0x62, 0x8f, 0x22, 0xc1, 0x03, 0x00, 0x00,
411}
diff --git a/vendor/google.golang.org/genproto/googleapis/iam/v1/policy.pb.go b/vendor/google.golang.org/genproto/googleapis/iam/v1/policy.pb.go
new file mode 100644
index 0000000..99dd75f
--- /dev/null
+++ b/vendor/google.golang.org/genproto/googleapis/iam/v1/policy.pb.go
@@ -0,0 +1,366 @@
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/iam/v1/policy.proto
3
4package iam // import "google.golang.org/genproto/googleapis/iam/v1"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9import _ "google.golang.org/genproto/googleapis/api/annotations"
10
11// Reference imports to suppress errors if they are not otherwise used.
12var _ = proto.Marshal
13var _ = fmt.Errorf
14var _ = math.Inf
15
16// This is a compile-time assertion to ensure that this generated file
17// is compatible with the proto package it is being compiled against.
18// A compilation error at this line likely means your copy of the
19// proto package needs to be updated.
20const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
21
22// The type of action performed on a Binding in a policy.
23type BindingDelta_Action int32
24
25const (
26 // Unspecified.
27 BindingDelta_ACTION_UNSPECIFIED BindingDelta_Action = 0
28 // Addition of a Binding.
29 BindingDelta_ADD BindingDelta_Action = 1
30 // Removal of a Binding.
31 BindingDelta_REMOVE BindingDelta_Action = 2
32)
33
34var BindingDelta_Action_name = map[int32]string{
35 0: "ACTION_UNSPECIFIED",
36 1: "ADD",
37 2: "REMOVE",
38}
39var BindingDelta_Action_value = map[string]int32{
40 "ACTION_UNSPECIFIED": 0,
41 "ADD": 1,
42 "REMOVE": 2,
43}
44
45func (x BindingDelta_Action) String() string {
46 return proto.EnumName(BindingDelta_Action_name, int32(x))
47}
48func (BindingDelta_Action) EnumDescriptor() ([]byte, []int) {
49 return fileDescriptor_policy_6ba2a3dcbcdd909c, []int{3, 0}
50}
51
52// Defines an Identity and Access Management (IAM) policy. It is used to
53// specify access control policies for Cloud Platform resources.
54//
55//
56// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
57// `members` to a `role`, where the members can be user accounts, Google groups,
58// Google domains, and service accounts. A `role` is a named list of permissions
59// defined by IAM.
60//
61// **Example**
62//
63// {
64// "bindings": [
65// {
66// "role": "roles/owner",
67// "members": [
68// "user:mike@example.com",
69// "group:admins@example.com",
70// "domain:google.com",
71// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
72// ]
73// },
74// {
75// "role": "roles/viewer",
76// "members": ["user:sean@example.com"]
77// }
78// ]
79// }
80//
81// For a description of IAM and its features, see the
82// [IAM developer's guide](https://cloud.google.com/iam).
83type Policy struct {
84 // Version of the `Policy`. The default version is 0.
85 Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
86 // Associates a list of `members` to a `role`.
87 // Multiple `bindings` must not be specified for the same `role`.
88 // `bindings` with no members will result in an error.
89 Bindings []*Binding `protobuf:"bytes,4,rep,name=bindings,proto3" json:"bindings,omitempty"`
90 // `etag` is used for optimistic concurrency control as a way to help
91 // prevent simultaneous updates of a policy from overwriting each other.
92 // It is strongly suggested that systems make use of the `etag` in the
93 // read-modify-write cycle to perform policy updates in order to avoid race
94 // conditions: An `etag` is returned in the response to `getIamPolicy`, and
95 // systems are expected to put that etag in the request to `setIamPolicy` to
96 // ensure that their change will be applied to the same version of the policy.
97 //
98 // If no `etag` is provided in the call to `setIamPolicy`, then the existing
99 // policy is overwritten blindly.
100 Etag []byte `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
101 XXX_NoUnkeyedLiteral struct{} `json:"-"`
102 XXX_unrecognized []byte `json:"-"`
103 XXX_sizecache int32 `json:"-"`
104}
105
106func (m *Policy) Reset() { *m = Policy{} }
107func (m *Policy) String() string { return proto.CompactTextString(m) }
108func (*Policy) ProtoMessage() {}
109func (*Policy) Descriptor() ([]byte, []int) {
110 return fileDescriptor_policy_6ba2a3dcbcdd909c, []int{0}
111}
112func (m *Policy) XXX_Unmarshal(b []byte) error {
113 return xxx_messageInfo_Policy.Unmarshal(m, b)
114}
115func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
116 return xxx_messageInfo_Policy.Marshal(b, m, deterministic)
117}
118func (dst *Policy) XXX_Merge(src proto.Message) {
119 xxx_messageInfo_Policy.Merge(dst, src)
120}
121func (m *Policy) XXX_Size() int {
122 return xxx_messageInfo_Policy.Size(m)
123}
124func (m *Policy) XXX_DiscardUnknown() {
125 xxx_messageInfo_Policy.DiscardUnknown(m)
126}
127
128var xxx_messageInfo_Policy proto.InternalMessageInfo
129
130func (m *Policy) GetVersion() int32 {
131 if m != nil {
132 return m.Version
133 }
134 return 0
135}
136
137func (m *Policy) GetBindings() []*Binding {
138 if m != nil {
139 return m.Bindings
140 }
141 return nil
142}
143
144func (m *Policy) GetEtag() []byte {
145 if m != nil {
146 return m.Etag
147 }
148 return nil
149}
150
151// Associates `members` with a `role`.
152type Binding struct {
153 // Role that is assigned to `members`.
154 // For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
155 // Required
156 Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
157 // Specifies the identities requesting access for a Cloud Platform resource.
158 // `members` can have the following values:
159 //
160 // * `allUsers`: A special identifier that represents anyone who is
161 // on the internet; with or without a Google account.
162 //
163 // * `allAuthenticatedUsers`: A special identifier that represents anyone
164 // who is authenticated with a Google account or a service account.
165 //
166 // * `user:{emailid}`: An email address that represents a specific Google
167 // account. For example, `alice@gmail.com` or `joe@example.com`.
168 //
169 //
170 // * `serviceAccount:{emailid}`: An email address that represents a service
171 // account. For example, `my-other-app@appspot.gserviceaccount.com`.
172 //
173 // * `group:{emailid}`: An email address that represents a Google group.
174 // For example, `admins@example.com`.
175 //
176 // * `domain:{domain}`: A Google Apps domain name that represents all the
177 // users of that domain. For example, `google.com` or `example.com`.
178 //
179 //
180 Members []string `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
181 XXX_NoUnkeyedLiteral struct{} `json:"-"`
182 XXX_unrecognized []byte `json:"-"`
183 XXX_sizecache int32 `json:"-"`
184}
185
186func (m *Binding) Reset() { *m = Binding{} }
187func (m *Binding) String() string { return proto.CompactTextString(m) }
188func (*Binding) ProtoMessage() {}
189func (*Binding) Descriptor() ([]byte, []int) {
190 return fileDescriptor_policy_6ba2a3dcbcdd909c, []int{1}
191}
192func (m *Binding) XXX_Unmarshal(b []byte) error {
193 return xxx_messageInfo_Binding.Unmarshal(m, b)
194}
195func (m *Binding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
196 return xxx_messageInfo_Binding.Marshal(b, m, deterministic)
197}
198func (dst *Binding) XXX_Merge(src proto.Message) {
199 xxx_messageInfo_Binding.Merge(dst, src)
200}
201func (m *Binding) XXX_Size() int {
202 return xxx_messageInfo_Binding.Size(m)
203}
204func (m *Binding) XXX_DiscardUnknown() {
205 xxx_messageInfo_Binding.DiscardUnknown(m)
206}
207
208var xxx_messageInfo_Binding proto.InternalMessageInfo
209
210func (m *Binding) GetRole() string {
211 if m != nil {
212 return m.Role
213 }
214 return ""
215}
216
217func (m *Binding) GetMembers() []string {
218 if m != nil {
219 return m.Members
220 }
221 return nil
222}
223
224// The difference delta between two policies.
225type PolicyDelta struct {
226 // The delta for Bindings between two policies.
227 BindingDeltas []*BindingDelta `protobuf:"bytes,1,rep,name=binding_deltas,json=bindingDeltas,proto3" json:"binding_deltas,omitempty"`
228 XXX_NoUnkeyedLiteral struct{} `json:"-"`
229 XXX_unrecognized []byte `json:"-"`
230 XXX_sizecache int32 `json:"-"`
231}
232
233func (m *PolicyDelta) Reset() { *m = PolicyDelta{} }
234func (m *PolicyDelta) String() string { return proto.CompactTextString(m) }
235func (*PolicyDelta) ProtoMessage() {}
236func (*PolicyDelta) Descriptor() ([]byte, []int) {
237 return fileDescriptor_policy_6ba2a3dcbcdd909c, []int{2}
238}
239func (m *PolicyDelta) XXX_Unmarshal(b []byte) error {
240 return xxx_messageInfo_PolicyDelta.Unmarshal(m, b)
241}
242func (m *PolicyDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
243 return xxx_messageInfo_PolicyDelta.Marshal(b, m, deterministic)
244}
245func (dst *PolicyDelta) XXX_Merge(src proto.Message) {
246 xxx_messageInfo_PolicyDelta.Merge(dst, src)
247}
248func (m *PolicyDelta) XXX_Size() int {
249 return xxx_messageInfo_PolicyDelta.Size(m)
250}
251func (m *PolicyDelta) XXX_DiscardUnknown() {
252 xxx_messageInfo_PolicyDelta.DiscardUnknown(m)
253}
254
255var xxx_messageInfo_PolicyDelta proto.InternalMessageInfo
256
257func (m *PolicyDelta) GetBindingDeltas() []*BindingDelta {
258 if m != nil {
259 return m.BindingDeltas
260 }
261 return nil
262}
263
264// One delta entry for Binding. Each individual change (only one member in each
265// entry) to a binding will be a separate entry.
266type BindingDelta struct {
267 // The action that was performed on a Binding.
268 // Required
269 Action BindingDelta_Action `protobuf:"varint,1,opt,name=action,proto3,enum=google.iam.v1.BindingDelta_Action" json:"action,omitempty"`
270 // Role that is assigned to `members`.
271 // For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
272 // Required
273 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
274 // A single identity requesting access for a Cloud Platform resource.
275 // Follows the same format of Binding.members.
276 // Required
277 Member string `protobuf:"bytes,3,opt,name=member,proto3" json:"member,omitempty"`
278 XXX_NoUnkeyedLiteral struct{} `json:"-"`
279 XXX_unrecognized []byte `json:"-"`
280 XXX_sizecache int32 `json:"-"`
281}
282
283func (m *BindingDelta) Reset() { *m = BindingDelta{} }
284func (m *BindingDelta) String() string { return proto.CompactTextString(m) }
285func (*BindingDelta) ProtoMessage() {}
286func (*BindingDelta) Descriptor() ([]byte, []int) {
287 return fileDescriptor_policy_6ba2a3dcbcdd909c, []int{3}
288}
289func (m *BindingDelta) XXX_Unmarshal(b []byte) error {
290 return xxx_messageInfo_BindingDelta.Unmarshal(m, b)
291}
292func (m *BindingDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
293 return xxx_messageInfo_BindingDelta.Marshal(b, m, deterministic)
294}
295func (dst *BindingDelta) XXX_Merge(src proto.Message) {
296 xxx_messageInfo_BindingDelta.Merge(dst, src)
297}
298func (m *BindingDelta) XXX_Size() int {
299 return xxx_messageInfo_BindingDelta.Size(m)
300}
301func (m *BindingDelta) XXX_DiscardUnknown() {
302 xxx_messageInfo_BindingDelta.DiscardUnknown(m)
303}
304
305var xxx_messageInfo_BindingDelta proto.InternalMessageInfo
306
307func (m *BindingDelta) GetAction() BindingDelta_Action {
308 if m != nil {
309 return m.Action
310 }
311 return BindingDelta_ACTION_UNSPECIFIED
312}
313
314func (m *BindingDelta) GetRole() string {
315 if m != nil {
316 return m.Role
317 }
318 return ""
319}
320
321func (m *BindingDelta) GetMember() string {
322 if m != nil {
323 return m.Member
324 }
325 return ""
326}
327
328func init() {
329 proto.RegisterType((*Policy)(nil), "google.iam.v1.Policy")
330 proto.RegisterType((*Binding)(nil), "google.iam.v1.Binding")
331 proto.RegisterType((*PolicyDelta)(nil), "google.iam.v1.PolicyDelta")
332 proto.RegisterType((*BindingDelta)(nil), "google.iam.v1.BindingDelta")
333 proto.RegisterEnum("google.iam.v1.BindingDelta_Action", BindingDelta_Action_name, BindingDelta_Action_value)
334}
335
336func init() { proto.RegisterFile("google/iam/v1/policy.proto", fileDescriptor_policy_6ba2a3dcbcdd909c) }
337
338var fileDescriptor_policy_6ba2a3dcbcdd909c = []byte{
339 // 403 bytes of a gzipped FileDescriptorProto
340 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0x4d, 0xab, 0x13, 0x31,
341 0x14, 0x35, 0xed, 0x73, 0x6a, 0xef, 0xfb, 0xa0, 0x46, 0x28, 0xc3, 0xd3, 0x45, 0x99, 0x55, 0x57,
342 0x19, 0x5b, 0x11, 0x41, 0x57, 0xfd, 0x18, 0x65, 0x16, 0xbe, 0x37, 0x46, 0xed, 0x42, 0x0a, 0x8f,
343 0x4c, 0x1b, 0x42, 0x64, 0x92, 0x0c, 0x33, 0x63, 0xc1, 0xb5, 0xff, 0x46, 0xf0, 0x8f, 0xf8, 0x8b,
344 0x5c, 0xca, 0x24, 0x99, 0x47, 0x0b, 0xe2, 0x2e, 0xe7, 0x9e, 0x73, 0x72, 0xcf, 0xcd, 0x0d, 0x5c,
345 0x0b, 0x63, 0x44, 0xc1, 0x63, 0xc9, 0x54, 0x7c, 0x98, 0xc5, 0xa5, 0x29, 0xe4, 0xee, 0x3b, 0x29,
346 0x2b, 0xd3, 0x18, 0x7c, 0xe9, 0x38, 0x22, 0x99, 0x22, 0x87, 0xd9, 0xf5, 0x33, 0x2f, 0x65, 0xa5,
347 0x8c, 0x99, 0xd6, 0xa6, 0x61, 0x8d, 0x34, 0xba, 0x76, 0xe2, 0xe8, 0x2b, 0x04, 0x99, 0x35, 0xe3,
348 0x10, 0x06, 0x07, 0x5e, 0xd5, 0xd2, 0xe8, 0x10, 0x4d, 0xd0, 0xf4, 0x21, 0xed, 0x20, 0x9e, 0xc3,
349 0xa3, 0x5c, 0xea, 0xbd, 0xd4, 0xa2, 0x0e, 0xcf, 0x26, 0xfd, 0xe9, 0xf9, 0x7c, 0x4c, 0x4e, 0x7a,
350 0x90, 0xa5, 0xa3, 0xe9, 0xbd, 0x0e, 0x63, 0x38, 0xe3, 0x0d, 0x13, 0x61, 0x7f, 0x82, 0xa6, 0x17,
351 0xd4, 0x9e, 0xa3, 0x57, 0x30, 0xf0, 0xc2, 0x96, 0xae, 0x4c, 0xc1, 0x6d, 0xa7, 0x21, 0xb5, 0xe7,
352 0x36, 0x80, 0xe2, 0x2a, 0xe7, 0x55, 0x1d, 0xf6, 0x26, 0xfd, 0xe9, 0x90, 0x76, 0x30, 0xfa, 0x00,
353 0xe7, 0x2e, 0xe4, 0x9a, 0x17, 0x0d, 0xc3, 0x4b, 0xb8, 0xf2, 0x7d, 0xee, 0xf6, 0x6d, 0xa1, 0x0e,
354 0x91, 0x4d, 0xf5, 0xf4, 0xdf, 0xa9, 0xac, 0x89, 0x5e, 0xe6, 0x47, 0xa8, 0x8e, 0x7e, 0x21, 0xb8,
355 0x38, 0xe6, 0xf1, 0x6b, 0x08, 0xd8, 0xae, 0xe9, 0xa6, 0xbf, 0x9a, 0x47, 0xff, 0xb9, 0x8c, 0x2c,
356 0xac, 0x92, 0x7a, 0xc7, 0xfd, 0x34, 0xbd, 0xa3, 0x69, 0xc6, 0x10, 0xb8, 0xf8, 0xf6, 0x09, 0x86,
357 0xd4, 0xa3, 0xe8, 0x25, 0x04, 0xce, 0x8d, 0xc7, 0x80, 0x17, 0xab, 0x4f, 0xe9, 0xed, 0xcd, 0xdd,
358 0xe7, 0x9b, 0x8f, 0x59, 0xb2, 0x4a, 0xdf, 0xa6, 0xc9, 0x7a, 0xf4, 0x00, 0x0f, 0xa0, 0xbf, 0x58,
359 0xaf, 0x47, 0x08, 0x03, 0x04, 0x34, 0x79, 0x7f, 0xbb, 0x49, 0x46, 0xbd, 0xe5, 0x0f, 0x04, 0x8f,
360 0x77, 0x46, 0x9d, 0x86, 0x5a, 0xfa, 0x67, 0xc9, 0xda, 0x55, 0x66, 0xe8, 0xcb, 0x73, 0xcf, 0x0a,
361 0x53, 0x30, 0x2d, 0x88, 0xa9, 0x44, 0x2c, 0xb8, 0xb6, 0x8b, 0x8e, 0x1d, 0xc5, 0x4a, 0x59, 0xfb,
362 0x4f, 0xf3, 0x46, 0x32, 0xf5, 0x07, 0xa1, 0x9f, 0xbd, 0x27, 0xef, 0x9c, 0x6b, 0x55, 0x98, 0x6f,
363 0x7b, 0x92, 0x32, 0x45, 0x36, 0xb3, 0xdf, 0x5d, 0x75, 0x6b, 0xab, 0xdb, 0x94, 0xa9, 0xed, 0x66,
364 0x96, 0x07, 0xf6, 0xae, 0x17, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x18, 0xca, 0xaa, 0x7f,
365 0x02, 0x00, 0x00,
366}