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 ce380bb3 authored by Andrea Raguso's avatar Andrea Raguso
Browse files

update

parent c32b5482
This diff is collapsed.
......@@ -44,7 +44,7 @@ type ResourcesClient interface {
// ListResourcePermissions lists all the resource permissions in the system
ListResourcePermissions(ctx context.Context, in *ListResourcePermissionsRequest, opts ...grpc.CallOption) (*ListResourcePermissionsResponse, error)
// CreateResourcePermission adds a new permission to an existing resource
CreateResourcePermission(ctx context.Context, in *CreateResourcePermissionRequest, opts ...grpc.CallOption) (*CreateResourcePermissionResponse, error)
CreateResourcePermission(ctx context.Context, in *CreateResourcePermissionRequest, opts ...grpc.CallOption) (*ResourcePermission, error)
// DeleteResourcePermission removes a permission object from an existing resource
DeleteResourcePermission(ctx context.Context, in *DeleteResourcePermissionRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
......@@ -120,8 +120,8 @@ func (c *resourcesClient) ListResourcePermissions(ctx context.Context, in *ListR
return out, nil
}
func (c *resourcesClient) CreateResourcePermission(ctx context.Context, in *CreateResourcePermissionRequest, opts ...grpc.CallOption) (*CreateResourcePermissionResponse, error) {
out := new(CreateResourcePermissionResponse)
func (c *resourcesClient) CreateResourcePermission(ctx context.Context, in *CreateResourcePermissionRequest, opts ...grpc.CallOption) (*ResourcePermission, error) {
out := new(ResourcePermission)
err := c.cc.Invoke(ctx, "/sip.resources.Resources/CreateResourcePermission", in, out, opts...)
if err != nil {
return nil, err
......@@ -167,7 +167,7 @@ type ResourcesServer interface {
// ListResourcePermissions lists all the resource permissions in the system
ListResourcePermissions(context.Context, *ListResourcePermissionsRequest) (*ListResourcePermissionsResponse, error)
// CreateResourcePermission adds a new permission to an existing resource
CreateResourcePermission(context.Context, *CreateResourcePermissionRequest) (*CreateResourcePermissionResponse, error)
CreateResourcePermission(context.Context, *CreateResourcePermissionRequest) (*ResourcePermission, error)
// DeleteResourcePermission removes a permission object from an existing resource
DeleteResourcePermission(context.Context, *DeleteResourcePermissionRequest) (*empty.Empty, error)
mustEmbedUnimplementedResourcesServer()
......@@ -198,7 +198,7 @@ func (UnimplementedResourcesServer) DeleteResource(context.Context, *DeleteResou
func (UnimplementedResourcesServer) ListResourcePermissions(context.Context, *ListResourcePermissionsRequest) (*ListResourcePermissionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListResourcePermissions not implemented")
}
func (UnimplementedResourcesServer) CreateResourcePermission(context.Context, *CreateResourcePermissionRequest) (*CreateResourcePermissionResponse, error) {
func (UnimplementedResourcesServer) CreateResourcePermission(context.Context, *CreateResourcePermissionRequest) (*ResourcePermission, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateResourcePermission not implemented")
}
func (UnimplementedResourcesServer) DeleteResourcePermission(context.Context, *DeleteResourcePermissionRequest) (*empty.Empty, error) {
......
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