appwrite 30.4.0 → 30.6.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/lib/appwrite/client.rb +1 -1
- data/lib/appwrite/enums/alert_comparator.rb +10 -0
- data/lib/appwrite/enums/alert_metric.rb +36 -0
- data/lib/appwrite/enums/alert_status.rb +8 -0
- data/lib/appwrite/enums/monitor_method.rb +13 -0
- data/lib/appwrite/enums/monitor_record.rb +12 -0
- data/lib/appwrite/enums/monitor_resource_type.rb +13 -0
- data/lib/appwrite/enums/monitor_result.rb +19 -0
- data/lib/appwrite/enums/monitor_severity.rb +10 -0
- data/lib/appwrite/enums/monitor_status.rb +8 -0
- data/lib/appwrite/enums/monitor_tls_mode.rb +10 -0
- data/lib/appwrite/enums/monitor_type.rb +12 -0
- data/lib/appwrite/enums/video_caption_status.rb +11 -0
- data/lib/appwrite/enums/video_codec_id.rb +9 -0
- data/lib/appwrite/enums/video_output.rb +9 -0
- data/lib/appwrite/enums/video_rendition_status.rb +12 -0
- data/lib/appwrite/enums/video_timeline_status.rb +11 -0
- data/lib/appwrite/models/alert.rb +308 -0
- data/lib/appwrite/models/alert_list.rb +33 -0
- data/lib/appwrite/models/escalation.rb +53 -0
- data/lib/appwrite/models/escalation_list.rb +33 -0
- data/lib/appwrite/models/escalation_step.rb +38 -0
- data/lib/appwrite/models/monitor.rb +342 -0
- data/lib/appwrite/models/monitor_list.rb +33 -0
- data/lib/appwrite/models/video.rb +166 -0
- data/lib/appwrite/models/video_caption.rb +111 -0
- data/lib/appwrite/models/video_caption_list.rb +33 -0
- data/lib/appwrite/models/video_codec.rb +56 -0
- data/lib/appwrite/models/video_codec_list.rb +33 -0
- data/lib/appwrite/models/video_list.rb +33 -0
- data/lib/appwrite/models/video_profile.rb +84 -0
- data/lib/appwrite/models/video_profile_list.rb +33 -0
- data/lib/appwrite/models/video_rendition.rb +165 -0
- data/lib/appwrite/models/video_rendition_list.rb +33 -0
- data/lib/appwrite/services/alerts.rb +118 -0
- data/lib/appwrite/services/monitors.rb +862 -0
- data/lib/appwrite/services/organization.rb +197 -0
- data/lib/appwrite/services/project.rb +233 -0
- data/lib/appwrite/services/videos.rb +966 -0
- data/lib/appwrite.rb +36 -0
- metadata +38 -2
|
@@ -86,6 +86,203 @@ module Appwrite
|
|
|
86
86
|
)
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
+
# Get a list of your organization's escalations. Use `Query.search('search',
|
|
90
|
+
# term)` to search escalation IDs and names.
|
|
91
|
+
#
|
|
92
|
+
# @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, repeat, search
|
|
93
|
+
# @param [] total When set to false, the total count returned will be 0 and will not be calculated.
|
|
94
|
+
#
|
|
95
|
+
# @return [EscalationList]
|
|
96
|
+
def list_escalations(
|
|
97
|
+
queries: nil,
|
|
98
|
+
total: nil
|
|
99
|
+
)
|
|
100
|
+
api_path = '/organization/escalations'
|
|
101
|
+
|
|
102
|
+
api_params = {
|
|
103
|
+
queries: queries,
|
|
104
|
+
total: total,
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
api_headers = {
|
|
108
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
109
|
+
"accept": 'application/json',
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@client.call(
|
|
113
|
+
method: 'GET',
|
|
114
|
+
path: api_path,
|
|
115
|
+
headers: api_headers,
|
|
116
|
+
params: api_params,
|
|
117
|
+
response_type: Models::EscalationList
|
|
118
|
+
)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Create an escalation for your organization. A monitor using it notifies the
|
|
122
|
+
# escalation's steps one after another while its alert fires, each by email,
|
|
123
|
+
# push and in the console, until a member acknowledges the alert or it
|
|
124
|
+
# resolves. Each step waits its `delay` in seconds, after the alert fires for
|
|
125
|
+
# the first step and after the previous step for the others, then notifies
|
|
126
|
+
# the members holding its `roles` and those named in `userIds`. With
|
|
127
|
+
# `repeat`, the steps run again from the first, a monitor's cooldown after
|
|
128
|
+
# the last step.
|
|
129
|
+
#
|
|
130
|
+
# @param [String] escalation_id Escalation ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
131
|
+
# @param [String] name Escalation name. Max length: 128 chars.
|
|
132
|
+
# @param [Array] steps Steps notified in order while nobody acknowledges the alert. Each step is an object with `delay` (seconds to wait before the step, 0 to 2592000, default 0), `roles` (organization roles such as `owner` or `developer`) and `userIds` (organization members who accepted their invitation). A step names each role and member at most once and needs at least one of `roles` or `userIds`. Maximum of 100 steps.
|
|
133
|
+
# @param [Integer] repeat How many more times the steps run from the first while nobody acknowledges the alert, between 0 and 9. Each round starts a monitor's cooldown after the last step.
|
|
134
|
+
#
|
|
135
|
+
# @return [Escalation]
|
|
136
|
+
def create_escalation(
|
|
137
|
+
escalation_id:,
|
|
138
|
+
name:,
|
|
139
|
+
steps:,
|
|
140
|
+
repeat: nil
|
|
141
|
+
)
|
|
142
|
+
if escalation_id.nil?
|
|
143
|
+
raise Appwrite::Exception.new('Missing required parameter: "escalationId"')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if name.nil?
|
|
147
|
+
raise Appwrite::Exception.new('Missing required parameter: "name"')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if steps.nil?
|
|
151
|
+
raise Appwrite::Exception.new('Missing required parameter: "steps"')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
api_path = '/organization/escalations'
|
|
155
|
+
|
|
156
|
+
api_params = {
|
|
157
|
+
escalationId: escalation_id,
|
|
158
|
+
name: name,
|
|
159
|
+
steps: steps,
|
|
160
|
+
repeat: repeat,
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
api_headers = {
|
|
164
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
165
|
+
"content-type": 'application/json',
|
|
166
|
+
"accept": 'application/json',
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@client.call(
|
|
170
|
+
method: 'POST',
|
|
171
|
+
path: api_path,
|
|
172
|
+
headers: api_headers,
|
|
173
|
+
params: api_params,
|
|
174
|
+
response_type: Models::Escalation
|
|
175
|
+
)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Get one of your organization's escalations by its ID.
|
|
179
|
+
#
|
|
180
|
+
# @param [String] escalation_id Escalation ID.
|
|
181
|
+
#
|
|
182
|
+
# @return [Escalation]
|
|
183
|
+
def get_escalation(
|
|
184
|
+
escalation_id:
|
|
185
|
+
)
|
|
186
|
+
if escalation_id.nil? || escalation_id == ''
|
|
187
|
+
raise Appwrite::Exception.new('Missing required parameter: "escalationId"')
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
api_path = '/organization/escalations/{escalationId}'
|
|
191
|
+
.gsub('{escalationId}', @client.encode_path(escalation_id))
|
|
192
|
+
|
|
193
|
+
api_params = {}
|
|
194
|
+
|
|
195
|
+
api_headers = {
|
|
196
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
197
|
+
"accept": 'application/json',
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@client.call(
|
|
201
|
+
method: 'GET',
|
|
202
|
+
path: api_path,
|
|
203
|
+
headers: api_headers,
|
|
204
|
+
params: api_params,
|
|
205
|
+
response_type: Models::Escalation
|
|
206
|
+
)
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Update an escalation's name, steps or repeats; what you leave out stays as
|
|
210
|
+
# it is. Alerts already escalating keep the steps they started with; the next
|
|
211
|
+
# alert uses the new ones.
|
|
212
|
+
#
|
|
213
|
+
# @param [String] escalation_id Escalation ID.
|
|
214
|
+
# @param [String] name Escalation name. Max length: 128 chars.
|
|
215
|
+
# @param [Array] steps Steps notified in order while nobody acknowledges the alert. Each step is an object with `delay` (seconds to wait before the step, 0 to 2592000, default 0), `roles` (organization roles such as `owner` or `developer`) and `userIds` (organization members who accepted their invitation). A step names each role and member at most once and needs at least one of `roles` or `userIds`. Maximum of 100 steps.
|
|
216
|
+
# @param [Integer] repeat How many more times the steps run from the first while nobody acknowledges the alert, between 0 and 9. Each round starts a monitor's cooldown after the last step.
|
|
217
|
+
#
|
|
218
|
+
# @return [Escalation]
|
|
219
|
+
def update_escalation(
|
|
220
|
+
escalation_id:,
|
|
221
|
+
name: nil,
|
|
222
|
+
steps: nil,
|
|
223
|
+
repeat: nil
|
|
224
|
+
)
|
|
225
|
+
if escalation_id.nil? || escalation_id == ''
|
|
226
|
+
raise Appwrite::Exception.new('Missing required parameter: "escalationId"')
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
api_path = '/organization/escalations/{escalationId}'
|
|
230
|
+
.gsub('{escalationId}', @client.encode_path(escalation_id))
|
|
231
|
+
|
|
232
|
+
api_params = {
|
|
233
|
+
name: name,
|
|
234
|
+
steps: steps,
|
|
235
|
+
repeat: repeat,
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
api_headers = {
|
|
239
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
240
|
+
"content-type": 'application/json',
|
|
241
|
+
"accept": 'application/json',
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@client.call(
|
|
245
|
+
method: 'PATCH',
|
|
246
|
+
path: api_path,
|
|
247
|
+
headers: api_headers,
|
|
248
|
+
params: api_params,
|
|
249
|
+
response_type: Models::Escalation
|
|
250
|
+
)
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Delete an escalation. An escalation that a monitor uses cannot be deleted:
|
|
254
|
+
# move the monitor to another escalation or to `notify` roles first. Open
|
|
255
|
+
# alerts keep the steps they started with.
|
|
256
|
+
#
|
|
257
|
+
# @param [String] escalation_id Escalation ID.
|
|
258
|
+
#
|
|
259
|
+
# @return []
|
|
260
|
+
def delete_escalation(
|
|
261
|
+
escalation_id:
|
|
262
|
+
)
|
|
263
|
+
if escalation_id.nil? || escalation_id == ''
|
|
264
|
+
raise Appwrite::Exception.new('Missing required parameter: "escalationId"')
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
api_path = '/organization/escalations/{escalationId}'
|
|
268
|
+
.gsub('{escalationId}', @client.encode_path(escalation_id))
|
|
269
|
+
|
|
270
|
+
api_params = {}
|
|
271
|
+
|
|
272
|
+
api_headers = {
|
|
273
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
274
|
+
"content-type": 'application/json',
|
|
275
|
+
"accept": 'application/json',
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@client.call(
|
|
279
|
+
method: 'DELETE',
|
|
280
|
+
path: api_path,
|
|
281
|
+
headers: api_headers,
|
|
282
|
+
params: api_params,
|
|
283
|
+
)
|
|
284
|
+
end
|
|
285
|
+
|
|
89
286
|
# List app installations on the organization. Any organization member can
|
|
90
287
|
# read installations.
|
|
91
288
|
#
|
|
@@ -5791,5 +5791,238 @@ module Appwrite
|
|
|
5791
5791
|
params: api_params,
|
|
5792
5792
|
)
|
|
5793
5793
|
end
|
|
5794
|
+
|
|
5795
|
+
# Get a list of video profiles in the current project (`GET
|
|
5796
|
+
# /v1/project/videos/profiles`). Every profile is returned regardless of
|
|
5797
|
+
# codec. Filter with `queries`, for example `Query.equal('codec', ['h264'])`
|
|
5798
|
+
# for one encode ladder, or on `name`, `width`, `height`, `videoBitRate` and
|
|
5799
|
+
# `audioBitRate`. Search with `Query.search()` on the `search` attribute.
|
|
5800
|
+
#
|
|
5801
|
+
#
|
|
5802
|
+
# @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, codec, width, height, videoBitRate, audioBitRate, search
|
|
5803
|
+
# @param [] total When set to false, the total count returned will be 0 and will not be calculated.
|
|
5804
|
+
#
|
|
5805
|
+
# @return [VideoProfileList]
|
|
5806
|
+
def list_video_profiles(
|
|
5807
|
+
queries: nil,
|
|
5808
|
+
total: nil
|
|
5809
|
+
)
|
|
5810
|
+
api_path = '/project/videos/profiles'
|
|
5811
|
+
|
|
5812
|
+
api_params = {
|
|
5813
|
+
queries: queries,
|
|
5814
|
+
total: total,
|
|
5815
|
+
}
|
|
5816
|
+
|
|
5817
|
+
api_headers = {
|
|
5818
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
5819
|
+
"accept": 'application/json',
|
|
5820
|
+
}
|
|
5821
|
+
|
|
5822
|
+
@client.call(
|
|
5823
|
+
method: 'GET',
|
|
5824
|
+
path: api_path,
|
|
5825
|
+
headers: api_headers,
|
|
5826
|
+
params: api_params,
|
|
5827
|
+
response_type: Models::VideoProfileList
|
|
5828
|
+
)
|
|
5829
|
+
end
|
|
5830
|
+
|
|
5831
|
+
# Create a video profile (`POST /v1/project/videos/profiles`) describing an
|
|
5832
|
+
# encoding target: output dimensions, video/audio bitrates, and encode codec.
|
|
5833
|
+
# Only codecs enabled on this instance are accepted; the default is `h264`. A
|
|
5834
|
+
# disabled codec is rejected. Creating a profile with the same width, height,
|
|
5835
|
+
# bitrates, and codec fails with `video_profile_already_exists`. Bitrates are
|
|
5836
|
+
# in bits per second and must be multiples of 1000. Renditions are encoded
|
|
5837
|
+
# against a profile.
|
|
5838
|
+
#
|
|
5839
|
+
#
|
|
5840
|
+
# @param [String] profile_id Video profile ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
5841
|
+
# @param [String] name Video profile name.
|
|
5842
|
+
# @param [Integer] video_bit_rate Target video bitrate in bits per second. Must be a multiple of 1000.
|
|
5843
|
+
# @param [Integer] audio_bit_rate Target audio bitrate in bits per second. Must be a multiple of 1000.
|
|
5844
|
+
# @param [Integer] width Target video width in pixels. Must be an even number.
|
|
5845
|
+
# @param [Integer] height Target video height in pixels. Must be an even number.
|
|
5846
|
+
# @param [VideoCodecId] codec Video encode codec. Codecs not enabled on this instance are rejected. Defaults to `h264`.
|
|
5847
|
+
#
|
|
5848
|
+
# @return [VideoProfile]
|
|
5849
|
+
def create_video_profile(
|
|
5850
|
+
profile_id:,
|
|
5851
|
+
name:,
|
|
5852
|
+
video_bit_rate:,
|
|
5853
|
+
audio_bit_rate:,
|
|
5854
|
+
width:,
|
|
5855
|
+
height:,
|
|
5856
|
+
codec: nil
|
|
5857
|
+
)
|
|
5858
|
+
if profile_id.nil?
|
|
5859
|
+
raise Appwrite::Exception.new('Missing required parameter: "profileId"')
|
|
5860
|
+
end
|
|
5861
|
+
|
|
5862
|
+
if name.nil?
|
|
5863
|
+
raise Appwrite::Exception.new('Missing required parameter: "name"')
|
|
5864
|
+
end
|
|
5865
|
+
|
|
5866
|
+
if video_bit_rate.nil?
|
|
5867
|
+
raise Appwrite::Exception.new('Missing required parameter: "videoBitRate"')
|
|
5868
|
+
end
|
|
5869
|
+
|
|
5870
|
+
if audio_bit_rate.nil?
|
|
5871
|
+
raise Appwrite::Exception.new('Missing required parameter: "audioBitRate"')
|
|
5872
|
+
end
|
|
5873
|
+
|
|
5874
|
+
if width.nil?
|
|
5875
|
+
raise Appwrite::Exception.new('Missing required parameter: "width"')
|
|
5876
|
+
end
|
|
5877
|
+
|
|
5878
|
+
if height.nil?
|
|
5879
|
+
raise Appwrite::Exception.new('Missing required parameter: "height"')
|
|
5880
|
+
end
|
|
5881
|
+
|
|
5882
|
+
api_path = '/project/videos/profiles'
|
|
5883
|
+
|
|
5884
|
+
api_params = {
|
|
5885
|
+
profileId: profile_id,
|
|
5886
|
+
name: name,
|
|
5887
|
+
videoBitRate: video_bit_rate,
|
|
5888
|
+
audioBitRate: audio_bit_rate,
|
|
5889
|
+
width: width,
|
|
5890
|
+
height: height,
|
|
5891
|
+
codec: codec,
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5894
|
+
api_headers = {
|
|
5895
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
5896
|
+
"content-type": 'application/json',
|
|
5897
|
+
"accept": 'application/json',
|
|
5898
|
+
}
|
|
5899
|
+
|
|
5900
|
+
@client.call(
|
|
5901
|
+
method: 'POST',
|
|
5902
|
+
path: api_path,
|
|
5903
|
+
headers: api_headers,
|
|
5904
|
+
params: api_params,
|
|
5905
|
+
response_type: Models::VideoProfile
|
|
5906
|
+
)
|
|
5907
|
+
end
|
|
5908
|
+
|
|
5909
|
+
# Get a video profile by its unique ID (`GET
|
|
5910
|
+
# /v1/project/videos/profiles/:profileId`).
|
|
5911
|
+
#
|
|
5912
|
+
#
|
|
5913
|
+
# @param [String] profile_id Video profile unique ID.
|
|
5914
|
+
#
|
|
5915
|
+
# @return [VideoProfile]
|
|
5916
|
+
def get_video_profile(
|
|
5917
|
+
profile_id:
|
|
5918
|
+
)
|
|
5919
|
+
if profile_id.nil? || profile_id == ''
|
|
5920
|
+
raise Appwrite::Exception.new('Missing required parameter: "profileId"')
|
|
5921
|
+
end
|
|
5922
|
+
|
|
5923
|
+
api_path = '/project/videos/profiles/{profileId}'
|
|
5924
|
+
.gsub('{profileId}', @client.encode_path(profile_id))
|
|
5925
|
+
|
|
5926
|
+
api_params = {}
|
|
5927
|
+
|
|
5928
|
+
api_headers = {
|
|
5929
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
5930
|
+
"accept": 'application/json',
|
|
5931
|
+
}
|
|
5932
|
+
|
|
5933
|
+
@client.call(
|
|
5934
|
+
method: 'GET',
|
|
5935
|
+
path: api_path,
|
|
5936
|
+
headers: api_headers,
|
|
5937
|
+
params: api_params,
|
|
5938
|
+
response_type: Models::VideoProfile
|
|
5939
|
+
)
|
|
5940
|
+
end
|
|
5941
|
+
|
|
5942
|
+
# Update a video profile by its unique ID (`PATCH
|
|
5943
|
+
# /v1/project/videos/profiles/:profileId`). Existing renditions are not
|
|
5944
|
+
# re-encoded. Changing the profile onto the same width, height, bitrates, and
|
|
5945
|
+
# codec as another profile fails with `video_profile_already_exists`.
|
|
5946
|
+
#
|
|
5947
|
+
#
|
|
5948
|
+
# @param [String] profile_id Video profile unique ID.
|
|
5949
|
+
# @param [String] name Video profile name.
|
|
5950
|
+
# @param [Integer] video_bit_rate Target video bitrate in bits per second. Must be a multiple of 1000.
|
|
5951
|
+
# @param [Integer] audio_bit_rate Target audio bitrate in bits per second. Must be a multiple of 1000.
|
|
5952
|
+
# @param [Integer] width Target video width in pixels. Must be an even number.
|
|
5953
|
+
# @param [Integer] height Target video height in pixels. Must be an even number.
|
|
5954
|
+
#
|
|
5955
|
+
# @return [VideoProfile]
|
|
5956
|
+
def update_video_profile(
|
|
5957
|
+
profile_id:,
|
|
5958
|
+
name: nil,
|
|
5959
|
+
video_bit_rate: nil,
|
|
5960
|
+
audio_bit_rate: nil,
|
|
5961
|
+
width: nil,
|
|
5962
|
+
height: nil
|
|
5963
|
+
)
|
|
5964
|
+
if profile_id.nil? || profile_id == ''
|
|
5965
|
+
raise Appwrite::Exception.new('Missing required parameter: "profileId"')
|
|
5966
|
+
end
|
|
5967
|
+
|
|
5968
|
+
api_path = '/project/videos/profiles/{profileId}'
|
|
5969
|
+
.gsub('{profileId}', @client.encode_path(profile_id))
|
|
5970
|
+
|
|
5971
|
+
api_params = {
|
|
5972
|
+
name: name,
|
|
5973
|
+
videoBitRate: video_bit_rate,
|
|
5974
|
+
audioBitRate: audio_bit_rate,
|
|
5975
|
+
width: width,
|
|
5976
|
+
height: height,
|
|
5977
|
+
}
|
|
5978
|
+
|
|
5979
|
+
api_headers = {
|
|
5980
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
5981
|
+
"content-type": 'application/json',
|
|
5982
|
+
"accept": 'application/json',
|
|
5983
|
+
}
|
|
5984
|
+
|
|
5985
|
+
@client.call(
|
|
5986
|
+
method: 'PATCH',
|
|
5987
|
+
path: api_path,
|
|
5988
|
+
headers: api_headers,
|
|
5989
|
+
params: api_params,
|
|
5990
|
+
response_type: Models::VideoProfile
|
|
5991
|
+
)
|
|
5992
|
+
end
|
|
5993
|
+
|
|
5994
|
+
# Delete a video profile by its unique ID (`DELETE
|
|
5995
|
+
# /v1/project/videos/profiles/:profileId`). Renditions already encoded
|
|
5996
|
+
# against it are left in place.
|
|
5997
|
+
#
|
|
5998
|
+
#
|
|
5999
|
+
# @param [String] profile_id Video profile unique ID.
|
|
6000
|
+
#
|
|
6001
|
+
# @return []
|
|
6002
|
+
def delete_video_profile(
|
|
6003
|
+
profile_id:
|
|
6004
|
+
)
|
|
6005
|
+
if profile_id.nil? || profile_id == ''
|
|
6006
|
+
raise Appwrite::Exception.new('Missing required parameter: "profileId"')
|
|
6007
|
+
end
|
|
6008
|
+
|
|
6009
|
+
api_path = '/project/videos/profiles/{profileId}'
|
|
6010
|
+
.gsub('{profileId}', @client.encode_path(profile_id))
|
|
6011
|
+
|
|
6012
|
+
api_params = {}
|
|
6013
|
+
|
|
6014
|
+
api_headers = {
|
|
6015
|
+
"X-Appwrite-Project": @client.get_config('project'),
|
|
6016
|
+
"content-type": 'application/json',
|
|
6017
|
+
"accept": 'application/json',
|
|
6018
|
+
}
|
|
6019
|
+
|
|
6020
|
+
@client.call(
|
|
6021
|
+
method: 'DELETE',
|
|
6022
|
+
path: api_path,
|
|
6023
|
+
headers: api_headers,
|
|
6024
|
+
params: api_params,
|
|
6025
|
+
)
|
|
6026
|
+
end
|
|
5794
6027
|
end
|
|
5795
6028
|
end
|