Class: Zavudev::Models::FunctionRetrieveResponse::Function
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::FunctionRetrieveResponse::Function
- Defined in:
- lib/zavudev/models/function_retrieve_response.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#active_deployment_id ⇒ String?
ID of the deployment currently serving traffic.
- #created_at ⇒ Time
-
#dependencies ⇒ Hash{Symbol=>String}
npm dependencies installed in the function bundle.
- #description ⇒ String?
-
#http_enabled ⇒ Boolean
Whether the function can be invoked over HTTPS via its public URL.
- #id ⇒ String
-
#memory_mb ⇒ Integer
Memory allocation in MB.
- #name ⇒ String
-
#public_url ⇒ String?
HTTPS endpoint when httpEnabled is true.
-
#runtime ⇒ Symbol, Zavudev::Models::FunctionRetrieveResponse::Function::Runtime
Runtime the function is deployed on.
-
#slug ⇒ String
URL-safe identifier, unique per project.
-
#status ⇒ Symbol, Zavudev::Models::FunctionRetrieveResponse::Function::Status
Lifecycle status of a Zavu Function.
-
#timeout_sec ⇒ Integer
Per-invocation timeout in seconds.
- #updated_at ⇒ Time
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, dependencies:, http_enabled:, memory_mb:, name:, runtime:, slug:, status:, timeout_sec:, updated_at:, active_deployment_id: nil, description: nil, public_url: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Function for more details.
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(id:, created_at:, dependencies:, http_enabled:, memory_mb:, name:, runtime:, slug:, status:, timeout_sec:, updated_at:, active_deployment_id: nil, description: nil, public_url: nil) ⇒ Object
Some parameter documentations has been truncated, see Zavudev::Models::FunctionRetrieveResponse::Function for more details.
A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to messaging events or HTTP requests.
|
|
# File 'lib/zavudev/models/function_retrieve_response.rb', line 102
|
Instance Attribute Details
#active_deployment_id ⇒ String?
ID of the deployment currently serving traffic.
89 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 89 optional :active_deployment_id, String, api_name: :activeDeploymentId, nil?: true |
#created_at ⇒ Time
30 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 30 required :created_at, Time, api_name: :createdAt |
#dependencies ⇒ Hash{Symbol=>String}
npm dependencies installed in the function bundle. Keys are package names, values are semver ranges.
37 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 37 required :dependencies, Zavudev::Internal::Type::HashOf[String] |
#description ⇒ String?
94 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 94 optional :description, String, nil?: true |
#http_enabled ⇒ Boolean
Whether the function can be invoked over HTTPS via its public URL.
43 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 43 required :http_enabled, Zavudev::Internal::Type::Boolean, api_name: :httpEnabled |
#id ⇒ String
25 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 25 required :id, String |
#memory_mb ⇒ Integer
Memory allocation in MB.
49 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 49 required :memory_mb, Integer, api_name: :memoryMb |
#name ⇒ String
54 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 54 required :name, String |
#public_url ⇒ String?
HTTPS endpoint when httpEnabled is true.
100 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 100 optional :public_url, String, api_name: :publicUrl, nil?: true |
#runtime ⇒ Symbol, Zavudev::Models::FunctionRetrieveResponse::Function::Runtime
Runtime the function is deployed on.
60 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 60 required :runtime, enum: -> { Zavudev::Models::FunctionRetrieveResponse::Function::Runtime } |
#slug ⇒ String
URL-safe identifier, unique per project.
66 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 66 required :slug, String |
#status ⇒ Symbol, Zavudev::Models::FunctionRetrieveResponse::Function::Status
Lifecycle status of a Zavu Function.
72 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 72 required :status, enum: -> { Zavudev::Models::FunctionRetrieveResponse::Function::Status } |
#timeout_sec ⇒ Integer
Per-invocation timeout in seconds.
78 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 78 required :timeout_sec, Integer, api_name: :timeoutSec |
#updated_at ⇒ Time
83 |
# File 'lib/zavudev/models/function_retrieve_response.rb', line 83 required :updated_at, Time, api_name: :updatedAt |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/zavudev/models/function_retrieve_response.rb', line 145
|