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,104 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../models/github_com_rixlhq_api_internal_errors_error_response'
|
|
3
|
+
require_relative '../../models/image'
|
|
4
|
+
require_relative '../../rixl'
|
|
5
|
+
require_relative '../images'
|
|
6
|
+
require_relative './item'
|
|
7
|
+
|
|
8
|
+
module Rixl
|
|
9
|
+
module Images
|
|
10
|
+
module Item
|
|
11
|
+
##
|
|
12
|
+
# Builds and executes requests for operations under \images\{imageId}
|
|
13
|
+
class WithImageItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
14
|
+
|
|
15
|
+
##
|
|
16
|
+
## Instantiates a new WithImageItemRequestBuilder and sets the default values.
|
|
17
|
+
## @param path_parameters Path parameters for the request
|
|
18
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
19
|
+
## @return a void
|
|
20
|
+
##
|
|
21
|
+
def initialize(path_parameters, request_adapter)
|
|
22
|
+
super(path_parameters, request_adapter, "{+baseurl}/images/{imageId}")
|
|
23
|
+
end
|
|
24
|
+
##
|
|
25
|
+
## delete an image by marking it as deleted
|
|
26
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
## @return a Fiber of void
|
|
28
|
+
##
|
|
29
|
+
def delete(request_configuration=nil)
|
|
30
|
+
request_info = self.to_delete_request_information(
|
|
31
|
+
request_configuration
|
|
32
|
+
)
|
|
33
|
+
error_mapping = Hash.new
|
|
34
|
+
error_mapping["400"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
35
|
+
error_mapping["401"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
36
|
+
error_mapping["403"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
37
|
+
error_mapping["404"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
38
|
+
error_mapping["500"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
39
|
+
return @request_adapter.send_async(request_info, nil, error_mapping)
|
|
40
|
+
end
|
|
41
|
+
##
|
|
42
|
+
## Retrieve an image by its ID for a specific project.
|
|
43
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
44
|
+
## @return a Fiber of image
|
|
45
|
+
##
|
|
46
|
+
def get(request_configuration=nil)
|
|
47
|
+
request_info = self.to_get_request_information(
|
|
48
|
+
request_configuration
|
|
49
|
+
)
|
|
50
|
+
error_mapping = Hash.new
|
|
51
|
+
error_mapping["400"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
52
|
+
error_mapping["401"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
53
|
+
error_mapping["403"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
54
|
+
error_mapping["404"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
55
|
+
error_mapping["500"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
56
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::Image.create_from_discriminator_value(pn) }, error_mapping)
|
|
57
|
+
end
|
|
58
|
+
##
|
|
59
|
+
## delete an image by marking it as deleted
|
|
60
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
61
|
+
## @return a request_information
|
|
62
|
+
##
|
|
63
|
+
def to_delete_request_information(request_configuration=nil)
|
|
64
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
65
|
+
unless request_configuration.nil?
|
|
66
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
67
|
+
request_info.add_request_options(request_configuration.options)
|
|
68
|
+
end
|
|
69
|
+
request_info.url_template = @url_template
|
|
70
|
+
request_info.path_parameters = @path_parameters
|
|
71
|
+
request_info.http_method = :DELETE
|
|
72
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
73
|
+
return request_info
|
|
74
|
+
end
|
|
75
|
+
##
|
|
76
|
+
## Retrieve an image by its ID for a specific project.
|
|
77
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
78
|
+
## @return a request_information
|
|
79
|
+
##
|
|
80
|
+
def to_get_request_information(request_configuration=nil)
|
|
81
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
82
|
+
unless request_configuration.nil?
|
|
83
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
84
|
+
request_info.add_request_options(request_configuration.options)
|
|
85
|
+
end
|
|
86
|
+
request_info.url_template = @url_template
|
|
87
|
+
request_info.path_parameters = @path_parameters
|
|
88
|
+
request_info.http_method = :GET
|
|
89
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
90
|
+
return request_info
|
|
91
|
+
end
|
|
92
|
+
##
|
|
93
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
94
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
95
|
+
## @return a with_image_item_request_builder
|
|
96
|
+
##
|
|
97
|
+
def with_url(raw_url)
|
|
98
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
99
|
+
return WithImageItemRequestBuilder.new(raw_url, @request_adapter)
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../models/github_com_rixlhq_api_internal_errors_error_response'
|
|
3
|
+
require_relative '../../../models/image'
|
|
4
|
+
require_relative '../../../models/internal_images_handler_complete_request'
|
|
5
|
+
require_relative '../../../rixl'
|
|
6
|
+
require_relative '../../images'
|
|
7
|
+
require_relative '../upload'
|
|
8
|
+
require_relative './complete'
|
|
9
|
+
|
|
10
|
+
module Rixl
|
|
11
|
+
module Images
|
|
12
|
+
module Upload
|
|
13
|
+
module Complete
|
|
14
|
+
##
|
|
15
|
+
# Builds and executes requests for operations under \images\upload\complete
|
|
16
|
+
class CompleteRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
17
|
+
|
|
18
|
+
##
|
|
19
|
+
## Instantiates a new CompleteRequestBuilder 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}/images/upload/complete")
|
|
26
|
+
end
|
|
27
|
+
##
|
|
28
|
+
## Complete the upload process and create the image record using API key authentication
|
|
29
|
+
## @param body Upload completion request
|
|
30
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
## @return a Fiber of image
|
|
32
|
+
##
|
|
33
|
+
def post(body, request_configuration=nil)
|
|
34
|
+
raise StandardError, 'body cannot be null' if body.nil?
|
|
35
|
+
request_info = self.to_post_request_information(
|
|
36
|
+
body, request_configuration
|
|
37
|
+
)
|
|
38
|
+
error_mapping = Hash.new
|
|
39
|
+
error_mapping["400"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
40
|
+
error_mapping["401"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
41
|
+
error_mapping["403"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
42
|
+
error_mapping["404"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
43
|
+
error_mapping["500"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
44
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::Image.create_from_discriminator_value(pn) }, error_mapping)
|
|
45
|
+
end
|
|
46
|
+
##
|
|
47
|
+
## Complete the upload process and create the image record using API key authentication
|
|
48
|
+
## @param body Upload completion request
|
|
49
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
50
|
+
## @return a request_information
|
|
51
|
+
##
|
|
52
|
+
def to_post_request_information(body, request_configuration=nil)
|
|
53
|
+
raise StandardError, 'body cannot be null' if body.nil?
|
|
54
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
55
|
+
unless request_configuration.nil?
|
|
56
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
57
|
+
request_info.add_request_options(request_configuration.options)
|
|
58
|
+
end
|
|
59
|
+
request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
|
|
60
|
+
request_info.url_template = @url_template
|
|
61
|
+
request_info.path_parameters = @path_parameters
|
|
62
|
+
request_info.http_method = :POST
|
|
63
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
64
|
+
return request_info
|
|
65
|
+
end
|
|
66
|
+
##
|
|
67
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
68
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
69
|
+
## @return a complete_request_builder
|
|
70
|
+
##
|
|
71
|
+
def with_url(raw_url)
|
|
72
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
73
|
+
return CompleteRequestBuilder.new(raw_url, @request_adapter)
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../models/github_com_rixlhq_api_internal_errors_error_response'
|
|
3
|
+
require_relative '../../../models/internal_images_handler_init_response'
|
|
4
|
+
require_relative '../../../models/internal_images_handler_upload_init_request'
|
|
5
|
+
require_relative '../../../rixl'
|
|
6
|
+
require_relative '../../images'
|
|
7
|
+
require_relative '../upload'
|
|
8
|
+
require_relative './init'
|
|
9
|
+
|
|
10
|
+
module Rixl
|
|
11
|
+
module Images
|
|
12
|
+
module Upload
|
|
13
|
+
module Init
|
|
14
|
+
##
|
|
15
|
+
# Builds and executes requests for operations under \images\upload\init
|
|
16
|
+
class InitRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
17
|
+
|
|
18
|
+
##
|
|
19
|
+
## Instantiates a new InitRequestBuilder 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}/images/upload/init")
|
|
26
|
+
end
|
|
27
|
+
##
|
|
28
|
+
## Initialize a presigned URL upload for an image file using API key authentication
|
|
29
|
+
## @param body Upload initialization request
|
|
30
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
## @return a Fiber of internal_images_handler_init_response
|
|
32
|
+
##
|
|
33
|
+
def post(body, request_configuration=nil)
|
|
34
|
+
raise StandardError, 'body cannot be null' if body.nil?
|
|
35
|
+
request_info = self.to_post_request_information(
|
|
36
|
+
body, request_configuration
|
|
37
|
+
)
|
|
38
|
+
error_mapping = Hash.new
|
|
39
|
+
error_mapping["400"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
40
|
+
error_mapping["401"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
41
|
+
error_mapping["403"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
42
|
+
error_mapping["500"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
43
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::Internal_images_handlerInitResponse.create_from_discriminator_value(pn) }, error_mapping)
|
|
44
|
+
end
|
|
45
|
+
##
|
|
46
|
+
## Initialize a presigned URL upload for an image file using API key authentication
|
|
47
|
+
## @param body Upload initialization request
|
|
48
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
49
|
+
## @return a request_information
|
|
50
|
+
##
|
|
51
|
+
def to_post_request_information(body, request_configuration=nil)
|
|
52
|
+
raise StandardError, 'body cannot be null' if body.nil?
|
|
53
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
54
|
+
unless request_configuration.nil?
|
|
55
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
56
|
+
request_info.add_request_options(request_configuration.options)
|
|
57
|
+
end
|
|
58
|
+
request_info.set_content_from_parsable(@request_adapter, 'application/json', body)
|
|
59
|
+
request_info.url_template = @url_template
|
|
60
|
+
request_info.path_parameters = @path_parameters
|
|
61
|
+
request_info.http_method = :POST
|
|
62
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
63
|
+
return request_info
|
|
64
|
+
end
|
|
65
|
+
##
|
|
66
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
67
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
68
|
+
## @return a init_request_builder
|
|
69
|
+
##
|
|
70
|
+
def with_url(raw_url)
|
|
71
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
72
|
+
return InitRequestBuilder.new(raw_url, @request_adapter)
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../rixl'
|
|
3
|
+
require_relative '../images'
|
|
4
|
+
require_relative './complete/complete_request_builder'
|
|
5
|
+
require_relative './init/init_request_builder'
|
|
6
|
+
require_relative './upload'
|
|
7
|
+
|
|
8
|
+
module Rixl
|
|
9
|
+
module Images
|
|
10
|
+
module Upload
|
|
11
|
+
##
|
|
12
|
+
# Builds and executes requests for operations under \images\upload
|
|
13
|
+
class UploadRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
14
|
+
|
|
15
|
+
##
|
|
16
|
+
# The complete property
|
|
17
|
+
def complete()
|
|
18
|
+
return Rixl::Images::Upload::Complete::CompleteRequestBuilder.new(@path_parameters, @request_adapter)
|
|
19
|
+
end
|
|
20
|
+
##
|
|
21
|
+
# The init property
|
|
22
|
+
def init()
|
|
23
|
+
return Rixl::Images::Upload::Init::InitRequestBuilder.new(@path_parameters, @request_adapter)
|
|
24
|
+
end
|
|
25
|
+
##
|
|
26
|
+
## Instantiates a new UploadRequestBuilder and sets the default values.
|
|
27
|
+
## @param path_parameters Path parameters for the request
|
|
28
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
29
|
+
## @return a void
|
|
30
|
+
##
|
|
31
|
+
def initialize(path_parameters, request_adapter)
|
|
32
|
+
super(path_parameters, request_adapter, "{+baseurl}/images/upload")
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
data/lib/kiota-lock.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"descriptionHash": "9A2C51CA4C5408896DD1B785AD8FFFA177F9BD09B2AEE8C3C044E7EA89F023B5D1B4B802259947879D96D3596757FB62A97BCDA621048785BE4C160107597690",
|
|
3
|
+
"descriptionLocation": "https://raw.githubusercontent.com/rixlhq/openapi/refs/heads/main/openapi.yaml",
|
|
4
|
+
"lockFileVersion": "1.0.0",
|
|
5
|
+
"kiotaVersion": "1.30.0",
|
|
6
|
+
"clientClassName": "rixl",
|
|
7
|
+
"typeAccessModifier": "Public",
|
|
8
|
+
"clientNamespaceName": "rixl",
|
|
9
|
+
"language": "Ruby",
|
|
10
|
+
"usesBackingStore": false,
|
|
11
|
+
"excludeBackwardCompatible": true,
|
|
12
|
+
"includeAdditionalData": true,
|
|
13
|
+
"disableSSLValidation": false,
|
|
14
|
+
"serializers": [
|
|
15
|
+
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
|
|
16
|
+
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
|
|
17
|
+
"Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
|
|
18
|
+
"Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
|
|
19
|
+
],
|
|
20
|
+
"deserializers": [
|
|
21
|
+
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
|
|
22
|
+
"Microsoft.Kiota.Serialization.Text.TextParseNodeFactory",
|
|
23
|
+
"Microsoft.Kiota.Serialization.Form.FormParseNodeFactory"
|
|
24
|
+
],
|
|
25
|
+
"structuredMimeTypes": [
|
|
26
|
+
"application/json",
|
|
27
|
+
"text/plain;q=0.9",
|
|
28
|
+
"application/x-www-form-urlencoded;q=0.2",
|
|
29
|
+
"multipart/form-data;q=0.1"
|
|
30
|
+
],
|
|
31
|
+
"includePatterns": [],
|
|
32
|
+
"excludePatterns": [],
|
|
33
|
+
"disabledValidationRules": []
|
|
34
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../rixl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module Rixl
|
|
6
|
+
module Models
|
|
7
|
+
class AudioTrack
|
|
8
|
+
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
|
|
9
|
+
##
|
|
10
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
11
|
+
@additional_data
|
|
12
|
+
##
|
|
13
|
+
# The created_at property
|
|
14
|
+
@created_at
|
|
15
|
+
##
|
|
16
|
+
# The format property
|
|
17
|
+
@format
|
|
18
|
+
##
|
|
19
|
+
# The id property
|
|
20
|
+
@id
|
|
21
|
+
##
|
|
22
|
+
# The label property
|
|
23
|
+
@label
|
|
24
|
+
##
|
|
25
|
+
# The language_code property
|
|
26
|
+
@language_code
|
|
27
|
+
##
|
|
28
|
+
# The name property
|
|
29
|
+
@name
|
|
30
|
+
##
|
|
31
|
+
# The size property
|
|
32
|
+
@size
|
|
33
|
+
##
|
|
34
|
+
# The url property
|
|
35
|
+
@url
|
|
36
|
+
##
|
|
37
|
+
# The video_id property
|
|
38
|
+
@video_id
|
|
39
|
+
##
|
|
40
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
41
|
+
## @return a i_dictionary
|
|
42
|
+
##
|
|
43
|
+
def additional_data
|
|
44
|
+
return @additional_data
|
|
45
|
+
end
|
|
46
|
+
##
|
|
47
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
48
|
+
## @param value Value to set for the AdditionalData property.
|
|
49
|
+
## @return a void
|
|
50
|
+
##
|
|
51
|
+
def additional_data=(value)
|
|
52
|
+
@additional_data = value
|
|
53
|
+
end
|
|
54
|
+
##
|
|
55
|
+
## Instantiates a new AudioTrack and sets the default values.
|
|
56
|
+
## @return a void
|
|
57
|
+
##
|
|
58
|
+
def initialize()
|
|
59
|
+
@additional_data = Hash.new
|
|
60
|
+
end
|
|
61
|
+
##
|
|
62
|
+
## Gets the created_at property value. The created_at property
|
|
63
|
+
## @return a string
|
|
64
|
+
##
|
|
65
|
+
def created_at
|
|
66
|
+
return @created_at
|
|
67
|
+
end
|
|
68
|
+
##
|
|
69
|
+
## Sets the created_at property value. The created_at property
|
|
70
|
+
## @param value Value to set for the created_at property.
|
|
71
|
+
## @return a void
|
|
72
|
+
##
|
|
73
|
+
def created_at=(value)
|
|
74
|
+
@created_at = value
|
|
75
|
+
end
|
|
76
|
+
##
|
|
77
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
78
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
79
|
+
## @return a audio_track
|
|
80
|
+
##
|
|
81
|
+
def self.create_from_discriminator_value(parse_node)
|
|
82
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
83
|
+
return AudioTrack.new
|
|
84
|
+
end
|
|
85
|
+
##
|
|
86
|
+
## Gets the format property value. The format property
|
|
87
|
+
## @return a string
|
|
88
|
+
##
|
|
89
|
+
def format
|
|
90
|
+
return @format
|
|
91
|
+
end
|
|
92
|
+
##
|
|
93
|
+
## Sets the format property value. The format property
|
|
94
|
+
## @param value Value to set for the format property.
|
|
95
|
+
## @return a void
|
|
96
|
+
##
|
|
97
|
+
def format=(value)
|
|
98
|
+
@format = value
|
|
99
|
+
end
|
|
100
|
+
##
|
|
101
|
+
## The deserialization information for the current model
|
|
102
|
+
## @return a i_dictionary
|
|
103
|
+
##
|
|
104
|
+
def get_field_deserializers()
|
|
105
|
+
return {
|
|
106
|
+
"created_at" => lambda {|n| @created_at = n.get_string_value() },
|
|
107
|
+
"format" => lambda {|n| @format = n.get_string_value() },
|
|
108
|
+
"id" => lambda {|n| @id = n.get_string_value() },
|
|
109
|
+
"label" => lambda {|n| @label = n.get_string_value() },
|
|
110
|
+
"language_code" => lambda {|n| @language_code = n.get_string_value() },
|
|
111
|
+
"name" => lambda {|n| @name = n.get_string_value() },
|
|
112
|
+
"size" => lambda {|n| @size = n.get_number_value() },
|
|
113
|
+
"url" => lambda {|n| @url = n.get_string_value() },
|
|
114
|
+
"video_id" => lambda {|n| @video_id = n.get_string_value() },
|
|
115
|
+
}
|
|
116
|
+
end
|
|
117
|
+
##
|
|
118
|
+
## Gets the id property value. The id property
|
|
119
|
+
## @return a string
|
|
120
|
+
##
|
|
121
|
+
def id
|
|
122
|
+
return @id
|
|
123
|
+
end
|
|
124
|
+
##
|
|
125
|
+
## Sets the id property value. The id property
|
|
126
|
+
## @param value Value to set for the id property.
|
|
127
|
+
## @return a void
|
|
128
|
+
##
|
|
129
|
+
def id=(value)
|
|
130
|
+
@id = value
|
|
131
|
+
end
|
|
132
|
+
##
|
|
133
|
+
## Gets the label property value. The label property
|
|
134
|
+
## @return a string
|
|
135
|
+
##
|
|
136
|
+
def label
|
|
137
|
+
return @label
|
|
138
|
+
end
|
|
139
|
+
##
|
|
140
|
+
## Sets the label property value. The label property
|
|
141
|
+
## @param value Value to set for the label property.
|
|
142
|
+
## @return a void
|
|
143
|
+
##
|
|
144
|
+
def label=(value)
|
|
145
|
+
@label = value
|
|
146
|
+
end
|
|
147
|
+
##
|
|
148
|
+
## Gets the language_code property value. The language_code property
|
|
149
|
+
## @return a string
|
|
150
|
+
##
|
|
151
|
+
def language_code
|
|
152
|
+
return @language_code
|
|
153
|
+
end
|
|
154
|
+
##
|
|
155
|
+
## Sets the language_code property value. The language_code property
|
|
156
|
+
## @param value Value to set for the language_code property.
|
|
157
|
+
## @return a void
|
|
158
|
+
##
|
|
159
|
+
def language_code=(value)
|
|
160
|
+
@language_code = value
|
|
161
|
+
end
|
|
162
|
+
##
|
|
163
|
+
## Gets the name property value. The name property
|
|
164
|
+
## @return a string
|
|
165
|
+
##
|
|
166
|
+
def name
|
|
167
|
+
return @name
|
|
168
|
+
end
|
|
169
|
+
##
|
|
170
|
+
## Sets the name property value. The name property
|
|
171
|
+
## @param value Value to set for the name property.
|
|
172
|
+
## @return a void
|
|
173
|
+
##
|
|
174
|
+
def name=(value)
|
|
175
|
+
@name = value
|
|
176
|
+
end
|
|
177
|
+
##
|
|
178
|
+
## Serializes information the current object
|
|
179
|
+
## @param writer Serialization writer to use to serialize this model
|
|
180
|
+
## @return a void
|
|
181
|
+
##
|
|
182
|
+
def serialize(writer)
|
|
183
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
184
|
+
writer.write_string_value("created_at", @created_at)
|
|
185
|
+
writer.write_string_value("format", @format)
|
|
186
|
+
writer.write_string_value("id", @id)
|
|
187
|
+
writer.write_string_value("label", @label)
|
|
188
|
+
writer.write_string_value("language_code", @language_code)
|
|
189
|
+
writer.write_string_value("name", @name)
|
|
190
|
+
writer.write_number_value("size", @size)
|
|
191
|
+
writer.write_string_value("url", @url)
|
|
192
|
+
writer.write_string_value("video_id", @video_id)
|
|
193
|
+
writer.write_additional_data(@additional_data)
|
|
194
|
+
end
|
|
195
|
+
##
|
|
196
|
+
## Gets the size property value. The size property
|
|
197
|
+
## @return a integer
|
|
198
|
+
##
|
|
199
|
+
def size
|
|
200
|
+
return @size
|
|
201
|
+
end
|
|
202
|
+
##
|
|
203
|
+
## Sets the size property value. The size property
|
|
204
|
+
## @param value Value to set for the size property.
|
|
205
|
+
## @return a void
|
|
206
|
+
##
|
|
207
|
+
def size=(value)
|
|
208
|
+
@size = value
|
|
209
|
+
end
|
|
210
|
+
##
|
|
211
|
+
## Gets the url property value. The url property
|
|
212
|
+
## @return a string
|
|
213
|
+
##
|
|
214
|
+
def url
|
|
215
|
+
return @url
|
|
216
|
+
end
|
|
217
|
+
##
|
|
218
|
+
## Sets the url property value. The url property
|
|
219
|
+
## @param value Value to set for the url property.
|
|
220
|
+
## @return a void
|
|
221
|
+
##
|
|
222
|
+
def url=(value)
|
|
223
|
+
@url = value
|
|
224
|
+
end
|
|
225
|
+
##
|
|
226
|
+
## Gets the video_id property value. The video_id property
|
|
227
|
+
## @return a string
|
|
228
|
+
##
|
|
229
|
+
def video_id
|
|
230
|
+
return @video_id
|
|
231
|
+
end
|
|
232
|
+
##
|
|
233
|
+
## Sets the video_id property value. The video_id property
|
|
234
|
+
## @param value Value to set for the video_id property.
|
|
235
|
+
## @return a void
|
|
236
|
+
##
|
|
237
|
+
def video_id=(value)
|
|
238
|
+
@video_id = value
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
end
|