aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go')
-rw-r--r--vendor/google.golang.org/genproto/googleapis/iam/v1/iam_policy.pb.go411
1 files changed, 411 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}