To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit b73e2128 authored by Go Protoc Bot's avatar Go Protoc Bot
Browse files

update

parent fb0daafa
This diff is collapsed.
......@@ -92,11 +92,11 @@ type GsuiteClient interface {
// Remember the VSETH Datenschutzerklärung when sharing files with others.
//
// Arguments:
// file_id: required, the Google ID of the file that should be shared
// email: required, the email of the person or group with whom the file should be shared
// type: required, the type of permission. Must be "group" or "user"
// role: required, the role of the permission. Must be "owner", "organizer", "fileOrganizer", "writer", "commenter", "reader".
// You may not be permitted to add any role.
// id: required, the Google ID of the file that should be shared
// email: the email of the person or group with whom the file should be shared.
// Only required when the permission type is 'group' or 'user'.
// type: required, the type of permission.
// role: required, the role of the permission. You may not be permitted to add any role.
//
// Returns:
//
......@@ -105,26 +105,7 @@ type GsuiteClient interface {
// TYPE_INVALID: unimplemented
// ROLE_INVALID: unimplemented
//
ShareFile(ctx context.Context, in *ShareFileRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// ShareFileWithAnyone shares a file with anyone
//
// In Google Drive every file and folder has a list of permissions, that allow users to access them. This function adds the specified permission to a file.
// For more information on Google permissions see https://developers.google.com/drive/api/v3/reference/permissions.
// Please use ShareFile if it is not needed to make a file public.
// Remember the VSETH Datenschutzerklärung when sharing files with others.
//
// Arguments:
// file_id: required, the Google ID of the file that should be shared
// role: required, the role of the permission. Must be "owner", "organizer", "fileOrganizer", "writer", "commenter", "reader".
// You may not be permitted to add any role.
//
// Returns:
//
// Exceptions:
// FILE_ID_INVALID: unimplemented
// ROLE_INVALID: unimplemented
//
ShareFileWithAnyone(ctx context.Context, in *ShareFileWithAnyoneRequest, opts ...grpc.CallOption) (*empty.Empty, error)
ShareFile(ctx context.Context, in *ShareRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetWebViewLink gets a link to a file
//
// This function gets the webview link of a file. Only people with access to the file will be able to open the link successfully.
......@@ -290,17 +271,17 @@ type GsuiteClient interface {
// When you share a calendar twice for the same group or sharing type, the role will be updated.
//
// Arguments:
// cal_id: required, the ID of the calendar that should be shared.
// type: sharing type, specifies if the calendar will be shared with a group, domain-wide or publicly
// groupname: the name of the group that will get access to the calendar.
// role: required, the role for the Access Control Rule. Can be one of 'none', 'freeBusyReader', 'reader', 'writer',
// 'owner'. See https://developers.google.com/calendar/api/concepts/sharing for more information.
// id: required, the ID of the calendar that should be shared.
// type: required, sharing type
// email: the name of the group or user that will get access to the calendar.
// Only required if the type is 'user' or 'group'.
// role: required, the role for the Access Control Rule.
//
// Returns:
//
// Exceptions:
//
ShareCalendar(ctx context.Context, in *ShareCalendarRequest, opts ...grpc.CallOption) (*empty.Empty, error)
ShareCalendar(ctx context.Context, in *ShareRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// CreateEvent creates an event in the specified calendar
//
// This function creates an event in the specified calendar. You have to specify the needed event information.
......@@ -462,7 +443,7 @@ func (c *gsuiteClient) DeleteFile(ctx context.Context, in *FileRequest, opts ...
return out, nil
}
func (c *gsuiteClient) ShareFile(ctx context.Context, in *ShareFileRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
func (c *gsuiteClient) ShareFile(ctx context.Context, in *ShareRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/sip.gsuite.Gsuite/ShareFile", in, out, opts...)
if err != nil {
......@@ -471,15 +452,6 @@ func (c *gsuiteClient) ShareFile(ctx context.Context, in *ShareFileRequest, opts
return out, nil
}
func (c *gsuiteClient) ShareFileWithAnyone(ctx context.Context, in *ShareFileWithAnyoneRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/sip.gsuite.Gsuite/ShareFileWithAnyone", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *gsuiteClient) GetWebViewLink(ctx context.Context, in *FileRequest, opts ...grpc.CallOption) (*FileLinkReply, error) {
out := new(FileLinkReply)
err := c.cc.Invoke(ctx, "/sip.gsuite.Gsuite/GetWebViewLink", in, out, opts...)
......@@ -561,7 +533,7 @@ func (c *gsuiteClient) ListCalendars(ctx context.Context, in *empty.Empty, opts
return out, nil
}
func (c *gsuiteClient) ShareCalendar(ctx context.Context, in *ShareCalendarRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
func (c *gsuiteClient) ShareCalendar(ctx context.Context, in *ShareRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/sip.gsuite.Gsuite/ShareCalendar", in, out, opts...)
if err != nil {
......@@ -683,11 +655,11 @@ type GsuiteServer interface {
// Remember the VSETH Datenschutzerklärung when sharing files with others.
//
// Arguments:
// file_id: required, the Google ID of the file that should be shared
// email: required, the email of the person or group with whom the file should be shared
// type: required, the type of permission. Must be "group" or "user"
// role: required, the role of the permission. Must be "owner", "organizer", "fileOrganizer", "writer", "commenter", "reader".
// You may not be permitted to add any role.
// id: required, the Google ID of the file that should be shared
// email: the email of the person or group with whom the file should be shared.
// Only required when the permission type is 'group' or 'user'.
// type: required, the type of permission.
// role: required, the role of the permission. You may not be permitted to add any role.
//
// Returns:
//
......@@ -696,26 +668,7 @@ type GsuiteServer interface {
// TYPE_INVALID: unimplemented
// ROLE_INVALID: unimplemented
//
ShareFile(context.Context, *ShareFileRequest) (*empty.Empty, error)
// ShareFileWithAnyone shares a file with anyone
//
// In Google Drive every file and folder has a list of permissions, that allow users to access them. This function adds the specified permission to a file.
// For more information on Google permissions see https://developers.google.com/drive/api/v3/reference/permissions.
// Please use ShareFile if it is not needed to make a file public.
// Remember the VSETH Datenschutzerklärung when sharing files with others.
//
// Arguments:
// file_id: required, the Google ID of the file that should be shared
// role: required, the role of the permission. Must be "owner", "organizer", "fileOrganizer", "writer", "commenter", "reader".
// You may not be permitted to add any role.
//
// Returns:
//
// Exceptions:
// FILE_ID_INVALID: unimplemented
// ROLE_INVALID: unimplemented
//
ShareFileWithAnyone(context.Context, *ShareFileWithAnyoneRequest) (*empty.Empty, error)
ShareFile(context.Context, *ShareRequest) (*empty.Empty, error)
// GetWebViewLink gets a link to a file
//
// This function gets the webview link of a file. Only people with access to the file will be able to open the link successfully.
......@@ -881,17 +834,17 @@ type GsuiteServer interface {
// When you share a calendar twice for the same group or sharing type, the role will be updated.
//
// Arguments:
// cal_id: required, the ID of the calendar that should be shared.
// type: sharing type, specifies if the calendar will be shared with a group, domain-wide or publicly
// groupname: the name of the group that will get access to the calendar.
// role: required, the role for the Access Control Rule. Can be one of 'none', 'freeBusyReader', 'reader', 'writer',
// 'owner'. See https://developers.google.com/calendar/api/concepts/sharing for more information.
// id: required, the ID of the calendar that should be shared.
// type: required, sharing type
// email: the name of the group or user that will get access to the calendar.
// Only required if the type is 'user' or 'group'.
// role: required, the role for the Access Control Rule.
//
// Returns:
//
// Exceptions:
//
ShareCalendar(context.Context, *ShareCalendarRequest) (*empty.Empty, error)
ShareCalendar(context.Context, *ShareRequest) (*empty.Empty, error)
// CreateEvent creates an event in the specified calendar
//
// This function creates an event in the specified calendar. You have to specify the needed event information.
......@@ -978,12 +931,9 @@ func (UnimplementedGsuiteServer) CopyFile(context.Context, *CopyFileRequest) (*F
func (UnimplementedGsuiteServer) DeleteFile(context.Context, *FileRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteFile not implemented")
}
func (UnimplementedGsuiteServer) ShareFile(context.Context, *ShareFileRequest) (*empty.Empty, error) {
func (UnimplementedGsuiteServer) ShareFile(context.Context, *ShareRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method ShareFile not implemented")
}
func (UnimplementedGsuiteServer) ShareFileWithAnyone(context.Context, *ShareFileWithAnyoneRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method ShareFileWithAnyone not implemented")
}
func (UnimplementedGsuiteServer) GetWebViewLink(context.Context, *FileRequest) (*FileLinkReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWebViewLink not implemented")
}
......@@ -1011,7 +961,7 @@ func (UnimplementedGsuiteServer) CreateCalendar(context.Context, *CreateCalendar
func (UnimplementedGsuiteServer) ListCalendars(context.Context, *empty.Empty) (*ListCalendarsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListCalendars not implemented")
}
func (UnimplementedGsuiteServer) ShareCalendar(context.Context, *ShareCalendarRequest) (*empty.Empty, error) {
func (UnimplementedGsuiteServer) ShareCalendar(context.Context, *ShareRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method ShareCalendar not implemented")
}
func (UnimplementedGsuiteServer) CreateEvent(context.Context, *CreateEventRequest) (*Event, error) {
......@@ -1123,7 +1073,7 @@ func _Gsuite_DeleteFile_Handler(srv interface{}, ctx context.Context, dec func(i
}
func _Gsuite_ShareFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ShareFileRequest)
in := new(ShareRequest)
if err := dec(in); err != nil {
return nil, err
}
......@@ -1135,25 +1085,7 @@ func _Gsuite_ShareFile_Handler(srv interface{}, ctx context.Context, dec func(in
FullMethod: "/sip.gsuite.Gsuite/ShareFile",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GsuiteServer).ShareFile(ctx, req.(*ShareFileRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Gsuite_ShareFileWithAnyone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ShareFileWithAnyoneRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GsuiteServer).ShareFileWithAnyone(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/sip.gsuite.Gsuite/ShareFileWithAnyone",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GsuiteServer).ShareFileWithAnyone(ctx, req.(*ShareFileWithAnyoneRequest))
return srv.(GsuiteServer).ShareFile(ctx, req.(*ShareRequest))
}
return interceptor(ctx, in, info, handler)
}
......@@ -1321,7 +1253,7 @@ func _Gsuite_ListCalendars_Handler(srv interface{}, ctx context.Context, dec fun
}
func _Gsuite_ShareCalendar_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ShareCalendarRequest)
in := new(ShareRequest)
if err := dec(in); err != nil {
return nil, err
}
......@@ -1333,7 +1265,7 @@ func _Gsuite_ShareCalendar_Handler(srv interface{}, ctx context.Context, dec fun
FullMethod: "/sip.gsuite.Gsuite/ShareCalendar",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GsuiteServer).ShareCalendar(ctx, req.(*ShareCalendarRequest))
return srv.(GsuiteServer).ShareCalendar(ctx, req.(*ShareRequest))
}
return interceptor(ctx, in, info, handler)
}
......@@ -1429,10 +1361,6 @@ var Gsuite_ServiceDesc = grpc.ServiceDesc{
MethodName: "ShareFile",
Handler: _Gsuite_ShareFile_Handler,
},
{
MethodName: "ShareFileWithAnyone",
Handler: _Gsuite_ShareFileWithAnyone_Handler,
},
{
MethodName: "GetWebViewLink",
Handler: _Gsuite_GetWebViewLink_Handler,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment