rixl 0.1.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/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +10 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +8 -0
- data/lib/feeds/feeds.rb +0 -0
- data/lib/feeds/feeds_request_builder.rb +34 -0
- data/lib/feeds/item/creators/creators.rb +0 -0
- data/lib/feeds/item/creators/creators_request_builder.rb +40 -0
- data/lib/feeds/item/creators/item/item.rb +0 -0
- data/lib/feeds/item/creators/item/with_creator_item_request_builder.rb +86 -0
- data/lib/feeds/item/item/item.rb +0 -0
- data/lib/feeds/item/item/with_post_item_request_builder.rb +70 -0
- data/lib/feeds/item/item.rb +0 -0
- data/lib/feeds/item/with_feed_item_request_builder.rb +98 -0
- data/lib/images/images.rb +0 -0
- data/lib/images/images_request_builder.rb +103 -0
- data/lib/images/item/item.rb +0 -0
- data/lib/images/item/with_image_item_request_builder.rb +104 -0
- data/lib/images/upload/complete/complete.rb +0 -0
- data/lib/images/upload/complete/complete_request_builder.rb +79 -0
- data/lib/images/upload/init/init.rb +0 -0
- data/lib/images/upload/init/init_request_builder.rb +78 -0
- data/lib/images/upload/upload.rb +0 -0
- data/lib/images/upload/upload_request_builder.rb +37 -0
- data/lib/kiota-lock.json +34 -0
- data/lib/models/audio_track.rb +242 -0
- data/lib/models/audio_track_delete.rb +102 -0
- data/lib/models/chapter.rb +142 -0
- data/lib/models/file.rb +242 -0
- data/lib/models/file_status.rb +12 -0
- data/lib/models/github_com_rixlhq_api_db_sqlc/github_com_rixlhq_api_db_sqlc.rb +0 -0
- data/lib/models/github_com_rixlhq_api_db_sqlc_plan_type.rb +10 -0
- data/lib/models/github_com_rixlhq_api_db_sqlc_video_quality.rb +9 -0
- data/lib/models/github_com_rixlhq_api_internal_errors/github_com_rixlhq_api_internal_errors.rb +0 -0
- data/lib/models/github_com_rixlhq_api_internal_errors_error_response.rb +126 -0
- data/lib/models/github_com_rixlhq_api_internal_videos/github_com_rixlhq_api_internal_videos.rb +0 -0
- data/lib/models/github_com_rixlhq_api_internal_videos_handler_upload/github_com_rixlhq_api_internal_videos_handler_upload.rb +0 -0
- data/lib/models/github_com_rixlhq_api_internal_videos_handler_upload_complete_request.rb +84 -0
- data/lib/models/github_com_rixlhq_api_internal_videos_handler_upload_init_response.rb +162 -0
- data/lib/models/github_com_rixlhq_api_internal_videos_types/github_com_rixlhq_api_internal_videos_types.rb +0 -0
- data/lib/models/github_com_rixlhq_api_internal_videos_types_chapter_input.rb +102 -0
- data/lib/models/github_com_rixlhq_api_internal_videos_video_response.rb +302 -0
- data/lib/models/image.rb +182 -0
- data/lib/models/internal_images_handler/internal_images_handler.rb +0 -0
- data/lib/models/internal_images_handler_complete_request.rb +104 -0
- data/lib/models/internal_images_handler_init_response.rb +122 -0
- data/lib/models/internal_images_handler_upload_init_request.rb +104 -0
- data/lib/models/internal_videos_handler_subtitles/internal_videos_handler_subtitles.rb +0 -0
- data/lib/models/internal_videos_handler_subtitles_language_response.rb +102 -0
- data/lib/models/models.rb +29 -0
- data/lib/models/pagination/pagination.rb +0 -0
- data/lib/models/pagination_paginated_response_image.rb +102 -0
- data/lib/models/pagination_paginated_response_post.rb +102 -0
- data/lib/models/pagination_paginated_response_video.rb +102 -0
- data/lib/models/pagination_pagination.rb +124 -0
- data/lib/models/post.rb +262 -0
- data/lib/models/post_type.rb +8 -0
- data/lib/models/subtitle.rb +222 -0
- data/lib/models/subtitle_delete.rb +102 -0
- data/lib/models/update_chapters_request.rb +84 -0
- data/lib/models/update_chapters_response.rb +102 -0
- data/lib/models/video.rb +302 -0
- data/lib/models/video_upload_init_request.rb +124 -0
- data/lib/rixl.rb +43 -0
- data/lib/videos/item/audio_tracks/audio_tracks.rb +0 -0
- data/lib/videos/item/audio_tracks/audio_tracks_request_builder.rb +118 -0
- data/lib/videos/item/audio_tracks/item/item.rb +0 -0
- data/lib/videos/item/audio_tracks/item/with_track_item_request_builder.rb +75 -0
- data/lib/videos/item/audio_tracks/language/item/item.rb +0 -0
- data/lib/videos/item/audio_tracks/language/item/with_lang_code_item_request_builder.rb +106 -0
- data/lib/videos/item/audio_tracks/language/language.rb +0 -0
- data/lib/videos/item/audio_tracks/language/language_request_builder.rb +43 -0
- data/lib/videos/item/chapters/chapters.rb +0 -0
- data/lib/videos/item/chapters/chapters_request_builder.rb +112 -0
- data/lib/videos/item/delete/delete.rb +0 -0
- data/lib/videos/item/delete/delete_request_builder.rb +72 -0
- data/lib/videos/item/item.rb +0 -0
- data/lib/videos/item/subtitles/item/item.rb +0 -0
- data/lib/videos/item/subtitles/item/with_subtitle_item_request_builder.rb +75 -0
- data/lib/videos/item/subtitles/language/item/item.rb +0 -0
- data/lib/videos/item/subtitles/language/item/with_lang_code_item_request_builder.rb +106 -0
- data/lib/videos/item/subtitles/language/language.rb +0 -0
- data/lib/videos/item/subtitles/language/language_request_builder.rb +43 -0
- data/lib/videos/item/subtitles/subtitles.rb +0 -0
- data/lib/videos/item/subtitles/subtitles_request_builder.rb +118 -0
- data/lib/videos/item/thumbnail/thumbnail.rb +0 -0
- data/lib/videos/item/thumbnail/thumbnail_request_builder.rb +78 -0
- data/lib/videos/item/with_video_item_request_builder.rb +100 -0
- data/lib/videos/languages/languages.rb +0 -0
- data/lib/videos/languages/languages_request_builder.rb +63 -0
- data/lib/videos/upload/complete/complete.rb +0 -0
- data/lib/videos/upload/complete/complete_request_builder.rb +79 -0
- data/lib/videos/upload/init/init.rb +0 -0
- data/lib/videos/upload/init/init_request_builder.rb +78 -0
- data/lib/videos/upload/upload.rb +0 -0
- data/lib/videos/upload/upload_request_builder.rb +37 -0
- data/lib/videos/videos.rb +0 -0
- data/lib/videos/videos_request_builder.rb +109 -0
- data/sig/rixl.rbs +4 -0
- metadata +187 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../../../models/audio_track'
|
|
3
|
+
require_relative '../../../../../models/audio_track_delete'
|
|
4
|
+
require_relative '../../../../../rixl'
|
|
5
|
+
require_relative '../../../../videos'
|
|
6
|
+
require_relative '../../../item'
|
|
7
|
+
require_relative '../../audio_tracks'
|
|
8
|
+
require_relative '../language'
|
|
9
|
+
require_relative './item'
|
|
10
|
+
|
|
11
|
+
module Rixl
|
|
12
|
+
module Videos
|
|
13
|
+
module Item
|
|
14
|
+
module AudioTracks
|
|
15
|
+
module Language
|
|
16
|
+
module Item
|
|
17
|
+
##
|
|
18
|
+
# Builds and executes requests for operations under \videos\{videoId}\audio-tracks\language\{lang_code}
|
|
19
|
+
class WithLangCodeItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
20
|
+
|
|
21
|
+
##
|
|
22
|
+
## Instantiates a new WithLangCodeItemRequestBuilder and sets the default values.
|
|
23
|
+
## @param path_parameters Path parameters for the request
|
|
24
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
25
|
+
## @return a void
|
|
26
|
+
##
|
|
27
|
+
def initialize(path_parameters, request_adapter)
|
|
28
|
+
super(path_parameters, request_adapter, "{+baseurl}/videos/{videoId}/audio-tracks/language/{lang_code}")
|
|
29
|
+
end
|
|
30
|
+
##
|
|
31
|
+
## Remove an audio track for a specific language using API key authentication
|
|
32
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
33
|
+
## @return a Fiber of audio_track_delete
|
|
34
|
+
##
|
|
35
|
+
def delete(request_configuration=nil)
|
|
36
|
+
request_info = self.to_delete_request_information(
|
|
37
|
+
request_configuration
|
|
38
|
+
)
|
|
39
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::AudioTrackDelete.create_from_discriminator_value(pn) }, nil)
|
|
40
|
+
end
|
|
41
|
+
##
|
|
42
|
+
## Add or replace an audio track for a specific language using API key authentication
|
|
43
|
+
## @param body The request body
|
|
44
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
45
|
+
## @return a Fiber of audio_track
|
|
46
|
+
##
|
|
47
|
+
def put(body, request_configuration=nil)
|
|
48
|
+
raise StandardError, 'body cannot be null' if body.nil?
|
|
49
|
+
request_info = self.to_put_request_information(
|
|
50
|
+
body, request_configuration
|
|
51
|
+
)
|
|
52
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::AudioTrack.create_from_discriminator_value(pn) }, nil)
|
|
53
|
+
end
|
|
54
|
+
##
|
|
55
|
+
## Remove an audio track for a specific language using API key authentication
|
|
56
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
57
|
+
## @return a request_information
|
|
58
|
+
##
|
|
59
|
+
def to_delete_request_information(request_configuration=nil)
|
|
60
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
61
|
+
unless request_configuration.nil?
|
|
62
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
63
|
+
request_info.add_request_options(request_configuration.options)
|
|
64
|
+
end
|
|
65
|
+
request_info.url_template = @url_template
|
|
66
|
+
request_info.path_parameters = @path_parameters
|
|
67
|
+
request_info.http_method = :DELETE
|
|
68
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
69
|
+
return request_info
|
|
70
|
+
end
|
|
71
|
+
##
|
|
72
|
+
## Add or replace an audio track for a specific language using API key authentication
|
|
73
|
+
## @param body The request body
|
|
74
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
75
|
+
## @return a request_information
|
|
76
|
+
##
|
|
77
|
+
def to_put_request_information(body, request_configuration=nil)
|
|
78
|
+
raise StandardError, 'body cannot be null' if body.nil?
|
|
79
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
80
|
+
unless request_configuration.nil?
|
|
81
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
82
|
+
request_info.add_request_options(request_configuration.options)
|
|
83
|
+
end
|
|
84
|
+
request_info.set_content_from_parsable(@request_adapter, 'multipart/form-data', body)
|
|
85
|
+
request_info.url_template = @url_template
|
|
86
|
+
request_info.path_parameters = @path_parameters
|
|
87
|
+
request_info.http_method = :PUT
|
|
88
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
89
|
+
return request_info
|
|
90
|
+
end
|
|
91
|
+
##
|
|
92
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
93
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
94
|
+
## @return a with_lang_code_item_request_builder
|
|
95
|
+
##
|
|
96
|
+
def with_url(raw_url)
|
|
97
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
98
|
+
return WithLangCodeItemRequestBuilder.new(raw_url, @request_adapter)
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../../rixl'
|
|
3
|
+
require_relative '../../../videos'
|
|
4
|
+
require_relative '../../item'
|
|
5
|
+
require_relative '../audio_tracks'
|
|
6
|
+
require_relative './item/with_lang_code_item_request_builder'
|
|
7
|
+
require_relative './language'
|
|
8
|
+
|
|
9
|
+
module Rixl
|
|
10
|
+
module Videos
|
|
11
|
+
module Item
|
|
12
|
+
module AudioTracks
|
|
13
|
+
module Language
|
|
14
|
+
##
|
|
15
|
+
# Builds and executes requests for operations under \videos\{videoId}\audio-tracks\language
|
|
16
|
+
class LanguageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
17
|
+
|
|
18
|
+
##
|
|
19
|
+
## Gets an item from the rixl.videos.item.audioTracks.language.item collection
|
|
20
|
+
## @param lang_code Language Code (BCP 47)
|
|
21
|
+
## @return a with_lang_code_item_request_builder
|
|
22
|
+
##
|
|
23
|
+
def by_lang_code(lang_code)
|
|
24
|
+
raise StandardError, 'lang_code cannot be null' if lang_code.nil?
|
|
25
|
+
url_tpl_params = @path_parameters.clone
|
|
26
|
+
url_tpl_params["lang_code"] = lang_code
|
|
27
|
+
return Rixl::Videos::Item::AudioTracks::Language::Item::WithLangCodeItemRequestBuilder.new(url_tpl_params, @request_adapter)
|
|
28
|
+
end
|
|
29
|
+
##
|
|
30
|
+
## Instantiates a new LanguageRequestBuilder and sets the default values.
|
|
31
|
+
## @param path_parameters Path parameters for the request
|
|
32
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
33
|
+
## @return a void
|
|
34
|
+
##
|
|
35
|
+
def initialize(path_parameters, request_adapter)
|
|
36
|
+
super(path_parameters, request_adapter, "{+baseurl}/videos/{videoId}/audio-tracks/language")
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../models/github_com_rixlhq_api_internal_errors_error_response'
|
|
3
|
+
require_relative '../../../models/update_chapters_request'
|
|
4
|
+
require_relative '../../../models/update_chapters_response'
|
|
5
|
+
require_relative '../../../rixl'
|
|
6
|
+
require_relative '../../videos'
|
|
7
|
+
require_relative '../item'
|
|
8
|
+
require_relative './chapters'
|
|
9
|
+
|
|
10
|
+
module Rixl
|
|
11
|
+
module Videos
|
|
12
|
+
module Item
|
|
13
|
+
module Chapters
|
|
14
|
+
##
|
|
15
|
+
# Builds and executes requests for operations under \videos\{videoId}\chapters
|
|
16
|
+
class ChaptersRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
17
|
+
|
|
18
|
+
##
|
|
19
|
+
## Instantiates a new ChaptersRequestBuilder and sets the default values.
|
|
20
|
+
## @param path_parameters Path parameters for the request
|
|
21
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
22
|
+
## @return a void
|
|
23
|
+
##
|
|
24
|
+
def initialize(path_parameters, request_adapter)
|
|
25
|
+
super(path_parameters, request_adapter, "{+baseurl}/videos/{videoId}/chapters")
|
|
26
|
+
end
|
|
27
|
+
##
|
|
28
|
+
## Remove all chapters from a video using API key authentication
|
|
29
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
30
|
+
## @return a Fiber of update_chapters_response
|
|
31
|
+
##
|
|
32
|
+
def delete(request_configuration=nil)
|
|
33
|
+
request_info = self.to_delete_request_information(
|
|
34
|
+
request_configuration
|
|
35
|
+
)
|
|
36
|
+
error_mapping = Hash.new
|
|
37
|
+
error_mapping["401"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
38
|
+
error_mapping["403"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
39
|
+
error_mapping["404"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
40
|
+
error_mapping["500"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
41
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::UpdateChaptersResponse.create_from_discriminator_value(pn) }, error_mapping)
|
|
42
|
+
end
|
|
43
|
+
##
|
|
44
|
+
## Replace all chapters for a video (atomic PUT operation) using API key authentication
|
|
45
|
+
## @param body Chapters array
|
|
46
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
47
|
+
## @return a Fiber of update_chapters_response
|
|
48
|
+
##
|
|
49
|
+
def put(body, request_configuration=nil)
|
|
50
|
+
raise StandardError, 'body cannot be null' if body.nil?
|
|
51
|
+
request_info = self.to_put_request_information(
|
|
52
|
+
body, request_configuration
|
|
53
|
+
)
|
|
54
|
+
error_mapping = Hash.new
|
|
55
|
+
error_mapping["400"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
56
|
+
error_mapping["401"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
57
|
+
error_mapping["403"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
58
|
+
error_mapping["404"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
59
|
+
error_mapping["500"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
60
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::UpdateChaptersResponse.create_from_discriminator_value(pn) }, error_mapping)
|
|
61
|
+
end
|
|
62
|
+
##
|
|
63
|
+
## Remove all chapters from a video using API key authentication
|
|
64
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
65
|
+
## @return a request_information
|
|
66
|
+
##
|
|
67
|
+
def to_delete_request_information(request_configuration=nil)
|
|
68
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
69
|
+
unless request_configuration.nil?
|
|
70
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
71
|
+
request_info.add_request_options(request_configuration.options)
|
|
72
|
+
end
|
|
73
|
+
request_info.url_template = @url_template
|
|
74
|
+
request_info.path_parameters = @path_parameters
|
|
75
|
+
request_info.http_method = :DELETE
|
|
76
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
77
|
+
return request_info
|
|
78
|
+
end
|
|
79
|
+
##
|
|
80
|
+
## Replace all chapters for a video (atomic PUT operation) using API key authentication
|
|
81
|
+
## @param body Chapters array
|
|
82
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
83
|
+
## @return a request_information
|
|
84
|
+
##
|
|
85
|
+
def to_put_request_information(body, request_configuration=nil)
|
|
86
|
+
raise StandardError, 'body cannot be null' if body.nil?
|
|
87
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
88
|
+
unless request_configuration.nil?
|
|
89
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
90
|
+
request_info.add_request_options(request_configuration.options)
|
|
91
|
+
end
|
|
92
|
+
request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
|
|
93
|
+
request_info.url_template = @url_template
|
|
94
|
+
request_info.path_parameters = @path_parameters
|
|
95
|
+
request_info.http_method = :PUT
|
|
96
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
97
|
+
return request_info
|
|
98
|
+
end
|
|
99
|
+
##
|
|
100
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
101
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
102
|
+
## @return a chapters_request_builder
|
|
103
|
+
##
|
|
104
|
+
def with_url(raw_url)
|
|
105
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
106
|
+
return ChaptersRequestBuilder.new(raw_url, @request_adapter)
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../models/github_com_rixlhq_api_internal_errors_error_response'
|
|
3
|
+
require_relative '../../../rixl'
|
|
4
|
+
require_relative '../../videos'
|
|
5
|
+
require_relative '../item'
|
|
6
|
+
require_relative './delete'
|
|
7
|
+
|
|
8
|
+
module Rixl
|
|
9
|
+
module Videos
|
|
10
|
+
module Item
|
|
11
|
+
module Delete
|
|
12
|
+
##
|
|
13
|
+
# Builds and executes requests for operations under \videos\{videoId}\delete
|
|
14
|
+
class DeleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
15
|
+
|
|
16
|
+
##
|
|
17
|
+
## Instantiates a new DeleteRequestBuilder and sets the default values.
|
|
18
|
+
## @param path_parameters Path parameters for the request
|
|
19
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
20
|
+
## @return a void
|
|
21
|
+
##
|
|
22
|
+
def initialize(path_parameters, request_adapter)
|
|
23
|
+
super(path_parameters, request_adapter, "{+baseurl}/videos/{videoId}/delete")
|
|
24
|
+
end
|
|
25
|
+
##
|
|
26
|
+
## Delete a video by its ID within a project
|
|
27
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
28
|
+
## @return a Fiber of void
|
|
29
|
+
##
|
|
30
|
+
def delete(request_configuration=nil)
|
|
31
|
+
request_info = self.to_delete_request_information(
|
|
32
|
+
request_configuration
|
|
33
|
+
)
|
|
34
|
+
error_mapping = Hash.new
|
|
35
|
+
error_mapping["400"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
36
|
+
error_mapping["401"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
37
|
+
error_mapping["403"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
38
|
+
error_mapping["404"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
39
|
+
error_mapping["500"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
40
|
+
return @request_adapter.send_async(request_info, nil, error_mapping)
|
|
41
|
+
end
|
|
42
|
+
##
|
|
43
|
+
## Delete a video by its ID within a project
|
|
44
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
45
|
+
## @return a request_information
|
|
46
|
+
##
|
|
47
|
+
def to_delete_request_information(request_configuration=nil)
|
|
48
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
49
|
+
unless request_configuration.nil?
|
|
50
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
51
|
+
request_info.add_request_options(request_configuration.options)
|
|
52
|
+
end
|
|
53
|
+
request_info.url_template = @url_template
|
|
54
|
+
request_info.path_parameters = @path_parameters
|
|
55
|
+
request_info.http_method = :DELETE
|
|
56
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
57
|
+
return request_info
|
|
58
|
+
end
|
|
59
|
+
##
|
|
60
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
61
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
62
|
+
## @return a delete_request_builder
|
|
63
|
+
##
|
|
64
|
+
def with_url(raw_url)
|
|
65
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
66
|
+
return DeleteRequestBuilder.new(raw_url, @request_adapter)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../../models/github_com_rixlhq_api_internal_errors_error_response'
|
|
3
|
+
require_relative '../../../../models/subtitle_delete'
|
|
4
|
+
require_relative '../../../../rixl'
|
|
5
|
+
require_relative '../../../videos'
|
|
6
|
+
require_relative '../../item'
|
|
7
|
+
require_relative '../subtitles'
|
|
8
|
+
require_relative './item'
|
|
9
|
+
|
|
10
|
+
module Rixl
|
|
11
|
+
module Videos
|
|
12
|
+
module Item
|
|
13
|
+
module Subtitles
|
|
14
|
+
module Item
|
|
15
|
+
##
|
|
16
|
+
# Builds and executes requests for operations under \videos\{videoId}\subtitles\{subtitleId}
|
|
17
|
+
class WithSubtitleItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
18
|
+
|
|
19
|
+
##
|
|
20
|
+
## Instantiates a new WithSubtitleItemRequestBuilder and sets the default values.
|
|
21
|
+
## @param path_parameters Path parameters for the request
|
|
22
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
23
|
+
## @return a void
|
|
24
|
+
##
|
|
25
|
+
def initialize(path_parameters, request_adapter)
|
|
26
|
+
super(path_parameters, request_adapter, "{+baseurl}/videos/{videoId}/subtitles/{subtitleId}")
|
|
27
|
+
end
|
|
28
|
+
##
|
|
29
|
+
## Remove a subtitle from a video using API key authentication
|
|
30
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
## @return a Fiber of subtitle_delete
|
|
32
|
+
##
|
|
33
|
+
def delete(request_configuration=nil)
|
|
34
|
+
request_info = self.to_delete_request_information(
|
|
35
|
+
request_configuration
|
|
36
|
+
)
|
|
37
|
+
error_mapping = Hash.new
|
|
38
|
+
error_mapping["401"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
39
|
+
error_mapping["403"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
40
|
+
error_mapping["404"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
41
|
+
error_mapping["500"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
42
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::SubtitleDelete.create_from_discriminator_value(pn) }, error_mapping)
|
|
43
|
+
end
|
|
44
|
+
##
|
|
45
|
+
## Remove a subtitle from a video using API key authentication
|
|
46
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
47
|
+
## @return a request_information
|
|
48
|
+
##
|
|
49
|
+
def to_delete_request_information(request_configuration=nil)
|
|
50
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
51
|
+
unless request_configuration.nil?
|
|
52
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
53
|
+
request_info.add_request_options(request_configuration.options)
|
|
54
|
+
end
|
|
55
|
+
request_info.url_template = @url_template
|
|
56
|
+
request_info.path_parameters = @path_parameters
|
|
57
|
+
request_info.http_method = :DELETE
|
|
58
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
59
|
+
return request_info
|
|
60
|
+
end
|
|
61
|
+
##
|
|
62
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
63
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
64
|
+
## @return a with_subtitle_item_request_builder
|
|
65
|
+
##
|
|
66
|
+
def with_url(raw_url)
|
|
67
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
68
|
+
return WithSubtitleItemRequestBuilder.new(raw_url, @request_adapter)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../../../models/subtitle'
|
|
3
|
+
require_relative '../../../../../models/subtitle_delete'
|
|
4
|
+
require_relative '../../../../../rixl'
|
|
5
|
+
require_relative '../../../../videos'
|
|
6
|
+
require_relative '../../../item'
|
|
7
|
+
require_relative '../../subtitles'
|
|
8
|
+
require_relative '../language'
|
|
9
|
+
require_relative './item'
|
|
10
|
+
|
|
11
|
+
module Rixl
|
|
12
|
+
module Videos
|
|
13
|
+
module Item
|
|
14
|
+
module Subtitles
|
|
15
|
+
module Language
|
|
16
|
+
module Item
|
|
17
|
+
##
|
|
18
|
+
# Builds and executes requests for operations under \videos\{videoId}\subtitles\language\{lang_code}
|
|
19
|
+
class WithLangCodeItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
20
|
+
|
|
21
|
+
##
|
|
22
|
+
## Instantiates a new WithLangCodeItemRequestBuilder and sets the default values.
|
|
23
|
+
## @param path_parameters Path parameters for the request
|
|
24
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
25
|
+
## @return a void
|
|
26
|
+
##
|
|
27
|
+
def initialize(path_parameters, request_adapter)
|
|
28
|
+
super(path_parameters, request_adapter, "{+baseurl}/videos/{videoId}/subtitles/language/{lang_code}")
|
|
29
|
+
end
|
|
30
|
+
##
|
|
31
|
+
## Remove a subtitle for a specific language using API key authentication
|
|
32
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
33
|
+
## @return a Fiber of subtitle_delete
|
|
34
|
+
##
|
|
35
|
+
def delete(request_configuration=nil)
|
|
36
|
+
request_info = self.to_delete_request_information(
|
|
37
|
+
request_configuration
|
|
38
|
+
)
|
|
39
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::SubtitleDelete.create_from_discriminator_value(pn) }, nil)
|
|
40
|
+
end
|
|
41
|
+
##
|
|
42
|
+
## Add or replace a subtitle for a specific language using API key authentication
|
|
43
|
+
## @param body The request body
|
|
44
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
45
|
+
## @return a Fiber of subtitle
|
|
46
|
+
##
|
|
47
|
+
def put(body, request_configuration=nil)
|
|
48
|
+
raise StandardError, 'body cannot be null' if body.nil?
|
|
49
|
+
request_info = self.to_put_request_information(
|
|
50
|
+
body, request_configuration
|
|
51
|
+
)
|
|
52
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::Subtitle.create_from_discriminator_value(pn) }, nil)
|
|
53
|
+
end
|
|
54
|
+
##
|
|
55
|
+
## Remove a subtitle for a specific language using API key authentication
|
|
56
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
57
|
+
## @return a request_information
|
|
58
|
+
##
|
|
59
|
+
def to_delete_request_information(request_configuration=nil)
|
|
60
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
61
|
+
unless request_configuration.nil?
|
|
62
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
63
|
+
request_info.add_request_options(request_configuration.options)
|
|
64
|
+
end
|
|
65
|
+
request_info.url_template = @url_template
|
|
66
|
+
request_info.path_parameters = @path_parameters
|
|
67
|
+
request_info.http_method = :DELETE
|
|
68
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
69
|
+
return request_info
|
|
70
|
+
end
|
|
71
|
+
##
|
|
72
|
+
## Add or replace a subtitle for a specific language using API key authentication
|
|
73
|
+
## @param body The request body
|
|
74
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
75
|
+
## @return a request_information
|
|
76
|
+
##
|
|
77
|
+
def to_put_request_information(body, request_configuration=nil)
|
|
78
|
+
raise StandardError, 'body cannot be null' if body.nil?
|
|
79
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
80
|
+
unless request_configuration.nil?
|
|
81
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
82
|
+
request_info.add_request_options(request_configuration.options)
|
|
83
|
+
end
|
|
84
|
+
request_info.set_content_from_parsable(@request_adapter, 'multipart/form-data', body)
|
|
85
|
+
request_info.url_template = @url_template
|
|
86
|
+
request_info.path_parameters = @path_parameters
|
|
87
|
+
request_info.http_method = :PUT
|
|
88
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
89
|
+
return request_info
|
|
90
|
+
end
|
|
91
|
+
##
|
|
92
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
93
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
94
|
+
## @return a with_lang_code_item_request_builder
|
|
95
|
+
##
|
|
96
|
+
def with_url(raw_url)
|
|
97
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
98
|
+
return WithLangCodeItemRequestBuilder.new(raw_url, @request_adapter)
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../../rixl'
|
|
3
|
+
require_relative '../../../videos'
|
|
4
|
+
require_relative '../../item'
|
|
5
|
+
require_relative '../subtitles'
|
|
6
|
+
require_relative './item/with_lang_code_item_request_builder'
|
|
7
|
+
require_relative './language'
|
|
8
|
+
|
|
9
|
+
module Rixl
|
|
10
|
+
module Videos
|
|
11
|
+
module Item
|
|
12
|
+
module Subtitles
|
|
13
|
+
module Language
|
|
14
|
+
##
|
|
15
|
+
# Builds and executes requests for operations under \videos\{videoId}\subtitles\language
|
|
16
|
+
class LanguageRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
17
|
+
|
|
18
|
+
##
|
|
19
|
+
## Gets an item from the rixl.videos.item.subtitles.language.item collection
|
|
20
|
+
## @param lang_code Language Code (BCP 47)
|
|
21
|
+
## @return a with_lang_code_item_request_builder
|
|
22
|
+
##
|
|
23
|
+
def by_lang_code(lang_code)
|
|
24
|
+
raise StandardError, 'lang_code cannot be null' if lang_code.nil?
|
|
25
|
+
url_tpl_params = @path_parameters.clone
|
|
26
|
+
url_tpl_params["lang_code"] = lang_code
|
|
27
|
+
return Rixl::Videos::Item::Subtitles::Language::Item::WithLangCodeItemRequestBuilder.new(url_tpl_params, @request_adapter)
|
|
28
|
+
end
|
|
29
|
+
##
|
|
30
|
+
## Instantiates a new LanguageRequestBuilder and sets the default values.
|
|
31
|
+
## @param path_parameters Path parameters for the request
|
|
32
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
33
|
+
## @return a void
|
|
34
|
+
##
|
|
35
|
+
def initialize(path_parameters, request_adapter)
|
|
36
|
+
super(path_parameters, request_adapter, "{+baseurl}/videos/{videoId}/subtitles/language")
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
File without changes
|