telestream_cloud_flip 2.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/Gemfile +7 -0
- data/README.md +130 -0
- data/Rakefile +8 -0
- data/docs/CanceledResponse.md +8 -0
- data/docs/CloudNotificationSettings.md +11 -0
- data/docs/CloudNotificationSettingsEvents.md +11 -0
- data/docs/CopyProfileBody.md +9 -0
- data/docs/CountResponse.md +8 -0
- data/docs/CreateEncodingBody.md +10 -0
- data/docs/CreateVideoBody.md +12 -0
- data/docs/DeletedResponse.md +8 -0
- data/docs/Encoding.md +38 -0
- data/docs/EncodingSignedUrl.md +8 -0
- data/docs/EncodingSignedUrls.md +8 -0
- data/docs/Error.md +9 -0
- data/docs/ExtraFile.md +10 -0
- data/docs/Factory.md +25 -0
- data/docs/FactoryBody.md +23 -0
- data/docs/FactoryBodyStorageCredentialAttributes.md +11 -0
- data/docs/FactorySync.md +8 -0
- data/docs/FactorySyncBody.md +8 -0
- data/docs/FlipApi.md +2179 -0
- data/docs/PaginatedEncodingsCollection.md +11 -0
- data/docs/PaginatedFactoryCollection.md +11 -0
- data/docs/PaginatedProfilesCollection.md +11 -0
- data/docs/PaginatedVideoCollection.md +11 -0
- data/docs/PaginatedWorkflowsCollection.md +11 -0
- data/docs/Profile.md +135 -0
- data/docs/ProfileBody.md +137 -0
- data/docs/ResubmitVideoBody.md +8 -0
- data/docs/RetriedResponse.md +8 -0
- data/docs/SignedVideoUrl.md +8 -0
- data/docs/UpdateEncodingBody.md +9 -0
- data/docs/UploadSession.md +13 -0
- data/docs/Video.md +31 -0
- data/docs/VideoMetadata.md +7 -0
- data/docs/VideoUploadBody.md +24 -0
- data/git_push.sh +55 -0
- data/lib/telestream_cloud_flip/api/flip_api.rb +2385 -0
- data/lib/telestream_cloud_flip/api_client.rb +389 -0
- data/lib/telestream_cloud_flip/api_error.rb +38 -0
- data/lib/telestream_cloud_flip/configuration.rb +209 -0
- data/lib/telestream_cloud_flip/models/canceled_response.rb +189 -0
- data/lib/telestream_cloud_flip/models/cloud_notification_settings.rb +237 -0
- data/lib/telestream_cloud_flip/models/cloud_notification_settings_events.rb +239 -0
- data/lib/telestream_cloud_flip/models/copy_profile_body.rb +209 -0
- data/lib/telestream_cloud_flip/models/count_response.rb +189 -0
- data/lib/telestream_cloud_flip/models/create_encoding_body.rb +214 -0
- data/lib/telestream_cloud_flip/models/create_video_body.rb +231 -0
- data/lib/telestream_cloud_flip/models/deleted_response.rb +189 -0
- data/lib/telestream_cloud_flip/models/encoding.rb +486 -0
- data/lib/telestream_cloud_flip/models/encoding_signed_url.rb +189 -0
- data/lib/telestream_cloud_flip/models/encoding_signed_urls.rb +191 -0
- data/lib/telestream_cloud_flip/models/error.rb +199 -0
- data/lib/telestream_cloud_flip/models/extra_file.rb +221 -0
- data/lib/telestream_cloud_flip/models/factory.rb +388 -0
- data/lib/telestream_cloud_flip/models/factory_body.rb +374 -0
- data/lib/telestream_cloud_flip/models/factory_body_storage_credential_attributes.rb +215 -0
- data/lib/telestream_cloud_flip/models/factory_sync.rb +222 -0
- data/lib/telestream_cloud_flip/models/factory_sync_body.rb +227 -0
- data/lib/telestream_cloud_flip/models/paginated_encodings_collection.rb +240 -0
- data/lib/telestream_cloud_flip/models/paginated_factory_collection.rb +220 -0
- data/lib/telestream_cloud_flip/models/paginated_profiles_collection.rb +220 -0
- data/lib/telestream_cloud_flip/models/paginated_video_collection.rb +220 -0
- data/lib/telestream_cloud_flip/models/paginated_workflows_collection.rb +220 -0
- data/lib/telestream_cloud_flip/models/profile.rb +1777 -0
- data/lib/telestream_cloud_flip/models/profile_body.rb +1762 -0
- data/lib/telestream_cloud_flip/models/resubmit_video_body.rb +189 -0
- data/lib/telestream_cloud_flip/models/retried_response.rb +189 -0
- data/lib/telestream_cloud_flip/models/signed_video_url.rb +189 -0
- data/lib/telestream_cloud_flip/models/update_encoding_body.rb +199 -0
- data/lib/telestream_cloud_flip/models/upload_session.rb +249 -0
- data/lib/telestream_cloud_flip/models/video.rb +418 -0
- data/lib/telestream_cloud_flip/models/video_metadata.rb +179 -0
- data/lib/telestream_cloud_flip/models/video_upload_body.rb +362 -0
- data/lib/telestream_cloud_flip/uploader.rb +244 -0
- data/lib/telestream_cloud_flip/version.rb +18 -0
- data/lib/telestream_cloud_flip.rb +79 -0
- data/spec/api/flip_api_spec.rb +550 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/canceled_response_spec.rb +42 -0
- data/spec/models/cloud_notification_settings_events_spec.rb +60 -0
- data/spec/models/cloud_notification_settings_spec.rb +60 -0
- data/spec/models/copy_profile_body_spec.rb +48 -0
- data/spec/models/count_response_spec.rb +42 -0
- data/spec/models/create_encoding_body_spec.rb +54 -0
- data/spec/models/create_video_body_spec.rb +66 -0
- data/spec/models/deleted_response_spec.rb +42 -0
- data/spec/models/encoding_signed_url_spec.rb +42 -0
- data/spec/models/encoding_signed_urls_spec.rb +42 -0
- data/spec/models/encoding_spec.rb +222 -0
- data/spec/models/error_spec.rb +48 -0
- data/spec/models/extra_file_spec.rb +54 -0
- data/spec/models/factory_body_spec.rb +136 -0
- data/spec/models/factory_body_storage_credential_attributes_spec.rb +60 -0
- data/spec/models/factory_spec.rb +148 -0
- data/spec/models/factory_sync_body_spec.rb +46 -0
- data/spec/models/factory_sync_spec.rb +46 -0
- data/spec/models/paginated_encodings_collection_spec.rb +60 -0
- data/spec/models/paginated_factory_collection_spec.rb +60 -0
- data/spec/models/paginated_profiles_collection_spec.rb +60 -0
- data/spec/models/paginated_video_collection_spec.rb +60 -0
- data/spec/models/paginated_workflows_collection_spec.rb +60 -0
- data/spec/models/profile_body_spec.rb +916 -0
- data/spec/models/profile_spec.rb +916 -0
- data/spec/models/resubmit_video_body_spec.rb +42 -0
- data/spec/models/retried_response_spec.rb +42 -0
- data/spec/models/signed_video_url_spec.rb +42 -0
- data/spec/models/update_encoding_body_spec.rb +48 -0
- data/spec/models/upload_session_spec.rb +72 -0
- data/spec/models/video_metadata_spec.rb +36 -0
- data/spec/models/video_spec.rb +180 -0
- data/spec/models/video_upload_body_spec.rb +138 -0
- data/spec/spec_helper.rb +111 -0
- data/telestream_cloud_flip.gemspec +47 -0
- metadata +396 -0
@@ -0,0 +1,2385 @@
|
|
1
|
+
=begin
|
2
|
+
#Flip API
|
3
|
+
|
4
|
+
#Description
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.1.0
|
7
|
+
Contact: cloudsupport@telestream.net
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module TelestreamCloud::Flip
|
16
|
+
class FlipApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Cancels an Encoding.
|
24
|
+
#
|
25
|
+
# @param id Id of an Encoding.
|
26
|
+
# @param factory_id Id of a Factory.
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [CanceledResponse]
|
29
|
+
def cancel_encoding(id, factory_id, opts = {})
|
30
|
+
data, _status_code, _headers = cancel_encoding_with_http_info(id, factory_id, opts)
|
31
|
+
return data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Cancels an Encoding.
|
35
|
+
#
|
36
|
+
# @param id Id of an Encoding.
|
37
|
+
# @param factory_id Id of a Factory.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(CanceledResponse, Fixnum, Hash)>] CanceledResponse data, response status code and response headers
|
40
|
+
def cancel_encoding_with_http_info(id, factory_id, opts = {})
|
41
|
+
if @api_client.config.debugging
|
42
|
+
@api_client.config.logger.debug "Calling API: FlipApi.cancel_encoding ..."
|
43
|
+
end
|
44
|
+
# verify the required parameter 'id' is set
|
45
|
+
if @api_client.config.client_side_validation && id.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.cancel_encoding"
|
47
|
+
end
|
48
|
+
# verify the required parameter 'factory_id' is set
|
49
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.cancel_encoding"
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = "/encodings/{id}/cancel.json".sub('{' + 'id' + '}', id.to_s)
|
54
|
+
|
55
|
+
# query parameters
|
56
|
+
query_params = {}
|
57
|
+
query_params[:'factory_id'] = factory_id
|
58
|
+
|
59
|
+
# header parameters
|
60
|
+
header_params = {}
|
61
|
+
# HTTP header 'Accept' (if needed)
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
63
|
+
# HTTP header 'Content-Type'
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = nil
|
71
|
+
auth_names = ['api_key']
|
72
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => 'CanceledResponse')
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: FlipApi#cancel_encoding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
|
85
|
+
# Copies a given Profile
|
86
|
+
#
|
87
|
+
# @param id Id of a Profile.
|
88
|
+
# @param factory_id Id of a Factory.
|
89
|
+
# @param copy_profile_body
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [BOOLEAN] :expand If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
|
92
|
+
# @return [Profile]
|
93
|
+
def copy_profile(id, factory_id, copy_profile_body, opts = {})
|
94
|
+
data, _status_code, _headers = copy_profile_with_http_info(id, factory_id, copy_profile_body, opts)
|
95
|
+
return data
|
96
|
+
end
|
97
|
+
|
98
|
+
# Copies a given Profile
|
99
|
+
#
|
100
|
+
# @param id Id of a Profile.
|
101
|
+
# @param factory_id Id of a Factory.
|
102
|
+
# @param copy_profile_body
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @option opts [BOOLEAN] :expand If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
|
105
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
106
|
+
def copy_profile_with_http_info(id, factory_id, copy_profile_body, opts = {})
|
107
|
+
if @api_client.config.debugging
|
108
|
+
@api_client.config.logger.debug "Calling API: FlipApi.copy_profile ..."
|
109
|
+
end
|
110
|
+
# verify the required parameter 'id' is set
|
111
|
+
if @api_client.config.client_side_validation && id.nil?
|
112
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.copy_profile"
|
113
|
+
end
|
114
|
+
# verify the required parameter 'factory_id' is set
|
115
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
116
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.copy_profile"
|
117
|
+
end
|
118
|
+
# verify the required parameter 'copy_profile_body' is set
|
119
|
+
if @api_client.config.client_side_validation && copy_profile_body.nil?
|
120
|
+
fail ArgumentError, "Missing the required parameter 'copy_profile_body' when calling FlipApi.copy_profile"
|
121
|
+
end
|
122
|
+
# resource path
|
123
|
+
local_var_path = "/profiles/{id}/copy.json".sub('{' + 'id' + '}', id.to_s)
|
124
|
+
|
125
|
+
# query parameters
|
126
|
+
query_params = {}
|
127
|
+
query_params[:'factory_id'] = factory_id
|
128
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
129
|
+
|
130
|
+
# header parameters
|
131
|
+
header_params = {}
|
132
|
+
# HTTP header 'Accept' (if needed)
|
133
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
134
|
+
# HTTP header 'Content-Type'
|
135
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
136
|
+
|
137
|
+
# form parameters
|
138
|
+
form_params = {}
|
139
|
+
|
140
|
+
# http body (model)
|
141
|
+
post_body = @api_client.object_to_http_body(copy_profile_body)
|
142
|
+
auth_names = ['api_key']
|
143
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
144
|
+
:header_params => header_params,
|
145
|
+
:query_params => query_params,
|
146
|
+
:form_params => form_params,
|
147
|
+
:body => post_body,
|
148
|
+
:auth_names => auth_names,
|
149
|
+
:return_type => 'Profile')
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug "API called: FlipApi#copy_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
|
+
end
|
153
|
+
return data, status_code, headers
|
154
|
+
end
|
155
|
+
|
156
|
+
# Creates an Encoding
|
157
|
+
#
|
158
|
+
# @param factory_id Id of a Factory.
|
159
|
+
# @param create_encoding_body
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @option opts [BOOLEAN] :screenshots Determines whether the response will include screenshots. By default this is not set.
|
162
|
+
# @option opts [BOOLEAN] :precise_status Determines whether the response will include a precise status. By default this is not set.
|
163
|
+
# @return [Encoding]
|
164
|
+
def create_encoding(factory_id, create_encoding_body, opts = {})
|
165
|
+
data, _status_code, _headers = create_encoding_with_http_info(factory_id, create_encoding_body, opts)
|
166
|
+
return data
|
167
|
+
end
|
168
|
+
|
169
|
+
# Creates an Encoding
|
170
|
+
#
|
171
|
+
# @param factory_id Id of a Factory.
|
172
|
+
# @param create_encoding_body
|
173
|
+
# @param [Hash] opts the optional parameters
|
174
|
+
# @option opts [BOOLEAN] :screenshots Determines whether the response will include screenshots. By default this is not set.
|
175
|
+
# @option opts [BOOLEAN] :precise_status Determines whether the response will include a precise status. By default this is not set.
|
176
|
+
# @return [Array<(Encoding, Fixnum, Hash)>] Encoding data, response status code and response headers
|
177
|
+
def create_encoding_with_http_info(factory_id, create_encoding_body, opts = {})
|
178
|
+
if @api_client.config.debugging
|
179
|
+
@api_client.config.logger.debug "Calling API: FlipApi.create_encoding ..."
|
180
|
+
end
|
181
|
+
# verify the required parameter 'factory_id' is set
|
182
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
183
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.create_encoding"
|
184
|
+
end
|
185
|
+
# verify the required parameter 'create_encoding_body' is set
|
186
|
+
if @api_client.config.client_side_validation && create_encoding_body.nil?
|
187
|
+
fail ArgumentError, "Missing the required parameter 'create_encoding_body' when calling FlipApi.create_encoding"
|
188
|
+
end
|
189
|
+
# resource path
|
190
|
+
local_var_path = "/encodings.json"
|
191
|
+
|
192
|
+
# query parameters
|
193
|
+
query_params = {}
|
194
|
+
query_params[:'factory_id'] = factory_id
|
195
|
+
query_params[:'screenshots'] = opts[:'screenshots'] if !opts[:'screenshots'].nil?
|
196
|
+
query_params[:'precise_status'] = opts[:'precise_status'] if !opts[:'precise_status'].nil?
|
197
|
+
|
198
|
+
# header parameters
|
199
|
+
header_params = {}
|
200
|
+
# HTTP header 'Accept' (if needed)
|
201
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
202
|
+
# HTTP header 'Content-Type'
|
203
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
204
|
+
|
205
|
+
# form parameters
|
206
|
+
form_params = {}
|
207
|
+
|
208
|
+
# http body (model)
|
209
|
+
post_body = @api_client.object_to_http_body(create_encoding_body)
|
210
|
+
auth_names = ['api_key']
|
211
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
212
|
+
:header_params => header_params,
|
213
|
+
:query_params => query_params,
|
214
|
+
:form_params => form_params,
|
215
|
+
:body => post_body,
|
216
|
+
:auth_names => auth_names,
|
217
|
+
:return_type => 'Encoding')
|
218
|
+
if @api_client.config.debugging
|
219
|
+
@api_client.config.logger.debug "API called: FlipApi#create_encoding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
220
|
+
end
|
221
|
+
return data, status_code, headers
|
222
|
+
end
|
223
|
+
|
224
|
+
# Creates a new factory
|
225
|
+
#
|
226
|
+
# @param create_factory_body
|
227
|
+
# @param [Hash] opts the optional parameters
|
228
|
+
# @option opts [BOOLEAN] :with_storage_provider if set to `true`, results will include a storage provider's id
|
229
|
+
# @return [Factory]
|
230
|
+
def create_factory(create_factory_body, opts = {})
|
231
|
+
data, _status_code, _headers = create_factory_with_http_info(create_factory_body, opts)
|
232
|
+
return data
|
233
|
+
end
|
234
|
+
|
235
|
+
# Creates a new factory
|
236
|
+
#
|
237
|
+
# @param create_factory_body
|
238
|
+
# @param [Hash] opts the optional parameters
|
239
|
+
# @option opts [BOOLEAN] :with_storage_provider if set to `true`, results will include a storage provider's id
|
240
|
+
# @return [Array<(Factory, Fixnum, Hash)>] Factory data, response status code and response headers
|
241
|
+
def create_factory_with_http_info(create_factory_body, opts = {})
|
242
|
+
if @api_client.config.debugging
|
243
|
+
@api_client.config.logger.debug "Calling API: FlipApi.create_factory ..."
|
244
|
+
end
|
245
|
+
# verify the required parameter 'create_factory_body' is set
|
246
|
+
if @api_client.config.client_side_validation && create_factory_body.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'create_factory_body' when calling FlipApi.create_factory"
|
248
|
+
end
|
249
|
+
# resource path
|
250
|
+
local_var_path = "/factories.json"
|
251
|
+
|
252
|
+
# query parameters
|
253
|
+
query_params = {}
|
254
|
+
query_params[:'with_storage_provider'] = opts[:'with_storage_provider'] if !opts[:'with_storage_provider'].nil?
|
255
|
+
|
256
|
+
# header parameters
|
257
|
+
header_params = {}
|
258
|
+
# HTTP header 'Accept' (if needed)
|
259
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
260
|
+
# HTTP header 'Content-Type'
|
261
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
262
|
+
|
263
|
+
# form parameters
|
264
|
+
form_params = {}
|
265
|
+
|
266
|
+
# http body (model)
|
267
|
+
post_body = @api_client.object_to_http_body(create_factory_body)
|
268
|
+
auth_names = ['api_key']
|
269
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
270
|
+
:header_params => header_params,
|
271
|
+
:query_params => query_params,
|
272
|
+
:form_params => form_params,
|
273
|
+
:body => post_body,
|
274
|
+
:auth_names => auth_names,
|
275
|
+
:return_type => 'Factory')
|
276
|
+
if @api_client.config.debugging
|
277
|
+
@api_client.config.logger.debug "API called: FlipApi#create_factory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
278
|
+
end
|
279
|
+
return data, status_code, headers
|
280
|
+
end
|
281
|
+
|
282
|
+
# Creates a Profile
|
283
|
+
#
|
284
|
+
# @param factory_id Id of a Factory.
|
285
|
+
# @param create_profile_body
|
286
|
+
# @param [Hash] opts the optional parameters
|
287
|
+
# @option opts [BOOLEAN] :exclude_advanced_services
|
288
|
+
# @option opts [BOOLEAN] :expand If expand option is set Profile objects will contain all command parameters, even if their value is default. By default it is not set.
|
289
|
+
# @return [Profile]
|
290
|
+
def create_profile(factory_id, create_profile_body, opts = {})
|
291
|
+
data, _status_code, _headers = create_profile_with_http_info(factory_id, create_profile_body, opts)
|
292
|
+
return data
|
293
|
+
end
|
294
|
+
|
295
|
+
# Creates a Profile
|
296
|
+
#
|
297
|
+
# @param factory_id Id of a Factory.
|
298
|
+
# @param create_profile_body
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @option opts [BOOLEAN] :exclude_advanced_services
|
301
|
+
# @option opts [BOOLEAN] :expand If expand option is set Profile objects will contain all command parameters, even if their value is default. By default it is not set.
|
302
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
303
|
+
def create_profile_with_http_info(factory_id, create_profile_body, opts = {})
|
304
|
+
if @api_client.config.debugging
|
305
|
+
@api_client.config.logger.debug "Calling API: FlipApi.create_profile ..."
|
306
|
+
end
|
307
|
+
# verify the required parameter 'factory_id' is set
|
308
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
309
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.create_profile"
|
310
|
+
end
|
311
|
+
# verify the required parameter 'create_profile_body' is set
|
312
|
+
if @api_client.config.client_side_validation && create_profile_body.nil?
|
313
|
+
fail ArgumentError, "Missing the required parameter 'create_profile_body' when calling FlipApi.create_profile"
|
314
|
+
end
|
315
|
+
# resource path
|
316
|
+
local_var_path = "/profiles.json"
|
317
|
+
|
318
|
+
# query parameters
|
319
|
+
query_params = {}
|
320
|
+
query_params[:'factory_id'] = factory_id
|
321
|
+
query_params[:'exclude_advanced_services'] = opts[:'exclude_advanced_services'] if !opts[:'exclude_advanced_services'].nil?
|
322
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
323
|
+
|
324
|
+
# header parameters
|
325
|
+
header_params = {}
|
326
|
+
# HTTP header 'Accept' (if needed)
|
327
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
328
|
+
# HTTP header 'Content-Type'
|
329
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
330
|
+
|
331
|
+
# form parameters
|
332
|
+
form_params = {}
|
333
|
+
|
334
|
+
# http body (model)
|
335
|
+
post_body = @api_client.object_to_http_body(create_profile_body)
|
336
|
+
auth_names = ['api_key']
|
337
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
338
|
+
:header_params => header_params,
|
339
|
+
:query_params => query_params,
|
340
|
+
:form_params => form_params,
|
341
|
+
:body => post_body,
|
342
|
+
:auth_names => auth_names,
|
343
|
+
:return_type => 'Profile')
|
344
|
+
if @api_client.config.debugging
|
345
|
+
@api_client.config.logger.debug "API called: FlipApi#create_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
346
|
+
end
|
347
|
+
return data, status_code, headers
|
348
|
+
end
|
349
|
+
|
350
|
+
# Creates a Video from a provided source_url.
|
351
|
+
#
|
352
|
+
# @param factory_id Id of a Factory.
|
353
|
+
# @param create_video_body
|
354
|
+
# @param [Hash] opts the optional parameters
|
355
|
+
# @return [Video]
|
356
|
+
def create_video(factory_id, create_video_body, opts = {})
|
357
|
+
data, _status_code, _headers = create_video_with_http_info(factory_id, create_video_body, opts)
|
358
|
+
return data
|
359
|
+
end
|
360
|
+
|
361
|
+
# Creates a Video from a provided source_url.
|
362
|
+
#
|
363
|
+
# @param factory_id Id of a Factory.
|
364
|
+
# @param create_video_body
|
365
|
+
# @param [Hash] opts the optional parameters
|
366
|
+
# @return [Array<(Video, Fixnum, Hash)>] Video data, response status code and response headers
|
367
|
+
def create_video_with_http_info(factory_id, create_video_body, opts = {})
|
368
|
+
if @api_client.config.debugging
|
369
|
+
@api_client.config.logger.debug "Calling API: FlipApi.create_video ..."
|
370
|
+
end
|
371
|
+
# verify the required parameter 'factory_id' is set
|
372
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
373
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.create_video"
|
374
|
+
end
|
375
|
+
# verify the required parameter 'create_video_body' is set
|
376
|
+
if @api_client.config.client_side_validation && create_video_body.nil?
|
377
|
+
fail ArgumentError, "Missing the required parameter 'create_video_body' when calling FlipApi.create_video"
|
378
|
+
end
|
379
|
+
# resource path
|
380
|
+
local_var_path = "/videos.json"
|
381
|
+
|
382
|
+
# query parameters
|
383
|
+
query_params = {}
|
384
|
+
query_params[:'factory_id'] = factory_id
|
385
|
+
|
386
|
+
# header parameters
|
387
|
+
header_params = {}
|
388
|
+
# HTTP header 'Accept' (if needed)
|
389
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
390
|
+
# HTTP header 'Content-Type'
|
391
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
392
|
+
|
393
|
+
# form parameters
|
394
|
+
form_params = {}
|
395
|
+
|
396
|
+
# http body (model)
|
397
|
+
post_body = @api_client.object_to_http_body(create_video_body)
|
398
|
+
auth_names = ['api_key']
|
399
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
400
|
+
:header_params => header_params,
|
401
|
+
:query_params => query_params,
|
402
|
+
:form_params => form_params,
|
403
|
+
:body => post_body,
|
404
|
+
:auth_names => auth_names,
|
405
|
+
:return_type => 'Video')
|
406
|
+
if @api_client.config.debugging
|
407
|
+
@api_client.config.logger.debug "API called: FlipApi#create_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
408
|
+
end
|
409
|
+
return data, status_code, headers
|
410
|
+
end
|
411
|
+
|
412
|
+
# Creates a Workorder.
|
413
|
+
#
|
414
|
+
# @param factory_id Id of a Factory.
|
415
|
+
# @param [Hash] opts the optional parameters
|
416
|
+
# @option opts [String] :profile_id Id of a Profile.
|
417
|
+
# @option opts [File] :file Input file.
|
418
|
+
# @option opts [String] :source_url URL pointing to an input file.
|
419
|
+
# @return [nil]
|
420
|
+
def create_workorder(factory_id, opts = {})
|
421
|
+
create_workorder_with_http_info(factory_id, opts)
|
422
|
+
return nil
|
423
|
+
end
|
424
|
+
|
425
|
+
# Creates a Workorder.
|
426
|
+
#
|
427
|
+
# @param factory_id Id of a Factory.
|
428
|
+
# @param [Hash] opts the optional parameters
|
429
|
+
# @option opts [String] :profile_id Id of a Profile.
|
430
|
+
# @option opts [File] :file Input file.
|
431
|
+
# @option opts [String] :source_url URL pointing to an input file.
|
432
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
433
|
+
def create_workorder_with_http_info(factory_id, opts = {})
|
434
|
+
if @api_client.config.debugging
|
435
|
+
@api_client.config.logger.debug "Calling API: FlipApi.create_workorder ..."
|
436
|
+
end
|
437
|
+
# verify the required parameter 'factory_id' is set
|
438
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
439
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.create_workorder"
|
440
|
+
end
|
441
|
+
# resource path
|
442
|
+
local_var_path = "/workorders.json"
|
443
|
+
|
444
|
+
# query parameters
|
445
|
+
query_params = {}
|
446
|
+
query_params[:'factory_id'] = factory_id
|
447
|
+
|
448
|
+
# header parameters
|
449
|
+
header_params = {}
|
450
|
+
# HTTP header 'Accept' (if needed)
|
451
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
452
|
+
# HTTP header 'Content-Type'
|
453
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
454
|
+
|
455
|
+
# form parameters
|
456
|
+
form_params = {}
|
457
|
+
form_params["profile_id"] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
458
|
+
form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
|
459
|
+
form_params["source_url"] = opts[:'source_url'] if !opts[:'source_url'].nil?
|
460
|
+
|
461
|
+
# http body (model)
|
462
|
+
post_body = nil
|
463
|
+
auth_names = ['api_key']
|
464
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
465
|
+
:header_params => header_params,
|
466
|
+
:query_params => query_params,
|
467
|
+
:form_params => form_params,
|
468
|
+
:body => post_body,
|
469
|
+
:auth_names => auth_names)
|
470
|
+
if @api_client.config.debugging
|
471
|
+
@api_client.config.logger.debug "API called: FlipApi#create_workorder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
472
|
+
end
|
473
|
+
return data, status_code, headers
|
474
|
+
end
|
475
|
+
|
476
|
+
# Deletes an Encoding from both Telestream Cloud and your storage. Returns an information whether the operation was successful.
|
477
|
+
#
|
478
|
+
# @param id Id of an Encoding.
|
479
|
+
# @param factory_id Id of a Factory.
|
480
|
+
# @param [Hash] opts the optional parameters
|
481
|
+
# @return [DeletedResponse]
|
482
|
+
def delete_encoding(id, factory_id, opts = {})
|
483
|
+
data, _status_code, _headers = delete_encoding_with_http_info(id, factory_id, opts)
|
484
|
+
return data
|
485
|
+
end
|
486
|
+
|
487
|
+
# Deletes an Encoding from both Telestream Cloud and your storage. Returns an information whether the operation was successful.
|
488
|
+
#
|
489
|
+
# @param id Id of an Encoding.
|
490
|
+
# @param factory_id Id of a Factory.
|
491
|
+
# @param [Hash] opts the optional parameters
|
492
|
+
# @return [Array<(DeletedResponse, Fixnum, Hash)>] DeletedResponse data, response status code and response headers
|
493
|
+
def delete_encoding_with_http_info(id, factory_id, opts = {})
|
494
|
+
if @api_client.config.debugging
|
495
|
+
@api_client.config.logger.debug "Calling API: FlipApi.delete_encoding ..."
|
496
|
+
end
|
497
|
+
# verify the required parameter 'id' is set
|
498
|
+
if @api_client.config.client_side_validation && id.nil?
|
499
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.delete_encoding"
|
500
|
+
end
|
501
|
+
# verify the required parameter 'factory_id' is set
|
502
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
503
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.delete_encoding"
|
504
|
+
end
|
505
|
+
# resource path
|
506
|
+
local_var_path = "/encodings/{id}.json".sub('{' + 'id' + '}', id.to_s)
|
507
|
+
|
508
|
+
# query parameters
|
509
|
+
query_params = {}
|
510
|
+
query_params[:'factory_id'] = factory_id
|
511
|
+
|
512
|
+
# header parameters
|
513
|
+
header_params = {}
|
514
|
+
# HTTP header 'Accept' (if needed)
|
515
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
516
|
+
# HTTP header 'Content-Type'
|
517
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
518
|
+
|
519
|
+
# form parameters
|
520
|
+
form_params = {}
|
521
|
+
|
522
|
+
# http body (model)
|
523
|
+
post_body = nil
|
524
|
+
auth_names = ['api_key']
|
525
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
526
|
+
:header_params => header_params,
|
527
|
+
:query_params => query_params,
|
528
|
+
:form_params => form_params,
|
529
|
+
:body => post_body,
|
530
|
+
:auth_names => auth_names,
|
531
|
+
:return_type => 'DeletedResponse')
|
532
|
+
if @api_client.config.debugging
|
533
|
+
@api_client.config.logger.debug "API called: FlipApi#delete_encoding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
534
|
+
end
|
535
|
+
return data, status_code, headers
|
536
|
+
end
|
537
|
+
|
538
|
+
# Deletes a given Profile
|
539
|
+
#
|
540
|
+
# @param id Id of a Profile
|
541
|
+
# @param factory_id Id of a Factory.
|
542
|
+
# @param [Hash] opts the optional parameters
|
543
|
+
# @return [DeletedResponse]
|
544
|
+
def delete_profile(id, factory_id, opts = {})
|
545
|
+
data, _status_code, _headers = delete_profile_with_http_info(id, factory_id, opts)
|
546
|
+
return data
|
547
|
+
end
|
548
|
+
|
549
|
+
# Deletes a given Profile
|
550
|
+
#
|
551
|
+
# @param id Id of a Profile
|
552
|
+
# @param factory_id Id of a Factory.
|
553
|
+
# @param [Hash] opts the optional parameters
|
554
|
+
# @return [Array<(DeletedResponse, Fixnum, Hash)>] DeletedResponse data, response status code and response headers
|
555
|
+
def delete_profile_with_http_info(id, factory_id, opts = {})
|
556
|
+
if @api_client.config.debugging
|
557
|
+
@api_client.config.logger.debug "Calling API: FlipApi.delete_profile ..."
|
558
|
+
end
|
559
|
+
# verify the required parameter 'id' is set
|
560
|
+
if @api_client.config.client_side_validation && id.nil?
|
561
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.delete_profile"
|
562
|
+
end
|
563
|
+
# verify the required parameter 'factory_id' is set
|
564
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
565
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.delete_profile"
|
566
|
+
end
|
567
|
+
# resource path
|
568
|
+
local_var_path = "/profiles/{id}.json".sub('{' + 'id' + '}', id.to_s)
|
569
|
+
|
570
|
+
# query parameters
|
571
|
+
query_params = {}
|
572
|
+
query_params[:'factory_id'] = factory_id
|
573
|
+
|
574
|
+
# header parameters
|
575
|
+
header_params = {}
|
576
|
+
# HTTP header 'Accept' (if needed)
|
577
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
578
|
+
# HTTP header 'Content-Type'
|
579
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
580
|
+
|
581
|
+
# form parameters
|
582
|
+
form_params = {}
|
583
|
+
|
584
|
+
# http body (model)
|
585
|
+
post_body = nil
|
586
|
+
auth_names = ['api_key']
|
587
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
588
|
+
:header_params => header_params,
|
589
|
+
:query_params => query_params,
|
590
|
+
:form_params => form_params,
|
591
|
+
:body => post_body,
|
592
|
+
:auth_names => auth_names,
|
593
|
+
:return_type => 'DeletedResponse')
|
594
|
+
if @api_client.config.debugging
|
595
|
+
@api_client.config.logger.debug "API called: FlipApi#delete_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
596
|
+
end
|
597
|
+
return data, status_code, headers
|
598
|
+
end
|
599
|
+
|
600
|
+
# Deletes a Video object.
|
601
|
+
#
|
602
|
+
# @param id Id of a Video.
|
603
|
+
# @param factory_id Id of a Factory.
|
604
|
+
# @param [Hash] opts the optional parameters
|
605
|
+
# @return [DeletedResponse]
|
606
|
+
def delete_video(id, factory_id, opts = {})
|
607
|
+
data, _status_code, _headers = delete_video_with_http_info(id, factory_id, opts)
|
608
|
+
return data
|
609
|
+
end
|
610
|
+
|
611
|
+
# Deletes a Video object.
|
612
|
+
#
|
613
|
+
# @param id Id of a Video.
|
614
|
+
# @param factory_id Id of a Factory.
|
615
|
+
# @param [Hash] opts the optional parameters
|
616
|
+
# @return [Array<(DeletedResponse, Fixnum, Hash)>] DeletedResponse data, response status code and response headers
|
617
|
+
def delete_video_with_http_info(id, factory_id, opts = {})
|
618
|
+
if @api_client.config.debugging
|
619
|
+
@api_client.config.logger.debug "Calling API: FlipApi.delete_video ..."
|
620
|
+
end
|
621
|
+
# verify the required parameter 'id' is set
|
622
|
+
if @api_client.config.client_side_validation && id.nil?
|
623
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.delete_video"
|
624
|
+
end
|
625
|
+
# verify the required parameter 'factory_id' is set
|
626
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
627
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.delete_video"
|
628
|
+
end
|
629
|
+
# resource path
|
630
|
+
local_var_path = "/videos/{id}.json".sub('{' + 'id' + '}', id.to_s)
|
631
|
+
|
632
|
+
# query parameters
|
633
|
+
query_params = {}
|
634
|
+
query_params[:'factory_id'] = factory_id
|
635
|
+
|
636
|
+
# header parameters
|
637
|
+
header_params = {}
|
638
|
+
# HTTP header 'Accept' (if needed)
|
639
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
640
|
+
# HTTP header 'Content-Type'
|
641
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
642
|
+
|
643
|
+
# form parameters
|
644
|
+
form_params = {}
|
645
|
+
|
646
|
+
# http body (model)
|
647
|
+
post_body = nil
|
648
|
+
auth_names = ['api_key']
|
649
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
650
|
+
:header_params => header_params,
|
651
|
+
:query_params => query_params,
|
652
|
+
:form_params => form_params,
|
653
|
+
:body => post_body,
|
654
|
+
:auth_names => auth_names,
|
655
|
+
:return_type => 'DeletedResponse')
|
656
|
+
if @api_client.config.debugging
|
657
|
+
@api_client.config.logger.debug "API called: FlipApi#delete_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
658
|
+
end
|
659
|
+
return data, status_code, headers
|
660
|
+
end
|
661
|
+
|
662
|
+
# Delete a video's source file.
|
663
|
+
#
|
664
|
+
# @param id Id of a Video.
|
665
|
+
# @param factory_id Id of a Factory.
|
666
|
+
# @param [Hash] opts the optional parameters
|
667
|
+
# @return [DeletedResponse]
|
668
|
+
def delete_video_source(id, factory_id, opts = {})
|
669
|
+
data, _status_code, _headers = delete_video_source_with_http_info(id, factory_id, opts)
|
670
|
+
return data
|
671
|
+
end
|
672
|
+
|
673
|
+
# Delete a video's source file.
|
674
|
+
#
|
675
|
+
# @param id Id of a Video.
|
676
|
+
# @param factory_id Id of a Factory.
|
677
|
+
# @param [Hash] opts the optional parameters
|
678
|
+
# @return [Array<(DeletedResponse, Fixnum, Hash)>] DeletedResponse data, response status code and response headers
|
679
|
+
def delete_video_source_with_http_info(id, factory_id, opts = {})
|
680
|
+
if @api_client.config.debugging
|
681
|
+
@api_client.config.logger.debug "Calling API: FlipApi.delete_video_source ..."
|
682
|
+
end
|
683
|
+
# verify the required parameter 'id' is set
|
684
|
+
if @api_client.config.client_side_validation && id.nil?
|
685
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.delete_video_source"
|
686
|
+
end
|
687
|
+
# verify the required parameter 'factory_id' is set
|
688
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
689
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.delete_video_source"
|
690
|
+
end
|
691
|
+
# resource path
|
692
|
+
local_var_path = "/videos/{id}/source.json".sub('{' + 'id' + '}', id.to_s)
|
693
|
+
|
694
|
+
# query parameters
|
695
|
+
query_params = {}
|
696
|
+
query_params[:'factory_id'] = factory_id
|
697
|
+
|
698
|
+
# header parameters
|
699
|
+
header_params = {}
|
700
|
+
# HTTP header 'Accept' (if needed)
|
701
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
702
|
+
# HTTP header 'Content-Type'
|
703
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
704
|
+
|
705
|
+
# form parameters
|
706
|
+
form_params = {}
|
707
|
+
|
708
|
+
# http body (model)
|
709
|
+
post_body = nil
|
710
|
+
auth_names = ['api_key']
|
711
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
712
|
+
:header_params => header_params,
|
713
|
+
:query_params => query_params,
|
714
|
+
:form_params => form_params,
|
715
|
+
:body => post_body,
|
716
|
+
:auth_names => auth_names,
|
717
|
+
:return_type => 'DeletedResponse')
|
718
|
+
if @api_client.config.debugging
|
719
|
+
@api_client.config.logger.debug "API called: FlipApi#delete_video_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
720
|
+
end
|
721
|
+
return data, status_code, headers
|
722
|
+
end
|
723
|
+
|
724
|
+
# Returns an Encoding object.
|
725
|
+
#
|
726
|
+
# @param id Id of an Encoding.
|
727
|
+
# @param factory_id Id of a Factory.
|
728
|
+
# @param [Hash] opts the optional parameters
|
729
|
+
# @option opts [BOOLEAN] :screenshots Determines whether the response will include screenshots. By default this is not set.
|
730
|
+
# @option opts [BOOLEAN] :precise_status Determines whether the response will include a precise status. By default this is not set.
|
731
|
+
# @return [Encoding]
|
732
|
+
def encoding(id, factory_id, opts = {})
|
733
|
+
data, _status_code, _headers = encoding_with_http_info(id, factory_id, opts)
|
734
|
+
return data
|
735
|
+
end
|
736
|
+
|
737
|
+
# Returns an Encoding object.
|
738
|
+
#
|
739
|
+
# @param id Id of an Encoding.
|
740
|
+
# @param factory_id Id of a Factory.
|
741
|
+
# @param [Hash] opts the optional parameters
|
742
|
+
# @option opts [BOOLEAN] :screenshots Determines whether the response will include screenshots. By default this is not set.
|
743
|
+
# @option opts [BOOLEAN] :precise_status Determines whether the response will include a precise status. By default this is not set.
|
744
|
+
# @return [Array<(Encoding, Fixnum, Hash)>] Encoding data, response status code and response headers
|
745
|
+
def encoding_with_http_info(id, factory_id, opts = {})
|
746
|
+
if @api_client.config.debugging
|
747
|
+
@api_client.config.logger.debug "Calling API: FlipApi.encoding ..."
|
748
|
+
end
|
749
|
+
# verify the required parameter 'id' is set
|
750
|
+
if @api_client.config.client_side_validation && id.nil?
|
751
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.encoding"
|
752
|
+
end
|
753
|
+
# verify the required parameter 'factory_id' is set
|
754
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
755
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.encoding"
|
756
|
+
end
|
757
|
+
# resource path
|
758
|
+
local_var_path = "/encodings/{id}.json".sub('{' + 'id' + '}', id.to_s)
|
759
|
+
|
760
|
+
# query parameters
|
761
|
+
query_params = {}
|
762
|
+
query_params[:'factory_id'] = factory_id
|
763
|
+
query_params[:'screenshots'] = opts[:'screenshots'] if !opts[:'screenshots'].nil?
|
764
|
+
query_params[:'precise_status'] = opts[:'precise_status'] if !opts[:'precise_status'].nil?
|
765
|
+
|
766
|
+
# header parameters
|
767
|
+
header_params = {}
|
768
|
+
# HTTP header 'Accept' (if needed)
|
769
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
770
|
+
# HTTP header 'Content-Type'
|
771
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
772
|
+
|
773
|
+
# form parameters
|
774
|
+
form_params = {}
|
775
|
+
|
776
|
+
# http body (model)
|
777
|
+
post_body = nil
|
778
|
+
auth_names = ['api_key']
|
779
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
780
|
+
:header_params => header_params,
|
781
|
+
:query_params => query_params,
|
782
|
+
:form_params => form_params,
|
783
|
+
:body => post_body,
|
784
|
+
:auth_names => auth_names,
|
785
|
+
:return_type => 'Encoding')
|
786
|
+
if @api_client.config.debugging
|
787
|
+
@api_client.config.logger.debug "API called: FlipApi#encoding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
788
|
+
end
|
789
|
+
return data, status_code, headers
|
790
|
+
end
|
791
|
+
|
792
|
+
# Returns a list of Encoding objects
|
793
|
+
#
|
794
|
+
# @param factory_id Id of a Factory.
|
795
|
+
# @param [Hash] opts the optional parameters
|
796
|
+
# @option opts [String] :video_id Id of a Video. When specified, the resulting list will contain videos that belong to the Video.
|
797
|
+
# @option opts [String] :status One of `success`, `fail`, `processing`. When specified, the resulting list will contain ecodings filtered by status.
|
798
|
+
# @option opts [String] :profile_id Filter by profile_id.
|
799
|
+
# @option opts [String] :profile_name Filter by profile_name.
|
800
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
801
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
802
|
+
# @option opts [BOOLEAN] :screenshots Determines whether the response will include screenshots. By default this is not set.
|
803
|
+
# @option opts [BOOLEAN] :precise_status Determines whether the response will include a precise status. By default this is not set.
|
804
|
+
# @return [PaginatedEncodingsCollection]
|
805
|
+
def encodings(factory_id, opts = {})
|
806
|
+
data, _status_code, _headers = encodings_with_http_info(factory_id, opts)
|
807
|
+
return data
|
808
|
+
end
|
809
|
+
|
810
|
+
# Returns a list of Encoding objects
|
811
|
+
#
|
812
|
+
# @param factory_id Id of a Factory.
|
813
|
+
# @param [Hash] opts the optional parameters
|
814
|
+
# @option opts [String] :video_id Id of a Video. When specified, the resulting list will contain videos that belong to the Video.
|
815
|
+
# @option opts [String] :status One of `success`, `fail`, `processing`. When specified, the resulting list will contain ecodings filtered by status.
|
816
|
+
# @option opts [String] :profile_id Filter by profile_id.
|
817
|
+
# @option opts [String] :profile_name Filter by profile_name.
|
818
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
819
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
820
|
+
# @option opts [BOOLEAN] :screenshots Determines whether the response will include screenshots. By default this is not set.
|
821
|
+
# @option opts [BOOLEAN] :precise_status Determines whether the response will include a precise status. By default this is not set.
|
822
|
+
# @return [Array<(PaginatedEncodingsCollection, Fixnum, Hash)>] PaginatedEncodingsCollection data, response status code and response headers
|
823
|
+
def encodings_with_http_info(factory_id, opts = {})
|
824
|
+
if @api_client.config.debugging
|
825
|
+
@api_client.config.logger.debug "Calling API: FlipApi.encodings ..."
|
826
|
+
end
|
827
|
+
# verify the required parameter 'factory_id' is set
|
828
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
829
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.encodings"
|
830
|
+
end
|
831
|
+
# resource path
|
832
|
+
local_var_path = "/encodings.json"
|
833
|
+
|
834
|
+
# query parameters
|
835
|
+
query_params = {}
|
836
|
+
query_params[:'factory_id'] = factory_id
|
837
|
+
query_params[:'video_id'] = opts[:'video_id'] if !opts[:'video_id'].nil?
|
838
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
839
|
+
query_params[:'profile_id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
840
|
+
query_params[:'profile_name'] = opts[:'profile_name'] if !opts[:'profile_name'].nil?
|
841
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
842
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
843
|
+
query_params[:'screenshots'] = opts[:'screenshots'] if !opts[:'screenshots'].nil?
|
844
|
+
query_params[:'precise_status'] = opts[:'precise_status'] if !opts[:'precise_status'].nil?
|
845
|
+
|
846
|
+
# header parameters
|
847
|
+
header_params = {}
|
848
|
+
# HTTP header 'Accept' (if needed)
|
849
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
850
|
+
# HTTP header 'Content-Type'
|
851
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
852
|
+
|
853
|
+
# form parameters
|
854
|
+
form_params = {}
|
855
|
+
|
856
|
+
# http body (model)
|
857
|
+
post_body = nil
|
858
|
+
auth_names = ['api_key']
|
859
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
860
|
+
:header_params => header_params,
|
861
|
+
:query_params => query_params,
|
862
|
+
:form_params => form_params,
|
863
|
+
:body => post_body,
|
864
|
+
:auth_names => auth_names,
|
865
|
+
:return_type => 'PaginatedEncodingsCollection')
|
866
|
+
if @api_client.config.debugging
|
867
|
+
@api_client.config.logger.debug "API called: FlipApi#encodings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
868
|
+
end
|
869
|
+
return data, status_code, headers
|
870
|
+
end
|
871
|
+
|
872
|
+
# Returns a number of Encoding objects created using a given factory.
|
873
|
+
#
|
874
|
+
# @param factory_id Id of a Factory.
|
875
|
+
# @param [Hash] opts the optional parameters
|
876
|
+
# @return [CountResponse]
|
877
|
+
def encodings_count(factory_id, opts = {})
|
878
|
+
data, _status_code, _headers = encodings_count_with_http_info(factory_id, opts)
|
879
|
+
return data
|
880
|
+
end
|
881
|
+
|
882
|
+
# Returns a number of Encoding objects created using a given factory.
|
883
|
+
#
|
884
|
+
# @param factory_id Id of a Factory.
|
885
|
+
# @param [Hash] opts the optional parameters
|
886
|
+
# @return [Array<(CountResponse, Fixnum, Hash)>] CountResponse data, response status code and response headers
|
887
|
+
def encodings_count_with_http_info(factory_id, opts = {})
|
888
|
+
if @api_client.config.debugging
|
889
|
+
@api_client.config.logger.debug "Calling API: FlipApi.encodings_count ..."
|
890
|
+
end
|
891
|
+
# verify the required parameter 'factory_id' is set
|
892
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
893
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.encodings_count"
|
894
|
+
end
|
895
|
+
# resource path
|
896
|
+
local_var_path = "/encodings/count.json"
|
897
|
+
|
898
|
+
# query parameters
|
899
|
+
query_params = {}
|
900
|
+
query_params[:'factory_id'] = factory_id
|
901
|
+
|
902
|
+
# header parameters
|
903
|
+
header_params = {}
|
904
|
+
# HTTP header 'Accept' (if needed)
|
905
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
906
|
+
# HTTP header 'Content-Type'
|
907
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
908
|
+
|
909
|
+
# form parameters
|
910
|
+
form_params = {}
|
911
|
+
|
912
|
+
# http body (model)
|
913
|
+
post_body = nil
|
914
|
+
auth_names = ['api_key']
|
915
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
916
|
+
:header_params => header_params,
|
917
|
+
:query_params => query_params,
|
918
|
+
:form_params => form_params,
|
919
|
+
:body => post_body,
|
920
|
+
:auth_names => auth_names,
|
921
|
+
:return_type => 'CountResponse')
|
922
|
+
if @api_client.config.debugging
|
923
|
+
@api_client.config.logger.debug "API called: FlipApi#encodings_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
924
|
+
end
|
925
|
+
return data, status_code, headers
|
926
|
+
end
|
927
|
+
|
928
|
+
# Returns a collection of Factory objects.
|
929
|
+
# Returns a collection of Factory objects.
|
930
|
+
# @param [Hash] opts the optional parameters
|
931
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
932
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
933
|
+
# @option opts [BOOLEAN] :with_storage_provider if set to `true`, results will include a storage provider's id
|
934
|
+
# @return [PaginatedFactoryCollection]
|
935
|
+
def factories(opts = {})
|
936
|
+
data, _status_code, _headers = factories_with_http_info(opts)
|
937
|
+
return data
|
938
|
+
end
|
939
|
+
|
940
|
+
# Returns a collection of Factory objects.
|
941
|
+
# Returns a collection of Factory objects.
|
942
|
+
# @param [Hash] opts the optional parameters
|
943
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
944
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
945
|
+
# @option opts [BOOLEAN] :with_storage_provider if set to `true`, results will include a storage provider's id
|
946
|
+
# @return [Array<(PaginatedFactoryCollection, Fixnum, Hash)>] PaginatedFactoryCollection data, response status code and response headers
|
947
|
+
def factories_with_http_info(opts = {})
|
948
|
+
if @api_client.config.debugging
|
949
|
+
@api_client.config.logger.debug "Calling API: FlipApi.factories ..."
|
950
|
+
end
|
951
|
+
# resource path
|
952
|
+
local_var_path = "/factories.json"
|
953
|
+
|
954
|
+
# query parameters
|
955
|
+
query_params = {}
|
956
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
957
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
958
|
+
query_params[:'with_storage_provider'] = opts[:'with_storage_provider'] if !opts[:'with_storage_provider'].nil?
|
959
|
+
|
960
|
+
# header parameters
|
961
|
+
header_params = {}
|
962
|
+
# HTTP header 'Accept' (if needed)
|
963
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
964
|
+
# HTTP header 'Content-Type'
|
965
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
966
|
+
|
967
|
+
# form parameters
|
968
|
+
form_params = {}
|
969
|
+
|
970
|
+
# http body (model)
|
971
|
+
post_body = nil
|
972
|
+
auth_names = ['api_key']
|
973
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
974
|
+
:header_params => header_params,
|
975
|
+
:query_params => query_params,
|
976
|
+
:form_params => form_params,
|
977
|
+
:body => post_body,
|
978
|
+
:auth_names => auth_names,
|
979
|
+
:return_type => 'PaginatedFactoryCollection')
|
980
|
+
if @api_client.config.debugging
|
981
|
+
@api_client.config.logger.debug "API called: FlipApi#factories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
982
|
+
end
|
983
|
+
return data, status_code, headers
|
984
|
+
end
|
985
|
+
|
986
|
+
# Returns a Factory object.
|
987
|
+
# Returns a Factory object.
|
988
|
+
# @param id id of a factory
|
989
|
+
# @param [Hash] opts the optional parameters
|
990
|
+
# @option opts [BOOLEAN] :with_storage_provider if set to `true`, results will include a storage provider's id
|
991
|
+
# @return [Factory]
|
992
|
+
def factory(id, opts = {})
|
993
|
+
data, _status_code, _headers = factory_with_http_info(id, opts)
|
994
|
+
return data
|
995
|
+
end
|
996
|
+
|
997
|
+
# Returns a Factory object.
|
998
|
+
# Returns a Factory object.
|
999
|
+
# @param id id of a factory
|
1000
|
+
# @param [Hash] opts the optional parameters
|
1001
|
+
# @option opts [BOOLEAN] :with_storage_provider if set to `true`, results will include a storage provider's id
|
1002
|
+
# @return [Array<(Factory, Fixnum, Hash)>] Factory data, response status code and response headers
|
1003
|
+
def factory_with_http_info(id, opts = {})
|
1004
|
+
if @api_client.config.debugging
|
1005
|
+
@api_client.config.logger.debug "Calling API: FlipApi.factory ..."
|
1006
|
+
end
|
1007
|
+
# verify the required parameter 'id' is set
|
1008
|
+
if @api_client.config.client_side_validation && id.nil?
|
1009
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.factory"
|
1010
|
+
end
|
1011
|
+
# resource path
|
1012
|
+
local_var_path = "/factories/{id}.json".sub('{' + 'id' + '}', id.to_s)
|
1013
|
+
|
1014
|
+
# query parameters
|
1015
|
+
query_params = {}
|
1016
|
+
query_params[:'with_storage_provider'] = opts[:'with_storage_provider'] if !opts[:'with_storage_provider'].nil?
|
1017
|
+
|
1018
|
+
# header parameters
|
1019
|
+
header_params = {}
|
1020
|
+
# HTTP header 'Accept' (if needed)
|
1021
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1022
|
+
# HTTP header 'Content-Type'
|
1023
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1024
|
+
|
1025
|
+
# form parameters
|
1026
|
+
form_params = {}
|
1027
|
+
|
1028
|
+
# http body (model)
|
1029
|
+
post_body = nil
|
1030
|
+
auth_names = ['api_key']
|
1031
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1032
|
+
:header_params => header_params,
|
1033
|
+
:query_params => query_params,
|
1034
|
+
:form_params => form_params,
|
1035
|
+
:body => post_body,
|
1036
|
+
:auth_names => auth_names,
|
1037
|
+
:return_type => 'Factory')
|
1038
|
+
if @api_client.config.debugging
|
1039
|
+
@api_client.config.logger.debug "API called: FlipApi#factory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1040
|
+
end
|
1041
|
+
return data, status_code, headers
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# Returns a Factory's notification settings.
|
1045
|
+
#
|
1046
|
+
# @param factory_id Id of a Factory.
|
1047
|
+
# @param [Hash] opts the optional parameters
|
1048
|
+
# @return [CloudNotificationSettings]
|
1049
|
+
def notifications(factory_id, opts = {})
|
1050
|
+
data, _status_code, _headers = notifications_with_http_info(factory_id, opts)
|
1051
|
+
return data
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# Returns a Factory's notification settings.
|
1055
|
+
#
|
1056
|
+
# @param factory_id Id of a Factory.
|
1057
|
+
# @param [Hash] opts the optional parameters
|
1058
|
+
# @return [Array<(CloudNotificationSettings, Fixnum, Hash)>] CloudNotificationSettings data, response status code and response headers
|
1059
|
+
def notifications_with_http_info(factory_id, opts = {})
|
1060
|
+
if @api_client.config.debugging
|
1061
|
+
@api_client.config.logger.debug "Calling API: FlipApi.notifications ..."
|
1062
|
+
end
|
1063
|
+
# verify the required parameter 'factory_id' is set
|
1064
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1065
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.notifications"
|
1066
|
+
end
|
1067
|
+
# resource path
|
1068
|
+
local_var_path = "/notifications.json"
|
1069
|
+
|
1070
|
+
# query parameters
|
1071
|
+
query_params = {}
|
1072
|
+
query_params[:'factory_id'] = factory_id
|
1073
|
+
|
1074
|
+
# header parameters
|
1075
|
+
header_params = {}
|
1076
|
+
# HTTP header 'Accept' (if needed)
|
1077
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1078
|
+
# HTTP header 'Content-Type'
|
1079
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1080
|
+
|
1081
|
+
# form parameters
|
1082
|
+
form_params = {}
|
1083
|
+
|
1084
|
+
# http body (model)
|
1085
|
+
post_body = nil
|
1086
|
+
auth_names = ['api_key']
|
1087
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1088
|
+
:header_params => header_params,
|
1089
|
+
:query_params => query_params,
|
1090
|
+
:form_params => form_params,
|
1091
|
+
:body => post_body,
|
1092
|
+
:auth_names => auth_names,
|
1093
|
+
:return_type => 'CloudNotificationSettings')
|
1094
|
+
if @api_client.config.debugging
|
1095
|
+
@api_client.config.logger.debug "API called: FlipApi#notifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1096
|
+
end
|
1097
|
+
return data, status_code, headers
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
# Returns a Profile object.
|
1101
|
+
#
|
1102
|
+
# @param id_or_name A name or an id of a Profile.
|
1103
|
+
# @param factory_id Id of a Factory.
|
1104
|
+
# @param [Hash] opts the optional parameters
|
1105
|
+
# @option opts [BOOLEAN] :expand If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
|
1106
|
+
# @return [Profile]
|
1107
|
+
def profile(id_or_name, factory_id, opts = {})
|
1108
|
+
data, _status_code, _headers = profile_with_http_info(id_or_name, factory_id, opts)
|
1109
|
+
return data
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
# Returns a Profile object.
|
1113
|
+
#
|
1114
|
+
# @param id_or_name A name or an id of a Profile.
|
1115
|
+
# @param factory_id Id of a Factory.
|
1116
|
+
# @param [Hash] opts the optional parameters
|
1117
|
+
# @option opts [BOOLEAN] :expand If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
|
1118
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
1119
|
+
def profile_with_http_info(id_or_name, factory_id, opts = {})
|
1120
|
+
if @api_client.config.debugging
|
1121
|
+
@api_client.config.logger.debug "Calling API: FlipApi.profile ..."
|
1122
|
+
end
|
1123
|
+
# verify the required parameter 'id_or_name' is set
|
1124
|
+
if @api_client.config.client_side_validation && id_or_name.nil?
|
1125
|
+
fail ArgumentError, "Missing the required parameter 'id_or_name' when calling FlipApi.profile"
|
1126
|
+
end
|
1127
|
+
# verify the required parameter 'factory_id' is set
|
1128
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1129
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.profile"
|
1130
|
+
end
|
1131
|
+
# resource path
|
1132
|
+
local_var_path = "/profiles/{id_or_name}.json".sub('{' + 'id_or_name' + '}', id_or_name.to_s)
|
1133
|
+
|
1134
|
+
# query parameters
|
1135
|
+
query_params = {}
|
1136
|
+
query_params[:'factory_id'] = factory_id
|
1137
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
1138
|
+
|
1139
|
+
# header parameters
|
1140
|
+
header_params = {}
|
1141
|
+
# HTTP header 'Accept' (if needed)
|
1142
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1143
|
+
# HTTP header 'Content-Type'
|
1144
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1145
|
+
|
1146
|
+
# form parameters
|
1147
|
+
form_params = {}
|
1148
|
+
|
1149
|
+
# http body (model)
|
1150
|
+
post_body = nil
|
1151
|
+
auth_names = ['api_key']
|
1152
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1153
|
+
:header_params => header_params,
|
1154
|
+
:query_params => query_params,
|
1155
|
+
:form_params => form_params,
|
1156
|
+
:body => post_body,
|
1157
|
+
:auth_names => auth_names,
|
1158
|
+
:return_type => 'Profile')
|
1159
|
+
if @api_client.config.debugging
|
1160
|
+
@api_client.config.logger.debug "API called: FlipApi#profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1161
|
+
end
|
1162
|
+
return data, status_code, headers
|
1163
|
+
end
|
1164
|
+
|
1165
|
+
# Returns a list of Encodings that belong to a Profile.
|
1166
|
+
#
|
1167
|
+
# @param id_or_name Id or name of a Profile.
|
1168
|
+
# @param factory_id Id of a Factory.
|
1169
|
+
# @param [Hash] opts the optional parameters
|
1170
|
+
# @return [PaginatedEncodingsCollection]
|
1171
|
+
def profile_encodings(id_or_name, factory_id, opts = {})
|
1172
|
+
data, _status_code, _headers = profile_encodings_with_http_info(id_or_name, factory_id, opts)
|
1173
|
+
return data
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
# Returns a list of Encodings that belong to a Profile.
|
1177
|
+
#
|
1178
|
+
# @param id_or_name Id or name of a Profile.
|
1179
|
+
# @param factory_id Id of a Factory.
|
1180
|
+
# @param [Hash] opts the optional parameters
|
1181
|
+
# @return [Array<(PaginatedEncodingsCollection, Fixnum, Hash)>] PaginatedEncodingsCollection data, response status code and response headers
|
1182
|
+
def profile_encodings_with_http_info(id_or_name, factory_id, opts = {})
|
1183
|
+
if @api_client.config.debugging
|
1184
|
+
@api_client.config.logger.debug "Calling API: FlipApi.profile_encodings ..."
|
1185
|
+
end
|
1186
|
+
# verify the required parameter 'id_or_name' is set
|
1187
|
+
if @api_client.config.client_side_validation && id_or_name.nil?
|
1188
|
+
fail ArgumentError, "Missing the required parameter 'id_or_name' when calling FlipApi.profile_encodings"
|
1189
|
+
end
|
1190
|
+
# verify the required parameter 'factory_id' is set
|
1191
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1192
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.profile_encodings"
|
1193
|
+
end
|
1194
|
+
# resource path
|
1195
|
+
local_var_path = "/profiles/{id_or_name}/encodings.json".sub('{' + 'id_or_name' + '}', id_or_name.to_s)
|
1196
|
+
|
1197
|
+
# query parameters
|
1198
|
+
query_params = {}
|
1199
|
+
query_params[:'factory_id'] = factory_id
|
1200
|
+
|
1201
|
+
# header parameters
|
1202
|
+
header_params = {}
|
1203
|
+
# HTTP header 'Accept' (if needed)
|
1204
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1205
|
+
# HTTP header 'Content-Type'
|
1206
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1207
|
+
|
1208
|
+
# form parameters
|
1209
|
+
form_params = {}
|
1210
|
+
|
1211
|
+
# http body (model)
|
1212
|
+
post_body = nil
|
1213
|
+
auth_names = ['api_key']
|
1214
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1215
|
+
:header_params => header_params,
|
1216
|
+
:query_params => query_params,
|
1217
|
+
:form_params => form_params,
|
1218
|
+
:body => post_body,
|
1219
|
+
:auth_names => auth_names,
|
1220
|
+
:return_type => 'PaginatedEncodingsCollection')
|
1221
|
+
if @api_client.config.debugging
|
1222
|
+
@api_client.config.logger.debug "API called: FlipApi#profile_encodings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1223
|
+
end
|
1224
|
+
return data, status_code, headers
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
# Returns a collection of Profile objects.
|
1228
|
+
#
|
1229
|
+
# @param factory_id Id of a Factory.
|
1230
|
+
# @param [Hash] opts the optional parameters
|
1231
|
+
# @option opts [BOOLEAN] :exclude_advanced_services Determine whether exclude Advanced Services profiles from the results. By default this is not set.
|
1232
|
+
# @option opts [BOOLEAN] :expand If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
|
1233
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
1234
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
1235
|
+
# @return [PaginatedProfilesCollection]
|
1236
|
+
def profiles(factory_id, opts = {})
|
1237
|
+
data, _status_code, _headers = profiles_with_http_info(factory_id, opts)
|
1238
|
+
return data
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
# Returns a collection of Profile objects.
|
1242
|
+
#
|
1243
|
+
# @param factory_id Id of a Factory.
|
1244
|
+
# @param [Hash] opts the optional parameters
|
1245
|
+
# @option opts [BOOLEAN] :exclude_advanced_services Determine whether exclude Advanced Services profiles from the results. By default this is not set.
|
1246
|
+
# @option opts [BOOLEAN] :expand If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
|
1247
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
1248
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
1249
|
+
# @return [Array<(PaginatedProfilesCollection, Fixnum, Hash)>] PaginatedProfilesCollection data, response status code and response headers
|
1250
|
+
def profiles_with_http_info(factory_id, opts = {})
|
1251
|
+
if @api_client.config.debugging
|
1252
|
+
@api_client.config.logger.debug "Calling API: FlipApi.profiles ..."
|
1253
|
+
end
|
1254
|
+
# verify the required parameter 'factory_id' is set
|
1255
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1256
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.profiles"
|
1257
|
+
end
|
1258
|
+
# resource path
|
1259
|
+
local_var_path = "/profiles.json"
|
1260
|
+
|
1261
|
+
# query parameters
|
1262
|
+
query_params = {}
|
1263
|
+
query_params[:'factory_id'] = factory_id
|
1264
|
+
query_params[:'exclude_advanced_services'] = opts[:'exclude_advanced_services'] if !opts[:'exclude_advanced_services'].nil?
|
1265
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
1266
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1267
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
1268
|
+
|
1269
|
+
# header parameters
|
1270
|
+
header_params = {}
|
1271
|
+
# HTTP header 'Accept' (if needed)
|
1272
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1273
|
+
# HTTP header 'Content-Type'
|
1274
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1275
|
+
|
1276
|
+
# form parameters
|
1277
|
+
form_params = {}
|
1278
|
+
|
1279
|
+
# http body (model)
|
1280
|
+
post_body = nil
|
1281
|
+
auth_names = ['api_key']
|
1282
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1283
|
+
:header_params => header_params,
|
1284
|
+
:query_params => query_params,
|
1285
|
+
:form_params => form_params,
|
1286
|
+
:body => post_body,
|
1287
|
+
:auth_names => auth_names,
|
1288
|
+
:return_type => 'PaginatedProfilesCollection')
|
1289
|
+
if @api_client.config.debugging
|
1290
|
+
@api_client.config.logger.debug "API called: FlipApi#profiles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1291
|
+
end
|
1292
|
+
return data, status_code, headers
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
# Returns a collection of Video objects queued for encoding.
|
1296
|
+
#
|
1297
|
+
# @param factory_id Id of a Factory.
|
1298
|
+
# @param [Hash] opts the optional parameters
|
1299
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
1300
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
1301
|
+
# @return [PaginatedVideoCollection]
|
1302
|
+
def queued_videos(factory_id, opts = {})
|
1303
|
+
data, _status_code, _headers = queued_videos_with_http_info(factory_id, opts)
|
1304
|
+
return data
|
1305
|
+
end
|
1306
|
+
|
1307
|
+
# Returns a collection of Video objects queued for encoding.
|
1308
|
+
#
|
1309
|
+
# @param factory_id Id of a Factory.
|
1310
|
+
# @param [Hash] opts the optional parameters
|
1311
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
1312
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
1313
|
+
# @return [Array<(PaginatedVideoCollection, Fixnum, Hash)>] PaginatedVideoCollection data, response status code and response headers
|
1314
|
+
def queued_videos_with_http_info(factory_id, opts = {})
|
1315
|
+
if @api_client.config.debugging
|
1316
|
+
@api_client.config.logger.debug "Calling API: FlipApi.queued_videos ..."
|
1317
|
+
end
|
1318
|
+
# verify the required parameter 'factory_id' is set
|
1319
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1320
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.queued_videos"
|
1321
|
+
end
|
1322
|
+
# resource path
|
1323
|
+
local_var_path = "/videos/queued.json"
|
1324
|
+
|
1325
|
+
# query parameters
|
1326
|
+
query_params = {}
|
1327
|
+
query_params[:'factory_id'] = factory_id
|
1328
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1329
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
1330
|
+
|
1331
|
+
# header parameters
|
1332
|
+
header_params = {}
|
1333
|
+
# HTTP header 'Accept' (if needed)
|
1334
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1335
|
+
# HTTP header 'Content-Type'
|
1336
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1337
|
+
|
1338
|
+
# form parameters
|
1339
|
+
form_params = {}
|
1340
|
+
|
1341
|
+
# http body (model)
|
1342
|
+
post_body = nil
|
1343
|
+
auth_names = ['api_key']
|
1344
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1345
|
+
:header_params => header_params,
|
1346
|
+
:query_params => query_params,
|
1347
|
+
:form_params => form_params,
|
1348
|
+
:body => post_body,
|
1349
|
+
:auth_names => auth_names,
|
1350
|
+
:return_type => 'PaginatedVideoCollection')
|
1351
|
+
if @api_client.config.debugging
|
1352
|
+
@api_client.config.logger.debug "API called: FlipApi#queued_videos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1353
|
+
end
|
1354
|
+
return data, status_code, headers
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
# Resubmits a video to encode.
|
1358
|
+
# Resubmits the video to encode. Please note that this option will work only for videos in `success` status.
|
1359
|
+
# @param factory_id Id of a Factory.
|
1360
|
+
# @param resubmit_video_body
|
1361
|
+
# @param [Hash] opts the optional parameters
|
1362
|
+
# @return [nil]
|
1363
|
+
def resubmit_video(factory_id, resubmit_video_body, opts = {})
|
1364
|
+
resubmit_video_with_http_info(factory_id, resubmit_video_body, opts)
|
1365
|
+
return nil
|
1366
|
+
end
|
1367
|
+
|
1368
|
+
# Resubmits a video to encode.
|
1369
|
+
# Resubmits the video to encode. Please note that this option will work only for videos in `success` status.
|
1370
|
+
# @param factory_id Id of a Factory.
|
1371
|
+
# @param resubmit_video_body
|
1372
|
+
# @param [Hash] opts the optional parameters
|
1373
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1374
|
+
def resubmit_video_with_http_info(factory_id, resubmit_video_body, opts = {})
|
1375
|
+
if @api_client.config.debugging
|
1376
|
+
@api_client.config.logger.debug "Calling API: FlipApi.resubmit_video ..."
|
1377
|
+
end
|
1378
|
+
# verify the required parameter 'factory_id' is set
|
1379
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1380
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.resubmit_video"
|
1381
|
+
end
|
1382
|
+
# verify the required parameter 'resubmit_video_body' is set
|
1383
|
+
if @api_client.config.client_side_validation && resubmit_video_body.nil?
|
1384
|
+
fail ArgumentError, "Missing the required parameter 'resubmit_video_body' when calling FlipApi.resubmit_video"
|
1385
|
+
end
|
1386
|
+
# resource path
|
1387
|
+
local_var_path = "/videos/resubmit.json"
|
1388
|
+
|
1389
|
+
# query parameters
|
1390
|
+
query_params = {}
|
1391
|
+
query_params[:'factory_id'] = factory_id
|
1392
|
+
|
1393
|
+
# header parameters
|
1394
|
+
header_params = {}
|
1395
|
+
# HTTP header 'Accept' (if needed)
|
1396
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1397
|
+
# HTTP header 'Content-Type'
|
1398
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1399
|
+
|
1400
|
+
# form parameters
|
1401
|
+
form_params = {}
|
1402
|
+
|
1403
|
+
# http body (model)
|
1404
|
+
post_body = @api_client.object_to_http_body(resubmit_video_body)
|
1405
|
+
auth_names = ['api_key']
|
1406
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1407
|
+
:header_params => header_params,
|
1408
|
+
:query_params => query_params,
|
1409
|
+
:form_params => form_params,
|
1410
|
+
:body => post_body,
|
1411
|
+
:auth_names => auth_names)
|
1412
|
+
if @api_client.config.debugging
|
1413
|
+
@api_client.config.logger.debug "API called: FlipApi#resubmit_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1414
|
+
end
|
1415
|
+
return data, status_code, headers
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
# Retries a failed encoding.
|
1419
|
+
#
|
1420
|
+
# @param id Id of an Encoding.
|
1421
|
+
# @param factory_id Id of a Factory.
|
1422
|
+
# @param [Hash] opts the optional parameters
|
1423
|
+
# @return [RetriedResponse]
|
1424
|
+
def retry_encoding(id, factory_id, opts = {})
|
1425
|
+
data, _status_code, _headers = retry_encoding_with_http_info(id, factory_id, opts)
|
1426
|
+
return data
|
1427
|
+
end
|
1428
|
+
|
1429
|
+
# Retries a failed encoding.
|
1430
|
+
#
|
1431
|
+
# @param id Id of an Encoding.
|
1432
|
+
# @param factory_id Id of a Factory.
|
1433
|
+
# @param [Hash] opts the optional parameters
|
1434
|
+
# @return [Array<(RetriedResponse, Fixnum, Hash)>] RetriedResponse data, response status code and response headers
|
1435
|
+
def retry_encoding_with_http_info(id, factory_id, opts = {})
|
1436
|
+
if @api_client.config.debugging
|
1437
|
+
@api_client.config.logger.debug "Calling API: FlipApi.retry_encoding ..."
|
1438
|
+
end
|
1439
|
+
# verify the required parameter 'id' is set
|
1440
|
+
if @api_client.config.client_side_validation && id.nil?
|
1441
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.retry_encoding"
|
1442
|
+
end
|
1443
|
+
# verify the required parameter 'factory_id' is set
|
1444
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1445
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.retry_encoding"
|
1446
|
+
end
|
1447
|
+
# resource path
|
1448
|
+
local_var_path = "/encodings/{id}/retry.json".sub('{' + 'id' + '}', id.to_s)
|
1449
|
+
|
1450
|
+
# query parameters
|
1451
|
+
query_params = {}
|
1452
|
+
query_params[:'factory_id'] = factory_id
|
1453
|
+
|
1454
|
+
# header parameters
|
1455
|
+
header_params = {}
|
1456
|
+
# HTTP header 'Accept' (if needed)
|
1457
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1458
|
+
# HTTP header 'Content-Type'
|
1459
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1460
|
+
|
1461
|
+
# form parameters
|
1462
|
+
form_params = {}
|
1463
|
+
|
1464
|
+
# http body (model)
|
1465
|
+
post_body = nil
|
1466
|
+
auth_names = ['api_key']
|
1467
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1468
|
+
:header_params => header_params,
|
1469
|
+
:query_params => query_params,
|
1470
|
+
:form_params => form_params,
|
1471
|
+
:body => post_body,
|
1472
|
+
:auth_names => auth_names,
|
1473
|
+
:return_type => 'RetriedResponse')
|
1474
|
+
if @api_client.config.debugging
|
1475
|
+
@api_client.config.logger.debug "API called: FlipApi#retry_encoding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1476
|
+
end
|
1477
|
+
return data, status_code, headers
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
# Returns a signed url pointing to an Encoding.
|
1481
|
+
#
|
1482
|
+
# @param id Id of an Encoding.
|
1483
|
+
# @param factory_id Id of a Factory.
|
1484
|
+
# @param [Hash] opts the optional parameters
|
1485
|
+
# @return [EncodingSignedUrl]
|
1486
|
+
def signed_encoding_url(id, factory_id, opts = {})
|
1487
|
+
data, _status_code, _headers = signed_encoding_url_with_http_info(id, factory_id, opts)
|
1488
|
+
return data
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
# Returns a signed url pointing to an Encoding.
|
1492
|
+
#
|
1493
|
+
# @param id Id of an Encoding.
|
1494
|
+
# @param factory_id Id of a Factory.
|
1495
|
+
# @param [Hash] opts the optional parameters
|
1496
|
+
# @return [Array<(EncodingSignedUrl, Fixnum, Hash)>] EncodingSignedUrl data, response status code and response headers
|
1497
|
+
def signed_encoding_url_with_http_info(id, factory_id, opts = {})
|
1498
|
+
if @api_client.config.debugging
|
1499
|
+
@api_client.config.logger.debug "Calling API: FlipApi.signed_encoding_url ..."
|
1500
|
+
end
|
1501
|
+
# verify the required parameter 'id' is set
|
1502
|
+
if @api_client.config.client_side_validation && id.nil?
|
1503
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.signed_encoding_url"
|
1504
|
+
end
|
1505
|
+
# verify the required parameter 'factory_id' is set
|
1506
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1507
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.signed_encoding_url"
|
1508
|
+
end
|
1509
|
+
# resource path
|
1510
|
+
local_var_path = "/encodings/{id}/signed-url.json".sub('{' + 'id' + '}', id.to_s)
|
1511
|
+
|
1512
|
+
# query parameters
|
1513
|
+
query_params = {}
|
1514
|
+
query_params[:'factory_id'] = factory_id
|
1515
|
+
|
1516
|
+
# header parameters
|
1517
|
+
header_params = {}
|
1518
|
+
# HTTP header 'Accept' (if needed)
|
1519
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1520
|
+
# HTTP header 'Content-Type'
|
1521
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1522
|
+
|
1523
|
+
# form parameters
|
1524
|
+
form_params = {}
|
1525
|
+
|
1526
|
+
# http body (model)
|
1527
|
+
post_body = nil
|
1528
|
+
auth_names = ['api_key']
|
1529
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1530
|
+
:header_params => header_params,
|
1531
|
+
:query_params => query_params,
|
1532
|
+
:form_params => form_params,
|
1533
|
+
:body => post_body,
|
1534
|
+
:auth_names => auth_names,
|
1535
|
+
:return_type => 'EncodingSignedUrl')
|
1536
|
+
if @api_client.config.debugging
|
1537
|
+
@api_client.config.logger.debug "API called: FlipApi#signed_encoding_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1538
|
+
end
|
1539
|
+
return data, status_code, headers
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
# Returns a list of signed urls pointing to an Encoding's outputs.
|
1543
|
+
#
|
1544
|
+
# @param id Id of an Encoding.
|
1545
|
+
# @param factory_id Id of a Factory.
|
1546
|
+
# @param [Hash] opts the optional parameters
|
1547
|
+
# @return [EncodingSignedUrls]
|
1548
|
+
def signed_encoding_urls(id, factory_id, opts = {})
|
1549
|
+
data, _status_code, _headers = signed_encoding_urls_with_http_info(id, factory_id, opts)
|
1550
|
+
return data
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
# Returns a list of signed urls pointing to an Encoding's outputs.
|
1554
|
+
#
|
1555
|
+
# @param id Id of an Encoding.
|
1556
|
+
# @param factory_id Id of a Factory.
|
1557
|
+
# @param [Hash] opts the optional parameters
|
1558
|
+
# @return [Array<(EncodingSignedUrls, Fixnum, Hash)>] EncodingSignedUrls data, response status code and response headers
|
1559
|
+
def signed_encoding_urls_with_http_info(id, factory_id, opts = {})
|
1560
|
+
if @api_client.config.debugging
|
1561
|
+
@api_client.config.logger.debug "Calling API: FlipApi.signed_encoding_urls ..."
|
1562
|
+
end
|
1563
|
+
# verify the required parameter 'id' is set
|
1564
|
+
if @api_client.config.client_side_validation && id.nil?
|
1565
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.signed_encoding_urls"
|
1566
|
+
end
|
1567
|
+
# verify the required parameter 'factory_id' is set
|
1568
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1569
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.signed_encoding_urls"
|
1570
|
+
end
|
1571
|
+
# resource path
|
1572
|
+
local_var_path = "/encodings/{id}/signed-urls.json".sub('{' + 'id' + '}', id.to_s)
|
1573
|
+
|
1574
|
+
# query parameters
|
1575
|
+
query_params = {}
|
1576
|
+
query_params[:'factory_id'] = factory_id
|
1577
|
+
|
1578
|
+
# header parameters
|
1579
|
+
header_params = {}
|
1580
|
+
# HTTP header 'Accept' (if needed)
|
1581
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1582
|
+
# HTTP header 'Content-Type'
|
1583
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1584
|
+
|
1585
|
+
# form parameters
|
1586
|
+
form_params = {}
|
1587
|
+
|
1588
|
+
# http body (model)
|
1589
|
+
post_body = nil
|
1590
|
+
auth_names = ['api_key']
|
1591
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1592
|
+
:header_params => header_params,
|
1593
|
+
:query_params => query_params,
|
1594
|
+
:form_params => form_params,
|
1595
|
+
:body => post_body,
|
1596
|
+
:auth_names => auth_names,
|
1597
|
+
:return_type => 'EncodingSignedUrls')
|
1598
|
+
if @api_client.config.debugging
|
1599
|
+
@api_client.config.logger.debug "API called: FlipApi#signed_encoding_urls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1600
|
+
end
|
1601
|
+
return data, status_code, headers
|
1602
|
+
end
|
1603
|
+
|
1604
|
+
# Returns a signed url pointing to a Video.
|
1605
|
+
#
|
1606
|
+
# @param id Id of a Video.
|
1607
|
+
# @param factory_id Id of a Factory.
|
1608
|
+
# @param [Hash] opts the optional parameters
|
1609
|
+
# @return [SignedVideoUrl]
|
1610
|
+
def signed_video_url(id, factory_id, opts = {})
|
1611
|
+
data, _status_code, _headers = signed_video_url_with_http_info(id, factory_id, opts)
|
1612
|
+
return data
|
1613
|
+
end
|
1614
|
+
|
1615
|
+
# Returns a signed url pointing to a Video.
|
1616
|
+
#
|
1617
|
+
# @param id Id of a Video.
|
1618
|
+
# @param factory_id Id of a Factory.
|
1619
|
+
# @param [Hash] opts the optional parameters
|
1620
|
+
# @return [Array<(SignedVideoUrl, Fixnum, Hash)>] SignedVideoUrl data, response status code and response headers
|
1621
|
+
def signed_video_url_with_http_info(id, factory_id, opts = {})
|
1622
|
+
if @api_client.config.debugging
|
1623
|
+
@api_client.config.logger.debug "Calling API: FlipApi.signed_video_url ..."
|
1624
|
+
end
|
1625
|
+
# verify the required parameter 'id' is set
|
1626
|
+
if @api_client.config.client_side_validation && id.nil?
|
1627
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.signed_video_url"
|
1628
|
+
end
|
1629
|
+
# verify the required parameter 'factory_id' is set
|
1630
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1631
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.signed_video_url"
|
1632
|
+
end
|
1633
|
+
# resource path
|
1634
|
+
local_var_path = "/videos/{id}/signed-url.json".sub('{' + 'id' + '}', id.to_s)
|
1635
|
+
|
1636
|
+
# query parameters
|
1637
|
+
query_params = {}
|
1638
|
+
query_params[:'factory_id'] = factory_id
|
1639
|
+
|
1640
|
+
# header parameters
|
1641
|
+
header_params = {}
|
1642
|
+
# HTTP header 'Accept' (if needed)
|
1643
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1644
|
+
# HTTP header 'Content-Type'
|
1645
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1646
|
+
|
1647
|
+
# form parameters
|
1648
|
+
form_params = {}
|
1649
|
+
|
1650
|
+
# http body (model)
|
1651
|
+
post_body = nil
|
1652
|
+
auth_names = ['api_key']
|
1653
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1654
|
+
:header_params => header_params,
|
1655
|
+
:query_params => query_params,
|
1656
|
+
:form_params => form_params,
|
1657
|
+
:body => post_body,
|
1658
|
+
:auth_names => auth_names,
|
1659
|
+
:return_type => 'SignedVideoUrl')
|
1660
|
+
if @api_client.config.debugging
|
1661
|
+
@api_client.config.logger.debug "API called: FlipApi#signed_video_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1662
|
+
end
|
1663
|
+
return data, status_code, headers
|
1664
|
+
end
|
1665
|
+
|
1666
|
+
# Toggles synchronisation settings.
|
1667
|
+
#
|
1668
|
+
# @param id id of the factory
|
1669
|
+
# @param factory_sync_body
|
1670
|
+
# @param [Hash] opts the optional parameters
|
1671
|
+
# @return [FactorySync]
|
1672
|
+
def toggle_factory_sync(id, factory_sync_body, opts = {})
|
1673
|
+
data, _status_code, _headers = toggle_factory_sync_with_http_info(id, factory_sync_body, opts)
|
1674
|
+
return data
|
1675
|
+
end
|
1676
|
+
|
1677
|
+
# Toggles synchronisation settings.
|
1678
|
+
#
|
1679
|
+
# @param id id of the factory
|
1680
|
+
# @param factory_sync_body
|
1681
|
+
# @param [Hash] opts the optional parameters
|
1682
|
+
# @return [Array<(FactorySync, Fixnum, Hash)>] FactorySync data, response status code and response headers
|
1683
|
+
def toggle_factory_sync_with_http_info(id, factory_sync_body, opts = {})
|
1684
|
+
if @api_client.config.debugging
|
1685
|
+
@api_client.config.logger.debug "Calling API: FlipApi.toggle_factory_sync ..."
|
1686
|
+
end
|
1687
|
+
# verify the required parameter 'id' is set
|
1688
|
+
if @api_client.config.client_side_validation && id.nil?
|
1689
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.toggle_factory_sync"
|
1690
|
+
end
|
1691
|
+
# verify the required parameter 'factory_sync_body' is set
|
1692
|
+
if @api_client.config.client_side_validation && factory_sync_body.nil?
|
1693
|
+
fail ArgumentError, "Missing the required parameter 'factory_sync_body' when calling FlipApi.toggle_factory_sync"
|
1694
|
+
end
|
1695
|
+
# resource path
|
1696
|
+
local_var_path = "/factories/{id}/sync.json".sub('{' + 'id' + '}', id.to_s)
|
1697
|
+
|
1698
|
+
# query parameters
|
1699
|
+
query_params = {}
|
1700
|
+
|
1701
|
+
# header parameters
|
1702
|
+
header_params = {}
|
1703
|
+
# HTTP header 'Accept' (if needed)
|
1704
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1705
|
+
# HTTP header 'Content-Type'
|
1706
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1707
|
+
|
1708
|
+
# form parameters
|
1709
|
+
form_params = {}
|
1710
|
+
|
1711
|
+
# http body (model)
|
1712
|
+
post_body = @api_client.object_to_http_body(factory_sync_body)
|
1713
|
+
auth_names = ['api_key']
|
1714
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1715
|
+
:header_params => header_params,
|
1716
|
+
:query_params => query_params,
|
1717
|
+
:form_params => form_params,
|
1718
|
+
:body => post_body,
|
1719
|
+
:auth_names => auth_names,
|
1720
|
+
:return_type => 'FactorySync')
|
1721
|
+
if @api_client.config.debugging
|
1722
|
+
@api_client.config.logger.debug "API called: FlipApi#toggle_factory_sync\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1723
|
+
end
|
1724
|
+
return data, status_code, headers
|
1725
|
+
end
|
1726
|
+
|
1727
|
+
# Updates an Encoding
|
1728
|
+
#
|
1729
|
+
# @param id Id of an Encoding.
|
1730
|
+
# @param factory_id Id of a Factory.
|
1731
|
+
# @param update_encoding_body
|
1732
|
+
# @param [Hash] opts the optional parameters
|
1733
|
+
# @option opts [BOOLEAN] :screenshots Determines whether the response will include screenshots. By default this is not set.
|
1734
|
+
# @option opts [BOOLEAN] :precise_status Determines whether the response will include a precise status. By default this is not set.
|
1735
|
+
# @return [Encoding]
|
1736
|
+
def update_encoding(id, factory_id, update_encoding_body, opts = {})
|
1737
|
+
data, _status_code, _headers = update_encoding_with_http_info(id, factory_id, update_encoding_body, opts)
|
1738
|
+
return data
|
1739
|
+
end
|
1740
|
+
|
1741
|
+
# Updates an Encoding
|
1742
|
+
#
|
1743
|
+
# @param id Id of an Encoding.
|
1744
|
+
# @param factory_id Id of a Factory.
|
1745
|
+
# @param update_encoding_body
|
1746
|
+
# @param [Hash] opts the optional parameters
|
1747
|
+
# @option opts [BOOLEAN] :screenshots Determines whether the response will include screenshots. By default this is not set.
|
1748
|
+
# @option opts [BOOLEAN] :precise_status Determines whether the response will include a precise status. By default this is not set.
|
1749
|
+
# @return [Array<(Encoding, Fixnum, Hash)>] Encoding data, response status code and response headers
|
1750
|
+
def update_encoding_with_http_info(id, factory_id, update_encoding_body, opts = {})
|
1751
|
+
if @api_client.config.debugging
|
1752
|
+
@api_client.config.logger.debug "Calling API: FlipApi.update_encoding ..."
|
1753
|
+
end
|
1754
|
+
# verify the required parameter 'id' is set
|
1755
|
+
if @api_client.config.client_side_validation && id.nil?
|
1756
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.update_encoding"
|
1757
|
+
end
|
1758
|
+
# verify the required parameter 'factory_id' is set
|
1759
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1760
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.update_encoding"
|
1761
|
+
end
|
1762
|
+
# verify the required parameter 'update_encoding_body' is set
|
1763
|
+
if @api_client.config.client_side_validation && update_encoding_body.nil?
|
1764
|
+
fail ArgumentError, "Missing the required parameter 'update_encoding_body' when calling FlipApi.update_encoding"
|
1765
|
+
end
|
1766
|
+
# resource path
|
1767
|
+
local_var_path = "/encodings/{id}.json".sub('{' + 'id' + '}', id.to_s)
|
1768
|
+
|
1769
|
+
# query parameters
|
1770
|
+
query_params = {}
|
1771
|
+
query_params[:'factory_id'] = factory_id
|
1772
|
+
query_params[:'screenshots'] = opts[:'screenshots'] if !opts[:'screenshots'].nil?
|
1773
|
+
query_params[:'precise_status'] = opts[:'precise_status'] if !opts[:'precise_status'].nil?
|
1774
|
+
|
1775
|
+
# header parameters
|
1776
|
+
header_params = {}
|
1777
|
+
# HTTP header 'Accept' (if needed)
|
1778
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1779
|
+
# HTTP header 'Content-Type'
|
1780
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1781
|
+
|
1782
|
+
# form parameters
|
1783
|
+
form_params = {}
|
1784
|
+
|
1785
|
+
# http body (model)
|
1786
|
+
post_body = @api_client.object_to_http_body(update_encoding_body)
|
1787
|
+
auth_names = ['api_key']
|
1788
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1789
|
+
:header_params => header_params,
|
1790
|
+
:query_params => query_params,
|
1791
|
+
:form_params => form_params,
|
1792
|
+
:body => post_body,
|
1793
|
+
:auth_names => auth_names,
|
1794
|
+
:return_type => 'Encoding')
|
1795
|
+
if @api_client.config.debugging
|
1796
|
+
@api_client.config.logger.debug "API called: FlipApi#update_encoding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1797
|
+
end
|
1798
|
+
return data, status_code, headers
|
1799
|
+
end
|
1800
|
+
|
1801
|
+
# Updates a Factory's settings. Returns a Factory object.
|
1802
|
+
#
|
1803
|
+
# @param id id of the factory
|
1804
|
+
# @param update_factory_body
|
1805
|
+
# @param [Hash] opts the optional parameters
|
1806
|
+
# @option opts [BOOLEAN] :with_storage_provider if set to `true`, results will include a storage provider's id
|
1807
|
+
# @return [Factory]
|
1808
|
+
def update_factory(id, update_factory_body, opts = {})
|
1809
|
+
data, _status_code, _headers = update_factory_with_http_info(id, update_factory_body, opts)
|
1810
|
+
return data
|
1811
|
+
end
|
1812
|
+
|
1813
|
+
# Updates a Factory's settings. Returns a Factory object.
|
1814
|
+
#
|
1815
|
+
# @param id id of the factory
|
1816
|
+
# @param update_factory_body
|
1817
|
+
# @param [Hash] opts the optional parameters
|
1818
|
+
# @option opts [BOOLEAN] :with_storage_provider if set to `true`, results will include a storage provider's id
|
1819
|
+
# @return [Array<(Factory, Fixnum, Hash)>] Factory data, response status code and response headers
|
1820
|
+
def update_factory_with_http_info(id, update_factory_body, opts = {})
|
1821
|
+
if @api_client.config.debugging
|
1822
|
+
@api_client.config.logger.debug "Calling API: FlipApi.update_factory ..."
|
1823
|
+
end
|
1824
|
+
# verify the required parameter 'id' is set
|
1825
|
+
if @api_client.config.client_side_validation && id.nil?
|
1826
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.update_factory"
|
1827
|
+
end
|
1828
|
+
# verify the required parameter 'update_factory_body' is set
|
1829
|
+
if @api_client.config.client_side_validation && update_factory_body.nil?
|
1830
|
+
fail ArgumentError, "Missing the required parameter 'update_factory_body' when calling FlipApi.update_factory"
|
1831
|
+
end
|
1832
|
+
# resource path
|
1833
|
+
local_var_path = "/factories/{id}.json".sub('{' + 'id' + '}', id.to_s)
|
1834
|
+
|
1835
|
+
# query parameters
|
1836
|
+
query_params = {}
|
1837
|
+
query_params[:'with_storage_provider'] = opts[:'with_storage_provider'] if !opts[:'with_storage_provider'].nil?
|
1838
|
+
|
1839
|
+
# header parameters
|
1840
|
+
header_params = {}
|
1841
|
+
# HTTP header 'Accept' (if needed)
|
1842
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1843
|
+
# HTTP header 'Content-Type'
|
1844
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1845
|
+
|
1846
|
+
# form parameters
|
1847
|
+
form_params = {}
|
1848
|
+
|
1849
|
+
# http body (model)
|
1850
|
+
post_body = @api_client.object_to_http_body(update_factory_body)
|
1851
|
+
auth_names = ['api_key']
|
1852
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1853
|
+
:header_params => header_params,
|
1854
|
+
:query_params => query_params,
|
1855
|
+
:form_params => form_params,
|
1856
|
+
:body => post_body,
|
1857
|
+
:auth_names => auth_names,
|
1858
|
+
:return_type => 'Factory')
|
1859
|
+
if @api_client.config.debugging
|
1860
|
+
@api_client.config.logger.debug "API called: FlipApi#update_factory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1861
|
+
end
|
1862
|
+
return data, status_code, headers
|
1863
|
+
end
|
1864
|
+
|
1865
|
+
# Updates a Factory's notification settings.
|
1866
|
+
#
|
1867
|
+
# @param factory_id Id of a Factory.
|
1868
|
+
# @param cloud_notification_settings_body
|
1869
|
+
# @param [Hash] opts the optional parameters
|
1870
|
+
# @return [CloudNotificationSettings]
|
1871
|
+
def update_notifications(factory_id, cloud_notification_settings_body, opts = {})
|
1872
|
+
data, _status_code, _headers = update_notifications_with_http_info(factory_id, cloud_notification_settings_body, opts)
|
1873
|
+
return data
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
# Updates a Factory's notification settings.
|
1877
|
+
#
|
1878
|
+
# @param factory_id Id of a Factory.
|
1879
|
+
# @param cloud_notification_settings_body
|
1880
|
+
# @param [Hash] opts the optional parameters
|
1881
|
+
# @return [Array<(CloudNotificationSettings, Fixnum, Hash)>] CloudNotificationSettings data, response status code and response headers
|
1882
|
+
def update_notifications_with_http_info(factory_id, cloud_notification_settings_body, opts = {})
|
1883
|
+
if @api_client.config.debugging
|
1884
|
+
@api_client.config.logger.debug "Calling API: FlipApi.update_notifications ..."
|
1885
|
+
end
|
1886
|
+
# verify the required parameter 'factory_id' is set
|
1887
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1888
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.update_notifications"
|
1889
|
+
end
|
1890
|
+
# verify the required parameter 'cloud_notification_settings_body' is set
|
1891
|
+
if @api_client.config.client_side_validation && cloud_notification_settings_body.nil?
|
1892
|
+
fail ArgumentError, "Missing the required parameter 'cloud_notification_settings_body' when calling FlipApi.update_notifications"
|
1893
|
+
end
|
1894
|
+
# resource path
|
1895
|
+
local_var_path = "/notifications.json"
|
1896
|
+
|
1897
|
+
# query parameters
|
1898
|
+
query_params = {}
|
1899
|
+
query_params[:'factory_id'] = factory_id
|
1900
|
+
|
1901
|
+
# header parameters
|
1902
|
+
header_params = {}
|
1903
|
+
# HTTP header 'Accept' (if needed)
|
1904
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1905
|
+
# HTTP header 'Content-Type'
|
1906
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1907
|
+
|
1908
|
+
# form parameters
|
1909
|
+
form_params = {}
|
1910
|
+
|
1911
|
+
# http body (model)
|
1912
|
+
post_body = @api_client.object_to_http_body(cloud_notification_settings_body)
|
1913
|
+
auth_names = ['api_key']
|
1914
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1915
|
+
:header_params => header_params,
|
1916
|
+
:query_params => query_params,
|
1917
|
+
:form_params => form_params,
|
1918
|
+
:body => post_body,
|
1919
|
+
:auth_names => auth_names,
|
1920
|
+
:return_type => 'CloudNotificationSettings')
|
1921
|
+
if @api_client.config.debugging
|
1922
|
+
@api_client.config.logger.debug "API called: FlipApi#update_notifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1923
|
+
end
|
1924
|
+
return data, status_code, headers
|
1925
|
+
end
|
1926
|
+
|
1927
|
+
# Updates a given Profile
|
1928
|
+
#
|
1929
|
+
# @param id
|
1930
|
+
# @param factory_id Id of a Factory.
|
1931
|
+
# @param update_profile_body
|
1932
|
+
# @param [Hash] opts the optional parameters
|
1933
|
+
# @option opts [BOOLEAN] :exclude_advanced_services
|
1934
|
+
# @option opts [BOOLEAN] :expand If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
|
1935
|
+
# @return [Profile]
|
1936
|
+
def update_profile(id, factory_id, update_profile_body, opts = {})
|
1937
|
+
data, _status_code, _headers = update_profile_with_http_info(id, factory_id, update_profile_body, opts)
|
1938
|
+
return data
|
1939
|
+
end
|
1940
|
+
|
1941
|
+
# Updates a given Profile
|
1942
|
+
#
|
1943
|
+
# @param id
|
1944
|
+
# @param factory_id Id of a Factory.
|
1945
|
+
# @param update_profile_body
|
1946
|
+
# @param [Hash] opts the optional parameters
|
1947
|
+
# @option opts [BOOLEAN] :exclude_advanced_services
|
1948
|
+
# @option opts [BOOLEAN] :expand If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
|
1949
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
1950
|
+
def update_profile_with_http_info(id, factory_id, update_profile_body, opts = {})
|
1951
|
+
if @api_client.config.debugging
|
1952
|
+
@api_client.config.logger.debug "Calling API: FlipApi.update_profile ..."
|
1953
|
+
end
|
1954
|
+
# verify the required parameter 'id' is set
|
1955
|
+
if @api_client.config.client_side_validation && id.nil?
|
1956
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.update_profile"
|
1957
|
+
end
|
1958
|
+
# verify the required parameter 'factory_id' is set
|
1959
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
1960
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.update_profile"
|
1961
|
+
end
|
1962
|
+
# verify the required parameter 'update_profile_body' is set
|
1963
|
+
if @api_client.config.client_side_validation && update_profile_body.nil?
|
1964
|
+
fail ArgumentError, "Missing the required parameter 'update_profile_body' when calling FlipApi.update_profile"
|
1965
|
+
end
|
1966
|
+
# resource path
|
1967
|
+
local_var_path = "/profiles/{id}.json".sub('{' + 'id' + '}', id.to_s)
|
1968
|
+
|
1969
|
+
# query parameters
|
1970
|
+
query_params = {}
|
1971
|
+
query_params[:'factory_id'] = factory_id
|
1972
|
+
query_params[:'exclude_advanced_services'] = opts[:'exclude_advanced_services'] if !opts[:'exclude_advanced_services'].nil?
|
1973
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
1974
|
+
|
1975
|
+
# header parameters
|
1976
|
+
header_params = {}
|
1977
|
+
# HTTP header 'Accept' (if needed)
|
1978
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1979
|
+
# HTTP header 'Content-Type'
|
1980
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1981
|
+
|
1982
|
+
# form parameters
|
1983
|
+
form_params = {}
|
1984
|
+
|
1985
|
+
# http body (model)
|
1986
|
+
post_body = @api_client.object_to_http_body(update_profile_body)
|
1987
|
+
auth_names = ['api_key']
|
1988
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1989
|
+
:header_params => header_params,
|
1990
|
+
:query_params => query_params,
|
1991
|
+
:form_params => form_params,
|
1992
|
+
:body => post_body,
|
1993
|
+
:auth_names => auth_names,
|
1994
|
+
:return_type => 'Profile')
|
1995
|
+
if @api_client.config.debugging
|
1996
|
+
@api_client.config.logger.debug "API called: FlipApi#update_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1997
|
+
end
|
1998
|
+
return data, status_code, headers
|
1999
|
+
end
|
2000
|
+
|
2001
|
+
# Creates an upload session.
|
2002
|
+
#
|
2003
|
+
# @param factory_id Id of a Factory.
|
2004
|
+
# @param video_upload_body
|
2005
|
+
# @param [Hash] opts the optional parameters
|
2006
|
+
# @return [UploadSession]
|
2007
|
+
def upload_video(factory_id, video_upload_body, opts = {})
|
2008
|
+
data, _status_code, _headers = upload_video_with_http_info(factory_id, video_upload_body, opts)
|
2009
|
+
return data
|
2010
|
+
end
|
2011
|
+
|
2012
|
+
# Creates an upload session.
|
2013
|
+
#
|
2014
|
+
# @param factory_id Id of a Factory.
|
2015
|
+
# @param video_upload_body
|
2016
|
+
# @param [Hash] opts the optional parameters
|
2017
|
+
# @return [Array<(UploadSession, Fixnum, Hash)>] UploadSession data, response status code and response headers
|
2018
|
+
def upload_video_with_http_info(factory_id, video_upload_body, opts = {})
|
2019
|
+
if @api_client.config.debugging
|
2020
|
+
@api_client.config.logger.debug "Calling API: FlipApi.upload_video ..."
|
2021
|
+
end
|
2022
|
+
# verify the required parameter 'factory_id' is set
|
2023
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
2024
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.upload_video"
|
2025
|
+
end
|
2026
|
+
# verify the required parameter 'video_upload_body' is set
|
2027
|
+
if @api_client.config.client_side_validation && video_upload_body.nil?
|
2028
|
+
fail ArgumentError, "Missing the required parameter 'video_upload_body' when calling FlipApi.upload_video"
|
2029
|
+
end
|
2030
|
+
# resource path
|
2031
|
+
local_var_path = "/videos/upload.json"
|
2032
|
+
|
2033
|
+
# query parameters
|
2034
|
+
query_params = {}
|
2035
|
+
query_params[:'factory_id'] = factory_id
|
2036
|
+
|
2037
|
+
# header parameters
|
2038
|
+
header_params = {}
|
2039
|
+
# HTTP header 'Accept' (if needed)
|
2040
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2041
|
+
# HTTP header 'Content-Type'
|
2042
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2043
|
+
|
2044
|
+
# form parameters
|
2045
|
+
form_params = {}
|
2046
|
+
|
2047
|
+
# http body (model)
|
2048
|
+
post_body = @api_client.object_to_http_body(video_upload_body)
|
2049
|
+
auth_names = ['api_key']
|
2050
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2051
|
+
:header_params => header_params,
|
2052
|
+
:query_params => query_params,
|
2053
|
+
:form_params => form_params,
|
2054
|
+
:body => post_body,
|
2055
|
+
:auth_names => auth_names,
|
2056
|
+
:return_type => 'UploadSession')
|
2057
|
+
if @api_client.config.debugging
|
2058
|
+
@api_client.config.logger.debug "API called: FlipApi#upload_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2059
|
+
end
|
2060
|
+
return data, status_code, headers
|
2061
|
+
end
|
2062
|
+
|
2063
|
+
# Returns a Video object.
|
2064
|
+
#
|
2065
|
+
# @param id Id of a Video.
|
2066
|
+
# @param factory_id Id of a Factory.
|
2067
|
+
# @param [Hash] opts the optional parameters
|
2068
|
+
# @return [Video]
|
2069
|
+
def video(id, factory_id, opts = {})
|
2070
|
+
data, _status_code, _headers = video_with_http_info(id, factory_id, opts)
|
2071
|
+
return data
|
2072
|
+
end
|
2073
|
+
|
2074
|
+
# Returns a Video object.
|
2075
|
+
#
|
2076
|
+
# @param id Id of a Video.
|
2077
|
+
# @param factory_id Id of a Factory.
|
2078
|
+
# @param [Hash] opts the optional parameters
|
2079
|
+
# @return [Array<(Video, Fixnum, Hash)>] Video data, response status code and response headers
|
2080
|
+
def video_with_http_info(id, factory_id, opts = {})
|
2081
|
+
if @api_client.config.debugging
|
2082
|
+
@api_client.config.logger.debug "Calling API: FlipApi.video ..."
|
2083
|
+
end
|
2084
|
+
# verify the required parameter 'id' is set
|
2085
|
+
if @api_client.config.client_side_validation && id.nil?
|
2086
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.video"
|
2087
|
+
end
|
2088
|
+
# verify the required parameter 'factory_id' is set
|
2089
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
2090
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.video"
|
2091
|
+
end
|
2092
|
+
# resource path
|
2093
|
+
local_var_path = "/videos/{id}.json".sub('{' + 'id' + '}', id.to_s)
|
2094
|
+
|
2095
|
+
# query parameters
|
2096
|
+
query_params = {}
|
2097
|
+
query_params[:'factory_id'] = factory_id
|
2098
|
+
|
2099
|
+
# header parameters
|
2100
|
+
header_params = {}
|
2101
|
+
# HTTP header 'Accept' (if needed)
|
2102
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2103
|
+
# HTTP header 'Content-Type'
|
2104
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2105
|
+
|
2106
|
+
# form parameters
|
2107
|
+
form_params = {}
|
2108
|
+
|
2109
|
+
# http body (model)
|
2110
|
+
post_body = nil
|
2111
|
+
auth_names = ['api_key']
|
2112
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2113
|
+
:header_params => header_params,
|
2114
|
+
:query_params => query_params,
|
2115
|
+
:form_params => form_params,
|
2116
|
+
:body => post_body,
|
2117
|
+
:auth_names => auth_names,
|
2118
|
+
:return_type => 'Video')
|
2119
|
+
if @api_client.config.debugging
|
2120
|
+
@api_client.config.logger.debug "API called: FlipApi#video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2121
|
+
end
|
2122
|
+
return data, status_code, headers
|
2123
|
+
end
|
2124
|
+
|
2125
|
+
# Returns a list of Encodings that belong to a Video.
|
2126
|
+
#
|
2127
|
+
# @param id Id of a Video.
|
2128
|
+
# @param factory_id Id of a Factory.
|
2129
|
+
# @param [Hash] opts the optional parameters
|
2130
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
2131
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
2132
|
+
# @option opts [BOOLEAN] :screenshots Determines whether the response will include screenshots. By default this is not set.
|
2133
|
+
# @option opts [BOOLEAN] :precise_status Determines whether the response will include a precise status. By default this is not set.
|
2134
|
+
# @return [PaginatedEncodingsCollection]
|
2135
|
+
def video_encodings(id, factory_id, opts = {})
|
2136
|
+
data, _status_code, _headers = video_encodings_with_http_info(id, factory_id, opts)
|
2137
|
+
return data
|
2138
|
+
end
|
2139
|
+
|
2140
|
+
# Returns a list of Encodings that belong to a Video.
|
2141
|
+
#
|
2142
|
+
# @param id Id of a Video.
|
2143
|
+
# @param factory_id Id of a Factory.
|
2144
|
+
# @param [Hash] opts the optional parameters
|
2145
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
2146
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
2147
|
+
# @option opts [BOOLEAN] :screenshots Determines whether the response will include screenshots. By default this is not set.
|
2148
|
+
# @option opts [BOOLEAN] :precise_status Determines whether the response will include a precise status. By default this is not set.
|
2149
|
+
# @return [Array<(PaginatedEncodingsCollection, Fixnum, Hash)>] PaginatedEncodingsCollection data, response status code and response headers
|
2150
|
+
def video_encodings_with_http_info(id, factory_id, opts = {})
|
2151
|
+
if @api_client.config.debugging
|
2152
|
+
@api_client.config.logger.debug "Calling API: FlipApi.video_encodings ..."
|
2153
|
+
end
|
2154
|
+
# verify the required parameter 'id' is set
|
2155
|
+
if @api_client.config.client_side_validation && id.nil?
|
2156
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.video_encodings"
|
2157
|
+
end
|
2158
|
+
# verify the required parameter 'factory_id' is set
|
2159
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
2160
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.video_encodings"
|
2161
|
+
end
|
2162
|
+
# resource path
|
2163
|
+
local_var_path = "/videos/{id}/encodings.json".sub('{' + 'id' + '}', id.to_s)
|
2164
|
+
|
2165
|
+
# query parameters
|
2166
|
+
query_params = {}
|
2167
|
+
query_params[:'factory_id'] = factory_id
|
2168
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
2169
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
2170
|
+
query_params[:'screenshots'] = opts[:'screenshots'] if !opts[:'screenshots'].nil?
|
2171
|
+
query_params[:'precise_status'] = opts[:'precise_status'] if !opts[:'precise_status'].nil?
|
2172
|
+
|
2173
|
+
# header parameters
|
2174
|
+
header_params = {}
|
2175
|
+
# HTTP header 'Accept' (if needed)
|
2176
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2177
|
+
# HTTP header 'Content-Type'
|
2178
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2179
|
+
|
2180
|
+
# form parameters
|
2181
|
+
form_params = {}
|
2182
|
+
|
2183
|
+
# http body (model)
|
2184
|
+
post_body = nil
|
2185
|
+
auth_names = ['api_key']
|
2186
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2187
|
+
:header_params => header_params,
|
2188
|
+
:query_params => query_params,
|
2189
|
+
:form_params => form_params,
|
2190
|
+
:body => post_body,
|
2191
|
+
:auth_names => auth_names,
|
2192
|
+
:return_type => 'PaginatedEncodingsCollection')
|
2193
|
+
if @api_client.config.debugging
|
2194
|
+
@api_client.config.logger.debug "API called: FlipApi#video_encodings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2195
|
+
end
|
2196
|
+
return data, status_code, headers
|
2197
|
+
end
|
2198
|
+
|
2199
|
+
# Returns a Video's metadata
|
2200
|
+
#
|
2201
|
+
# @param id Id of a Video.
|
2202
|
+
# @param factory_id Id of a Factory.
|
2203
|
+
# @param [Hash] opts the optional parameters
|
2204
|
+
# @return [VideoMetadata]
|
2205
|
+
def video_metadata(id, factory_id, opts = {})
|
2206
|
+
data, _status_code, _headers = video_metadata_with_http_info(id, factory_id, opts)
|
2207
|
+
return data
|
2208
|
+
end
|
2209
|
+
|
2210
|
+
# Returns a Video's metadata
|
2211
|
+
#
|
2212
|
+
# @param id Id of a Video.
|
2213
|
+
# @param factory_id Id of a Factory.
|
2214
|
+
# @param [Hash] opts the optional parameters
|
2215
|
+
# @return [Array<(VideoMetadata, Fixnum, Hash)>] VideoMetadata data, response status code and response headers
|
2216
|
+
def video_metadata_with_http_info(id, factory_id, opts = {})
|
2217
|
+
if @api_client.config.debugging
|
2218
|
+
@api_client.config.logger.debug "Calling API: FlipApi.video_metadata ..."
|
2219
|
+
end
|
2220
|
+
# verify the required parameter 'id' is set
|
2221
|
+
if @api_client.config.client_side_validation && id.nil?
|
2222
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.video_metadata"
|
2223
|
+
end
|
2224
|
+
# verify the required parameter 'factory_id' is set
|
2225
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
2226
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.video_metadata"
|
2227
|
+
end
|
2228
|
+
# resource path
|
2229
|
+
local_var_path = "/videos/{id}/metadata.json".sub('{' + 'id' + '}', id.to_s)
|
2230
|
+
|
2231
|
+
# query parameters
|
2232
|
+
query_params = {}
|
2233
|
+
query_params[:'factory_id'] = factory_id
|
2234
|
+
|
2235
|
+
# header parameters
|
2236
|
+
header_params = {}
|
2237
|
+
# HTTP header 'Accept' (if needed)
|
2238
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2239
|
+
# HTTP header 'Content-Type'
|
2240
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2241
|
+
|
2242
|
+
# form parameters
|
2243
|
+
form_params = {}
|
2244
|
+
|
2245
|
+
# http body (model)
|
2246
|
+
post_body = nil
|
2247
|
+
auth_names = ['api_key']
|
2248
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2249
|
+
:header_params => header_params,
|
2250
|
+
:query_params => query_params,
|
2251
|
+
:form_params => form_params,
|
2252
|
+
:body => post_body,
|
2253
|
+
:auth_names => auth_names,
|
2254
|
+
:return_type => 'VideoMetadata')
|
2255
|
+
if @api_client.config.debugging
|
2256
|
+
@api_client.config.logger.debug "API called: FlipApi#video_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2257
|
+
end
|
2258
|
+
return data, status_code, headers
|
2259
|
+
end
|
2260
|
+
|
2261
|
+
# Returns a collection of Video objects.
|
2262
|
+
#
|
2263
|
+
# @param factory_id Id of a Factory.
|
2264
|
+
# @param [Hash] opts the optional parameters
|
2265
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
2266
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
2267
|
+
# @return [PaginatedVideoCollection]
|
2268
|
+
def videos(factory_id, opts = {})
|
2269
|
+
data, _status_code, _headers = videos_with_http_info(factory_id, opts)
|
2270
|
+
return data
|
2271
|
+
end
|
2272
|
+
|
2273
|
+
# Returns a collection of Video objects.
|
2274
|
+
#
|
2275
|
+
# @param factory_id Id of a Factory.
|
2276
|
+
# @param [Hash] opts the optional parameters
|
2277
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
2278
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
2279
|
+
# @return [Array<(PaginatedVideoCollection, Fixnum, Hash)>] PaginatedVideoCollection data, response status code and response headers
|
2280
|
+
def videos_with_http_info(factory_id, opts = {})
|
2281
|
+
if @api_client.config.debugging
|
2282
|
+
@api_client.config.logger.debug "Calling API: FlipApi.videos ..."
|
2283
|
+
end
|
2284
|
+
# verify the required parameter 'factory_id' is set
|
2285
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
2286
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.videos"
|
2287
|
+
end
|
2288
|
+
# resource path
|
2289
|
+
local_var_path = "/videos.json"
|
2290
|
+
|
2291
|
+
# query parameters
|
2292
|
+
query_params = {}
|
2293
|
+
query_params[:'factory_id'] = factory_id
|
2294
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
2295
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
2296
|
+
|
2297
|
+
# header parameters
|
2298
|
+
header_params = {}
|
2299
|
+
# HTTP header 'Accept' (if needed)
|
2300
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2301
|
+
# HTTP header 'Content-Type'
|
2302
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2303
|
+
|
2304
|
+
# form parameters
|
2305
|
+
form_params = {}
|
2306
|
+
|
2307
|
+
# http body (model)
|
2308
|
+
post_body = nil
|
2309
|
+
auth_names = ['api_key']
|
2310
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2311
|
+
:header_params => header_params,
|
2312
|
+
:query_params => query_params,
|
2313
|
+
:form_params => form_params,
|
2314
|
+
:body => post_body,
|
2315
|
+
:auth_names => auth_names,
|
2316
|
+
:return_type => 'PaginatedVideoCollection')
|
2317
|
+
if @api_client.config.debugging
|
2318
|
+
@api_client.config.logger.debug "API called: FlipApi#videos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2319
|
+
end
|
2320
|
+
return data, status_code, headers
|
2321
|
+
end
|
2322
|
+
|
2323
|
+
# Returns a collection of Workflows that belong to a Factory.
|
2324
|
+
#
|
2325
|
+
# @param factory_id Id of a Factory.
|
2326
|
+
# @param [Hash] opts the optional parameters
|
2327
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
2328
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
2329
|
+
# @return [PaginatedWorkflowsCollection]
|
2330
|
+
def workflows(factory_id, opts = {})
|
2331
|
+
data, _status_code, _headers = workflows_with_http_info(factory_id, opts)
|
2332
|
+
return data
|
2333
|
+
end
|
2334
|
+
|
2335
|
+
# Returns a collection of Workflows that belong to a Factory.
|
2336
|
+
#
|
2337
|
+
# @param factory_id Id of a Factory.
|
2338
|
+
# @param [Hash] opts the optional parameters
|
2339
|
+
# @option opts [Integer] :page A page to be fetched. Default is `1`.
|
2340
|
+
# @option opts [Integer] :per_page A number of results per page. Default is `100`.
|
2341
|
+
# @return [Array<(PaginatedWorkflowsCollection, Fixnum, Hash)>] PaginatedWorkflowsCollection data, response status code and response headers
|
2342
|
+
def workflows_with_http_info(factory_id, opts = {})
|
2343
|
+
if @api_client.config.debugging
|
2344
|
+
@api_client.config.logger.debug "Calling API: FlipApi.workflows ..."
|
2345
|
+
end
|
2346
|
+
# verify the required parameter 'factory_id' is set
|
2347
|
+
if @api_client.config.client_side_validation && factory_id.nil?
|
2348
|
+
fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.workflows"
|
2349
|
+
end
|
2350
|
+
# resource path
|
2351
|
+
local_var_path = "/workflows.json"
|
2352
|
+
|
2353
|
+
# query parameters
|
2354
|
+
query_params = {}
|
2355
|
+
query_params[:'factory_id'] = factory_id
|
2356
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
2357
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
2358
|
+
|
2359
|
+
# header parameters
|
2360
|
+
header_params = {}
|
2361
|
+
# HTTP header 'Accept' (if needed)
|
2362
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2363
|
+
# HTTP header 'Content-Type'
|
2364
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2365
|
+
|
2366
|
+
# form parameters
|
2367
|
+
form_params = {}
|
2368
|
+
|
2369
|
+
# http body (model)
|
2370
|
+
post_body = nil
|
2371
|
+
auth_names = ['api_key']
|
2372
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2373
|
+
:header_params => header_params,
|
2374
|
+
:query_params => query_params,
|
2375
|
+
:form_params => form_params,
|
2376
|
+
:body => post_body,
|
2377
|
+
:auth_names => auth_names,
|
2378
|
+
:return_type => 'PaginatedWorkflowsCollection')
|
2379
|
+
if @api_client.config.debugging
|
2380
|
+
@api_client.config.logger.debug "API called: FlipApi#workflows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2381
|
+
end
|
2382
|
+
return data, status_code, headers
|
2383
|
+
end
|
2384
|
+
end
|
2385
|
+
end
|