Class: Zavudev::Models::FunctionCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/zavudev/models/function_create_params.rb

Overview

Defined Under Namespace

Modules: MemoryMB, Runtime

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

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

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

This class inherits a constructor from Zavudev::Internal::Type::BaseModel

Instance Attribute Details

#dependenciesHash{Symbol=>String}?

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

Returns:

  • (Hash{Symbol=>String}, nil)


25
# File 'lib/zavudev/models/function_create_params.rb', line 25

optional :dependencies, Zavudev::Internal::Type::HashOf[String]

#descriptionString?

Returns:

  • (String, nil)


30
# File 'lib/zavudev/models/function_create_params.rb', line 30

optional :description, String

#http_enabledBoolean?

Whether to expose a public HTTPS URL for this function.

Returns:

  • (Boolean, nil)


36
# File 'lib/zavudev/models/function_create_params.rb', line 36

optional :http_enabled, Zavudev::Internal::Type::Boolean, api_name: :httpEnabled

#memory_mbInteger, ...



41
# File 'lib/zavudev/models/function_create_params.rb', line 41

optional :memory_mb, enum: -> { Zavudev::FunctionCreateParams::MemoryMB }, api_name: :memoryMb

#nameString

Returns:

  • (String)


13
# File 'lib/zavudev/models/function_create_params.rb', line 13

required :name, String

#runtimeSymbol, ...

Runtime the function is deployed on.



47
# File 'lib/zavudev/models/function_create_params.rb', line 47

optional :runtime, enum: -> { Zavudev::FunctionCreateParams::Runtime }

#slugString

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

Returns:

  • (String)


19
# File 'lib/zavudev/models/function_create_params.rb', line 19

required :slug, String

#source_codeString?

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

Returns:

  • (String, nil)


53
# File 'lib/zavudev/models/function_create_params.rb', line 53

optional :source_code, String, api_name: :sourceCode

#timeout_secInteger?

Returns:

  • (Integer, nil)


58
# File 'lib/zavudev/models/function_create_params.rb', line 58

optional :timeout_sec, Integer, api_name: :timeoutSec

Class Method Details

.valuesArray<Integer>

Returns:

  • (Array<Integer>)


# File 'lib/zavudev/models/function_create_params.rb', line 89