Class: Zavudev::Models::FunctionListDeploymentsResponse::Deployment
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/zavudev/models/function_list_deployments_response.rb,
sig/zavudev/models/function_list_deployments_response.rbs
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: nil, bundle_size_bytes: nil, created_at: nil, deployed_at: nil, error_message: nil, is_active: nil, status: nil, version: nil) ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 16
class Deployment < Zavudev::Internal::Type::BaseModel
optional :id, String
optional :bundle_size_bytes, Integer, api_name: :bundleSizeBytes, nil?: true
optional :created_at, Time, api_name: :createdAt
optional :deployed_at, Time, api_name: :deployedAt, nil?: true
optional :error_message, String, api_name: :errorMessage, nil?: true
optional :is_active, Zavudev::Internal::Type::Boolean, api_name: :isActive
optional :status, enum: -> { Zavudev::Models::FunctionListDeploymentsResponse::Deployment::Status }
optional :version, Integer
module Status
extend Zavudev::Internal::Type::Enum
PENDING = :pending
BUNDLING = :bundling
UPLOADING = :uploading
PUBLISHING = :publishing
ACTIVE = :active
FAILED = :failed
SUPERSEDED = :superseded
end
end
|
Instance Attribute Details
#bundle_size_bytes ⇒ Integer?
25
|
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 25
optional :bundle_size_bytes, Integer, api_name: :bundleSizeBytes, nil?: true
|
#created_at ⇒ Time?
30
|
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 30
optional :created_at, Time, api_name: :createdAt
|
#deployed_at ⇒ Time?
35
|
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 35
optional :deployed_at, Time, api_name: :deployedAt, nil?: true
|
#error_message ⇒ String?
40
|
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 40
optional :error_message, String, api_name: :errorMessage, nil?: true
|
#id ⇒ String?
20
|
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 20
optional :id, String
|
#is_active ⇒ Boolean?
45
|
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 45
optional :is_active, Zavudev::Internal::Type::Boolean, api_name: :isActive
|
#status ⇒ Symbol, ...
Stage of a function deployment.
51
|
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 51
optional :status, enum: -> { Zavudev::Models::FunctionListDeploymentsResponse::Deployment::Status }
|
#version ⇒ Integer?
56
|
# File 'lib/zavudev/models/function_list_deployments_response.rb', line 56
optional :version, Integer
|
Instance Method Details
#to_hash ⇒ {
71
|
# File 'sig/zavudev/models/function_list_deployments_response.rbs', line 71
def to_hash: -> {
|