Module: Gapic::Generators::CloudGeneratorParameters

Defined in:
lib/gapic/generators/cloud_generator_parameters.rb

Overview

Contains the cloud generator's parameters

Constant Summary collapse

BOOL_PARAMETERS_ALIASES =
{
  "ruby-cloud-free-tier"                    => ":gem.:free_tier",
  "ruby-cloud-yard-strict"                  => ":gem.:yard_strict",
  "ruby-cloud-generic-endpoint"             => ":gem.:generic_endpoint",
  "ruby-cloud-generate-metadata"            => ":generate_metadata",
  "ruby-cloud-generate-standalone-snippets" => ":generate_standalone_snippets",
  "ruby-cloud-generate-yardoc-snippets"     => ":generate_yardoc_snippets"
}.freeze
STRING_PARAMETERS_ALIASES =
{
  "ruby-cloud-gem-name"              => ":gem.:name",
  "ruby-cloud-gem-namespace"         => ":gem.:namespace",
  "ruby-cloud-title"                 => ":gem.:title",
  "ruby-cloud-description"           => ":gem.:description",
  "ruby-cloud-summary"               => ":gem.:summary",
  "ruby-cloud-homepage"              => ":gem.:homepage",
  "ruby-cloud-env-prefix"            => ":gem.:env_prefix",
  "ruby-cloud-wrapper-of"            => ":gem.:version_dependencies",
  "ruby-cloud-migration-version"     => ":gem.:migration_version",
  "ruby-cloud-product-url"           => ":gem.:product_documentation_url",
  "ruby-cloud-issues-url"            => ":gem.:issue_tracker_url",
  "ruby-cloud-api-id"                => ":gem.:api_id",
  "ruby-cloud-api-shortname"         => ":gem.:api_shortname",
  "ruby-cloud-factory-method-suffix" => ":gem.:factory_method_suffix",
  "ruby-cloud-quick-start-service"   => ":gem.:quick_start_service",
  "ruby-cloud-quick-start-method"    => ":gem.:quick_start_method",
  "ruby-cloud-default-service-host"  => ":defaults.:service.:default_host",
  "ruby-cloud-grpc-service-config"   => "grpc_service_config",
  "ruby-cloud-service-yaml"          => ":service_yaml",
  "ruby-cloud-wrapper-gem-override"  => ":overrides.:wrapper_gem_name"
}.freeze
ARRAY_PARAMETERS_ALIASES =
{
  "ruby-cloud-default-oauth-scopes" => ":defaults.:service.:oauth_scopes",
  "ruby-cloud-generate-transports"  => ":transports"
}.freeze
MAP_PARAMETERS_ALIASES =
{
  "ruby-cloud-common-services"    => ":common_services",
  "ruby-cloud-path-override"      => ":overrides.:file_path",
  "ruby-cloud-namespace-override" => ":overrides.:namespace",
  "ruby-cloud-service-override"   => ":overrides.:service",
  "ruby-cloud-extra-dependencies" => ":gem.:extra_dependencies"
}.freeze

Class Method Summary collapse

Class Method Details

.default_schemaObject



68
69
70
71
72
73
74
75
# File 'lib/gapic/generators/cloud_generator_parameters.rb', line 68

def self.default_schema
  Gapic::Generators::DefaultGeneratorParameters.default_schema.extend_with_aliases(
    bool_aliases:   BOOL_PARAMETERS_ALIASES,
    string_aliases: STRING_PARAMETERS_ALIASES,
    array_aliases:  ARRAY_PARAMETERS_ALIASES,
    map_aliases:    MAP_PARAMETERS_ALIASES
  )
end