Class: Zavudev::Models::FunctionUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::FunctionUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/zavudev/models/function_update_params.rb,
sig/zavudev/models/function_update_params.rbs
Overview
Instance Attribute Summary collapse
-
#dependencies ⇒ Hash{Symbol=>String}?
New dependency map (replaces existing dependencies).
-
#entrypoint ⇒ String?
Which file in
filesis the entry point. -
#files ⇒ Hash{Symbol=>String}?
The project's source files, keyed by path relative to the project root (e.g.
index.ts,lib/orders.ts). - #function_id ⇒ String
-
#http_enabled ⇒ Boolean?
Expose the function on its public HTTPS URL, or take it down.
-
#source_code ⇒ String?
Shortcut for a single-file function: exactly equivalent to sending
fileswith one entry named afterentrypoint(index.tsby default).
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(function_id:, dependencies: nil, entrypoint: nil, files: nil, http_enabled: nil, source_code: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see FunctionUpdateParams for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, 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
#initialize(function_id:, dependencies: nil, entrypoint: nil, files: nil, http_enabled: nil, source_code: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Zavudev::Models::FunctionUpdateParams for more details.
|
|
# File 'lib/zavudev/models/function_update_params.rb', line 56
|
Instance Attribute Details
#dependencies ⇒ Hash{Symbol=>String}?
New dependency map (replaces existing dependencies).
19 |
# File 'lib/zavudev/models/function_update_params.rb', line 19 optional :dependencies, Zavudev::Internal::Type::HashOf[String] |
#entrypoint ⇒ String?
Which file in files is the entry point. Defaults to index.ts.
25 |
# File 'lib/zavudev/models/function_update_params.rb', line 25 optional :entrypoint, String |
#files ⇒ Hash{Symbol=>String}?
The project's source files, keyed by path relative to the project root (e.g.
index.ts, lib/orders.ts). Imports between them are resolved when the
function is built, so a function can be split across as many files as it needs.
Paths must be relative and use forward slashes; .., node_modules/ and
package.json are rejected. npm packages are not uploaded here — declare them
under dependencies and Zavu installs them. Limits: 200 files and 900,000 bytes
for the whole tree.
38 |
# File 'lib/zavudev/models/function_update_params.rb', line 38 optional :files, Zavudev::Internal::Type::HashOf[String] |
#function_id ⇒ String
13 |
# File 'lib/zavudev/models/function_update_params.rb', line 13 required :function_id, String |
#http_enabled ⇒ Boolean?
Expose the function on its public HTTPS URL, or take it down. Applies to the
already-deployed function without redeploying; the URL is returned as
publicUrl.
46 |
# File 'lib/zavudev/models/function_update_params.rb', line 46 optional :http_enabled, Zavudev::Internal::Type::Boolean, api_name: :httpEnabled |
#source_code ⇒ String?
Shortcut for a single-file function: exactly equivalent to sending files with
one entry named after entrypoint (index.ts by default). Fully supported —
use whichever fits. If both are sent, files wins.
54 |
# File 'lib/zavudev/models/function_update_params.rb', line 54 optional :source_code, String, api_name: :sourceCode |
Instance Method Details
#to_hash ⇒ {
50 |
# File 'sig/zavudev/models/function_update_params.rbs', line 50
def to_hash: -> {
|