class Authzed::Api::V0::Client
Attributes
acl_service[R]
developer_service[R]
namespace_service[R]
watch_service[R]
Public Class Methods
new(target:, credentials: nil, interceptors: [], options: {}, timeout: nil)
click to toggle source
# File lib/authzed/api/v0/client.rb, line 9 def initialize(target:, credentials: nil, interceptors: [], options: {}, timeout: nil) creds = credentials || GRPC::Core::ChannelCredentials.new @acl_service = ACLService::Stub.new( target, creds, timeout: timeout, interceptors: interceptors, channel_args: options, ) @developer_service = DeveloperService::Stub.new( target, creds, timeout: timeout, interceptors: interceptors, channel_args: options, ) @namespace_service = NamespaceService::Stub.new( target, creds, timeout: timeout, interceptors: interceptors, channel_args: options, ) @watch_service = WatchService::Stub.new( target, creds, timeout: timeout, interceptors: interceptors, channel_args: options, ) end