Module: Zavudev::Models::FunctionCreateParams::MemoryMB

Extended by:
Internal::Type::Enum
Defined in:
lib/zavudev/models/function_create_params.rb,
sig/zavudev/models/function_create_params.rbs

Constant Summary collapse

MEMORY_MB_128 =

Returns:

  • (128)
128
MEMORY_MB_256 =

Returns:

  • (256)
256
MEMORY_MB_512 =

Returns:

  • (512)
512
MEMORY_MB_1024 =

Returns:

  • (1024)
1024

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(name:, slug:, dependencies: nil, description: nil, entrypoint: nil, files: nil, http_enabled: nil, memory_mb: nil, runtime: nil, source_code: nil, timeout_sec: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Zavudev::Models::FunctionCreateParams for more details.

Parameters:

  • name (String)
  • slug (String)

    URL-safe identifier (lowercase, digits, hyphens). Must be unique per project.

  • dependencies (Hash{Symbol=>String}) (defaults to: nil)

    npm dependencies. Keys are package names, values are semver ranges.

  • description (String) (defaults to: nil)
  • entrypoint (String) (defaults to: nil)

    Which file in files is the entry point. Defaults to index.ts.

  • files (Hash{Symbol=>String}) (defaults to: nil)

    The project's source files, keyed by path relative to the project root (e.g. `in

  • http_enabled (Boolean) (defaults to: nil)

    Whether to expose a public HTTPS URL for this function.

  • memory_mb (Integer, Zavudev::Models::FunctionCreateParams::MemoryMB) (defaults to: nil)
  • runtime (Symbol, Zavudev::Models::FunctionCreateParams::Runtime) (defaults to: nil)

    Runtime the function is deployed on.

  • source_code (String) (defaults to: nil)

    Shortcut for a single-file function: exactly equivalent to sending files with

  • timeout_sec (Integer) (defaults to: nil)

    Per-invocation timeout in seconds. Event and cron invocations are asynchronous,

  • request_options (Zavudev::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


113
114
115
116
117
118
119
120
121
122
123
# File 'lib/zavudev/models/function_create_params.rb', line 113

module MemoryMB
  extend Zavudev::Internal::Type::Enum

  MEMORY_MB_128 = 128
  MEMORY_MB_256 = 256
  MEMORY_MB_512 = 512
  MEMORY_MB_1024 = 1024

  # @!method self.values
  #   @return [Array<Integer>]
end

#self?.values::Array[Zavudev::Models::FunctionCreateParams::memory_mb]

Returns:

  • (::Array[Zavudev::Models::FunctionCreateParams::memory_mb])


107
# File 'sig/zavudev/models/function_create_params.rbs', line 107

def self?.values: -> ::Array[Zavudev::Models::FunctionCreateParams::memory_mb]