zavudev 0.9.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/zavudev/client.rb +8 -0
- data/lib/zavudev/models/contact_delete_params.rb +20 -0
- data/lib/zavudev/models/function_create_params.rb +104 -0
- data/lib/zavudev/models/function_create_response.rb +168 -0
- data/lib/zavudev/models/function_delete_params.rb +20 -0
- data/lib/zavudev/models/function_delete_response.rb +28 -0
- data/lib/zavudev/models/function_deploy_params.rb +37 -0
- data/lib/zavudev/models/function_deploy_response.rb +104 -0
- data/lib/zavudev/models/function_get_deployment_params.rb +20 -0
- data/lib/zavudev/models/function_get_deployment_response.rb +104 -0
- data/lib/zavudev/models/function_retrieve_params.rb +20 -0
- data/lib/zavudev/models/function_retrieve_response.rb +168 -0
- data/lib/zavudev/models/function_tail_logs_params.rb +58 -0
- data/lib/zavudev/models/function_tail_logs_response.rb +41 -0
- data/lib/zavudev/models/function_update_params.rb +37 -0
- data/lib/zavudev/models/function_update_response.rb +168 -0
- data/lib/zavudev/models/functions/secret_list_params.rb +22 -0
- data/lib/zavudev/models/functions/secret_list_response.rb +59 -0
- data/lib/zavudev/models/functions/secret_set_params.rb +34 -0
- data/lib/zavudev/models/functions/secret_set_response.rb +10 -0
- data/lib/zavudev/models/functions/secret_unset_params.rb +28 -0
- data/lib/zavudev/models/me_retrieve_params.rb +14 -0
- data/lib/zavudev/models/me_retrieve_response.rb +85 -0
- data/lib/zavudev/models/message_show_typing_params.rb +26 -0
- data/lib/zavudev/models/message_show_typing_response.rb +16 -0
- data/lib/zavudev/models/senders/agent/execution_retrieve_params.rb +30 -0
- data/lib/zavudev/models/senders/agent/execution_retrieve_response.rb +20 -0
- data/lib/zavudev/models/webhook_event.rb +9 -0
- data/lib/zavudev/models.rb +22 -0
- data/lib/zavudev/resources/contacts.rb +24 -0
- data/lib/zavudev/resources/functions/secrets.rb +98 -0
- data/lib/zavudev/resources/functions.rb +220 -0
- data/lib/zavudev/resources/me.rb +33 -0
- data/lib/zavudev/resources/messages.rb +31 -0
- data/lib/zavudev/resources/senders/agent/executions.rb +26 -0
- data/lib/zavudev/version.rb +1 -1
- data/lib/zavudev.rb +29 -0
- data/rbi/zavudev/client.rbi +6 -0
- data/rbi/zavudev/models/contact_delete_params.rbi +35 -0
- data/rbi/zavudev/models/function_create_params.rbi +177 -0
- data/rbi/zavudev/models/function_create_response.rbi +277 -0
- data/rbi/zavudev/models/function_delete_params.rbi +35 -0
- data/rbi/zavudev/models/function_delete_response.rbi +44 -0
- data/rbi/zavudev/models/function_deploy_params.rbi +63 -0
- data/rbi/zavudev/models/function_deploy_response.rbi +196 -0
- data/rbi/zavudev/models/function_get_deployment_params.rbi +38 -0
- data/rbi/zavudev/models/function_get_deployment_response.rbi +201 -0
- data/rbi/zavudev/models/function_retrieve_params.rbi +35 -0
- data/rbi/zavudev/models/function_retrieve_response.rbi +277 -0
- data/rbi/zavudev/models/function_tail_logs_params.rbi +90 -0
- data/rbi/zavudev/models/function_tail_logs_response.rbi +75 -0
- data/rbi/zavudev/models/function_update_params.rbi +63 -0
- data/rbi/zavudev/models/function_update_response.rbi +277 -0
- data/rbi/zavudev/models/functions/secret_list_params.rbi +40 -0
- data/rbi/zavudev/models/functions/secret_list_response.rbi +118 -0
- data/rbi/zavudev/models/functions/secret_set_params.rbi +53 -0
- data/rbi/zavudev/models/functions/secret_set_response.rbi +9 -0
- data/rbi/zavudev/models/functions/secret_unset_params.rbi +48 -0
- data/rbi/zavudev/models/me_retrieve_params.rbi +27 -0
- data/rbi/zavudev/models/me_retrieve_response.rbi +151 -0
- data/rbi/zavudev/models/message_show_typing_params.rbi +46 -0
- data/rbi/zavudev/models/message_show_typing_response.rbi +26 -0
- data/rbi/zavudev/models/senders/agent/execution_retrieve_params.rbi +50 -0
- data/rbi/zavudev/models/senders/agent/execution_retrieve_response.rbi +41 -0
- data/rbi/zavudev/models/webhook_event.rbi +11 -0
- data/rbi/zavudev/models.rbi +22 -0
- data/rbi/zavudev/resources/contacts.rbi +15 -0
- data/rbi/zavudev/resources/functions/secrets.rbi +69 -0
- data/rbi/zavudev/resources/functions.rbi +171 -0
- data/rbi/zavudev/resources/me.rbi +22 -0
- data/rbi/zavudev/resources/messages.rbi +21 -0
- data/rbi/zavudev/resources/senders/agent/executions.rbi +14 -0
- data/sig/zavudev/client.rbs +4 -0
- data/sig/zavudev/models/contact_delete_params.rbs +23 -0
- data/sig/zavudev/models/function_create_params.rbs +107 -0
- data/sig/zavudev/models/function_create_response.rbs +126 -0
- data/sig/zavudev/models/function_delete_params.rbs +23 -0
- data/sig/zavudev/models/function_delete_response.rbs +22 -0
- data/sig/zavudev/models/function_deploy_params.rbs +40 -0
- data/sig/zavudev/models/function_deploy_response.rbs +98 -0
- data/sig/zavudev/models/function_get_deployment_params.rbs +23 -0
- data/sig/zavudev/models/function_get_deployment_response.rbs +98 -0
- data/sig/zavudev/models/function_retrieve_params.rbs +23 -0
- data/sig/zavudev/models/function_retrieve_response.rbs +126 -0
- data/sig/zavudev/models/function_tail_logs_params.rbs +61 -0
- data/sig/zavudev/models/function_tail_logs_response.rbs +37 -0
- data/sig/zavudev/models/function_update_params.rbs +40 -0
- data/sig/zavudev/models/function_update_response.rbs +126 -0
- data/sig/zavudev/models/functions/secret_list_params.rbs +25 -0
- data/sig/zavudev/models/functions/secret_list_response.rbs +70 -0
- data/sig/zavudev/models/functions/secret_set_params.rbs +34 -0
- data/sig/zavudev/models/functions/secret_set_response.rbs +7 -0
- data/sig/zavudev/models/functions/secret_unset_params.rbs +30 -0
- data/sig/zavudev/models/me_retrieve_params.rbs +14 -0
- data/sig/zavudev/models/me_retrieve_response.rbs +75 -0
- data/sig/zavudev/models/message_show_typing_params.rbs +30 -0
- data/sig/zavudev/models/message_show_typing_response.rbs +13 -0
- data/sig/zavudev/models/senders/agent/execution_retrieve_params.rbs +32 -0
- data/sig/zavudev/models/senders/agent/execution_retrieve_response.rbs +18 -0
- data/sig/zavudev/models/webhook_event.rbs +4 -0
- data/sig/zavudev/models.rbs +22 -0
- data/sig/zavudev/resources/contacts.rbs +5 -0
- data/sig/zavudev/resources/functions/secrets.rbs +27 -0
- data/sig/zavudev/resources/functions.rbs +61 -0
- data/sig/zavudev/resources/me.rbs +11 -0
- data/sig/zavudev/resources/messages.rbs +6 -0
- data/sig/zavudev/resources/senders/agent/executions.rbs +6 -0
- metadata +89 -2
|
@@ -5,6 +5,20 @@ module Zavudev
|
|
|
5
5
|
class Senders
|
|
6
6
|
class Agent
|
|
7
7
|
class Executions
|
|
8
|
+
# Fetch full details for one execution — including `errorMessage`, `errorCode`,
|
|
9
|
+
# and `responseText`. Use this to debug failures surfaced by the list endpoint.
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
execution_id: String,
|
|
13
|
+
sender_id: String,
|
|
14
|
+
request_options: Zavudev::RequestOptions::OrHash
|
|
15
|
+
).returns(
|
|
16
|
+
Zavudev::Models::Senders::Agent::ExecutionRetrieveResponse
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def retrieve(execution_id, sender_id:, request_options: {})
|
|
20
|
+
end
|
|
21
|
+
|
|
8
22
|
# List recent agent executions with pagination.
|
|
9
23
|
sig do
|
|
10
24
|
params(
|
data/sig/zavudev/client.rbs
CHANGED
|
@@ -44,6 +44,10 @@ module Zavudev
|
|
|
44
44
|
|
|
45
45
|
attr_reader number_10dlc: Zavudev::Resources::Number10dlc
|
|
46
46
|
|
|
47
|
+
attr_reader me: Zavudev::Resources::Me
|
|
48
|
+
|
|
49
|
+
attr_reader functions: Zavudev::Resources::Functions
|
|
50
|
+
|
|
47
51
|
private def auth_headers: -> ::Hash[String, String]
|
|
48
52
|
|
|
49
53
|
def initialize: (
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Zavudev
|
|
2
|
+
module Models
|
|
3
|
+
type contact_delete_params =
|
|
4
|
+
{ contact_id: String } & Zavudev::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class ContactDeleteParams < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
extend Zavudev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Zavudev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor contact_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
contact_id: String,
|
|
14
|
+
?request_options: Zavudev::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
contact_id: String,
|
|
19
|
+
request_options: Zavudev::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
module Zavudev
|
|
2
|
+
module Models
|
|
3
|
+
type function_create_params =
|
|
4
|
+
{
|
|
5
|
+
name: String,
|
|
6
|
+
slug: String,
|
|
7
|
+
dependencies: ::Hash[Symbol, String],
|
|
8
|
+
description: String,
|
|
9
|
+
http_enabled: bool,
|
|
10
|
+
memory_mb: Zavudev::Models::FunctionCreateParams::memory_mb,
|
|
11
|
+
runtime: Zavudev::Models::FunctionCreateParams::runtime,
|
|
12
|
+
source_code: String,
|
|
13
|
+
timeout_sec: Integer
|
|
14
|
+
}
|
|
15
|
+
& Zavudev::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class FunctionCreateParams < Zavudev::Internal::Type::BaseModel
|
|
18
|
+
extend Zavudev::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include Zavudev::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor name: String
|
|
22
|
+
|
|
23
|
+
attr_accessor slug: String
|
|
24
|
+
|
|
25
|
+
attr_reader dependencies: ::Hash[Symbol, String]?
|
|
26
|
+
|
|
27
|
+
def dependencies=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
28
|
+
|
|
29
|
+
attr_reader description: String?
|
|
30
|
+
|
|
31
|
+
def description=: (String) -> String
|
|
32
|
+
|
|
33
|
+
attr_reader http_enabled: bool?
|
|
34
|
+
|
|
35
|
+
def http_enabled=: (bool) -> bool
|
|
36
|
+
|
|
37
|
+
attr_reader memory_mb: Zavudev::Models::FunctionCreateParams::memory_mb?
|
|
38
|
+
|
|
39
|
+
def memory_mb=: (
|
|
40
|
+
Zavudev::Models::FunctionCreateParams::memory_mb
|
|
41
|
+
) -> Zavudev::Models::FunctionCreateParams::memory_mb
|
|
42
|
+
|
|
43
|
+
attr_reader runtime: Zavudev::Models::FunctionCreateParams::runtime?
|
|
44
|
+
|
|
45
|
+
def runtime=: (
|
|
46
|
+
Zavudev::Models::FunctionCreateParams::runtime
|
|
47
|
+
) -> Zavudev::Models::FunctionCreateParams::runtime
|
|
48
|
+
|
|
49
|
+
attr_reader source_code: String?
|
|
50
|
+
|
|
51
|
+
def source_code=: (String) -> String
|
|
52
|
+
|
|
53
|
+
attr_reader timeout_sec: Integer?
|
|
54
|
+
|
|
55
|
+
def timeout_sec=: (Integer) -> Integer
|
|
56
|
+
|
|
57
|
+
def initialize: (
|
|
58
|
+
name: String,
|
|
59
|
+
slug: String,
|
|
60
|
+
?dependencies: ::Hash[Symbol, String],
|
|
61
|
+
?description: String,
|
|
62
|
+
?http_enabled: bool,
|
|
63
|
+
?memory_mb: Zavudev::Models::FunctionCreateParams::memory_mb,
|
|
64
|
+
?runtime: Zavudev::Models::FunctionCreateParams::runtime,
|
|
65
|
+
?source_code: String,
|
|
66
|
+
?timeout_sec: Integer,
|
|
67
|
+
?request_options: Zavudev::request_opts
|
|
68
|
+
) -> void
|
|
69
|
+
|
|
70
|
+
def to_hash: -> {
|
|
71
|
+
name: String,
|
|
72
|
+
slug: String,
|
|
73
|
+
dependencies: ::Hash[Symbol, String],
|
|
74
|
+
description: String,
|
|
75
|
+
http_enabled: bool,
|
|
76
|
+
memory_mb: Zavudev::Models::FunctionCreateParams::memory_mb,
|
|
77
|
+
runtime: Zavudev::Models::FunctionCreateParams::runtime,
|
|
78
|
+
source_code: String,
|
|
79
|
+
timeout_sec: Integer,
|
|
80
|
+
request_options: Zavudev::RequestOptions
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
type memory_mb = 128 | 256 | 512 | 1024
|
|
84
|
+
|
|
85
|
+
module MemoryMB
|
|
86
|
+
extend Zavudev::Internal::Type::Enum
|
|
87
|
+
|
|
88
|
+
MEMORY_MB_128: 128
|
|
89
|
+
MEMORY_MB_256: 256
|
|
90
|
+
MEMORY_MB_512: 512
|
|
91
|
+
MEMORY_MB_1024: 1024
|
|
92
|
+
|
|
93
|
+
def self?.values: -> ::Array[Zavudev::Models::FunctionCreateParams::memory_mb]
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
type runtime = :nodejs24
|
|
97
|
+
|
|
98
|
+
module Runtime
|
|
99
|
+
extend Zavudev::Internal::Type::Enum
|
|
100
|
+
|
|
101
|
+
NODEJS24: :nodejs24
|
|
102
|
+
|
|
103
|
+
def self?.values: -> ::Array[Zavudev::Models::FunctionCreateParams::runtime]
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
module Zavudev
|
|
2
|
+
module Models
|
|
3
|
+
type function_create_response =
|
|
4
|
+
{ function: Zavudev::Models::FunctionCreateResponse::Function }
|
|
5
|
+
|
|
6
|
+
class FunctionCreateResponse < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor function: Zavudev::Models::FunctionCreateResponse::Function
|
|
8
|
+
|
|
9
|
+
def initialize: (
|
|
10
|
+
function: Zavudev::Models::FunctionCreateResponse::Function
|
|
11
|
+
) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> {
|
|
14
|
+
function: Zavudev::Models::FunctionCreateResponse::Function
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type function =
|
|
18
|
+
{
|
|
19
|
+
id: String,
|
|
20
|
+
created_at: Time,
|
|
21
|
+
dependencies: ::Hash[Symbol, String],
|
|
22
|
+
http_enabled: bool,
|
|
23
|
+
memory_mb: Integer,
|
|
24
|
+
name: String,
|
|
25
|
+
runtime: Zavudev::Models::FunctionCreateResponse::Function::runtime,
|
|
26
|
+
slug: String,
|
|
27
|
+
status: Zavudev::Models::FunctionCreateResponse::Function::status,
|
|
28
|
+
timeout_sec: Integer,
|
|
29
|
+
updated_at: Time,
|
|
30
|
+
active_deployment_id: String?,
|
|
31
|
+
description: String?,
|
|
32
|
+
public_url: String?
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
class Function < Zavudev::Internal::Type::BaseModel
|
|
36
|
+
attr_accessor id: String
|
|
37
|
+
|
|
38
|
+
attr_accessor created_at: Time
|
|
39
|
+
|
|
40
|
+
attr_accessor dependencies: ::Hash[Symbol, String]
|
|
41
|
+
|
|
42
|
+
attr_accessor http_enabled: bool
|
|
43
|
+
|
|
44
|
+
attr_accessor memory_mb: Integer
|
|
45
|
+
|
|
46
|
+
attr_accessor name: String
|
|
47
|
+
|
|
48
|
+
attr_accessor runtime: Zavudev::Models::FunctionCreateResponse::Function::runtime
|
|
49
|
+
|
|
50
|
+
attr_accessor slug: String
|
|
51
|
+
|
|
52
|
+
attr_accessor status: Zavudev::Models::FunctionCreateResponse::Function::status
|
|
53
|
+
|
|
54
|
+
attr_accessor timeout_sec: Integer
|
|
55
|
+
|
|
56
|
+
attr_accessor updated_at: Time
|
|
57
|
+
|
|
58
|
+
attr_accessor active_deployment_id: String?
|
|
59
|
+
|
|
60
|
+
attr_accessor description: String?
|
|
61
|
+
|
|
62
|
+
attr_accessor public_url: String?
|
|
63
|
+
|
|
64
|
+
def initialize: (
|
|
65
|
+
id: String,
|
|
66
|
+
created_at: Time,
|
|
67
|
+
dependencies: ::Hash[Symbol, String],
|
|
68
|
+
http_enabled: bool,
|
|
69
|
+
memory_mb: Integer,
|
|
70
|
+
name: String,
|
|
71
|
+
runtime: Zavudev::Models::FunctionCreateResponse::Function::runtime,
|
|
72
|
+
slug: String,
|
|
73
|
+
status: Zavudev::Models::FunctionCreateResponse::Function::status,
|
|
74
|
+
timeout_sec: Integer,
|
|
75
|
+
updated_at: Time,
|
|
76
|
+
?active_deployment_id: String?,
|
|
77
|
+
?description: String?,
|
|
78
|
+
?public_url: String?
|
|
79
|
+
) -> void
|
|
80
|
+
|
|
81
|
+
def to_hash: -> {
|
|
82
|
+
id: String,
|
|
83
|
+
created_at: Time,
|
|
84
|
+
dependencies: ::Hash[Symbol, String],
|
|
85
|
+
http_enabled: bool,
|
|
86
|
+
memory_mb: Integer,
|
|
87
|
+
name: String,
|
|
88
|
+
runtime: Zavudev::Models::FunctionCreateResponse::Function::runtime,
|
|
89
|
+
slug: String,
|
|
90
|
+
status: Zavudev::Models::FunctionCreateResponse::Function::status,
|
|
91
|
+
timeout_sec: Integer,
|
|
92
|
+
updated_at: Time,
|
|
93
|
+
active_deployment_id: String?,
|
|
94
|
+
description: String?,
|
|
95
|
+
public_url: String?
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
type runtime = :nodejs24
|
|
99
|
+
|
|
100
|
+
module Runtime
|
|
101
|
+
extend Zavudev::Internal::Type::Enum
|
|
102
|
+
|
|
103
|
+
NODEJS24: :nodejs24
|
|
104
|
+
|
|
105
|
+
def self?.values: -> ::Array[Zavudev::Models::FunctionCreateResponse::Function::runtime]
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
type status =
|
|
109
|
+
:draft | :bundling | :deploying | :active | :failed | :disabled
|
|
110
|
+
|
|
111
|
+
module Status
|
|
112
|
+
extend Zavudev::Internal::Type::Enum
|
|
113
|
+
|
|
114
|
+
DRAFT: :draft
|
|
115
|
+
BUNDLING: :bundling
|
|
116
|
+
DEPLOYING: :deploying
|
|
117
|
+
ACTIVE: :active
|
|
118
|
+
FAILED: :failed
|
|
119
|
+
DISABLED: :disabled
|
|
120
|
+
|
|
121
|
+
def self?.values: -> ::Array[Zavudev::Models::FunctionCreateResponse::Function::status]
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Zavudev
|
|
2
|
+
module Models
|
|
3
|
+
type function_delete_params =
|
|
4
|
+
{ function_id: String } & Zavudev::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class FunctionDeleteParams < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
extend Zavudev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Zavudev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor function_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
function_id: String,
|
|
14
|
+
?request_options: Zavudev::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
function_id: String,
|
|
19
|
+
request_options: Zavudev::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Zavudev
|
|
2
|
+
module Models
|
|
3
|
+
type function_delete_response =
|
|
4
|
+
{ deleted: bool, name: String, slug: String }
|
|
5
|
+
|
|
6
|
+
class FunctionDeleteResponse < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor deleted: bool
|
|
8
|
+
|
|
9
|
+
attr_reader name: String?
|
|
10
|
+
|
|
11
|
+
def name=: (String) -> String
|
|
12
|
+
|
|
13
|
+
attr_reader slug: String?
|
|
14
|
+
|
|
15
|
+
def slug=: (String) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (deleted: bool, ?name: String, ?slug: String) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { deleted: bool, name: String, slug: String }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Zavudev
|
|
2
|
+
module Models
|
|
3
|
+
type function_deploy_params =
|
|
4
|
+
{
|
|
5
|
+
function_id: String,
|
|
6
|
+
dependencies: ::Hash[Symbol, String],
|
|
7
|
+
source_code: String
|
|
8
|
+
}
|
|
9
|
+
& Zavudev::Internal::Type::request_parameters
|
|
10
|
+
|
|
11
|
+
class FunctionDeployParams < Zavudev::Internal::Type::BaseModel
|
|
12
|
+
extend Zavudev::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include Zavudev::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_accessor function_id: String
|
|
16
|
+
|
|
17
|
+
attr_reader dependencies: ::Hash[Symbol, String]?
|
|
18
|
+
|
|
19
|
+
def dependencies=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
20
|
+
|
|
21
|
+
attr_reader source_code: String?
|
|
22
|
+
|
|
23
|
+
def source_code=: (String) -> String
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
function_id: String,
|
|
27
|
+
?dependencies: ::Hash[Symbol, String],
|
|
28
|
+
?source_code: String,
|
|
29
|
+
?request_options: Zavudev::request_opts
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
function_id: String,
|
|
34
|
+
dependencies: ::Hash[Symbol, String],
|
|
35
|
+
source_code: String,
|
|
36
|
+
request_options: Zavudev::RequestOptions
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
module Zavudev
|
|
2
|
+
module Models
|
|
3
|
+
type function_deploy_response =
|
|
4
|
+
{ deployment: Zavudev::Models::FunctionDeployResponse::Deployment }
|
|
5
|
+
|
|
6
|
+
class FunctionDeployResponse < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor deployment: Zavudev::Models::FunctionDeployResponse::Deployment
|
|
8
|
+
|
|
9
|
+
def initialize: (
|
|
10
|
+
deployment: Zavudev::Models::FunctionDeployResponse::Deployment
|
|
11
|
+
) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> {
|
|
14
|
+
deployment: Zavudev::Models::FunctionDeployResponse::Deployment
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type deployment =
|
|
18
|
+
{
|
|
19
|
+
id: String,
|
|
20
|
+
created_at: Time,
|
|
21
|
+
function_id: String,
|
|
22
|
+
status: Zavudev::Models::FunctionDeployResponse::Deployment::status,
|
|
23
|
+
version: Integer,
|
|
24
|
+
bundle_bytes: Integer?,
|
|
25
|
+
deployed_at: Time?,
|
|
26
|
+
error_message: String?,
|
|
27
|
+
source_code_bytes: Integer?
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class Deployment < Zavudev::Internal::Type::BaseModel
|
|
31
|
+
attr_accessor id: String
|
|
32
|
+
|
|
33
|
+
attr_accessor created_at: Time
|
|
34
|
+
|
|
35
|
+
attr_accessor function_id: String
|
|
36
|
+
|
|
37
|
+
attr_accessor status: Zavudev::Models::FunctionDeployResponse::Deployment::status
|
|
38
|
+
|
|
39
|
+
attr_accessor version: Integer
|
|
40
|
+
|
|
41
|
+
attr_accessor bundle_bytes: Integer?
|
|
42
|
+
|
|
43
|
+
attr_accessor deployed_at: Time?
|
|
44
|
+
|
|
45
|
+
attr_accessor error_message: String?
|
|
46
|
+
|
|
47
|
+
attr_accessor source_code_bytes: Integer?
|
|
48
|
+
|
|
49
|
+
def initialize: (
|
|
50
|
+
id: String,
|
|
51
|
+
created_at: Time,
|
|
52
|
+
function_id: String,
|
|
53
|
+
status: Zavudev::Models::FunctionDeployResponse::Deployment::status,
|
|
54
|
+
version: Integer,
|
|
55
|
+
?bundle_bytes: Integer?,
|
|
56
|
+
?deployed_at: Time?,
|
|
57
|
+
?error_message: String?,
|
|
58
|
+
?source_code_bytes: Integer?
|
|
59
|
+
) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> {
|
|
62
|
+
id: String,
|
|
63
|
+
created_at: Time,
|
|
64
|
+
function_id: String,
|
|
65
|
+
status: Zavudev::Models::FunctionDeployResponse::Deployment::status,
|
|
66
|
+
version: Integer,
|
|
67
|
+
bundle_bytes: Integer?,
|
|
68
|
+
deployed_at: Time?,
|
|
69
|
+
error_message: String?,
|
|
70
|
+
source_code_bytes: Integer?
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type status =
|
|
74
|
+
:pending
|
|
75
|
+
| :bundling
|
|
76
|
+
| :uploading
|
|
77
|
+
| :publishing
|
|
78
|
+
| :active
|
|
79
|
+
| :failed
|
|
80
|
+
| :superseded
|
|
81
|
+
|
|
82
|
+
module Status
|
|
83
|
+
extend Zavudev::Internal::Type::Enum
|
|
84
|
+
|
|
85
|
+
PENDING: :pending
|
|
86
|
+
BUNDLING: :bundling
|
|
87
|
+
UPLOADING: :uploading
|
|
88
|
+
PUBLISHING: :publishing
|
|
89
|
+
ACTIVE: :active
|
|
90
|
+
FAILED: :failed
|
|
91
|
+
SUPERSEDED: :superseded
|
|
92
|
+
|
|
93
|
+
def self?.values: -> ::Array[Zavudev::Models::FunctionDeployResponse::Deployment::status]
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Zavudev
|
|
2
|
+
module Models
|
|
3
|
+
type function_get_deployment_params =
|
|
4
|
+
{ deployment_id: String } & Zavudev::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class FunctionGetDeploymentParams < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
extend Zavudev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Zavudev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor deployment_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
deployment_id: String,
|
|
14
|
+
?request_options: Zavudev::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
deployment_id: String,
|
|
19
|
+
request_options: Zavudev::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
module Zavudev
|
|
2
|
+
module Models
|
|
3
|
+
type function_get_deployment_response =
|
|
4
|
+
{ deployment: Zavudev::Models::FunctionGetDeploymentResponse::Deployment }
|
|
5
|
+
|
|
6
|
+
class FunctionGetDeploymentResponse < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor deployment: Zavudev::Models::FunctionGetDeploymentResponse::Deployment
|
|
8
|
+
|
|
9
|
+
def initialize: (
|
|
10
|
+
deployment: Zavudev::Models::FunctionGetDeploymentResponse::Deployment
|
|
11
|
+
) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> {
|
|
14
|
+
deployment: Zavudev::Models::FunctionGetDeploymentResponse::Deployment
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type deployment =
|
|
18
|
+
{
|
|
19
|
+
id: String,
|
|
20
|
+
created_at: Time,
|
|
21
|
+
function_id: String,
|
|
22
|
+
status: Zavudev::Models::FunctionGetDeploymentResponse::Deployment::status,
|
|
23
|
+
version: Integer,
|
|
24
|
+
bundle_bytes: Integer?,
|
|
25
|
+
deployed_at: Time?,
|
|
26
|
+
error_message: String?,
|
|
27
|
+
source_code_bytes: Integer?
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class Deployment < Zavudev::Internal::Type::BaseModel
|
|
31
|
+
attr_accessor id: String
|
|
32
|
+
|
|
33
|
+
attr_accessor created_at: Time
|
|
34
|
+
|
|
35
|
+
attr_accessor function_id: String
|
|
36
|
+
|
|
37
|
+
attr_accessor status: Zavudev::Models::FunctionGetDeploymentResponse::Deployment::status
|
|
38
|
+
|
|
39
|
+
attr_accessor version: Integer
|
|
40
|
+
|
|
41
|
+
attr_accessor bundle_bytes: Integer?
|
|
42
|
+
|
|
43
|
+
attr_accessor deployed_at: Time?
|
|
44
|
+
|
|
45
|
+
attr_accessor error_message: String?
|
|
46
|
+
|
|
47
|
+
attr_accessor source_code_bytes: Integer?
|
|
48
|
+
|
|
49
|
+
def initialize: (
|
|
50
|
+
id: String,
|
|
51
|
+
created_at: Time,
|
|
52
|
+
function_id: String,
|
|
53
|
+
status: Zavudev::Models::FunctionGetDeploymentResponse::Deployment::status,
|
|
54
|
+
version: Integer,
|
|
55
|
+
?bundle_bytes: Integer?,
|
|
56
|
+
?deployed_at: Time?,
|
|
57
|
+
?error_message: String?,
|
|
58
|
+
?source_code_bytes: Integer?
|
|
59
|
+
) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> {
|
|
62
|
+
id: String,
|
|
63
|
+
created_at: Time,
|
|
64
|
+
function_id: String,
|
|
65
|
+
status: Zavudev::Models::FunctionGetDeploymentResponse::Deployment::status,
|
|
66
|
+
version: Integer,
|
|
67
|
+
bundle_bytes: Integer?,
|
|
68
|
+
deployed_at: Time?,
|
|
69
|
+
error_message: String?,
|
|
70
|
+
source_code_bytes: Integer?
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type status =
|
|
74
|
+
:pending
|
|
75
|
+
| :bundling
|
|
76
|
+
| :uploading
|
|
77
|
+
| :publishing
|
|
78
|
+
| :active
|
|
79
|
+
| :failed
|
|
80
|
+
| :superseded
|
|
81
|
+
|
|
82
|
+
module Status
|
|
83
|
+
extend Zavudev::Internal::Type::Enum
|
|
84
|
+
|
|
85
|
+
PENDING: :pending
|
|
86
|
+
BUNDLING: :bundling
|
|
87
|
+
UPLOADING: :uploading
|
|
88
|
+
PUBLISHING: :publishing
|
|
89
|
+
ACTIVE: :active
|
|
90
|
+
FAILED: :failed
|
|
91
|
+
SUPERSEDED: :superseded
|
|
92
|
+
|
|
93
|
+
def self?.values: -> ::Array[Zavudev::Models::FunctionGetDeploymentResponse::Deployment::status]
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Zavudev
|
|
2
|
+
module Models
|
|
3
|
+
type function_retrieve_params =
|
|
4
|
+
{ function_id: String } & Zavudev::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class FunctionRetrieveParams < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
extend Zavudev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Zavudev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor function_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
function_id: String,
|
|
14
|
+
?request_options: Zavudev::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
function_id: String,
|
|
19
|
+
request_options: Zavudev::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|