Sha256: 6ed40db4682d3105172f26041555c56be8dd49ffb2eb55787146659b7f513b7f

Contents?: true

Size: 1.8 KB

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
strongdm-1.0.11 lib/grpc/roles_services_pb.rb
strongdm-1.0.10 lib/grpc/roles_services_pb.rb
strongdm-1.0.3 lib/grpc/roles_services_pb.rb
strongdm-1.0.0 lib/grpc/roles_services_pb.rb