ilovevideoeditor-sdk 1.0.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 +7 -0
- data/lib/generated/ilovevideoeditor-sdk/api/api_keys_api.rb +204 -0
- data/lib/generated/ilovevideoeditor-sdk/api/assets_api.rb +632 -0
- data/lib/generated/ilovevideoeditor-sdk/api/billing_api.rb +428 -0
- data/lib/generated/ilovevideoeditor-sdk/api/health_api.rb +134 -0
- data/lib/generated/ilovevideoeditor-sdk/api/integrations_api.rb +587 -0
- data/lib/generated/ilovevideoeditor-sdk/api/projects_api.rb +614 -0
- data/lib/generated/ilovevideoeditor-sdk/api/render_api.rb +656 -0
- data/lib/generated/ilovevideoeditor-sdk/api/renditions_api.rb +420 -0
- data/lib/generated/ilovevideoeditor-sdk/api/templates_api.rb +217 -0
- data/lib/generated/ilovevideoeditor-sdk/api/tools_api.rb +220 -0
- data/lib/generated/ilovevideoeditor-sdk/api/webhooks_api.rb +204 -0
- data/lib/generated/ilovevideoeditor-sdk/api/workflows_api.rb +854 -0
- data/lib/generated/ilovevideoeditor-sdk/api_client.rb +397 -0
- data/lib/generated/ilovevideoeditor-sdk/api_error.rb +58 -0
- data/lib/generated/ilovevideoeditor-sdk/api_model_base.rb +88 -0
- data/lib/generated/ilovevideoeditor-sdk/configuration.rb +316 -0
- data/lib/generated/ilovevideoeditor-sdk/models/api_key.rb +246 -0
- data/lib/generated/ilovevideoeditor-sdk/models/api_key_with_secret.rb +191 -0
- data/lib/generated/ilovevideoeditor-sdk/models/asset.rb +404 -0
- data/lib/generated/ilovevideoeditor-sdk/models/asset_create.rb +303 -0
- data/lib/generated/ilovevideoeditor-sdk/models/asset_upload_url_response.rb +295 -0
- data/lib/generated/ilovevideoeditor-sdk/models/batch_delete_projects_request.rb +184 -0
- data/lib/generated/ilovevideoeditor-sdk/models/batch_delete_result.rb +175 -0
- data/lib/generated/ilovevideoeditor-sdk/models/billing_prices.rb +158 -0
- data/lib/generated/ilovevideoeditor-sdk/models/billing_prices_tiers.rb +168 -0
- data/lib/generated/ilovevideoeditor-sdk/models/billing_subscription.rb +254 -0
- data/lib/generated/ilovevideoeditor-sdk/models/cancel_render200_response.rb +225 -0
- data/lib/generated/ilovevideoeditor-sdk/models/create_api_key_request.rb +147 -0
- data/lib/generated/ilovevideoeditor-sdk/models/create_asset201_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/create_checkout_session200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/create_checkout_session_request.rb +220 -0
- data/lib/generated/ilovevideoeditor-sdk/models/create_integration201_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/create_project200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/create_workflow201_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/create_workflow_request.rb +208 -0
- data/lib/generated/ilovevideoeditor-sdk/models/credit_balance.rb +219 -0
- data/lib/generated/ilovevideoeditor-sdk/models/credit_balance_summary.rb +174 -0
- data/lib/generated/ilovevideoeditor-sdk/models/credit_balance_usage.rb +156 -0
- data/lib/generated/ilovevideoeditor-sdk/models/delete_project200_response.rb +190 -0
- data/lib/generated/ilovevideoeditor-sdk/models/destination.rb +331 -0
- data/lib/generated/ilovevideoeditor-sdk/models/destination_input.rb +304 -0
- data/lib/generated/ilovevideoeditor-sdk/models/error.rb +182 -0
- data/lib/generated/ilovevideoeditor-sdk/models/estimate_render_cost_request.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_asset_signed_url200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_asset_upload_url_request.rb +214 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_destination200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_project200_response.rb +173 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_project_stats200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_render_download_url200_response.rb +190 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_rendition200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_subscription200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_template200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_usage200_response.rb +166 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_workflow200_response.rb +175 -0
- data/lib/generated/ilovevideoeditor-sdk/models/get_workflow_run200_response.rb +175 -0
- data/lib/generated/ilovevideoeditor-sdk/models/health_check200_response.rb +147 -0
- data/lib/generated/ilovevideoeditor-sdk/models/health_check_detailed200_response.rb +199 -0
- data/lib/generated/ilovevideoeditor-sdk/models/health_check_detailed200_response_services.rb +156 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_api_keys200_response.rb +166 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_assets200_response.rb +185 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_integrations200_response.rb +166 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_invoices200_response.rb +158 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_projects200_response.rb +185 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_renditions200_response.rb +185 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_templates200_response.rb +166 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_webhook_subscriptions200_response.rb +166 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_workflow_runs200_response.rb +185 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_workflow_step_types200_response.rb +166 -0
- data/lib/generated/ilovevideoeditor-sdk/models/list_workflows200_response.rb +185 -0
- data/lib/generated/ilovevideoeditor-sdk/models/project.rb +329 -0
- data/lib/generated/ilovevideoeditor-sdk/models/project_create.rb +218 -0
- data/lib/generated/ilovevideoeditor-sdk/models/project_update.rb +239 -0
- data/lib/generated/ilovevideoeditor-sdk/models/queue_render200_response.rb +199 -0
- data/lib/generated/ilovevideoeditor-sdk/models/queue_render_request.rb +182 -0
- data/lib/generated/ilovevideoeditor-sdk/models/refresh_render_url200_response.rb +190 -0
- data/lib/generated/ilovevideoeditor-sdk/models/render_cost_estimate.rb +254 -0
- data/lib/generated/ilovevideoeditor-sdk/models/render_cost_estimate_resolution.rb +165 -0
- data/lib/generated/ilovevideoeditor-sdk/models/render_cost_estimate_tier.rb +165 -0
- data/lib/generated/ilovevideoeditor-sdk/models/render_job.rb +271 -0
- data/lib/generated/ilovevideoeditor-sdk/models/render_job_progress.rb +165 -0
- data/lib/generated/ilovevideoeditor-sdk/models/render_list_item.rb +356 -0
- data/lib/generated/ilovevideoeditor-sdk/models/render_template_request.rb +167 -0
- data/lib/generated/ilovevideoeditor-sdk/models/render_webhook_payload.rb +357 -0
- data/lib/generated/ilovevideoeditor-sdk/models/rendition.rb +335 -0
- data/lib/generated/ilovevideoeditor-sdk/models/rendition_cancel_result.rb +236 -0
- data/lib/generated/ilovevideoeditor-sdk/models/rendition_output.rb +233 -0
- data/lib/generated/ilovevideoeditor-sdk/models/rendition_stats.rb +192 -0
- data/lib/generated/ilovevideoeditor-sdk/models/run_workflow202_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/run_workflow_request.rb +149 -0
- data/lib/generated/ilovevideoeditor-sdk/models/service_health.rb +208 -0
- data/lib/generated/ilovevideoeditor-sdk/models/template.rb +324 -0
- data/lib/generated/ilovevideoeditor-sdk/models/template_summary.rb +322 -0
- data/lib/generated/ilovevideoeditor-sdk/models/test_integration200_response.rb +174 -0
- data/lib/generated/ilovevideoeditor-sdk/models/tier_info.rb +214 -0
- data/lib/generated/ilovevideoeditor-sdk/models/tier_info_credits.rb +165 -0
- data/lib/generated/ilovevideoeditor-sdk/models/tool_job_request.rb +242 -0
- data/lib/generated/ilovevideoeditor-sdk/models/tool_job_request_dimensions.rb +208 -0
- data/lib/generated/ilovevideoeditor-sdk/models/tool_job_status.rb +310 -0
- data/lib/generated/ilovevideoeditor-sdk/models/track_render_bandwidth200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/update_workflow_request.rb +174 -0
- data/lib/generated/ilovevideoeditor-sdk/models/upload_asset200_response.rb +164 -0
- data/lib/generated/ilovevideoeditor-sdk/models/usage_log.rb +302 -0
- data/lib/generated/ilovevideoeditor-sdk/models/video_json.rb +243 -0
- data/lib/generated/ilovevideoeditor-sdk/models/video_json_destination.rb +227 -0
- data/lib/generated/ilovevideoeditor-sdk/models/webhook_subscription.rb +283 -0
- data/lib/generated/ilovevideoeditor-sdk/models/webhook_subscription_create.rb +204 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workflow.rb +356 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workflow_definition.rb +262 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workflow_run.rb +372 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workflow_run_step.rb +409 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workflow_step.rb +262 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workflow_variable.rb +242 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workspace_integration.rb +398 -0
- data/lib/generated/ilovevideoeditor-sdk/models/workspace_integration_input.rb +260 -0
- data/lib/generated/ilovevideoeditor-sdk/version.rb +15 -0
- data/lib/generated/ilovevideoeditor-sdk.rb +150 -0
- data/lib/ilovevideoeditor/client.rb +106 -0
- data/lib/ilovevideoeditor-sdk.rb +2 -0
- metadata +181 -0
|
@@ -0,0 +1,310 @@
|
|
|
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 ToolJobStatus < ApiModelBase
|
|
18
|
+
attr_accessor :job_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :status
|
|
21
|
+
|
|
22
|
+
attr_accessor :stage
|
|
23
|
+
|
|
24
|
+
# Whether the job ran on the native ffmpeg worker or the render pipeline.
|
|
25
|
+
attr_accessor :mode
|
|
26
|
+
|
|
27
|
+
# Storage key of the output file when completed.
|
|
28
|
+
attr_accessor :output_key
|
|
29
|
+
|
|
30
|
+
# Direct download URL when completed.
|
|
31
|
+
attr_accessor :url
|
|
32
|
+
|
|
33
|
+
attr_accessor :error
|
|
34
|
+
|
|
35
|
+
attr_accessor :progress
|
|
36
|
+
|
|
37
|
+
# Per-destination outputs when external integrations were used.
|
|
38
|
+
attr_accessor :outputs
|
|
39
|
+
|
|
40
|
+
class EnumAttributeValidator
|
|
41
|
+
attr_reader :datatype
|
|
42
|
+
attr_reader :allowable_values
|
|
43
|
+
|
|
44
|
+
def initialize(datatype, allowable_values)
|
|
45
|
+
@allowable_values = allowable_values.map do |value|
|
|
46
|
+
case datatype.to_s
|
|
47
|
+
when /Integer/i
|
|
48
|
+
value.to_i
|
|
49
|
+
when /Float/i
|
|
50
|
+
value.to_f
|
|
51
|
+
else
|
|
52
|
+
value
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def valid?(value)
|
|
58
|
+
!value || allowable_values.include?(value)
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
63
|
+
def self.attribute_map
|
|
64
|
+
{
|
|
65
|
+
:'job_id' => :'jobId',
|
|
66
|
+
:'status' => :'status',
|
|
67
|
+
:'stage' => :'stage',
|
|
68
|
+
:'mode' => :'mode',
|
|
69
|
+
:'output_key' => :'outputKey',
|
|
70
|
+
:'url' => :'url',
|
|
71
|
+
:'error' => :'error',
|
|
72
|
+
:'progress' => :'progress',
|
|
73
|
+
:'outputs' => :'outputs'
|
|
74
|
+
}
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Returns attribute mapping this model knows about
|
|
78
|
+
def self.acceptable_attribute_map
|
|
79
|
+
attribute_map
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Returns all the JSON keys this model knows about
|
|
83
|
+
def self.acceptable_attributes
|
|
84
|
+
acceptable_attribute_map.values
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Attribute type mapping.
|
|
88
|
+
def self.openapi_types
|
|
89
|
+
{
|
|
90
|
+
:'job_id' => :'String',
|
|
91
|
+
:'status' => :'String',
|
|
92
|
+
:'stage' => :'String',
|
|
93
|
+
:'mode' => :'String',
|
|
94
|
+
:'output_key' => :'String',
|
|
95
|
+
:'url' => :'String',
|
|
96
|
+
:'error' => :'String',
|
|
97
|
+
:'progress' => :'RenderJobProgress',
|
|
98
|
+
:'outputs' => :'Array<RenditionOutput>'
|
|
99
|
+
}
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# List of attributes with nullable: true
|
|
103
|
+
def self.openapi_nullable
|
|
104
|
+
Set.new([
|
|
105
|
+
])
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Initializes the object
|
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
110
|
+
def initialize(attributes = {})
|
|
111
|
+
if (!attributes.is_a?(Hash))
|
|
112
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ILoveVideoEditor::ToolJobStatus` initialize method"
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
116
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
117
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
118
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
119
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ILoveVideoEditor::ToolJobStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
120
|
+
end
|
|
121
|
+
h[k.to_sym] = v
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'job_id')
|
|
125
|
+
self.job_id = attributes[:'job_id']
|
|
126
|
+
else
|
|
127
|
+
self.job_id = nil
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'status')
|
|
131
|
+
self.status = attributes[:'status']
|
|
132
|
+
else
|
|
133
|
+
self.status = nil
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'stage')
|
|
137
|
+
self.stage = attributes[:'stage']
|
|
138
|
+
else
|
|
139
|
+
self.stage = nil
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'mode')
|
|
143
|
+
self.mode = attributes[:'mode']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'output_key')
|
|
147
|
+
self.output_key = attributes[:'output_key']
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.key?(:'url')
|
|
151
|
+
self.url = attributes[:'url']
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'error')
|
|
155
|
+
self.error = attributes[:'error']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.key?(:'progress')
|
|
159
|
+
self.progress = attributes[:'progress']
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'outputs')
|
|
163
|
+
if (value = attributes[:'outputs']).is_a?(Array)
|
|
164
|
+
self.outputs = value
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
170
|
+
# @return Array for valid properties with the reasons
|
|
171
|
+
def list_invalid_properties
|
|
172
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
173
|
+
invalid_properties = Array.new
|
|
174
|
+
if @job_id.nil?
|
|
175
|
+
invalid_properties.push('invalid value for "job_id", job_id cannot be nil.')
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if @status.nil?
|
|
179
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if @stage.nil?
|
|
183
|
+
invalid_properties.push('invalid value for "stage", stage cannot be nil.')
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
invalid_properties
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Check to see if the all the properties in the model are valid
|
|
190
|
+
# @return true if the model is valid
|
|
191
|
+
def valid?
|
|
192
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
193
|
+
return false if @job_id.nil?
|
|
194
|
+
return false if @status.nil?
|
|
195
|
+
return false if @stage.nil?
|
|
196
|
+
mode_validator = EnumAttributeValidator.new('String', ["native", "render", "unknown"])
|
|
197
|
+
return false unless mode_validator.valid?(@mode)
|
|
198
|
+
true
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Custom attribute writer method with validation
|
|
202
|
+
# @param [Object] job_id Value to be assigned
|
|
203
|
+
def job_id=(job_id)
|
|
204
|
+
if job_id.nil?
|
|
205
|
+
fail ArgumentError, 'job_id cannot be nil'
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
@job_id = job_id
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Custom attribute writer method with validation
|
|
212
|
+
# @param [Object] status Value to be assigned
|
|
213
|
+
def status=(status)
|
|
214
|
+
if status.nil?
|
|
215
|
+
fail ArgumentError, 'status cannot be nil'
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
@status = status
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Custom attribute writer method with validation
|
|
222
|
+
# @param [Object] stage Value to be assigned
|
|
223
|
+
def stage=(stage)
|
|
224
|
+
if stage.nil?
|
|
225
|
+
fail ArgumentError, 'stage cannot be nil'
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
@stage = stage
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
232
|
+
# @param [Object] mode Object to be assigned
|
|
233
|
+
def mode=(mode)
|
|
234
|
+
validator = EnumAttributeValidator.new('String', ["native", "render", "unknown"])
|
|
235
|
+
unless validator.valid?(mode)
|
|
236
|
+
fail ArgumentError, "invalid value for \"mode\", must be one of #{validator.allowable_values}."
|
|
237
|
+
end
|
|
238
|
+
@mode = mode
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Checks equality by comparing each attribute.
|
|
242
|
+
# @param [Object] Object to be compared
|
|
243
|
+
def ==(o)
|
|
244
|
+
return true if self.equal?(o)
|
|
245
|
+
self.class == o.class &&
|
|
246
|
+
job_id == o.job_id &&
|
|
247
|
+
status == o.status &&
|
|
248
|
+
stage == o.stage &&
|
|
249
|
+
mode == o.mode &&
|
|
250
|
+
output_key == o.output_key &&
|
|
251
|
+
url == o.url &&
|
|
252
|
+
error == o.error &&
|
|
253
|
+
progress == o.progress &&
|
|
254
|
+
outputs == o.outputs
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# @see the `==` method
|
|
258
|
+
# @param [Object] Object to be compared
|
|
259
|
+
def eql?(o)
|
|
260
|
+
self == o
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Calculates hash code according to all attributes.
|
|
264
|
+
# @return [Integer] Hash code
|
|
265
|
+
def hash
|
|
266
|
+
[job_id, status, stage, mode, output_key, url, error, progress, outputs].hash
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Builds the object from hash
|
|
270
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
271
|
+
# @return [Object] Returns the model itself
|
|
272
|
+
def self.build_from_hash(attributes)
|
|
273
|
+
return nil unless attributes.is_a?(Hash)
|
|
274
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
275
|
+
transformed_hash = {}
|
|
276
|
+
openapi_types.each_pair do |key, type|
|
|
277
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
278
|
+
transformed_hash["#{key}"] = nil
|
|
279
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
280
|
+
# check to ensure the input is an array given that the attribute
|
|
281
|
+
# is documented as an array but the input is not
|
|
282
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
283
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
284
|
+
end
|
|
285
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
286
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
new(transformed_hash)
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# Returns the object in the form of hash
|
|
293
|
+
# @return [Hash] Returns the object in the form of hash
|
|
294
|
+
def to_hash
|
|
295
|
+
hash = {}
|
|
296
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
297
|
+
value = self.send(attr)
|
|
298
|
+
if value.nil?
|
|
299
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
300
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
hash[param] = _to_hash(value)
|
|
304
|
+
end
|
|
305
|
+
hash
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
end
|
|
@@ -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 TrackRenderBandwidth200Response < ApiModelBase
|
|
18
|
+
attr_accessor :tracked
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'tracked' => :'tracked'
|
|
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
|
+
:'tracked' => :'Boolean'
|
|
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::TrackRenderBandwidth200Response` 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::TrackRenderBandwidth200Response`. 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?(:'tracked')
|
|
67
|
+
self.tracked = attributes[:'tracked']
|
|
68
|
+
else
|
|
69
|
+
self.tracked = 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 @tracked.nil?
|
|
79
|
+
invalid_properties.push('invalid value for "tracked", tracked 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 @tracked.nil?
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Custom attribute writer method with validation
|
|
94
|
+
# @param [Object] tracked Value to be assigned
|
|
95
|
+
def tracked=(tracked)
|
|
96
|
+
if tracked.nil?
|
|
97
|
+
fail ArgumentError, 'tracked cannot be nil'
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
@tracked = tracked
|
|
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
|
+
tracked == o.tracked
|
|
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
|
+
[tracked].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,174 @@
|
|
|
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 UpdateWorkflowRequest < ApiModelBase
|
|
18
|
+
attr_accessor :name
|
|
19
|
+
|
|
20
|
+
attr_accessor :description
|
|
21
|
+
|
|
22
|
+
attr_accessor :definition
|
|
23
|
+
|
|
24
|
+
attr_accessor :is_active
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'name' => :'name',
|
|
30
|
+
:'description' => :'description',
|
|
31
|
+
:'definition' => :'definition',
|
|
32
|
+
:'is_active' => :'isActive'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
acceptable_attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'name' => :'String',
|
|
50
|
+
:'description' => :'String',
|
|
51
|
+
:'definition' => :'WorkflowDefinition',
|
|
52
|
+
:'is_active' => :'Boolean'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ILoveVideoEditor::UpdateWorkflowRequest` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ILoveVideoEditor::UpdateWorkflowRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
|
+
end
|
|
75
|
+
h[k.to_sym] = v
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'name')
|
|
79
|
+
self.name = attributes[:'name']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'description')
|
|
83
|
+
self.description = attributes[:'description']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'definition')
|
|
87
|
+
self.definition = attributes[:'definition']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'is_active')
|
|
91
|
+
self.is_active = attributes[:'is_active']
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
96
|
+
# @return Array for valid properties with the reasons
|
|
97
|
+
def list_invalid_properties
|
|
98
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
invalid_properties
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Check to see if the all the properties in the model are valid
|
|
104
|
+
# @return true if the model is valid
|
|
105
|
+
def valid?
|
|
106
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
107
|
+
true
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Checks equality by comparing each attribute.
|
|
111
|
+
# @param [Object] Object to be compared
|
|
112
|
+
def ==(o)
|
|
113
|
+
return true if self.equal?(o)
|
|
114
|
+
self.class == o.class &&
|
|
115
|
+
name == o.name &&
|
|
116
|
+
description == o.description &&
|
|
117
|
+
definition == o.definition &&
|
|
118
|
+
is_active == o.is_active
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# @see the `==` method
|
|
122
|
+
# @param [Object] Object to be compared
|
|
123
|
+
def eql?(o)
|
|
124
|
+
self == o
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Calculates hash code according to all attributes.
|
|
128
|
+
# @return [Integer] Hash code
|
|
129
|
+
def hash
|
|
130
|
+
[name, description, definition, is_active].hash
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Builds the object from hash
|
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
135
|
+
# @return [Object] Returns the model itself
|
|
136
|
+
def self.build_from_hash(attributes)
|
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
|
138
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
139
|
+
transformed_hash = {}
|
|
140
|
+
openapi_types.each_pair do |key, type|
|
|
141
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
142
|
+
transformed_hash["#{key}"] = nil
|
|
143
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
144
|
+
# check to ensure the input is an array given that the attribute
|
|
145
|
+
# is documented as an array but the input is not
|
|
146
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
147
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
148
|
+
end
|
|
149
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
150
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
new(transformed_hash)
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Returns the object in the form of hash
|
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
|
158
|
+
def to_hash
|
|
159
|
+
hash = {}
|
|
160
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
161
|
+
value = self.send(attr)
|
|
162
|
+
if value.nil?
|
|
163
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
164
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
hash[param] = _to_hash(value)
|
|
168
|
+
end
|
|
169
|
+
hash
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
end
|