Sha256: ae391ed7afb569fe273cbd993479d11a1a20ed56eeb20e26a836225808e2e03d

Contents?: true

Size: 1.6 KB

Versions: 33

Compression:

Stored size: 1.6 KB

Contents

# frozen_string_literal: true

# Copyright 2020 Google LLC
#
# 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
#
#     https://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.

module Gapic
  module GrpcServiceConfig
    ##
    # Representation of a GRPC service config split into the configurations
    # applied on the service level (to all the methods) and the configurations
    # applied to the specific methods
    #
    class ServiceConfig
      attr_reader :service_level_configs, :service_method_level_configs

      ##
      # Create new ServiceConfig.
      #
      # @param service_level_configs [Hash<String, Gapic::GrpcServiceConfig::MethodConfig>] service-level configs
      #   in a lookup hash by the service full grpc name
      #
      # @param service_method_level_configs [Hash<String, Hash<String, Gapic::GrpcServiceConfig::MethodConfig>>]
      #   method-level configs in a double lookup hash, first by the service full grpc name then by the method name
      #
      def initialize service_level_configs, service_method_level_configs
        @service_level_configs = service_level_configs
        @service_method_level_configs = service_method_level_configs
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
gapic-generator-0.6.15 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.14 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.13 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.12 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.11 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.10 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.9 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.8 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.7 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.6 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.5 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.4 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.3 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.2 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.1 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.6.0 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.5.1 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.5.0 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.4.2 lib/gapic/grpc_service_config/service_config.rb
gapic-generator-0.4.0 lib/gapic/grpc_service_config/service_config.rb