telnyx 5.156.0 → 5.157.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 +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +209 -0
- data/lib/telnyx/models/ai/anthropic/v1_messages_response.rb +12 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +2 -2
- data/lib/telnyx/models/ai/assistant_tool.rb +25 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +2 -2
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +2 -2
- data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rb +103 -0
- data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rb +54 -0
- data/lib/telnyx/models/ai/inference_embedding.rb +6 -6
- data/lib/telnyx/models/ai/pay_tool_params.rb +46 -0
- data/lib/telnyx/models/ai/tool_create_params.rb +7 -1
- data/lib/telnyx/models/ai/tool_update_params.rb +7 -1
- data/lib/telnyx/models/ai/transcription_settings.rb +3 -3
- data/lib/telnyx/models/call_dial_params.rb +13 -1
- data/lib/telnyx/models/calls/transcription_config.rb +8 -4
- data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -1
- data/lib/telnyx/models/doc_reqs_requirement.rb +29 -4
- data/lib/telnyx/models/inbound_message.rb +278 -28
- data/lib/telnyx/models/inbound_message_webhook_event.rb +70 -3
- data/lib/telnyx/models/managed_account_list_params.rb +45 -3
- data/lib/telnyx/models/requirement_list_params.rb +10 -1
- data/lib/telnyx/models/requirement_retrieve_params.rb +14 -1
- data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -1
- data/lib/telnyx/models/storage/cloudf_create_params.rb +56 -0
- data/lib/telnyx/models/storage/cloudf_delete_params.rb +22 -0
- data/lib/telnyx/models/storage/cloudf_list_params.rb +109 -0
- data/lib/telnyx/models/storage/cloudf_list_response.rb +165 -0
- data/lib/telnyx/models/storage/cloudf_retrieve_params.rb +22 -0
- data/lib/telnyx/models/storage/cloudf_update_params.rb +36 -0
- data/lib/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rb +30 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rb +129 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rb +129 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_status.rb +28 -0
- data/lib/telnyx/models/verify_profile.rb +2 -2
- data/lib/telnyx/models/verify_profile_create_params.rb +2 -2
- data/lib/telnyx/models/verify_profile_update_params.rb +2 -2
- data/lib/telnyx/resources/ai/anthropic/v1.rb +91 -0
- data/lib/telnyx/resources/ai/anthropic.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/ai/conversations/conversation_insights.rb +55 -0
- data/lib/telnyx/resources/ai/conversations.rb +5 -0
- data/lib/telnyx/resources/ai/tools.rb +5 -2
- data/lib/telnyx/resources/ai.rb +4 -0
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/requirements.rb +13 -3
- data/lib/telnyx/resources/storage/cloudfs/actions.rb +54 -0
- data/lib/telnyx/resources/storage/cloudfs.rb +187 -0
- data/lib/telnyx/resources/storage.rb +6 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +314 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_response.rbi +15 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +8 -4
- data/rbi/telnyx/models/ai/assistant_tool.rbi +37 -1
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +8 -4
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +8 -4
- data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbi +188 -0
- data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbi +94 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -6
- data/rbi/telnyx/models/ai/pay_tool_params.rbi +71 -0
- data/rbi/telnyx/models/ai/tool_create_params.rbi +9 -0
- data/rbi/telnyx/models/ai/tool_update_params.rbi +9 -0
- data/rbi/telnyx/models/ai/transcription_settings.rbi +5 -5
- data/rbi/telnyx/models/call_dial_params.rbi +19 -0
- data/rbi/telnyx/models/calls/transcription_config.rbi +15 -7
- data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +2 -2
- data/rbi/telnyx/models/doc_reqs_requirement.rbi +38 -9
- data/rbi/telnyx/models/inbound_message.rbi +324 -58
- data/rbi/telnyx/models/inbound_message_webhook_event.rbi +173 -4
- data/rbi/telnyx/models/managed_account_list_params.rbi +130 -6
- data/rbi/telnyx/models/requirement_list_params.rbi +13 -0
- data/rbi/telnyx/models/requirement_retrieve_params.rbi +21 -2
- data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +2 -2
- data/rbi/telnyx/models/storage/cloudf_create_params.rbi +103 -0
- data/rbi/telnyx/models/storage/cloudf_delete_params.rbi +40 -0
- data/rbi/telnyx/models/storage/cloudf_list_params.rbi +232 -0
- data/rbi/telnyx/models/storage/cloudf_list_response.rbi +327 -0
- data/rbi/telnyx/models/storage/cloudf_retrieve_params.rbi +40 -0
- data/rbi/telnyx/models/storage/cloudf_update_params.rbi +61 -0
- data/rbi/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbi +50 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbi +229 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbi +227 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_status.rbi +57 -0
- data/rbi/telnyx/models/verify_profile.rbi +2 -2
- data/rbi/telnyx/models/verify_profile_create_params.rbi +2 -2
- data/rbi/telnyx/models/verify_profile_update_params.rbi +2 -2
- data/rbi/telnyx/resources/ai/anthropic/v1.rbi +106 -0
- data/rbi/telnyx/resources/ai/anthropic.rbi +17 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +2 -1
- data/rbi/telnyx/resources/ai/assistants.rbi +4 -2
- data/rbi/telnyx/resources/ai/conversations/conversation_insights.rbi +68 -0
- data/rbi/telnyx/resources/ai/conversations.rbi +6 -0
- data/rbi/telnyx/resources/ai/tools.rbi +4 -0
- data/rbi/telnyx/resources/ai.rbi +3 -0
- data/rbi/telnyx/resources/calls.rbi +7 -0
- data/rbi/telnyx/resources/managed_accounts.rbi +1 -1
- data/rbi/telnyx/resources/requirements.rbi +8 -0
- data/rbi/telnyx/resources/storage/cloudfs/actions.rbi +46 -0
- data/rbi/telnyx/resources/storage/cloudfs.rbi +152 -0
- data/rbi/telnyx/resources/storage.rbi +5 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +175 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_response.rbs +11 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +13 -0
- data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbs +74 -0
- data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbs +34 -0
- data/sig/telnyx/models/ai/pay_tool_params.rbs +41 -0
- data/sig/telnyx/models/ai/tool_create_params.rbs +7 -0
- data/sig/telnyx/models/ai/tool_update_params.rbs +7 -0
- data/sig/telnyx/models/ai/transcription_settings.rbs +2 -2
- data/sig/telnyx/models/call_dial_params.rbs +7 -0
- data/sig/telnyx/models/calls/transcription_config.rbs +2 -2
- data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +2 -2
- data/sig/telnyx/models/doc_reqs_requirement.rbs +25 -8
- data/sig/telnyx/models/inbound_message.rbs +204 -35
- data/sig/telnyx/models/inbound_message_webhook_event.rbs +81 -5
- data/sig/telnyx/models/managed_account_list_params.rbs +47 -3
- data/sig/telnyx/models/requirement_list_params.rbs +8 -1
- data/sig/telnyx/models/requirement_retrieve_params.rbs +12 -2
- data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -2
- data/sig/telnyx/models/storage/cloudf_create_params.rbs +50 -0
- data/sig/telnyx/models/storage/cloudf_delete_params.rbs +22 -0
- data/sig/telnyx/models/storage/cloudf_list_params.rbs +112 -0
- data/sig/telnyx/models/storage/cloudf_list_response.rbs +163 -0
- data/sig/telnyx/models/storage/cloudf_retrieve_params.rbs +22 -0
- data/sig/telnyx/models/storage/cloudf_update_params.rbs +32 -0
- data/sig/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbs +32 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbs +115 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbs +115 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_status.rbs +21 -0
- data/sig/telnyx/resources/ai/anthropic/v1.rbs +35 -0
- data/sig/telnyx/resources/ai/anthropic.rbs +11 -0
- data/sig/telnyx/resources/ai/conversations/conversation_insights.rbs +20 -0
- data/sig/telnyx/resources/ai/conversations.rbs +2 -0
- data/sig/telnyx/resources/ai/tools.rbs +2 -0
- data/sig/telnyx/resources/ai.rbs +2 -0
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/requirements.rbs +2 -0
- data/sig/telnyx/resources/storage/cloudfs/actions.rbs +17 -0
- data/sig/telnyx/resources/storage/cloudfs.rbs +45 -0
- data/sig/telnyx/resources/storage.rbs +2 -0
- metadata +62 -2
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
class CloudfListResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Models::Storage::CloudfListResponse,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
T.nilable(
|
|
18
|
+
T::Array[Telnyx::Models::Storage::CloudfListResponse::Data]
|
|
19
|
+
)
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
attr_reader :data
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
data:
|
|
27
|
+
T::Array[
|
|
28
|
+
Telnyx::Models::Storage::CloudfListResponse::Data::OrHash
|
|
29
|
+
]
|
|
30
|
+
).void
|
|
31
|
+
end
|
|
32
|
+
attr_writer :data
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
returns(T.nilable(Telnyx::Models::Storage::CloudfListResponse::Meta))
|
|
36
|
+
end
|
|
37
|
+
attr_reader :meta
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
meta: Telnyx::Models::Storage::CloudfListResponse::Meta::OrHash
|
|
42
|
+
).void
|
|
43
|
+
end
|
|
44
|
+
attr_writer :meta
|
|
45
|
+
|
|
46
|
+
sig do
|
|
47
|
+
params(
|
|
48
|
+
data:
|
|
49
|
+
T::Array[
|
|
50
|
+
Telnyx::Models::Storage::CloudfListResponse::Data::OrHash
|
|
51
|
+
],
|
|
52
|
+
meta: Telnyx::Models::Storage::CloudfListResponse::Meta::OrHash
|
|
53
|
+
).returns(T.attached_class)
|
|
54
|
+
end
|
|
55
|
+
def self.new(data: nil, meta: nil)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
override.returns(
|
|
60
|
+
{
|
|
61
|
+
data: T::Array[Telnyx::Models::Storage::CloudfListResponse::Data],
|
|
62
|
+
meta: Telnyx::Models::Storage::CloudfListResponse::Meta
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
def to_hash
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
70
|
+
OrHash =
|
|
71
|
+
T.type_alias do
|
|
72
|
+
T.any(
|
|
73
|
+
Telnyx::Models::Storage::CloudfListResponse::Data,
|
|
74
|
+
Telnyx::Internal::AnyHash
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
sig { returns(T.nilable(String)) }
|
|
79
|
+
attr_reader :id
|
|
80
|
+
|
|
81
|
+
sig { params(id: String).void }
|
|
82
|
+
attr_writer :id
|
|
83
|
+
|
|
84
|
+
sig { returns(T.nilable(Time)) }
|
|
85
|
+
attr_reader :created_at
|
|
86
|
+
|
|
87
|
+
sig { params(created_at: Time).void }
|
|
88
|
+
attr_writer :created_at
|
|
89
|
+
|
|
90
|
+
sig { returns(T.nilable(String)) }
|
|
91
|
+
attr_reader :name
|
|
92
|
+
|
|
93
|
+
sig { params(name: String).void }
|
|
94
|
+
attr_writer :name
|
|
95
|
+
|
|
96
|
+
sig { returns(T.nilable(String)) }
|
|
97
|
+
attr_reader :record_type
|
|
98
|
+
|
|
99
|
+
sig { params(record_type: String).void }
|
|
100
|
+
attr_writer :record_type
|
|
101
|
+
|
|
102
|
+
sig { returns(T.nilable(String)) }
|
|
103
|
+
attr_reader :region
|
|
104
|
+
|
|
105
|
+
sig { params(region: String).void }
|
|
106
|
+
attr_writer :region
|
|
107
|
+
|
|
108
|
+
# Name of the bucket that stores this filesystem's data. Created during
|
|
109
|
+
# provisioning.
|
|
110
|
+
sig { returns(T.nilable(String)) }
|
|
111
|
+
attr_reader :s3_bucket
|
|
112
|
+
|
|
113
|
+
sig { params(s3_bucket: String).void }
|
|
114
|
+
attr_writer :s3_bucket
|
|
115
|
+
|
|
116
|
+
# URL of the Telnyx Cloud Storage endpoint backing this filesystem.
|
|
117
|
+
sig { returns(T.nilable(String)) }
|
|
118
|
+
attr_reader :s3_endpoint
|
|
119
|
+
|
|
120
|
+
sig { params(s3_endpoint: String).void }
|
|
121
|
+
attr_writer :s3_endpoint
|
|
122
|
+
|
|
123
|
+
# Lifecycle status of the filesystem. `ready` means it is fully provisioned and
|
|
124
|
+
# usable. `needs_format` means the storage bucket and metadata database were
|
|
125
|
+
# provisioned but the filesystem has not yet been formatted — run `juicefs format`
|
|
126
|
+
# with the filesystem's `meta_url` before mounting. `failed` means the last
|
|
127
|
+
# lifecycle action failed — see the filesystem's `error` message. `deleted`
|
|
128
|
+
# appears only in the delete response: deleted filesystems are excluded from list
|
|
129
|
+
# results and return a `404` on retrieval.
|
|
130
|
+
sig do
|
|
131
|
+
returns(
|
|
132
|
+
T.nilable(Telnyx::Storage::CloudfsFilesystemStatus::TaggedSymbol)
|
|
133
|
+
)
|
|
134
|
+
end
|
|
135
|
+
attr_reader :status
|
|
136
|
+
|
|
137
|
+
sig do
|
|
138
|
+
params(
|
|
139
|
+
status: Telnyx::Storage::CloudfsFilesystemStatus::OrSymbol
|
|
140
|
+
).void
|
|
141
|
+
end
|
|
142
|
+
attr_writer :status
|
|
143
|
+
|
|
144
|
+
sig { returns(T.nilable(Time)) }
|
|
145
|
+
attr_reader :updated_at
|
|
146
|
+
|
|
147
|
+
sig { params(updated_at: Time).void }
|
|
148
|
+
attr_writer :updated_at
|
|
149
|
+
|
|
150
|
+
# A CloudFS filesystem as returned in list results. Connection details
|
|
151
|
+
# (`meta_url`, `meta_token`) are omitted — retrieve the filesystem by ID for its
|
|
152
|
+
# redacted `meta_url`.
|
|
153
|
+
sig do
|
|
154
|
+
params(
|
|
155
|
+
id: String,
|
|
156
|
+
created_at: Time,
|
|
157
|
+
name: String,
|
|
158
|
+
record_type: String,
|
|
159
|
+
region: String,
|
|
160
|
+
s3_bucket: String,
|
|
161
|
+
s3_endpoint: String,
|
|
162
|
+
status: Telnyx::Storage::CloudfsFilesystemStatus::OrSymbol,
|
|
163
|
+
updated_at: Time
|
|
164
|
+
).returns(T.attached_class)
|
|
165
|
+
end
|
|
166
|
+
def self.new(
|
|
167
|
+
id: nil,
|
|
168
|
+
created_at: nil,
|
|
169
|
+
name: nil,
|
|
170
|
+
record_type: nil,
|
|
171
|
+
region: nil,
|
|
172
|
+
# Name of the bucket that stores this filesystem's data. Created during
|
|
173
|
+
# provisioning.
|
|
174
|
+
s3_bucket: nil,
|
|
175
|
+
# URL of the Telnyx Cloud Storage endpoint backing this filesystem.
|
|
176
|
+
s3_endpoint: nil,
|
|
177
|
+
# Lifecycle status of the filesystem. `ready` means it is fully provisioned and
|
|
178
|
+
# usable. `needs_format` means the storage bucket and metadata database were
|
|
179
|
+
# provisioned but the filesystem has not yet been formatted — run `juicefs format`
|
|
180
|
+
# with the filesystem's `meta_url` before mounting. `failed` means the last
|
|
181
|
+
# lifecycle action failed — see the filesystem's `error` message. `deleted`
|
|
182
|
+
# appears only in the delete response: deleted filesystems are excluded from list
|
|
183
|
+
# results and return a `404` on retrieval.
|
|
184
|
+
status: nil,
|
|
185
|
+
updated_at: nil
|
|
186
|
+
)
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
sig do
|
|
190
|
+
override.returns(
|
|
191
|
+
{
|
|
192
|
+
id: String,
|
|
193
|
+
created_at: Time,
|
|
194
|
+
name: String,
|
|
195
|
+
record_type: String,
|
|
196
|
+
region: String,
|
|
197
|
+
s3_bucket: String,
|
|
198
|
+
s3_endpoint: String,
|
|
199
|
+
status: Telnyx::Storage::CloudfsFilesystemStatus::TaggedSymbol,
|
|
200
|
+
updated_at: Time
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
end
|
|
204
|
+
def to_hash
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
class Meta < Telnyx::Internal::Type::BaseModel
|
|
209
|
+
OrHash =
|
|
210
|
+
T.type_alias do
|
|
211
|
+
T.any(
|
|
212
|
+
Telnyx::Models::Storage::CloudfListResponse::Meta,
|
|
213
|
+
Telnyx::Internal::AnyHash
|
|
214
|
+
)
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Opaque cursors for the adjacent pages. Empty when there are no adjacent pages.
|
|
218
|
+
sig do
|
|
219
|
+
returns(
|
|
220
|
+
T.nilable(
|
|
221
|
+
Telnyx::Models::Storage::CloudfListResponse::Meta::Cursors
|
|
222
|
+
)
|
|
223
|
+
)
|
|
224
|
+
end
|
|
225
|
+
attr_reader :cursors
|
|
226
|
+
|
|
227
|
+
sig do
|
|
228
|
+
params(
|
|
229
|
+
cursors:
|
|
230
|
+
Telnyx::Models::Storage::CloudfListResponse::Meta::Cursors::OrHash
|
|
231
|
+
).void
|
|
232
|
+
end
|
|
233
|
+
attr_writer :cursors
|
|
234
|
+
|
|
235
|
+
# Relative URL (path and query) of the next page. Omitted when there are no
|
|
236
|
+
# further results.
|
|
237
|
+
sig { returns(T.nilable(String)) }
|
|
238
|
+
attr_reader :next_
|
|
239
|
+
|
|
240
|
+
sig { params(next_: String).void }
|
|
241
|
+
attr_writer :next_
|
|
242
|
+
|
|
243
|
+
# Relative URL (path and query) of the previous page. Omitted on the first page.
|
|
244
|
+
sig { returns(T.nilable(String)) }
|
|
245
|
+
attr_reader :previous
|
|
246
|
+
|
|
247
|
+
sig { params(previous: String).void }
|
|
248
|
+
attr_writer :previous
|
|
249
|
+
|
|
250
|
+
sig do
|
|
251
|
+
params(
|
|
252
|
+
cursors:
|
|
253
|
+
Telnyx::Models::Storage::CloudfListResponse::Meta::Cursors::OrHash,
|
|
254
|
+
next_: String,
|
|
255
|
+
previous: String
|
|
256
|
+
).returns(T.attached_class)
|
|
257
|
+
end
|
|
258
|
+
def self.new(
|
|
259
|
+
# Opaque cursors for the adjacent pages. Empty when there are no adjacent pages.
|
|
260
|
+
cursors: nil,
|
|
261
|
+
# Relative URL (path and query) of the next page. Omitted when there are no
|
|
262
|
+
# further results.
|
|
263
|
+
next_: nil,
|
|
264
|
+
# Relative URL (path and query) of the previous page. Omitted on the first page.
|
|
265
|
+
previous: nil
|
|
266
|
+
)
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
sig do
|
|
270
|
+
override.returns(
|
|
271
|
+
{
|
|
272
|
+
cursors:
|
|
273
|
+
Telnyx::Models::Storage::CloudfListResponse::Meta::Cursors,
|
|
274
|
+
next_: String,
|
|
275
|
+
previous: String
|
|
276
|
+
}
|
|
277
|
+
)
|
|
278
|
+
end
|
|
279
|
+
def to_hash
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
class Cursors < Telnyx::Internal::Type::BaseModel
|
|
283
|
+
OrHash =
|
|
284
|
+
T.type_alias do
|
|
285
|
+
T.any(
|
|
286
|
+
Telnyx::Models::Storage::CloudfListResponse::Meta::Cursors,
|
|
287
|
+
Telnyx::Internal::AnyHash
|
|
288
|
+
)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Cursor for the next page; pass it as `page[after]`. Omitted on the last page.
|
|
292
|
+
sig { returns(T.nilable(String)) }
|
|
293
|
+
attr_reader :after
|
|
294
|
+
|
|
295
|
+
sig { params(after: String).void }
|
|
296
|
+
attr_writer :after
|
|
297
|
+
|
|
298
|
+
# Cursor for the previous page; pass it as `page[before]`. Omitted on the first
|
|
299
|
+
# page.
|
|
300
|
+
sig { returns(T.nilable(String)) }
|
|
301
|
+
attr_reader :before
|
|
302
|
+
|
|
303
|
+
sig { params(before: String).void }
|
|
304
|
+
attr_writer :before
|
|
305
|
+
|
|
306
|
+
# Opaque cursors for the adjacent pages. Empty when there are no adjacent pages.
|
|
307
|
+
sig do
|
|
308
|
+
params(after: String, before: String).returns(T.attached_class)
|
|
309
|
+
end
|
|
310
|
+
def self.new(
|
|
311
|
+
# Cursor for the next page; pass it as `page[after]`. Omitted on the last page.
|
|
312
|
+
after: nil,
|
|
313
|
+
# Cursor for the previous page; pass it as `page[before]`. Omitted on the first
|
|
314
|
+
# page.
|
|
315
|
+
before: nil
|
|
316
|
+
)
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
sig { override.returns({ after: String, before: String }) }
|
|
320
|
+
def to_hash
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
class CloudfRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::Storage::CloudfRetrieveParams,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
id: String,
|
|
24
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(id:, request_options: {})
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{ id: String, request_options: Telnyx::RequestOptions }
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
def to_hash
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
class CloudfUpdateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::Storage::CloudfUpdateParams,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# New filesystem name, unique within your organization. Names are trimmed and
|
|
22
|
+
# lowercased; after normalization they may contain lowercase letters, numbers,
|
|
23
|
+
# `.`, `_`, and `-` only.
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :name
|
|
26
|
+
|
|
27
|
+
sig { params(name: String).void }
|
|
28
|
+
attr_writer :name
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
id: String,
|
|
33
|
+
name: String,
|
|
34
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
35
|
+
).returns(T.attached_class)
|
|
36
|
+
end
|
|
37
|
+
def self.new(
|
|
38
|
+
id:,
|
|
39
|
+
# New filesystem name, unique within your organization. Names are trimmed and
|
|
40
|
+
# lowercased; after normalization they may contain lowercase letters, numbers,
|
|
41
|
+
# `.`, `_`, and `-` only.
|
|
42
|
+
name: nil,
|
|
43
|
+
request_options: {}
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
sig do
|
|
48
|
+
override.returns(
|
|
49
|
+
{
|
|
50
|
+
id: String,
|
|
51
|
+
name: String,
|
|
52
|
+
request_options: Telnyx::RequestOptions
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
def to_hash
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
module Cloudfs
|
|
7
|
+
class ActionRotateMetaTokenParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Telnyx::Storage::Cloudfs::ActionRotateMetaTokenParams,
|
|
15
|
+
Telnyx::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :idempotency_key
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
id: String,
|
|
28
|
+
idempotency_key: String,
|
|
29
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(id:, idempotency_key:, request_options: {})
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
override.returns(
|
|
37
|
+
{
|
|
38
|
+
id: String,
|
|
39
|
+
idempotency_key: String,
|
|
40
|
+
request_options: Telnyx::RequestOptions
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
def to_hash
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
class CloudfsFilesystemDetailResponseWrapper < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Storage::CloudfsFilesystemDetailResponseWrapper,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# A CloudFS filesystem as returned by get, update, and delete. `meta_url` omits
|
|
16
|
+
# the credential and there is no `meta_token` field — the token is only returned
|
|
17
|
+
# by create and rotate-meta-token.
|
|
18
|
+
sig do
|
|
19
|
+
returns(
|
|
20
|
+
T.nilable(
|
|
21
|
+
Telnyx::Storage::CloudfsFilesystemDetailResponseWrapper::Data
|
|
22
|
+
)
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
attr_reader :data
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
data:
|
|
30
|
+
Telnyx::Storage::CloudfsFilesystemDetailResponseWrapper::Data::OrHash
|
|
31
|
+
).void
|
|
32
|
+
end
|
|
33
|
+
attr_writer :data
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
data:
|
|
38
|
+
Telnyx::Storage::CloudfsFilesystemDetailResponseWrapper::Data::OrHash
|
|
39
|
+
).returns(T.attached_class)
|
|
40
|
+
end
|
|
41
|
+
def self.new(
|
|
42
|
+
# A CloudFS filesystem as returned by get, update, and delete. `meta_url` omits
|
|
43
|
+
# the credential and there is no `meta_token` field — the token is only returned
|
|
44
|
+
# by create and rotate-meta-token.
|
|
45
|
+
data: nil
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
override.returns(
|
|
51
|
+
{
|
|
52
|
+
data:
|
|
53
|
+
Telnyx::Storage::CloudfsFilesystemDetailResponseWrapper::Data
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
def to_hash
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
61
|
+
OrHash =
|
|
62
|
+
T.type_alias do
|
|
63
|
+
T.any(
|
|
64
|
+
Telnyx::Storage::CloudfsFilesystemDetailResponseWrapper::Data,
|
|
65
|
+
Telnyx::Internal::AnyHash
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
sig { returns(T.nilable(String)) }
|
|
70
|
+
attr_reader :id
|
|
71
|
+
|
|
72
|
+
sig { params(id: String).void }
|
|
73
|
+
attr_writer :id
|
|
74
|
+
|
|
75
|
+
sig { returns(T.nilable(Time)) }
|
|
76
|
+
attr_reader :created_at
|
|
77
|
+
|
|
78
|
+
sig { params(created_at: Time).void }
|
|
79
|
+
attr_writer :created_at
|
|
80
|
+
|
|
81
|
+
# Explanation of the most recent failed lifecycle action. Present only when the
|
|
82
|
+
# filesystem is in a `failed` state.
|
|
83
|
+
sig { returns(T.nilable(String)) }
|
|
84
|
+
attr_reader :error
|
|
85
|
+
|
|
86
|
+
sig { params(error: String).void }
|
|
87
|
+
attr_writer :error
|
|
88
|
+
|
|
89
|
+
# PostgreSQL connection URL for the filesystem's metadata database, without the
|
|
90
|
+
# credential. Combine it with your stored metadata token, or issue a new token
|
|
91
|
+
# with rotate-meta-token.
|
|
92
|
+
sig { returns(T.nilable(String)) }
|
|
93
|
+
attr_reader :meta_url
|
|
94
|
+
|
|
95
|
+
sig { params(meta_url: String).void }
|
|
96
|
+
attr_writer :meta_url
|
|
97
|
+
|
|
98
|
+
sig { returns(T.nilable(String)) }
|
|
99
|
+
attr_reader :name
|
|
100
|
+
|
|
101
|
+
sig { params(name: String).void }
|
|
102
|
+
attr_writer :name
|
|
103
|
+
|
|
104
|
+
sig { returns(T.nilable(String)) }
|
|
105
|
+
attr_reader :record_type
|
|
106
|
+
|
|
107
|
+
sig { params(record_type: String).void }
|
|
108
|
+
attr_writer :record_type
|
|
109
|
+
|
|
110
|
+
sig { returns(T.nilable(String)) }
|
|
111
|
+
attr_reader :region
|
|
112
|
+
|
|
113
|
+
sig { params(region: String).void }
|
|
114
|
+
attr_writer :region
|
|
115
|
+
|
|
116
|
+
# Name of the bucket that stores this filesystem's data. Created during
|
|
117
|
+
# provisioning.
|
|
118
|
+
sig { returns(T.nilable(String)) }
|
|
119
|
+
attr_reader :s3_bucket
|
|
120
|
+
|
|
121
|
+
sig { params(s3_bucket: String).void }
|
|
122
|
+
attr_writer :s3_bucket
|
|
123
|
+
|
|
124
|
+
# URL of the Telnyx Cloud Storage endpoint backing this filesystem.
|
|
125
|
+
sig { returns(T.nilable(String)) }
|
|
126
|
+
attr_reader :s3_endpoint
|
|
127
|
+
|
|
128
|
+
sig { params(s3_endpoint: String).void }
|
|
129
|
+
attr_writer :s3_endpoint
|
|
130
|
+
|
|
131
|
+
# Lifecycle status of the filesystem. `ready` means it is fully provisioned and
|
|
132
|
+
# usable. `needs_format` means the storage bucket and metadata database were
|
|
133
|
+
# provisioned but the filesystem has not yet been formatted — run `juicefs format`
|
|
134
|
+
# with the filesystem's `meta_url` before mounting. `failed` means the last
|
|
135
|
+
# lifecycle action failed — see the filesystem's `error` message. `deleted`
|
|
136
|
+
# appears only in the delete response: deleted filesystems are excluded from list
|
|
137
|
+
# results and return a `404` on retrieval.
|
|
138
|
+
sig do
|
|
139
|
+
returns(
|
|
140
|
+
T.nilable(Telnyx::Storage::CloudfsFilesystemStatus::TaggedSymbol)
|
|
141
|
+
)
|
|
142
|
+
end
|
|
143
|
+
attr_reader :status
|
|
144
|
+
|
|
145
|
+
sig do
|
|
146
|
+
params(
|
|
147
|
+
status: Telnyx::Storage::CloudfsFilesystemStatus::OrSymbol
|
|
148
|
+
).void
|
|
149
|
+
end
|
|
150
|
+
attr_writer :status
|
|
151
|
+
|
|
152
|
+
sig { returns(T.nilable(Time)) }
|
|
153
|
+
attr_reader :updated_at
|
|
154
|
+
|
|
155
|
+
sig { params(updated_at: Time).void }
|
|
156
|
+
attr_writer :updated_at
|
|
157
|
+
|
|
158
|
+
# A CloudFS filesystem as returned by get, update, and delete. `meta_url` omits
|
|
159
|
+
# the credential and there is no `meta_token` field — the token is only returned
|
|
160
|
+
# by create and rotate-meta-token.
|
|
161
|
+
sig do
|
|
162
|
+
params(
|
|
163
|
+
id: String,
|
|
164
|
+
created_at: Time,
|
|
165
|
+
error: String,
|
|
166
|
+
meta_url: String,
|
|
167
|
+
name: String,
|
|
168
|
+
record_type: String,
|
|
169
|
+
region: String,
|
|
170
|
+
s3_bucket: String,
|
|
171
|
+
s3_endpoint: String,
|
|
172
|
+
status: Telnyx::Storage::CloudfsFilesystemStatus::OrSymbol,
|
|
173
|
+
updated_at: Time
|
|
174
|
+
).returns(T.attached_class)
|
|
175
|
+
end
|
|
176
|
+
def self.new(
|
|
177
|
+
id: nil,
|
|
178
|
+
created_at: nil,
|
|
179
|
+
# Explanation of the most recent failed lifecycle action. Present only when the
|
|
180
|
+
# filesystem is in a `failed` state.
|
|
181
|
+
error: nil,
|
|
182
|
+
# PostgreSQL connection URL for the filesystem's metadata database, without the
|
|
183
|
+
# credential. Combine it with your stored metadata token, or issue a new token
|
|
184
|
+
# with rotate-meta-token.
|
|
185
|
+
meta_url: nil,
|
|
186
|
+
name: nil,
|
|
187
|
+
record_type: nil,
|
|
188
|
+
region: nil,
|
|
189
|
+
# Name of the bucket that stores this filesystem's data. Created during
|
|
190
|
+
# provisioning.
|
|
191
|
+
s3_bucket: nil,
|
|
192
|
+
# URL of the Telnyx Cloud Storage endpoint backing this filesystem.
|
|
193
|
+
s3_endpoint: nil,
|
|
194
|
+
# Lifecycle status of the filesystem. `ready` means it is fully provisioned and
|
|
195
|
+
# usable. `needs_format` means the storage bucket and metadata database were
|
|
196
|
+
# provisioned but the filesystem has not yet been formatted — run `juicefs format`
|
|
197
|
+
# with the filesystem's `meta_url` before mounting. `failed` means the last
|
|
198
|
+
# lifecycle action failed — see the filesystem's `error` message. `deleted`
|
|
199
|
+
# appears only in the delete response: deleted filesystems are excluded from list
|
|
200
|
+
# results and return a `404` on retrieval.
|
|
201
|
+
status: nil,
|
|
202
|
+
updated_at: nil
|
|
203
|
+
)
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
sig do
|
|
207
|
+
override.returns(
|
|
208
|
+
{
|
|
209
|
+
id: String,
|
|
210
|
+
created_at: Time,
|
|
211
|
+
error: String,
|
|
212
|
+
meta_url: String,
|
|
213
|
+
name: String,
|
|
214
|
+
record_type: String,
|
|
215
|
+
region: String,
|
|
216
|
+
s3_bucket: String,
|
|
217
|
+
s3_endpoint: String,
|
|
218
|
+
status: Telnyx::Storage::CloudfsFilesystemStatus::TaggedSymbol,
|
|
219
|
+
updated_at: Time
|
|
220
|
+
}
|
|
221
|
+
)
|
|
222
|
+
end
|
|
223
|
+
def to_hash
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
end
|