Sha256: 9f314b5ecdabfef5700d0e4097378f2de049531429734b216d23db7345f55d56

Contents?: true

Size: 1.8 KB

Versions: 16

Compression:

Stored size: 1.8 KB

Contents

# Copyright 2020 StrongDM Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: roles.proto for package 'v1'

require "grpc"
require "roles_pb"

module V1
  module Roles
    # Roles are tools for controlling user access to resources. Each Role holds a
    # list of resources which they grant access to. Composite roles are a special
    # type of Role which have no resource associations of their own, but instead
    # grant access to the combined resources associated with a set of child roles.
    # Each user can be a member of one Role or composite role.
    class Service
      include GRPC::GenericService

      self.marshal_class_method = :encode
      self.unmarshal_class_method = :decode
      self.service_name = "v1.Roles"

      # Create registers a new Role.
      rpc :Create, RoleCreateRequest, RoleCreateResponse
      # Get reads one Role by ID.
      rpc :Get, RoleGetRequest, RoleGetResponse
      # Update patches a Role by ID.
      rpc :Update, RoleUpdateRequest, RoleUpdateResponse
      # Delete removes a Role by ID.
      rpc :Delete, RoleDeleteRequest, RoleDeleteResponse
      # List gets a list of Roles matching a given set of criteria.
      rpc :List, RoleListRequest, RoleListResponse
    end

    Stub = Service.rpc_stub_class
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
strongdm-1.0.31 ./lib/grpc/roles_services_pb.rb
strongdm-1.0.30 ./lib/grpc/roles_services_pb.rb
strongdm-1.0.24 lib/grpc/roles_services_pb.rb
strongdm-1.0.22 lib/grpc/roles_services_pb.rb
strongdm-1.0.21 lib/grpc/roles_services_pb.rb
strongdm-1.0.19 lib/grpc/roles_services_pb.rb
strongdm-1.0.18 lib/grpc/roles_services_pb.rb
strongdm-1.0.15 lib/grpc/roles_services_pb.rb
strongdm-1.0.14 lib/grpc/roles_services_pb.rb
strongdm-1.0.13 lib/grpc/roles_services_pb.rb
strongdm-1.0.12 lib/grpc/roles_services_pb.rb
strongdm-1.0.8 lib/grpc/roles_services_pb.rb
strongdm-1.0.7 lib/grpc/roles_services_pb.rb
strongdm-1.0.5 lib/grpc/roles_services_pb.rb
strongdm-1.0.2 lib/grpc/roles_services_pb.rb
strongdm-1.0.1 lib/grpc/roles_services_pb.rb