fastpixapi 1.1.4 → 1.2.1
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/live_playback.rb +253 -0
- data/lib/fastpix_client/models/components/addtrackresponse.rb +1 -1
- data/lib/fastpix_client/models/components/audiotrack.rb +1 -1
- data/lib/fastpix_client/models/components/createmediaresponse.rb +1 -1
- data/lib/fastpix_client/models/components/createplaybackid.rb +1 -1
- data/lib/fastpix_client/models/components/createplaybackid_domains.rb +1 -1
- data/lib/fastpix_client/models/components/createplaybackid_useragents.rb +1 -1
- data/lib/fastpix_client/models/components/directupload.rb +1 -1
- data/lib/fastpix_client/models/components/directuploadresponse.rb +1 -1
- data/lib/fastpix_client/models/components/generatetrackresponse.rb +1 -1
- data/lib/fastpix_client/models/components/getallmediaresponse.rb +3 -3
- data/lib/fastpix_client/models/components/getallmediaresponse.rbi +1 -1
- data/lib/fastpix_client/models/components/getmediadetailresponse.rb +3 -3
- data/lib/fastpix_client/models/components/getmediadetailresponse.rbi +1 -1
- 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 +3 -3
- data/lib/fastpix_client/models/components/live_media_clips.rbi +1 -1
- data/lib/fastpix_client/models/components/media.rb +3 -3
- data/lib/fastpix_client/models/components/media.rbi +1 -1
- 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/playbackid.rb +1 -1
- data/lib/fastpix_client/models/components/playbackid_domains.rb +1 -1
- data/lib/fastpix_client/models/components/playbackid_useragents.rb +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/playlistbyidresponsedatamanual.rb +1 -1
- data/lib/fastpix_client/models/components/playlistbyidresponsedatasmart.rb +1 -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/playlistitem.rb +1 -1
- data/lib/fastpix_client/models/components/sourceaccessmedia.rb +3 -3
- data/lib/fastpix_client/models/components/sourceaccessmedia.rbi +1 -1
- data/lib/fastpix_client/models/components/subtitletrack.rb +1 -1
- data/lib/fastpix_client/models/components/unused_uploads_playbackid.rb +1 -1
- data/lib/fastpix_client/models/components/unused_uploads_playbackid_domains.rb +1 -1
- data/lib/fastpix_client/models/components/unused_uploads_playbackid_useragents.rb +1 -1
- data/lib/fastpix_client/models/components/unuseddirectupload.rb +1 -1
- data/lib/fastpix_client/models/components/unuseddirectuploadresponse.rb +1 -1
- data/lib/fastpix_client/models/components/update_media.rb +3 -3
- data/lib/fastpix_client/models/components/update_media.rbi +1 -1
- data/lib/fastpix_client/models/components/updatetrackresponse.rb +1 -1
- data/lib/fastpix_client/models/operations/get_playback_id_data.rb +1 -1
- data/lib/fastpix_client/models/operations/get_playback_id_domains.rb +1 -1
- data/lib/fastpix_client/models/operations/get_playback_id_useragents.rb +1 -1
- data/lib/fastpix_client/models/operations/list_playback_ids_data.rb +1 -1
- data/lib/fastpix_client/models/operations/list_playback_ids_domains.rb +1 -1
- data/lib/fastpix_client/models/operations/list_playback_ids_useragents.rb +1 -1
- 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/sdkconfiguration.rb +3 -3
- data/lib/fastpix_client/utils/utils.rb +3 -2
- metadata +44 -40
|
@@ -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
|
|
@@ -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 UpdateLiveStreamUserAgentRestrictionsData
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# Specifies the default behavior for user agents 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 user-agent substrings explicitly allowed.
|
|
18
|
+
field :allow, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('allow') } }
|
|
19
|
+
# List of user-agent substrings explicitly denied.
|
|
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::UpdateLiveStreamUserAgentRestrictionsData
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsData
|
|
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
|
|
@@ -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
|
+
# UpdateLiveStreamUserAgentRestrictionsDefaultPolicy - The default behavior when a user-agent is not listed in `allow` or `deny`.
|
|
11
|
+
class UpdateLiveStreamUserAgentRestrictionsDefaultPolicy < 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
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy
|
|
11
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_request.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 UpdateLiveStreamUserAgentRestrictionsRequest
|
|
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::UpdateLiveStreamUserAgentRestrictionsRequestBody, { 'request': { 'media_type': 'application/json' } }
|
|
21
|
+
|
|
22
|
+
sig { params(stream_id: ::String, playback_id: ::String, body: Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequestBody).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
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_request.rbi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequest
|
|
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_user_agent_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 UpdateLiveStreamUserAgentRestrictionsRequestBody
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# List of user-agent substrings explicitly allowed.
|
|
16
|
+
field :allow, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('allow') } }
|
|
17
|
+
# List of user-agent substrings explicitly denied.
|
|
18
|
+
field :deny, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('deny') } }
|
|
19
|
+
# The default behavior when a user-agent is not listed in `allow` or `deny`.
|
|
20
|
+
field :default_policy, Crystalline::Nilable.new(Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('defaultPolicy'), 'decoder': Utils.enum_from_string(Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy, true) } }
|
|
21
|
+
|
|
22
|
+
sig { params(allow: T.nilable(T::Array[::String]), deny: T.nilable(T::Array[::String]), default_policy: T.nilable(Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy)).void }
|
|
23
|
+
def initialize(allow: nil, deny: nil, default_policy: Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy::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_user_agent_restrictions_requestbody.rbi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequestBody
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequestBody
|
|
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
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_response.rb
ADDED
|
@@ -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 UpdateLiveStreamUserAgentRestrictionsResponse
|
|
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 user-agent restrictions
|
|
22
|
+
field :object, Crystalline::Nilable.new(Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponseBody)
|
|
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::UpdateLiveStreamUserAgentRestrictionsResponseBody), 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
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_response.rbi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponse
|
|
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_user_agent_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 user-agent restrictions
|
|
11
|
+
class UpdateLiveStreamUserAgentRestrictionsResponseBody
|
|
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::UpdateLiveStreamUserAgentRestrictionsData), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('data') } }
|
|
19
|
+
|
|
20
|
+
sig { params(success: T.nilable(T::Boolean), data: T.nilable(Models::Operations::UpdateLiveStreamUserAgentRestrictionsData)).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
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponseBody
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponseBody
|
|
11
|
+
def success(); end
|
|
12
|
+
def success=(str_); end
|
|
13
|
+
def data(); end
|
|
14
|
+
def data=(str_); end
|
|
15
|
+
end
|
|
@@ -233,6 +233,18 @@ module FastpixClient
|
|
|
233
233
|
autoload :UpdateUserAgentRestrictionsData, 'fastpix_client/models/operations/update_user_agent_restrictions_data.rb'
|
|
234
234
|
autoload :UpdateUserAgentRestrictionsDefaultPolicy, 'fastpix_client/models/operations/update_user_agent_restrictions_defaultpolicy.rb'
|
|
235
235
|
autoload :UpdateUserAgentRestrictionsResponse, 'fastpix_client/models/operations/update_user_agent_restrictions_response.rb'
|
|
236
|
+
autoload :UpdateLiveStreamDomainRestrictionsRequest, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_request.rb'
|
|
237
|
+
autoload :UpdateLiveStreamDomainRestrictionsRequestBody, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_requestbody.rb'
|
|
238
|
+
autoload :UpdateLiveStreamDomainRestrictionsResponseBody, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_responsebody.rb'
|
|
239
|
+
autoload :UpdateLiveStreamDomainRestrictionsData, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_data.rb'
|
|
240
|
+
autoload :UpdateLiveStreamDomainRestrictionsDefaultPolicy, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_defaultpolicy.rb'
|
|
241
|
+
autoload :UpdateLiveStreamDomainRestrictionsResponse, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_response.rb'
|
|
242
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsRequest, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_request.rb'
|
|
243
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsRequestBody, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_requestbody.rb'
|
|
244
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsResponseBody, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_responsebody.rb'
|
|
245
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsData, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_data.rb'
|
|
246
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsDefaultPolicy, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_defaultpolicy.rb'
|
|
247
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsResponse, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_response.rb'
|
|
236
248
|
autoload :UpdatedMediaRequest, 'fastpix_client/models/operations/updated_media_request.rb'
|
|
237
249
|
autoload :UpdatedMp4SupportRequest, 'fastpix_client/models/operations/updated_mp4support_request.rb'
|
|
238
250
|
autoload :UpdatedSourceAccessRequest, 'fastpix_client/models/operations/updated_source_access_request.rb'
|
|
@@ -91,16 +91,16 @@ module FastpixClient
|
|
|
91
91
|
end
|
|
92
92
|
@language = 'ruby'
|
|
93
93
|
@openapi_doc_version = '1.0.0'
|
|
94
|
-
@sdk_version = '1.1
|
|
94
|
+
@sdk_version = '1.2.1'
|
|
95
95
|
@gen_version = '2.801.0'
|
|
96
|
-
@user_agent = 'fastpixapi-ruby 1.1
|
|
96
|
+
@user_agent = 'fastpixapi-ruby 1.2.1'
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
|
100
100
|
def get_server_details
|
|
101
101
|
return [@server_url.delete_suffix('/'), {}] if !@server_url.nil?
|
|
102
102
|
@server_idx = T.must(@server_idx)
|
|
103
|
-
[T.must(SERVERS[@server_idx]), {}]
|
|
103
|
+
[T.must(SERVERS[@server_idx]).delete_suffix('/'), {}]
|
|
104
104
|
end
|
|
105
105
|
end
|
|
106
106
|
end
|
|
@@ -86,13 +86,14 @@ module FastpixClient
|
|
|
86
86
|
|
|
87
87
|
sig do
|
|
88
88
|
params(enum_type: T.class_of(T::Enum), optional: T::Boolean)
|
|
89
|
-
.returns(T.nilable(T.proc.params(s: String).returns(T.nilable(T::Enum))))
|
|
89
|
+
.returns(T.nilable(T.proc.params(s: String).returns(T.nilable(T.any(T::Enum, String)))))
|
|
90
90
|
end
|
|
91
91
|
def self.enum_from_string(enum_type, optional)
|
|
92
92
|
Kernel.lambda do |s|
|
|
93
93
|
return nil if optional && s.nil?
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
# unknown values pass through as the raw string instead of raising
|
|
96
|
+
return enum_type.try_deserialize(s) || s
|
|
96
97
|
end
|
|
97
98
|
end
|
|
98
99
|
|