ilovevideoeditor-sdk 1.0.1 → 1.0.2
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/generated/ilovevideoeditor-sdk/api/workflows_api.rb +198 -0
- data/lib/generated/ilovevideoeditor-sdk/models/create_checkout_session_request.rb +14 -4
- data/lib/generated/ilovevideoeditor-sdk/models/create_workflow_request.rb +14 -4
- data/lib/generated/ilovevideoeditor-sdk/models/get_workflow_preset200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_workflow_presets200_response.rb +166 -0
- data/lib/generated/ilovevideoeditor-sdk/models/review_workflow_step_request.rb +200 -0
- data/lib/generated/ilovevideoeditor-sdk/models/template.rb +29 -1
- data/lib/generated/ilovevideoeditor-sdk/models/template_summary.rb +29 -1
- data/lib/generated/ilovevideoeditor-sdk/models/workflow.rb +12 -1
- data/lib/generated/ilovevideoeditor-sdk/models/workflow_preset.rb +417 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workflow_run.rb +1 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workflow_run_step.rb +1 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workflow_step.rb +2 -2
- data/lib/generated/ilovevideoeditor-sdk/version.rb +1 -1
- data/lib/generated/ilovevideoeditor-sdk.rb +4 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da42a1ac968583eec1457eb53f78f116419f55bfd438f044f73e9b5664c843b8
|
|
4
|
+
data.tar.gz: 2c61b59b73bf24cec25fc9427b84bb78e80fb0836d99a4ead874d4231dc5070f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcb1323d0dfb91e076351127cbd28f9ee2c1914068e62c063267ee150542eaf913bb50ead4803b0285ad01744789b8d9011f7fdad225fa7cc4583efbdd056e1c
|
|
7
|
+
data.tar.gz: 89b5781e45f66b2e3f3651f3cc9ba19bc390369c05c550cce14152bd1c8455178d2658f0d71d85af1c9bf1c7069bed5b4b3c5fc5a8f1e65a910470777661dedd
|
|
@@ -268,6 +268,67 @@ module ILoveVideoEditor
|
|
|
268
268
|
return data, status_code, headers
|
|
269
269
|
end
|
|
270
270
|
|
|
271
|
+
# Get a workflow preset
|
|
272
|
+
# @param id [String]
|
|
273
|
+
# @param [Hash] opts the optional parameters
|
|
274
|
+
# @return [GetWorkflowPreset200Response]
|
|
275
|
+
def get_workflow_preset(id, opts = {})
|
|
276
|
+
data, _status_code, _headers = get_workflow_preset_with_http_info(id, opts)
|
|
277
|
+
data
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# Get a workflow preset
|
|
281
|
+
# @param id [String]
|
|
282
|
+
# @param [Hash] opts the optional parameters
|
|
283
|
+
# @return [Array<(GetWorkflowPreset200Response, Integer, Hash)>] GetWorkflowPreset200Response data, response status code and response headers
|
|
284
|
+
def get_workflow_preset_with_http_info(id, opts = {})
|
|
285
|
+
if @api_client.config.debugging
|
|
286
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.get_workflow_preset ...'
|
|
287
|
+
end
|
|
288
|
+
# verify the required parameter 'id' is set
|
|
289
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
290
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WorkflowsApi.get_workflow_preset"
|
|
291
|
+
end
|
|
292
|
+
# resource path
|
|
293
|
+
local_var_path = '/v1/workflows/presets/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
294
|
+
|
|
295
|
+
# query parameters
|
|
296
|
+
query_params = opts[:query_params] || {}
|
|
297
|
+
|
|
298
|
+
# header parameters
|
|
299
|
+
header_params = opts[:header_params] || {}
|
|
300
|
+
# HTTP header 'Accept' (if needed)
|
|
301
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
302
|
+
|
|
303
|
+
# form parameters
|
|
304
|
+
form_params = opts[:form_params] || {}
|
|
305
|
+
|
|
306
|
+
# http body (model)
|
|
307
|
+
post_body = opts[:debug_body]
|
|
308
|
+
|
|
309
|
+
# return_type
|
|
310
|
+
return_type = opts[:debug_return_type] || 'GetWorkflowPreset200Response'
|
|
311
|
+
|
|
312
|
+
# auth_names
|
|
313
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth', 'BearerAuth']
|
|
314
|
+
|
|
315
|
+
new_options = opts.merge(
|
|
316
|
+
:operation => :"WorkflowsApi.get_workflow_preset",
|
|
317
|
+
:header_params => header_params,
|
|
318
|
+
:query_params => query_params,
|
|
319
|
+
:form_params => form_params,
|
|
320
|
+
:body => post_body,
|
|
321
|
+
:auth_names => auth_names,
|
|
322
|
+
:return_type => return_type
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
326
|
+
if @api_client.config.debugging
|
|
327
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#get_workflow_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
328
|
+
end
|
|
329
|
+
return data, status_code, headers
|
|
330
|
+
end
|
|
331
|
+
|
|
271
332
|
# Get a workflow run
|
|
272
333
|
# @param run_id [String]
|
|
273
334
|
# @param [Hash] opts the optional parameters
|
|
@@ -329,6 +390,63 @@ module ILoveVideoEditor
|
|
|
329
390
|
return data, status_code, headers
|
|
330
391
|
end
|
|
331
392
|
|
|
393
|
+
# List system workflow presets
|
|
394
|
+
# Returns the code-side catalog of ready-made workflow presets (\"Browse workflows\"). Import one by POSTing its definition to /v1/workflows with sourcePresetId set to the preset id.
|
|
395
|
+
# @param [Hash] opts the optional parameters
|
|
396
|
+
# @return [ListWorkflowPresets200Response]
|
|
397
|
+
def list_workflow_presets(opts = {})
|
|
398
|
+
data, _status_code, _headers = list_workflow_presets_with_http_info(opts)
|
|
399
|
+
data
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
# List system workflow presets
|
|
403
|
+
# Returns the code-side catalog of ready-made workflow presets (\"Browse workflows\"). Import one by POSTing its definition to /v1/workflows with sourcePresetId set to the preset id.
|
|
404
|
+
# @param [Hash] opts the optional parameters
|
|
405
|
+
# @return [Array<(ListWorkflowPresets200Response, Integer, Hash)>] ListWorkflowPresets200Response data, response status code and response headers
|
|
406
|
+
def list_workflow_presets_with_http_info(opts = {})
|
|
407
|
+
if @api_client.config.debugging
|
|
408
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.list_workflow_presets ...'
|
|
409
|
+
end
|
|
410
|
+
# resource path
|
|
411
|
+
local_var_path = '/v1/workflows/presets'
|
|
412
|
+
|
|
413
|
+
# query parameters
|
|
414
|
+
query_params = opts[:query_params] || {}
|
|
415
|
+
|
|
416
|
+
# header parameters
|
|
417
|
+
header_params = opts[:header_params] || {}
|
|
418
|
+
# HTTP header 'Accept' (if needed)
|
|
419
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
420
|
+
|
|
421
|
+
# form parameters
|
|
422
|
+
form_params = opts[:form_params] || {}
|
|
423
|
+
|
|
424
|
+
# http body (model)
|
|
425
|
+
post_body = opts[:debug_body]
|
|
426
|
+
|
|
427
|
+
# return_type
|
|
428
|
+
return_type = opts[:debug_return_type] || 'ListWorkflowPresets200Response'
|
|
429
|
+
|
|
430
|
+
# auth_names
|
|
431
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth', 'BearerAuth']
|
|
432
|
+
|
|
433
|
+
new_options = opts.merge(
|
|
434
|
+
:operation => :"WorkflowsApi.list_workflow_presets",
|
|
435
|
+
:header_params => header_params,
|
|
436
|
+
:query_params => query_params,
|
|
437
|
+
:form_params => form_params,
|
|
438
|
+
:body => post_body,
|
|
439
|
+
:auth_names => auth_names,
|
|
440
|
+
:return_type => return_type
|
|
441
|
+
)
|
|
442
|
+
|
|
443
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
444
|
+
if @api_client.config.debugging
|
|
445
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#list_workflow_presets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
446
|
+
end
|
|
447
|
+
return data, status_code, headers
|
|
448
|
+
end
|
|
449
|
+
|
|
332
450
|
# List workflow runs
|
|
333
451
|
# @param id [String]
|
|
334
452
|
# @param [Hash] opts the optional parameters
|
|
@@ -640,6 +758,86 @@ module ILoveVideoEditor
|
|
|
640
758
|
return data, status_code, headers
|
|
641
759
|
end
|
|
642
760
|
|
|
761
|
+
# Approve or reject a paused review step
|
|
762
|
+
# Resolves a human-in-the-loop `review` step that is waiting for input (the run is in `waiting_review` status). Approving resumes the run; rejecting cancels it. Optionally edits run variables before resuming — only keys listed in the step's `editableVariables` are accepted.
|
|
763
|
+
# @param run_id [String]
|
|
764
|
+
# @param step_id [String]
|
|
765
|
+
# @param review_workflow_step_request [ReviewWorkflowStepRequest]
|
|
766
|
+
# @param [Hash] opts the optional parameters
|
|
767
|
+
# @return [UploadAsset200Response]
|
|
768
|
+
def review_workflow_step(run_id, step_id, review_workflow_step_request, opts = {})
|
|
769
|
+
data, _status_code, _headers = review_workflow_step_with_http_info(run_id, step_id, review_workflow_step_request, opts)
|
|
770
|
+
data
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
# Approve or reject a paused review step
|
|
774
|
+
# Resolves a human-in-the-loop `review` step that is waiting for input (the run is in `waiting_review` status). Approving resumes the run; rejecting cancels it. Optionally edits run variables before resuming — only keys listed in the step's `editableVariables` are accepted.
|
|
775
|
+
# @param run_id [String]
|
|
776
|
+
# @param step_id [String]
|
|
777
|
+
# @param review_workflow_step_request [ReviewWorkflowStepRequest]
|
|
778
|
+
# @param [Hash] opts the optional parameters
|
|
779
|
+
# @return [Array<(UploadAsset200Response, Integer, Hash)>] UploadAsset200Response data, response status code and response headers
|
|
780
|
+
def review_workflow_step_with_http_info(run_id, step_id, review_workflow_step_request, opts = {})
|
|
781
|
+
if @api_client.config.debugging
|
|
782
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.review_workflow_step ...'
|
|
783
|
+
end
|
|
784
|
+
# verify the required parameter 'run_id' is set
|
|
785
|
+
if @api_client.config.client_side_validation && run_id.nil?
|
|
786
|
+
fail ArgumentError, "Missing the required parameter 'run_id' when calling WorkflowsApi.review_workflow_step"
|
|
787
|
+
end
|
|
788
|
+
# verify the required parameter 'step_id' is set
|
|
789
|
+
if @api_client.config.client_side_validation && step_id.nil?
|
|
790
|
+
fail ArgumentError, "Missing the required parameter 'step_id' when calling WorkflowsApi.review_workflow_step"
|
|
791
|
+
end
|
|
792
|
+
# verify the required parameter 'review_workflow_step_request' is set
|
|
793
|
+
if @api_client.config.client_side_validation && review_workflow_step_request.nil?
|
|
794
|
+
fail ArgumentError, "Missing the required parameter 'review_workflow_step_request' when calling WorkflowsApi.review_workflow_step"
|
|
795
|
+
end
|
|
796
|
+
# resource path
|
|
797
|
+
local_var_path = '/v1/workflows/runs/{runId}/steps/{stepId}/review'.sub('{runId}', CGI.escape(run_id.to_s)).sub('{stepId}', CGI.escape(step_id.to_s))
|
|
798
|
+
|
|
799
|
+
# query parameters
|
|
800
|
+
query_params = opts[:query_params] || {}
|
|
801
|
+
|
|
802
|
+
# header parameters
|
|
803
|
+
header_params = opts[:header_params] || {}
|
|
804
|
+
# HTTP header 'Accept' (if needed)
|
|
805
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
806
|
+
# HTTP header 'Content-Type'
|
|
807
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
808
|
+
if !content_type.nil?
|
|
809
|
+
header_params['Content-Type'] = content_type
|
|
810
|
+
end
|
|
811
|
+
|
|
812
|
+
# form parameters
|
|
813
|
+
form_params = opts[:form_params] || {}
|
|
814
|
+
|
|
815
|
+
# http body (model)
|
|
816
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(review_workflow_step_request)
|
|
817
|
+
|
|
818
|
+
# return_type
|
|
819
|
+
return_type = opts[:debug_return_type] || 'UploadAsset200Response'
|
|
820
|
+
|
|
821
|
+
# auth_names
|
|
822
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth', 'BearerAuth']
|
|
823
|
+
|
|
824
|
+
new_options = opts.merge(
|
|
825
|
+
:operation => :"WorkflowsApi.review_workflow_step",
|
|
826
|
+
:header_params => header_params,
|
|
827
|
+
:query_params => query_params,
|
|
828
|
+
:form_params => form_params,
|
|
829
|
+
:body => post_body,
|
|
830
|
+
:auth_names => auth_names,
|
|
831
|
+
:return_type => return_type
|
|
832
|
+
)
|
|
833
|
+
|
|
834
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
835
|
+
if @api_client.config.debugging
|
|
836
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#review_workflow_step\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
837
|
+
end
|
|
838
|
+
return data, status_code, headers
|
|
839
|
+
end
|
|
840
|
+
|
|
643
841
|
# Run a workflow
|
|
644
842
|
# @param id [String]
|
|
645
843
|
# @param run_workflow_request [RunWorkflowRequest]
|
|
@@ -23,6 +23,9 @@ module ILoveVideoEditor
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :credits
|
|
25
25
|
|
|
26
|
+
# Custom credit top-up amount in EUR (`mode=payment` only). Between 10 and 2500, at most 2 decimal places. When set, the pay-what-you-want credits product is used and any `productId` is ignored.
|
|
27
|
+
attr_accessor :amount_eur
|
|
28
|
+
|
|
26
29
|
class EnumAttributeValidator
|
|
27
30
|
attr_reader :datatype
|
|
28
31
|
attr_reader :allowable_values
|
|
@@ -51,7 +54,8 @@ module ILoveVideoEditor
|
|
|
51
54
|
:'product_id' => :'productId',
|
|
52
55
|
:'tier_id' => :'tierId',
|
|
53
56
|
:'mode' => :'mode',
|
|
54
|
-
:'credits' => :'credits'
|
|
57
|
+
:'credits' => :'credits',
|
|
58
|
+
:'amount_eur' => :'amountEur'
|
|
55
59
|
}
|
|
56
60
|
end
|
|
57
61
|
|
|
@@ -71,7 +75,8 @@ module ILoveVideoEditor
|
|
|
71
75
|
:'product_id' => :'String',
|
|
72
76
|
:'tier_id' => :'String',
|
|
73
77
|
:'mode' => :'String',
|
|
74
|
-
:'credits' => :'Integer'
|
|
78
|
+
:'credits' => :'Integer',
|
|
79
|
+
:'amount_eur' => :'Float'
|
|
75
80
|
}
|
|
76
81
|
end
|
|
77
82
|
|
|
@@ -112,6 +117,10 @@ module ILoveVideoEditor
|
|
|
112
117
|
if attributes.key?(:'credits')
|
|
113
118
|
self.credits = attributes[:'credits']
|
|
114
119
|
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'amount_eur')
|
|
122
|
+
self.amount_eur = attributes[:'amount_eur']
|
|
123
|
+
end
|
|
115
124
|
end
|
|
116
125
|
|
|
117
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -161,7 +170,8 @@ module ILoveVideoEditor
|
|
|
161
170
|
product_id == o.product_id &&
|
|
162
171
|
tier_id == o.tier_id &&
|
|
163
172
|
mode == o.mode &&
|
|
164
|
-
credits == o.credits
|
|
173
|
+
credits == o.credits &&
|
|
174
|
+
amount_eur == o.amount_eur
|
|
165
175
|
end
|
|
166
176
|
|
|
167
177
|
# @see the `==` method
|
|
@@ -173,7 +183,7 @@ module ILoveVideoEditor
|
|
|
173
183
|
# Calculates hash code according to all attributes.
|
|
174
184
|
# @return [Integer] Hash code
|
|
175
185
|
def hash
|
|
176
|
-
[product_id, tier_id, mode, credits].hash
|
|
186
|
+
[product_id, tier_id, mode, credits, amount_eur].hash
|
|
177
187
|
end
|
|
178
188
|
|
|
179
189
|
# Builds the object from hash
|
|
@@ -23,13 +23,17 @@ module ILoveVideoEditor
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :is_active
|
|
25
25
|
|
|
26
|
+
# Optional id of a system preset from /v1/workflows/presets this workflow is imported from.
|
|
27
|
+
attr_accessor :source_preset_id
|
|
28
|
+
|
|
26
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
30
|
def self.attribute_map
|
|
28
31
|
{
|
|
29
32
|
:'name' => :'name',
|
|
30
33
|
:'description' => :'description',
|
|
31
34
|
:'definition' => :'definition',
|
|
32
|
-
:'is_active' => :'isActive'
|
|
35
|
+
:'is_active' => :'isActive',
|
|
36
|
+
:'source_preset_id' => :'sourcePresetId'
|
|
33
37
|
}
|
|
34
38
|
end
|
|
35
39
|
|
|
@@ -49,7 +53,8 @@ module ILoveVideoEditor
|
|
|
49
53
|
:'name' => :'String',
|
|
50
54
|
:'description' => :'String',
|
|
51
55
|
:'definition' => :'WorkflowDefinition',
|
|
52
|
-
:'is_active' => :'Boolean'
|
|
56
|
+
:'is_active' => :'Boolean',
|
|
57
|
+
:'source_preset_id' => :'String'
|
|
53
58
|
}
|
|
54
59
|
end
|
|
55
60
|
|
|
@@ -94,6 +99,10 @@ module ILoveVideoEditor
|
|
|
94
99
|
if attributes.key?(:'is_active')
|
|
95
100
|
self.is_active = attributes[:'is_active']
|
|
96
101
|
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'source_preset_id')
|
|
104
|
+
self.source_preset_id = attributes[:'source_preset_id']
|
|
105
|
+
end
|
|
97
106
|
end
|
|
98
107
|
|
|
99
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -149,7 +158,8 @@ module ILoveVideoEditor
|
|
|
149
158
|
name == o.name &&
|
|
150
159
|
description == o.description &&
|
|
151
160
|
definition == o.definition &&
|
|
152
|
-
is_active == o.is_active
|
|
161
|
+
is_active == o.is_active &&
|
|
162
|
+
source_preset_id == o.source_preset_id
|
|
153
163
|
end
|
|
154
164
|
|
|
155
165
|
# @see the `==` method
|
|
@@ -161,7 +171,7 @@ module ILoveVideoEditor
|
|
|
161
171
|
# Calculates hash code according to all attributes.
|
|
162
172
|
# @return [Integer] Hash code
|
|
163
173
|
def hash
|
|
164
|
-
[name, description, definition, is_active].hash
|
|
174
|
+
[name, description, definition, is_active, source_preset_id].hash
|
|
165
175
|
end
|
|
166
176
|
|
|
167
177
|
# Builds the object from hash
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#iLoveVideoEditor API
|
|
3
|
+
|
|
4
|
+
#Cloud video rendering API for iLoveVideoEditor. Submit a `VideoJSON` payload, queue a render job, and download the resulting MP4. **Authentication** - **API Key** (`x-api-key` header) — accepted by render pipeline and tool endpoints. - **Bearer Token** (`Authorization: Bearer <jwt>`) — required for user-scoped project, asset, billing, and webhook endpoints. - Many endpoints accept either form of authentication. **SDKs** Official typed SDKs are available for JavaScript/TypeScript, PHP, Python, Ruby, and Go. See https://ilovevideoeditor.com/docs/sdks **Outbound Webhooks** Render lifecycle events (`render.completed`, `render.failed`) are delivered to your endpoints as signed HTTP POST requests. See the `Webhooks` tag and the root-level `x-webhook-docs` extension for the payload format (`RenderWebhookPayload`), signature headers, HMAC verification, and the retry policy.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module ILoveVideoEditor
|
|
17
|
+
class GetWorkflowPreset200Response < ApiModelBase
|
|
18
|
+
attr_accessor :preset
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'preset' => :'preset'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'preset' => :'WorkflowPreset'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ILoveVideoEditor::GetWorkflowPreset200Response` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ILoveVideoEditor::GetWorkflowPreset200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'preset')
|
|
67
|
+
self.preset = attributes[:'preset']
|
|
68
|
+
else
|
|
69
|
+
self.preset = nil
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
74
|
+
# @return Array for valid properties with the reasons
|
|
75
|
+
def list_invalid_properties
|
|
76
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
|
+
invalid_properties = Array.new
|
|
78
|
+
if @preset.nil?
|
|
79
|
+
invalid_properties.push('invalid value for "preset", preset cannot be nil.')
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
invalid_properties
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Check to see if the all the properties in the model are valid
|
|
86
|
+
# @return true if the model is valid
|
|
87
|
+
def valid?
|
|
88
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
|
+
return false if @preset.nil?
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Custom attribute writer method with validation
|
|
94
|
+
# @param [Object] preset Value to be assigned
|
|
95
|
+
def preset=(preset)
|
|
96
|
+
if preset.nil?
|
|
97
|
+
fail ArgumentError, 'preset cannot be nil'
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
@preset = preset
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Checks equality by comparing each attribute.
|
|
104
|
+
# @param [Object] Object to be compared
|
|
105
|
+
def ==(o)
|
|
106
|
+
return true if self.equal?(o)
|
|
107
|
+
self.class == o.class &&
|
|
108
|
+
preset == o.preset
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# @see the `==` method
|
|
112
|
+
# @param [Object] Object to be compared
|
|
113
|
+
def eql?(o)
|
|
114
|
+
self == o
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Calculates hash code according to all attributes.
|
|
118
|
+
# @return [Integer] Hash code
|
|
119
|
+
def hash
|
|
120
|
+
[preset].hash
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Builds the object from hash
|
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
125
|
+
# @return [Object] Returns the model itself
|
|
126
|
+
def self.build_from_hash(attributes)
|
|
127
|
+
return nil unless attributes.is_a?(Hash)
|
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
129
|
+
transformed_hash = {}
|
|
130
|
+
openapi_types.each_pair do |key, type|
|
|
131
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
132
|
+
transformed_hash["#{key}"] = nil
|
|
133
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
134
|
+
# check to ensure the input is an array given that the attribute
|
|
135
|
+
# is documented as an array but the input is not
|
|
136
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
137
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
138
|
+
end
|
|
139
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
140
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
new(transformed_hash)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Returns the object in the form of hash
|
|
147
|
+
# @return [Hash] Returns the object in the form of hash
|
|
148
|
+
def to_hash
|
|
149
|
+
hash = {}
|
|
150
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
151
|
+
value = self.send(attr)
|
|
152
|
+
if value.nil?
|
|
153
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
154
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
hash[param] = _to_hash(value)
|
|
158
|
+
end
|
|
159
|
+
hash
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
end
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#iLoveVideoEditor API
|
|
3
|
+
|
|
4
|
+
#Cloud video rendering API for iLoveVideoEditor. Submit a `VideoJSON` payload, queue a render job, and download the resulting MP4. **Authentication** - **API Key** (`x-api-key` header) — accepted by render pipeline and tool endpoints. - **Bearer Token** (`Authorization: Bearer <jwt>`) — required for user-scoped project, asset, billing, and webhook endpoints. - Many endpoints accept either form of authentication. **SDKs** Official typed SDKs are available for JavaScript/TypeScript, PHP, Python, Ruby, and Go. See https://ilovevideoeditor.com/docs/sdks **Outbound Webhooks** Render lifecycle events (`render.completed`, `render.failed`) are delivered to your endpoints as signed HTTP POST requests. See the `Webhooks` tag and the root-level `x-webhook-docs` extension for the payload format (`RenderWebhookPayload`), signature headers, HMAC verification, and the retry policy.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module ILoveVideoEditor
|
|
17
|
+
class ListWorkflowPresets200Response < ApiModelBase
|
|
18
|
+
attr_accessor :presets
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'presets' => :'presets'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'presets' => :'Array<WorkflowPreset>'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ILoveVideoEditor::ListWorkflowPresets200Response` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ILoveVideoEditor::ListWorkflowPresets200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'presets')
|
|
67
|
+
if (value = attributes[:'presets']).is_a?(Array)
|
|
68
|
+
self.presets = value
|
|
69
|
+
end
|
|
70
|
+
else
|
|
71
|
+
self.presets = nil
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
|
+
# @return Array for valid properties with the reasons
|
|
77
|
+
def list_invalid_properties
|
|
78
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
79
|
+
invalid_properties = Array.new
|
|
80
|
+
if @presets.nil?
|
|
81
|
+
invalid_properties.push('invalid value for "presets", presets cannot be nil.')
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
invalid_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
def valid?
|
|
90
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
91
|
+
return false if @presets.nil?
|
|
92
|
+
true
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Custom attribute writer method with validation
|
|
96
|
+
# @param [Object] presets Value to be assigned
|
|
97
|
+
def presets=(presets)
|
|
98
|
+
if presets.nil?
|
|
99
|
+
fail ArgumentError, 'presets cannot be nil'
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
@presets = presets
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Checks equality by comparing each attribute.
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def ==(o)
|
|
108
|
+
return true if self.equal?(o)
|
|
109
|
+
self.class == o.class &&
|
|
110
|
+
presets == o.presets
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# @see the `==` method
|
|
114
|
+
# @param [Object] Object to be compared
|
|
115
|
+
def eql?(o)
|
|
116
|
+
self == o
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Calculates hash code according to all attributes.
|
|
120
|
+
# @return [Integer] Hash code
|
|
121
|
+
def hash
|
|
122
|
+
[presets].hash
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Builds the object from hash
|
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
127
|
+
# @return [Object] Returns the model itself
|
|
128
|
+
def self.build_from_hash(attributes)
|
|
129
|
+
return nil unless attributes.is_a?(Hash)
|
|
130
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
131
|
+
transformed_hash = {}
|
|
132
|
+
openapi_types.each_pair do |key, type|
|
|
133
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = nil
|
|
135
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
136
|
+
# check to ensure the input is an array given that the attribute
|
|
137
|
+
# is documented as an array but the input is not
|
|
138
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
139
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
140
|
+
end
|
|
141
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
142
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
new(transformed_hash)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Returns the object in the form of hash
|
|
149
|
+
# @return [Hash] Returns the object in the form of hash
|
|
150
|
+
def to_hash
|
|
151
|
+
hash = {}
|
|
152
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
153
|
+
value = self.send(attr)
|
|
154
|
+
if value.nil?
|
|
155
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
156
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
hash[param] = _to_hash(value)
|
|
160
|
+
end
|
|
161
|
+
hash
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
end
|