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

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

Constant Summary collapse

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

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, 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, http_enabled: nil, memory_mb: nil, runtime: nil, source_code: nil, timeout_sec: nil, request_options: {}) ⇒ Object

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)
  • 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)

    TypeScript source code for the function entry point (max ~900KB).

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


81
82
83
84
85
86
87
88
89
90
91
# File 'lib/zavudev/models/function_create_params.rb', line 81

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