1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package iap
22
23 import (
24 context "context"
25 reflect "reflect"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 v1 "google.golang.org/genproto/googleapis/iam/v1"
29 grpc "google.golang.org/grpc"
30 codes "google.golang.org/grpc/codes"
31 status "google.golang.org/grpc/status"
32 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 )
35
36 const (
37
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 var File_google_cloud_iap_v1beta1_service_proto protoreflect.FileDescriptor
44
45 var file_google_cloud_iap_v1beta1_service_proto_rawDesc = []byte{
46 0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
47 0x61, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
48 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
49 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
50 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
51 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
52 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69,
53 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
54 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c,
55 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
56 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
57 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x80, 0x04, 0x0a, 0x1e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
58 0x74, 0x79, 0x41, 0x77, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x41, 0x64, 0x6d, 0x69,
59 0x6e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x12, 0x79, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49,
60 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
61 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50,
62 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67,
63 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,
64 0x69, 0x63, 0x79, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x23, 0x2f, 0x76, 0x31,
65 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d,
66 0x2a, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
67 0x3a, 0x01, 0x2a, 0x12, 0x79, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,
68 0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d,
69 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
70 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
71 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2e,
72 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x23, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
73 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x2a, 0x2a, 0x7d, 0x3a, 0x67,
74 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x9f,
75 0x01, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
76 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69,
77 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72,
78 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
79 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e,
80 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
81 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93,
82 0x02, 0x2e, 0x22, 0x29, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x72, 0x65,
83 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x2a, 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x49,
84 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x01, 0x2a,
85 0x1a, 0x46, 0xca, 0x41, 0x12, 0x69, 0x61, 0x70, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
86 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a,
87 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
88 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d,
89 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x5d, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e,
90 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x70,
91 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x6f, 0x6f, 0x67,
92 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
93 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
94 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x61, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65,
95 0x74, 0x61, 0x31, 0x3b, 0x69, 0x61, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
96 }
97
98 var file_google_cloud_iap_v1beta1_service_proto_goTypes = []interface{}{
99 (*v1.SetIamPolicyRequest)(nil),
100 (*v1.GetIamPolicyRequest)(nil),
101 (*v1.TestIamPermissionsRequest)(nil),
102 (*v1.Policy)(nil),
103 (*v1.TestIamPermissionsResponse)(nil),
104 }
105 var file_google_cloud_iap_v1beta1_service_proto_depIdxs = []int32{
106 0,
107 1,
108 2,
109 3,
110 3,
111 4,
112 3,
113 0,
114 0,
115 0,
116 0,
117 }
118
119 func init() { file_google_cloud_iap_v1beta1_service_proto_init() }
120 func file_google_cloud_iap_v1beta1_service_proto_init() {
121 if File_google_cloud_iap_v1beta1_service_proto != nil {
122 return
123 }
124 type x struct{}
125 out := protoimpl.TypeBuilder{
126 File: protoimpl.DescBuilder{
127 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
128 RawDescriptor: file_google_cloud_iap_v1beta1_service_proto_rawDesc,
129 NumEnums: 0,
130 NumMessages: 0,
131 NumExtensions: 0,
132 NumServices: 1,
133 },
134 GoTypes: file_google_cloud_iap_v1beta1_service_proto_goTypes,
135 DependencyIndexes: file_google_cloud_iap_v1beta1_service_proto_depIdxs,
136 }.Build()
137 File_google_cloud_iap_v1beta1_service_proto = out.File
138 file_google_cloud_iap_v1beta1_service_proto_rawDesc = nil
139 file_google_cloud_iap_v1beta1_service_proto_goTypes = nil
140 file_google_cloud_iap_v1beta1_service_proto_depIdxs = nil
141 }
142
143
144 var _ context.Context
145 var _ grpc.ClientConnInterface
146
147
148
149 const _ = grpc.SupportPackageIsVersion6
150
151
152
153
154 type IdentityAwareProxyAdminV1Beta1Client interface {
155
156
157
158
159 SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
160
161
162
163
164 GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
165
166
167
168
169
170
171 TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
172 }
173
174 type identityAwareProxyAdminV1Beta1Client struct {
175 cc grpc.ClientConnInterface
176 }
177
178 func NewIdentityAwareProxyAdminV1Beta1Client(cc grpc.ClientConnInterface) IdentityAwareProxyAdminV1Beta1Client {
179 return &identityAwareProxyAdminV1Beta1Client{cc}
180 }
181
182 func (c *identityAwareProxyAdminV1Beta1Client) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
183 out := new(v1.Policy)
184 err := c.cc.Invoke(ctx, "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/SetIamPolicy", in, out, opts...)
185 if err != nil {
186 return nil, err
187 }
188 return out, nil
189 }
190
191 func (c *identityAwareProxyAdminV1Beta1Client) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
192 out := new(v1.Policy)
193 err := c.cc.Invoke(ctx, "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/GetIamPolicy", in, out, opts...)
194 if err != nil {
195 return nil, err
196 }
197 return out, nil
198 }
199
200 func (c *identityAwareProxyAdminV1Beta1Client) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
201 out := new(v1.TestIamPermissionsResponse)
202 err := c.cc.Invoke(ctx, "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/TestIamPermissions", in, out, opts...)
203 if err != nil {
204 return nil, err
205 }
206 return out, nil
207 }
208
209
210 type IdentityAwareProxyAdminV1Beta1Server interface {
211
212
213
214
215 SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
216
217
218
219
220 GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
221
222
223
224
225
226
227 TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
228 }
229
230
231 type UnimplementedIdentityAwareProxyAdminV1Beta1Server struct {
232 }
233
234 func (*UnimplementedIdentityAwareProxyAdminV1Beta1Server) SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) {
235 return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented")
236 }
237 func (*UnimplementedIdentityAwareProxyAdminV1Beta1Server) GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) {
238 return nil, status.Errorf(codes.Unimplemented, "method GetIamPolicy not implemented")
239 }
240 func (*UnimplementedIdentityAwareProxyAdminV1Beta1Server) TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) {
241 return nil, status.Errorf(codes.Unimplemented, "method TestIamPermissions not implemented")
242 }
243
244 func RegisterIdentityAwareProxyAdminV1Beta1Server(s *grpc.Server, srv IdentityAwareProxyAdminV1Beta1Server) {
245 s.RegisterService(&_IdentityAwareProxyAdminV1Beta1_serviceDesc, srv)
246 }
247
248 func _IdentityAwareProxyAdminV1Beta1_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
249 in := new(v1.SetIamPolicyRequest)
250 if err := dec(in); err != nil {
251 return nil, err
252 }
253 if interceptor == nil {
254 return srv.(IdentityAwareProxyAdminV1Beta1Server).SetIamPolicy(ctx, in)
255 }
256 info := &grpc.UnaryServerInfo{
257 Server: srv,
258 FullMethod: "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/SetIamPolicy",
259 }
260 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
261 return srv.(IdentityAwareProxyAdminV1Beta1Server).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest))
262 }
263 return interceptor(ctx, in, info, handler)
264 }
265
266 func _IdentityAwareProxyAdminV1Beta1_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
267 in := new(v1.GetIamPolicyRequest)
268 if err := dec(in); err != nil {
269 return nil, err
270 }
271 if interceptor == nil {
272 return srv.(IdentityAwareProxyAdminV1Beta1Server).GetIamPolicy(ctx, in)
273 }
274 info := &grpc.UnaryServerInfo{
275 Server: srv,
276 FullMethod: "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/GetIamPolicy",
277 }
278 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
279 return srv.(IdentityAwareProxyAdminV1Beta1Server).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest))
280 }
281 return interceptor(ctx, in, info, handler)
282 }
283
284 func _IdentityAwareProxyAdminV1Beta1_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
285 in := new(v1.TestIamPermissionsRequest)
286 if err := dec(in); err != nil {
287 return nil, err
288 }
289 if interceptor == nil {
290 return srv.(IdentityAwareProxyAdminV1Beta1Server).TestIamPermissions(ctx, in)
291 }
292 info := &grpc.UnaryServerInfo{
293 Server: srv,
294 FullMethod: "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/TestIamPermissions",
295 }
296 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
297 return srv.(IdentityAwareProxyAdminV1Beta1Server).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest))
298 }
299 return interceptor(ctx, in, info, handler)
300 }
301
302 var _IdentityAwareProxyAdminV1Beta1_serviceDesc = grpc.ServiceDesc{
303 ServiceName: "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1",
304 HandlerType: (*IdentityAwareProxyAdminV1Beta1Server)(nil),
305 Methods: []grpc.MethodDesc{
306 {
307 MethodName: "SetIamPolicy",
308 Handler: _IdentityAwareProxyAdminV1Beta1_SetIamPolicy_Handler,
309 },
310 {
311 MethodName: "GetIamPolicy",
312 Handler: _IdentityAwareProxyAdminV1Beta1_GetIamPolicy_Handler,
313 },
314 {
315 MethodName: "TestIamPermissions",
316 Handler: _IdentityAwareProxyAdminV1Beta1_TestIamPermissions_Handler,
317 },
318 },
319 Streams: []grpc.StreamDesc{},
320 Metadata: "google/cloud/iap/v1beta1/service.proto",
321 }
322
View as plain text