fastpixapi 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/crystalline/metadata_fields.rb +2 -0
- data/lib/crystalline/module.rb +12 -13
- data/lib/fastpix_client/dimensions.rb +3 -3
- data/lib/fastpix_client/errors.rb +1 -1
- data/lib/fastpix_client/in_video_ai_features.rb +8 -8
- data/lib/fastpix_client/input_video.rb +4 -3
- data/lib/fastpix_client/live_playback.rb +253 -0
- data/lib/fastpix_client/manage_live_stream.rb +13 -12
- data/lib/fastpix_client/manage_videos.rb +21 -23
- data/lib/fastpix_client/metrics.rb +3 -3
- data/lib/fastpix_client/models/components/addtrackrequest.rb +6 -2
- data/lib/fastpix_client/models/components/addtrackrequest.rbi +2 -0
- data/lib/fastpix_client/models/components/addtrackresponse.rb +6 -2
- data/lib/fastpix_client/models/components/addtrackresponse.rbi +2 -0
- data/lib/fastpix_client/models/components/audiotrack.rb +6 -2
- data/lib/fastpix_client/models/components/audiotrack.rbi +2 -0
- data/lib/fastpix_client/models/components/generatetrackresponse.rb +6 -2
- data/lib/fastpix_client/models/components/generatetrackresponse.rbi +2 -0
- data/lib/fastpix_client/models/components/getallmediaresponse.rb +11 -13
- data/lib/fastpix_client/models/components/getallmediaresponse.rbi +3 -1
- data/lib/fastpix_client/models/components/getallmediaresponse_mp4support.rb +32 -12
- data/lib/fastpix_client/models/components/getallmediaresponse_mp4support.rbi +11 -1
- data/lib/fastpix_client/models/components/getallmediaresponse_sourceresolution.rb +2 -0
- data/lib/fastpix_client/models/components/{getmediaresponse.rb → getmediadetailresponse.rb} +16 -18
- data/lib/fastpix_client/models/components/{getmediaresponse.rbi → getmediadetailresponse.rbi} +5 -3
- data/lib/fastpix_client/models/components/{getmediaresponse_maxresolution.rb → getmediadetailresponse_maxresolution.rb} +2 -2
- data/lib/fastpix_client/models/components/getmediadetailresponse_maxresolution.rbi +11 -0
- data/lib/fastpix_client/models/components/{getmediaresponse_mediaquality.rb → getmediadetailresponse_mediaquality.rb} +2 -2
- data/lib/fastpix_client/models/components/getmediadetailresponse_mediaquality.rbi +11 -0
- data/lib/fastpix_client/models/components/getmediadetailresponse_mp4support.rb +48 -0
- data/lib/fastpix_client/models/components/getmediadetailresponse_mp4support.rbi +21 -0
- data/lib/fastpix_client/models/components/{getmediaresponse_sourceresolution.rb → getmediadetailresponse_sourceresolution.rb} +4 -2
- data/lib/fastpix_client/models/components/getmediadetailresponse_sourceresolution.rbi +11 -0
- data/lib/fastpix_client/models/components/{getmediaresponse_status.rb → getmediadetailresponse_status.rb} +2 -2
- data/lib/fastpix_client/models/components/getmediadetailresponse_status.rbi +11 -0
- data/lib/fastpix_client/models/components/{getmediaresponse_track.rb → getmediadetailresponse_track.rb} +1 -1
- data/lib/fastpix_client/models/components/getmediadetailresponse_track.rbi +11 -0
- data/lib/fastpix_client/models/components/inputmediasettings.rb +7 -2
- data/lib/fastpix_client/models/components/inputmediasettings.rbi +2 -0
- data/lib/fastpix_client/models/components/live_media_clips.rb +11 -13
- data/lib/fastpix_client/models/components/live_media_clips.rbi +3 -1
- data/lib/fastpix_client/models/components/live_media_clips_mp4support.rb +32 -12
- data/lib/fastpix_client/models/components/live_media_clips_mp4support.rbi +11 -1
- data/lib/fastpix_client/models/components/live_media_clips_sourceresolution.rb +2 -0
- data/lib/fastpix_client/models/components/media.rb +11 -13
- data/lib/fastpix_client/models/components/media.rbi +3 -1
- data/lib/fastpix_client/models/components/media_mp4support.rb +32 -12
- data/lib/fastpix_client/models/components/media_mp4support.rbi +11 -1
- data/lib/fastpix_client/models/components/media_sourceresolution.rb +2 -0
- data/lib/fastpix_client/models/components/mediaclipresponse_data.rb +2 -2
- data/lib/fastpix_client/models/components/mediaclipresponse_data.rbi +1 -1
- data/lib/fastpix_client/models/components/playbackidrequest.rb +6 -2
- data/lib/fastpix_client/models/components/playbackidrequest.rbi +3 -1
- data/lib/fastpix_client/models/components/playbackidresponse.rb +6 -2
- data/lib/fastpix_client/models/components/playbackidresponse.rbi +3 -1
- data/lib/fastpix_client/models/components/playbackidsuccessresponse_data.rb +6 -2
- data/lib/fastpix_client/models/components/playbackidsuccessresponse_data.rbi +3 -1
- data/lib/fastpix_client/models/components/playbacksettings.rb +6 -2
- data/lib/fastpix_client/models/components/playbacksettings.rbi +3 -1
- data/lib/fastpix_client/models/components/playlistbyidresponsemedialistitem.rb +2 -2
- data/lib/fastpix_client/models/components/playlistbyidresponsemedialistitem.rbi +1 -1
- data/lib/fastpix_client/models/components/sourceaccessmedia.rb +11 -13
- data/lib/fastpix_client/models/components/sourceaccessmedia.rbi +3 -1
- data/lib/fastpix_client/models/components/sourceaccessmedia_mp4support.rb +32 -12
- data/lib/fastpix_client/models/components/sourceaccessmedia_mp4support.rbi +11 -1
- data/lib/fastpix_client/models/components/sourceaccessmedia_sourceresolution.rb +2 -0
- data/lib/fastpix_client/models/components/subtitletrack.rb +6 -2
- data/lib/fastpix_client/models/components/subtitletrack.rbi +2 -0
- data/lib/fastpix_client/models/components/tracksubtitlesgeneraterequest.rb +6 -2
- data/lib/fastpix_client/models/components/tracksubtitlesgeneraterequest.rbi +2 -0
- data/lib/fastpix_client/models/components/update_media.rb +11 -13
- data/lib/fastpix_client/models/components/update_media.rbi +3 -1
- data/lib/fastpix_client/models/components/update_media_maxresolution.rb +0 -1
- data/lib/fastpix_client/models/components/update_media_mp4support.rb +32 -12
- data/lib/fastpix_client/models/components/update_media_mp4support.rbi +11 -1
- data/lib/fastpix_client/models/components/updatetrackrequest.rb +7 -7
- data/lib/fastpix_client/models/components/updatetrackrequest.rbi +2 -2
- data/lib/fastpix_client/models/components/updatetrackresponse.rb +6 -2
- data/lib/fastpix_client/models/components/updatetrackresponse.rbi +2 -0
- data/lib/fastpix_client/models/components/videotrack.rb +6 -2
- data/lib/fastpix_client/models/components/videotrack.rbi +2 -0
- data/lib/fastpix_client/models/components/videotrackforgetall.rb +6 -2
- data/lib/fastpix_client/models/components/videotrackforgetall.rbi +2 -0
- data/lib/fastpix_client/models/components.rb +7 -7
- data/lib/fastpix_client/models/operations/get_media_response.rb +1 -1
- data/lib/fastpix_client/models/operations/get_media_responsebody.rb +2 -2
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_data.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_data.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_defaultpolicy.rb +21 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_defaultpolicy.rbi +11 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_request.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_request.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_requestbody.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_requestbody.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_response.rb +48 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_response.rbi +21 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_responsebody.rb +36 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_responsebody.rbi +15 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_data.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_data.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_defaultpolicy.rb +21 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_defaultpolicy.rbi +11 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_request.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_request.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_requestbody.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_requestbody.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_response.rb +48 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_response.rbi +21 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_responsebody.rb +36 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_responsebody.rbi +15 -0
- data/lib/fastpix_client/models/operations.rb +12 -0
- data/lib/fastpix_client/playlist.rb +2 -1
- data/lib/fastpix_client/sdkconfiguration.rb +3 -3
- data/lib/fastpix_client/simulcast_stream.rb +3 -3
- data/lib/fastpix_client/start_live_stream.rb +4 -4
- data/lib/fastpix_client/views.rb +3 -3
- metadata +58 -56
- data/lib/fastpix_client/models/components/getmediaresponse_maxresolution.rbi +0 -11
- data/lib/fastpix_client/models/components/getmediaresponse_mediaquality.rbi +0 -11
- data/lib/fastpix_client/models/components/getmediaresponse_mp4support.rb +0 -28
- data/lib/fastpix_client/models/components/getmediaresponse_mp4support.rbi +0 -11
- data/lib/fastpix_client/models/components/getmediaresponse_sourceresolution.rbi +0 -11
- data/lib/fastpix_client/models/components/getmediaresponse_status.rbi +0 -11
- data/lib/fastpix_client/models/components/getmediaresponse_track.rbi +0 -11
- data/test/sdk_examples_test.rb +0 -20
- data/test/test_helper.rb +0 -29
|
@@ -36,8 +36,10 @@ class FastpixClient::Models::Components::UpdateMedia
|
|
|
36
36
|
def moderation=(str_); end
|
|
37
37
|
def subtitle_available(); end
|
|
38
38
|
def subtitle_available=(str_); end
|
|
39
|
+
def optimize_audio(); end
|
|
40
|
+
def optimize_audio=(str_); end
|
|
39
41
|
def duration(); end
|
|
40
|
-
def duration=(
|
|
42
|
+
def duration=(float_); end
|
|
41
43
|
def aspect_ratio(); end
|
|
42
44
|
def aspect_ratio=(str_); end
|
|
43
45
|
def created_at(); end
|
|
@@ -7,20 +7,40 @@
|
|
|
7
7
|
module FastpixClient
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
|
-
# UpdateMediaMp4Support -
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# - **audioOnly,capped_4k**: Enables both MP4 video downloads (up to 4K) and an audio-only stream.
|
|
15
|
-
#
|
|
16
|
-
class UpdateMediaMp4Support < T::Enum
|
|
10
|
+
# UpdateMediaMp4Support - One MP4 rendition generated for the media when MP4 support is requested.
|
|
11
|
+
class UpdateMediaMp4Support
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
17
14
|
|
|
15
|
+
# The MP4 rendition type. `capped_4k` is a downloadable MP4 video capped at 4K resolution, `audioOnly` is a downloadable m4a audio-only file.
|
|
16
|
+
field :type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('type') } }
|
|
17
|
+
# Generation status of this MP4 rendition. One of `preparing`, `ready`, or `failed`.
|
|
18
|
+
field :status, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('status') } }
|
|
19
|
+
# Pixel height of the rendition. Omitted for the `audioOnly` type.
|
|
20
|
+
field :height, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('height') } }
|
|
21
|
+
# Pixel width of the rendition. Omitted for the `audioOnly` type.
|
|
22
|
+
field :width, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('width') } }
|
|
23
|
+
# File extension of the downloadable rendition. One of `mp4` or `m4a`.
|
|
24
|
+
field :ext, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('ext') } }
|
|
18
25
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
sig { params(type: T.nilable(::String), status: T.nilable(::String), height: T.nilable(::Integer), width: T.nilable(::Integer), ext: T.nilable(::String)).void }
|
|
27
|
+
def initialize(type: nil, status: nil, height: nil, width: nil, ext: nil)
|
|
28
|
+
@type = type
|
|
29
|
+
@status = status
|
|
30
|
+
@height = height
|
|
31
|
+
@width = width
|
|
32
|
+
@ext = ext
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
36
|
+
def ==(other)
|
|
37
|
+
return false unless other.is_a? self.class
|
|
38
|
+
return false unless @type == other.type
|
|
39
|
+
return false unless @status == other.status
|
|
40
|
+
return false unless @height == other.height
|
|
41
|
+
return false unless @width == other.width
|
|
42
|
+
return false unless @ext == other.ext
|
|
43
|
+
true
|
|
24
44
|
end
|
|
25
45
|
end
|
|
26
46
|
end
|
|
@@ -8,4 +8,14 @@ end
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class FastpixClient::Models::Components::UpdateMediaMp4Support
|
|
11
|
-
end
|
|
11
|
+
def type(); end
|
|
12
|
+
def type=(str_); end
|
|
13
|
+
def status(); end
|
|
14
|
+
def status=(str_); end
|
|
15
|
+
def height(); end
|
|
16
|
+
def height=(str_); end
|
|
17
|
+
def width(); end
|
|
18
|
+
def width=(str_); end
|
|
19
|
+
def ext(); end
|
|
20
|
+
def ext=(str_); end
|
|
21
|
+
end
|
|
@@ -7,31 +7,31 @@
|
|
|
7
7
|
module FastpixClient
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
|
-
# Contains details about the track being
|
|
10
|
+
# Contains details about the track being updated. The track's file (`url`) cannot be changed — only its language and title.
|
|
11
11
|
class UpdateTrackRequest
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
|
-
# The direct URL of the track file. It must point to a valid audio or subtitle file.
|
|
16
|
-
field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('url') } }
|
|
17
15
|
# The BCP 47 language code representing the track’s language.
|
|
18
16
|
field :language_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('languageCode') } }
|
|
19
17
|
# The full name of the language corresponding to the `languageCode`.
|
|
20
18
|
field :language_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('languageName') } }
|
|
19
|
+
# Title of the track.
|
|
20
|
+
field :title, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('title') } }
|
|
21
21
|
|
|
22
|
-
sig { params(
|
|
23
|
-
def initialize(
|
|
24
|
-
@url = url
|
|
22
|
+
sig { params(language_code: T.nilable(::String), language_name: T.nilable(::String), title: T.nilable(::String)).void }
|
|
23
|
+
def initialize(language_code: 'fr', language_name: 'French', title: nil)
|
|
25
24
|
@language_code = language_code
|
|
26
25
|
@language_name = language_name
|
|
26
|
+
@title = title
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
30
|
def ==(other)
|
|
31
31
|
return false unless other.is_a? self.class
|
|
32
|
-
return false unless @url == other.url
|
|
33
32
|
return false unless @language_code == other.language_code
|
|
34
33
|
return false unless @language_name == other.language_name
|
|
34
|
+
return false unless @title == other.title
|
|
35
35
|
true
|
|
36
36
|
end
|
|
37
37
|
end
|
|
@@ -8,10 +8,10 @@ end
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class FastpixClient::Models::Components::UpdateTrackRequest
|
|
11
|
-
def url(); end
|
|
12
|
-
def url=(str_); end
|
|
13
11
|
def language_code(); end
|
|
14
12
|
def language_code=(str_); end
|
|
15
13
|
def language_name(); end
|
|
16
14
|
def language_name=(str_); end
|
|
15
|
+
def title(); end
|
|
16
|
+
def title=(str_); end
|
|
17
17
|
end
|
|
@@ -22,14 +22,17 @@ module FastpixClient
|
|
|
22
22
|
field :language_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('languageCode') } }
|
|
23
23
|
# The full name of the language corresponding to the `languageCode`.
|
|
24
24
|
field :language_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('languageName') } }
|
|
25
|
+
# Title of the track.
|
|
26
|
+
field :title, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('title') } }
|
|
25
27
|
|
|
26
|
-
sig { params(id: T.nilable(::String), type: T.nilable(Models::Components::UpdateTrackResponseType), url: T.nilable(::String), language_code: T.nilable(::String), language_name: T.nilable(::String)).void }
|
|
27
|
-
def initialize(id: nil, type: nil, url: nil, language_code: nil, language_name: nil)
|
|
28
|
+
sig { params(id: T.nilable(::String), type: T.nilable(Models::Components::UpdateTrackResponseType), url: T.nilable(::String), language_code: T.nilable(::String), language_name: T.nilable(::String), title: T.nilable(::String)).void }
|
|
29
|
+
def initialize(id: nil, type: nil, url: nil, language_code: nil, language_name: nil, title: nil)
|
|
28
30
|
@id = id
|
|
29
31
|
@type = type
|
|
30
32
|
@url = url
|
|
31
33
|
@language_code = language_code
|
|
32
34
|
@language_name = language_name
|
|
35
|
+
@title = title
|
|
33
36
|
end
|
|
34
37
|
|
|
35
38
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -40,6 +43,7 @@ module FastpixClient
|
|
|
40
43
|
return false unless @url == other.url
|
|
41
44
|
return false unless @language_code == other.language_code
|
|
42
45
|
return false unless @language_name == other.language_name
|
|
46
|
+
return false unless @title == other.title
|
|
43
47
|
true
|
|
44
48
|
end
|
|
45
49
|
end
|
|
@@ -24,15 +24,18 @@ module FastpixClient
|
|
|
24
24
|
field :frame_rate, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('frameRate') } }
|
|
25
25
|
# Indicates the current state of the track. 'available' means the track has been processed successfully and is ready to be used or played.
|
|
26
26
|
field :status, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('status') } }
|
|
27
|
+
# Title of the track.
|
|
28
|
+
field :title, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('title') } }
|
|
27
29
|
|
|
28
|
-
sig { params(id: T.nilable(::String), type: T.nilable(::String), width: T.nilable(::Float), height: T.nilable(::Float), frame_rate: T.nilable(::String), status: T.nilable(::String)).void }
|
|
29
|
-
def initialize(id: nil, type: nil, width: nil, height: nil, frame_rate: nil, status: nil)
|
|
30
|
+
sig { params(id: T.nilable(::String), type: T.nilable(::String), width: T.nilable(::Float), height: T.nilable(::Float), frame_rate: T.nilable(::String), status: T.nilable(::String), title: T.nilable(::String)).void }
|
|
31
|
+
def initialize(id: nil, type: nil, width: nil, height: nil, frame_rate: nil, status: nil, title: nil)
|
|
30
32
|
@id = id
|
|
31
33
|
@type = type
|
|
32
34
|
@width = width
|
|
33
35
|
@height = height
|
|
34
36
|
@frame_rate = frame_rate
|
|
35
37
|
@status = status
|
|
38
|
+
@title = title
|
|
36
39
|
end
|
|
37
40
|
|
|
38
41
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -44,6 +47,7 @@ module FastpixClient
|
|
|
44
47
|
return false unless @height == other.height
|
|
45
48
|
return false unless @frame_rate == other.frame_rate
|
|
46
49
|
return false unless @status == other.status
|
|
50
|
+
return false unless @title == other.title
|
|
47
51
|
true
|
|
48
52
|
end
|
|
49
53
|
end
|
|
@@ -22,14 +22,17 @@ module FastpixClient
|
|
|
22
22
|
field :height, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('height') } }
|
|
23
23
|
# Indicates the current state of the track. 'available' means the track has been processed successfully and is ready to be used or played.
|
|
24
24
|
field :status, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('status') } }
|
|
25
|
+
# Title of the track.
|
|
26
|
+
field :title, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('title') } }
|
|
25
27
|
|
|
26
|
-
sig { params(id: T.nilable(::String), type: T.nilable(::String), width: T.nilable(::Float), height: T.nilable(::Float), status: T.nilable(::String)).void }
|
|
27
|
-
def initialize(id: nil, type: nil, width: nil, height: nil, status: nil)
|
|
28
|
+
sig { params(id: T.nilable(::String), type: T.nilable(::String), width: T.nilable(::Float), height: T.nilable(::Float), status: T.nilable(::String), title: T.nilable(::String)).void }
|
|
29
|
+
def initialize(id: nil, type: nil, width: nil, height: nil, status: nil, title: nil)
|
|
28
30
|
@id = id
|
|
29
31
|
@type = type
|
|
30
32
|
@width = width
|
|
31
33
|
@height = height
|
|
32
34
|
@status = status
|
|
35
|
+
@title = title
|
|
33
36
|
end
|
|
34
37
|
|
|
35
38
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -40,6 +43,7 @@ module FastpixClient
|
|
|
40
43
|
return false unless @width == other.width
|
|
41
44
|
return false unless @height == other.height
|
|
42
45
|
return false unless @status == other.status
|
|
46
|
+
return false unless @title == other.title
|
|
43
47
|
true
|
|
44
48
|
end
|
|
45
49
|
end
|
|
@@ -77,13 +77,13 @@ module FastpixClient
|
|
|
77
77
|
autoload :GetAllPlaylistsResponse, 'fastpix_client/models/components/getallplaylistsresponse.rb'
|
|
78
78
|
autoload :GetAllSigningKeysResponse, 'fastpix_client/models/components/getallsigningkeysresponse.rb'
|
|
79
79
|
autoload :GetAllSigningKeysResponseDto, 'fastpix_client/models/components/getallsigningkeysresponsedto.rb'
|
|
80
|
-
autoload :
|
|
81
|
-
autoload :
|
|
82
|
-
autoload :
|
|
83
|
-
autoload :
|
|
84
|
-
autoload :
|
|
85
|
-
autoload :
|
|
86
|
-
autoload :
|
|
80
|
+
autoload :GetMediaDetailResponse, 'fastpix_client/models/components/getmediadetailresponse.rb'
|
|
81
|
+
autoload :GetMediaDetailResponseMaxResolution, 'fastpix_client/models/components/getmediadetailresponse_maxresolution.rb'
|
|
82
|
+
autoload :GetMediaDetailResponseMediaQuality, 'fastpix_client/models/components/getmediadetailresponse_mediaquality.rb'
|
|
83
|
+
autoload :GetMediaDetailResponseMp4Support, 'fastpix_client/models/components/getmediadetailresponse_mp4support.rb'
|
|
84
|
+
autoload :GetMediaDetailResponseSourceResolution, 'fastpix_client/models/components/getmediadetailresponse_sourceresolution.rb'
|
|
85
|
+
autoload :GetMediaDetailResponseStatus, 'fastpix_client/models/components/getmediadetailresponse_status.rb'
|
|
86
|
+
autoload :GetMediaDetailResponseTrack, 'fastpix_client/models/components/getmediadetailresponse_track.rb'
|
|
87
87
|
autoload :LanguageCode, 'fastpix_client/models/components/languagecode.rb'
|
|
88
88
|
autoload :LiveMediaClips, 'fastpix_client/models/components/live_media_clips.rb'
|
|
89
89
|
autoload :LiveMediaClipsMaxResolution, 'fastpix_client/models/components/live_media_clips_maxresolution.rb'
|
|
@@ -20,7 +20,7 @@ module FastpixClient
|
|
|
20
20
|
field :raw_response, ::Faraday::Response
|
|
21
21
|
# Get a video media by id
|
|
22
22
|
field :object, Crystalline::Nilable.new(Models::Operations::GetMediaResponseBody)
|
|
23
|
-
# See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
|
|
23
|
+
# See the range of possible <a href="https://fastpix.com/docs/error-codes/error-codes">error</a> responses and their status codes.
|
|
24
24
|
field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
|
|
25
25
|
|
|
26
26
|
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::GetMediaResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
|
|
@@ -15,9 +15,9 @@ module FastpixClient
|
|
|
15
15
|
# Demonstrates whether the request is successful or not.
|
|
16
16
|
field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('success') } }
|
|
17
17
|
|
|
18
|
-
field :data, Crystalline::Nilable.new(Models::Components::
|
|
18
|
+
field :data, Crystalline::Nilable.new(Models::Components::GetMediaDetailResponse), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('data') } }
|
|
19
19
|
|
|
20
|
-
sig { params(success: T.nilable(T::Boolean), data: T.nilable(Models::Components::
|
|
20
|
+
sig { params(success: T.nilable(T::Boolean), data: T.nilable(Models::Components::GetMediaDetailResponse)).void }
|
|
21
21
|
def initialize(success: nil, data: nil)
|
|
22
22
|
@success = success
|
|
23
23
|
@data = data
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
class UpdateLiveStreamDomainRestrictionsData
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# Specify the fallback behavior for domains that are not listed in the allow or deny lists.
|
|
16
|
+
field :default_policy, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('defaultPolicy') } }
|
|
17
|
+
# List of domains explicitly allowed to play the media.
|
|
18
|
+
field :allow, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('allow') } }
|
|
19
|
+
# List of domains explicitly denied from accessing the media.
|
|
20
|
+
field :deny, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('deny') } }
|
|
21
|
+
|
|
22
|
+
sig { params(default_policy: T.nilable(::String), allow: T.nilable(T::Array[::String]), deny: T.nilable(T::Array[::String])).void }
|
|
23
|
+
def initialize(default_policy: nil, allow: nil, deny: nil)
|
|
24
|
+
@default_policy = default_policy
|
|
25
|
+
@allow = allow
|
|
26
|
+
@deny = deny
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
|
+
def ==(other)
|
|
31
|
+
return false unless other.is_a? self.class
|
|
32
|
+
return false unless @default_policy == other.default_policy
|
|
33
|
+
return false unless @allow == other.allow
|
|
34
|
+
return false unless @deny == other.deny
|
|
35
|
+
true
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsData
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsData
|
|
11
|
+
def default_policy(); end
|
|
12
|
+
def default_policy=(str_); end
|
|
13
|
+
def allow(); end
|
|
14
|
+
def allow=(str_); end
|
|
15
|
+
def deny(); end
|
|
16
|
+
def deny=(str_); end
|
|
17
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_defaultpolicy.rb
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
# UpdateLiveStreamDomainRestrictionsDefaultPolicy - Specify the fallback behavior for domains that are not listed in the `allow` or `deny` lists.
|
|
11
|
+
class UpdateLiveStreamDomainRestrictionsDefaultPolicy < T::Enum
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
enums do
|
|
15
|
+
ALLOW = new('allow')
|
|
16
|
+
DENY = new('deny')
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_defaultpolicy.rbi
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsDefaultPolicy
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsDefaultPolicy
|
|
11
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
class UpdateLiveStreamDomainRestrictionsRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :stream_id, ::String, { 'path_param': { 'field_name': 'streamId', 'style': 'simple', 'explode': false } }
|
|
17
|
+
|
|
18
|
+
field :playback_id, ::String, { 'path_param': { 'field_name': 'playbackId', 'style': 'simple', 'explode': false } }
|
|
19
|
+
|
|
20
|
+
field :body, Models::Operations::UpdateLiveStreamDomainRestrictionsRequestBody, { 'request': { 'media_type': 'application/json' } }
|
|
21
|
+
|
|
22
|
+
sig { params(stream_id: ::String, playback_id: ::String, body: Models::Operations::UpdateLiveStreamDomainRestrictionsRequestBody).void }
|
|
23
|
+
def initialize(stream_id:, playback_id:, body:)
|
|
24
|
+
@stream_id = stream_id
|
|
25
|
+
@playback_id = playback_id
|
|
26
|
+
@body = body
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
|
+
def ==(other)
|
|
31
|
+
return false unless other.is_a? self.class
|
|
32
|
+
return false unless @stream_id == other.stream_id
|
|
33
|
+
return false unless @playback_id == other.playback_id
|
|
34
|
+
return false unless @body == other.body
|
|
35
|
+
true
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsRequest
|
|
11
|
+
def stream_id(); end
|
|
12
|
+
def stream_id=(str_); end
|
|
13
|
+
def playback_id(); end
|
|
14
|
+
def playback_id=(str_); end
|
|
15
|
+
def body(); end
|
|
16
|
+
def body=(str_); end
|
|
17
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_requestbody.rb
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
class UpdateLiveStreamDomainRestrictionsRequestBody
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# List of domains explicitly allowed to play the media.
|
|
16
|
+
field :allow, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('allow') } }
|
|
17
|
+
# List of domains explicitly denied from accessing the media.
|
|
18
|
+
field :deny, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('deny') } }
|
|
19
|
+
# Specify the fallback behavior for domains that are not listed in the `allow` or `deny` lists.
|
|
20
|
+
field :default_policy, Crystalline::Nilable.new(Models::Operations::UpdateLiveStreamDomainRestrictionsDefaultPolicy), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('defaultPolicy'), 'decoder': Utils.enum_from_string(Models::Operations::UpdateLiveStreamDomainRestrictionsDefaultPolicy, true) } }
|
|
21
|
+
|
|
22
|
+
sig { params(allow: T.nilable(T::Array[::String]), deny: T.nilable(T::Array[::String]), default_policy: T.nilable(Models::Operations::UpdateLiveStreamDomainRestrictionsDefaultPolicy)).void }
|
|
23
|
+
def initialize(allow: nil, deny: nil, default_policy: Models::Operations::UpdateLiveStreamDomainRestrictionsDefaultPolicy::ALLOW)
|
|
24
|
+
@allow = allow
|
|
25
|
+
@deny = deny
|
|
26
|
+
@default_policy = default_policy
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
|
+
def ==(other)
|
|
31
|
+
return false unless other.is_a? self.class
|
|
32
|
+
return false unless @allow == other.allow
|
|
33
|
+
return false unless @deny == other.deny
|
|
34
|
+
return false unless @default_policy == other.default_policy
|
|
35
|
+
true
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_requestbody.rbi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsRequestBody
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsRequestBody
|
|
11
|
+
def allow(); end
|
|
12
|
+
def allow=(str_); end
|
|
13
|
+
def deny(); end
|
|
14
|
+
def deny=(str_); end
|
|
15
|
+
def default_policy(); end
|
|
16
|
+
def default_policy=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
class UpdateLiveStreamDomainRestrictionsResponse
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# HTTP response content type for this operation
|
|
16
|
+
field :content_type, ::String
|
|
17
|
+
# HTTP response status code for this operation
|
|
18
|
+
field :status_code, ::Integer
|
|
19
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
20
|
+
field :raw_response, ::Faraday::Response
|
|
21
|
+
# Successfully updated domain restrictions
|
|
22
|
+
field :object, Crystalline::Nilable.new(Models::Operations::UpdateLiveStreamDomainRestrictionsResponseBody)
|
|
23
|
+
# See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
|
|
24
|
+
field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
|
|
25
|
+
|
|
26
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdateLiveStreamDomainRestrictionsResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
|
|
27
|
+
def initialize(content_type:, status_code:, raw_response:, object: nil, default_error: nil)
|
|
28
|
+
@content_type = content_type
|
|
29
|
+
@status_code = status_code
|
|
30
|
+
@raw_response = raw_response
|
|
31
|
+
@object = object
|
|
32
|
+
@default_error = default_error
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
36
|
+
def ==(other)
|
|
37
|
+
return false unless other.is_a? self.class
|
|
38
|
+
return false unless @content_type == other.content_type
|
|
39
|
+
return false unless @status_code == other.status_code
|
|
40
|
+
return false unless @raw_response == other.raw_response
|
|
41
|
+
return false unless @object == other.object
|
|
42
|
+
return false unless @default_error == other.default_error
|
|
43
|
+
true
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def object(); end
|
|
18
|
+
def object=(str_); end
|
|
19
|
+
def default_error(); end
|
|
20
|
+
def default_error=(str_); end
|
|
21
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_responsebody.rb
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
# Successfully updated domain restrictions
|
|
11
|
+
class UpdateLiveStreamDomainRestrictionsResponseBody
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# Shows the request status. Returns true for success and false for failure.
|
|
16
|
+
field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('success') } }
|
|
17
|
+
|
|
18
|
+
field :data, Crystalline::Nilable.new(Models::Operations::UpdateLiveStreamDomainRestrictionsData), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('data') } }
|
|
19
|
+
|
|
20
|
+
sig { params(success: T.nilable(T::Boolean), data: T.nilable(Models::Operations::UpdateLiveStreamDomainRestrictionsData)).void }
|
|
21
|
+
def initialize(success: nil, data: nil)
|
|
22
|
+
@success = success
|
|
23
|
+
@data = data
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @success == other.success
|
|
30
|
+
return false unless @data == other.data
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_responsebody.rbi
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsResponseBody
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamDomainRestrictionsResponseBody
|
|
11
|
+
def success(); end
|
|
12
|
+
def success=(str_); end
|
|
13
|
+
def data(); end
|
|
14
|
+
def data=(str_); end
|
|
15
|
+
end
|