gapic-generator/lib/gapic/schema/service_config_parser.rb
# Parses a single Api from yaml
# only supports a limited amount of fields
# @return [::Google::Protobuf::Api]
Parses a single Api from yaml
only supports a limited amount of fields
Parses a single Api from yaml only supports a limited amount of fields
def parse_api api_yaml
          api = ::Google::Protobuf::Api.new
          api.name = api_yaml[NAME_KEY] if api_yaml.key? NAME_KEY
          api.version = api_yaml[VERSION_KEY] if api_yaml.key? VERSION_KEY
          api
        end
def parse_api api_yaml api = :: Google :: Protobuf :: Api . new api . name = api_yaml [ NAME_KEY ] if api_yaml . key? NAME_KEY api . version = api_yaml [ VERSION_KEY ] if api_yaml . key? VERSION_KEY api end
Parses a single Api from yaml
only supports a limited amount of fields
Parses a single Api from yaml only supports a limited amount of fields
None
::Google::Protobuf::Api
api_yaml