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
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 70339fb332f04627b2bafcb947354da196f79b105e4cdd230f6766f7631804dd
|
|
4
|
+
data.tar.gz: fa7b1d4d78ba120fa91386546106c5c7a3d17f4b85c90ba34920468c7eee363d
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 5eab58315ea275d47d8173635176d258c1d522225c13153f26252010560313f09ace7a3d3574123ef9fb0d00f0d3a854c0e5cd2a46e258b85f69ecf55e52ee3f
|
|
7
|
+
data.tar.gz: f819dedec22025d71a0698e1a589911ca36bc9143e2d79514ca665c2530a5fc05268210c5d5ccff68ce890d873bbdf922836cca1059e99bba2e6a5b051fa33bf
|
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
"rixl" follows [The Ruby Community Conduct Guideline](https://www.ruby-lang.org/en/conduct) in all "collaborative space", which is defined as community communications channels (such as mailing lists, submitted patches, commit comments, etc.):
|
|
4
|
+
|
|
5
|
+
* Participants will be tolerant of opposing views.
|
|
6
|
+
* Participants must ensure that their language and actions are free of personal attacks and disparaging personal remarks.
|
|
7
|
+
* When interpreting the words and actions of others, participants should always assume good intentions.
|
|
8
|
+
* Behaviour which can be reasonably considered harassment will not be tolerated.
|
|
9
|
+
|
|
10
|
+
If you have any concerns about behaviour within this project, please contact us at ["support@rixl.com"](mailto:"support@rixl.com").
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Rixl Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Rixl
|
|
2
|
+
|
|
3
|
+
Ruby client for the [RIXL](https://rixl.com) API.
|
|
4
|
+
|
|
5
|
+
[](https://rubygems.org/gems/rixl)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
gem install rixl
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or in a `Gemfile`:
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
gem "rixl"
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Requires Ruby 3.0+. The Kiota Ruby runtime (`microsoft_kiota_abstractions`, `microsoft_kiota_faraday`, `microsoft_kiota_serialization_json`) is pulled in transitively.
|
|
20
|
+
|
|
21
|
+
## Quick start
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require "rixl_client"
|
|
25
|
+
require "microsoft_kiota_abstractions"
|
|
26
|
+
require "microsoft_kiota_faraday"
|
|
27
|
+
|
|
28
|
+
auth = MicrosoftKiotaAbstractions::ApiKeyAuthenticationProvider.new(
|
|
29
|
+
"X-API-Key",
|
|
30
|
+
"YOUR_RIXL_API_KEY",
|
|
31
|
+
MicrosoftKiotaAbstractions::ApiKeyAuthenticationProvider::KeyLocation::HEADER
|
|
32
|
+
)
|
|
33
|
+
adapter = MicrosoftKiotaFaraday::FaradayRequestAdapter.new(auth)
|
|
34
|
+
adapter.base_url = "https://api.rixl.com"
|
|
35
|
+
|
|
36
|
+
client = RixlSdk::RixlClient.new(adapter)
|
|
37
|
+
image = client.images.by_image_id("PS5IMKoFLm").get
|
|
38
|
+
puts image.id
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Issues
|
|
42
|
+
|
|
43
|
+
[github.com/rixlhq/rixl-ruby/issues](https://github.com/rixlhq/rixl-ruby/issues)
|
data/Rakefile
ADDED
data/lib/feeds/feeds.rb
ADDED
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../rixl'
|
|
3
|
+
require_relative './feeds'
|
|
4
|
+
require_relative './item/with_feed_item_request_builder'
|
|
5
|
+
|
|
6
|
+
module Rixl
|
|
7
|
+
module Feeds
|
|
8
|
+
##
|
|
9
|
+
# Builds and executes requests for operations under \feeds
|
|
10
|
+
class FeedsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
11
|
+
|
|
12
|
+
##
|
|
13
|
+
## Gets an item from the rixl.feeds.item collection
|
|
14
|
+
## @param feed_id Feed ID
|
|
15
|
+
## @return a with_feed_item_request_builder
|
|
16
|
+
##
|
|
17
|
+
def by_feed_id(feed_id)
|
|
18
|
+
raise StandardError, 'feed_id cannot be null' if feed_id.nil?
|
|
19
|
+
url_tpl_params = @path_parameters.clone
|
|
20
|
+
url_tpl_params["feedId"] = feed_id
|
|
21
|
+
return Rixl::Feeds::Item::WithFeedItemRequestBuilder.new(url_tpl_params, @request_adapter)
|
|
22
|
+
end
|
|
23
|
+
##
|
|
24
|
+
## Instantiates a new FeedsRequestBuilder and sets the default values.
|
|
25
|
+
## @param path_parameters Path parameters for the request
|
|
26
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
27
|
+
## @return a void
|
|
28
|
+
##
|
|
29
|
+
def initialize(path_parameters, request_adapter)
|
|
30
|
+
super(path_parameters, request_adapter, "{+baseurl}/feeds")
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../rixl'
|
|
3
|
+
require_relative '../../feeds'
|
|
4
|
+
require_relative '../item'
|
|
5
|
+
require_relative './creators'
|
|
6
|
+
require_relative './item/with_creator_item_request_builder'
|
|
7
|
+
|
|
8
|
+
module Rixl
|
|
9
|
+
module Feeds
|
|
10
|
+
module Item
|
|
11
|
+
module Creators
|
|
12
|
+
##
|
|
13
|
+
# Builds and executes requests for operations under \feeds\{feedId}\creators
|
|
14
|
+
class CreatorsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
15
|
+
|
|
16
|
+
##
|
|
17
|
+
## Gets an item from the rixl.feeds.item.creators.item collection
|
|
18
|
+
## @param creator_id Creator ID
|
|
19
|
+
## @return a with_creator_item_request_builder
|
|
20
|
+
##
|
|
21
|
+
def by_creator_id(creator_id)
|
|
22
|
+
raise StandardError, 'creator_id cannot be null' if creator_id.nil?
|
|
23
|
+
url_tpl_params = @path_parameters.clone
|
|
24
|
+
url_tpl_params["creatorId"] = creator_id
|
|
25
|
+
return Rixl::Feeds::Item::Creators::Item::WithCreatorItemRequestBuilder.new(url_tpl_params, @request_adapter)
|
|
26
|
+
end
|
|
27
|
+
##
|
|
28
|
+
## Instantiates a new CreatorsRequestBuilder and sets the default values.
|
|
29
|
+
## @param path_parameters Path parameters for the request
|
|
30
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
31
|
+
## @return a void
|
|
32
|
+
##
|
|
33
|
+
def initialize(path_parameters, request_adapter)
|
|
34
|
+
super(path_parameters, request_adapter, "{+baseurl}/feeds/{feedId}/creators")
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../../models/github_com_rixlhq_api_internal_errors_error_response'
|
|
3
|
+
require_relative '../../../../models/pagination_paginated_response_post'
|
|
4
|
+
require_relative '../../../../rixl'
|
|
5
|
+
require_relative '../../../feeds'
|
|
6
|
+
require_relative '../../item'
|
|
7
|
+
require_relative '../creators'
|
|
8
|
+
require_relative './item'
|
|
9
|
+
|
|
10
|
+
module Rixl
|
|
11
|
+
module Feeds
|
|
12
|
+
module Item
|
|
13
|
+
module Creators
|
|
14
|
+
module Item
|
|
15
|
+
##
|
|
16
|
+
# Builds and executes requests for operations under \feeds\{feedId}\creators\{creatorId}
|
|
17
|
+
class WithCreatorItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
18
|
+
|
|
19
|
+
##
|
|
20
|
+
## Instantiates a new WithCreatorItemRequestBuilder 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}/feeds/{feedId}/creators/{creatorId}{?limit*,offset*}")
|
|
27
|
+
end
|
|
28
|
+
##
|
|
29
|
+
## Retrieve posts in a feed by a specific creator, with pagination.
|
|
30
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
## @return a Fiber of pagination_paginated_response_post
|
|
32
|
+
##
|
|
33
|
+
def get(request_configuration=nil)
|
|
34
|
+
request_info = self.to_get_request_information(
|
|
35
|
+
request_configuration
|
|
36
|
+
)
|
|
37
|
+
error_mapping = Hash.new
|
|
38
|
+
error_mapping["400"] = 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, lambda {|pn| Rixl::Models::PaginationPaginatedResponsePost.create_from_discriminator_value(pn) }, error_mapping)
|
|
41
|
+
end
|
|
42
|
+
##
|
|
43
|
+
## Retrieve posts in a feed by a specific creator, with pagination.
|
|
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_get_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.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
|
|
52
|
+
request_info.add_request_options(request_configuration.options)
|
|
53
|
+
end
|
|
54
|
+
request_info.url_template = @url_template
|
|
55
|
+
request_info.path_parameters = @path_parameters
|
|
56
|
+
request_info.http_method = :GET
|
|
57
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
58
|
+
return request_info
|
|
59
|
+
end
|
|
60
|
+
##
|
|
61
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
62
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
63
|
+
## @return a with_creator_item_request_builder
|
|
64
|
+
##
|
|
65
|
+
def with_url(raw_url)
|
|
66
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
67
|
+
return WithCreatorItemRequestBuilder.new(raw_url, @request_adapter)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
##
|
|
71
|
+
# Retrieve posts in a feed by a specific creator, with pagination.
|
|
72
|
+
class WithCreatorItemRequestBuilderGetQueryParameters
|
|
73
|
+
|
|
74
|
+
##
|
|
75
|
+
# Maximum number of items to return in a single request. <br> **Default:** `25`
|
|
76
|
+
attr_accessor :limit
|
|
77
|
+
##
|
|
78
|
+
# Starting point of the result set. <br>To get page 2 with a limit of 25, set `offset` to `25`. <br> **Default:** `0`
|
|
79
|
+
attr_accessor :offset
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../models/github_com_rixlhq_api_internal_errors_error_response'
|
|
3
|
+
require_relative '../../../models/post'
|
|
4
|
+
require_relative '../../../rixl'
|
|
5
|
+
require_relative '../../feeds'
|
|
6
|
+
require_relative '../item'
|
|
7
|
+
require_relative './item'
|
|
8
|
+
|
|
9
|
+
module Rixl
|
|
10
|
+
module Feeds
|
|
11
|
+
module Item
|
|
12
|
+
module Item
|
|
13
|
+
##
|
|
14
|
+
# Builds and executes requests for operations under \feeds\{feedId}\{postId}
|
|
15
|
+
class WithPostItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
16
|
+
|
|
17
|
+
##
|
|
18
|
+
## Instantiates a new WithPostItemRequestBuilder and sets the default values.
|
|
19
|
+
## @param path_parameters Path parameters for the request
|
|
20
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
21
|
+
## @return a void
|
|
22
|
+
##
|
|
23
|
+
def initialize(path_parameters, request_adapter)
|
|
24
|
+
super(path_parameters, request_adapter, "{+baseurl}/feeds/{feedId}/{postId}")
|
|
25
|
+
end
|
|
26
|
+
##
|
|
27
|
+
## Retrieve a post from feed by its ID
|
|
28
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
29
|
+
## @return a Fiber of post
|
|
30
|
+
##
|
|
31
|
+
def get(request_configuration=nil)
|
|
32
|
+
request_info = self.to_get_request_information(
|
|
33
|
+
request_configuration
|
|
34
|
+
)
|
|
35
|
+
error_mapping = Hash.new
|
|
36
|
+
error_mapping["400"] = 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
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::Post.create_from_discriminator_value(pn) }, error_mapping)
|
|
39
|
+
end
|
|
40
|
+
##
|
|
41
|
+
## Retrieve a post from feed by its ID
|
|
42
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
43
|
+
## @return a request_information
|
|
44
|
+
##
|
|
45
|
+
def to_get_request_information(request_configuration=nil)
|
|
46
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
47
|
+
unless request_configuration.nil?
|
|
48
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
49
|
+
request_info.add_request_options(request_configuration.options)
|
|
50
|
+
end
|
|
51
|
+
request_info.url_template = @url_template
|
|
52
|
+
request_info.path_parameters = @path_parameters
|
|
53
|
+
request_info.http_method = :GET
|
|
54
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
55
|
+
return request_info
|
|
56
|
+
end
|
|
57
|
+
##
|
|
58
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
59
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
60
|
+
## @return a with_post_item_request_builder
|
|
61
|
+
##
|
|
62
|
+
def with_url(raw_url)
|
|
63
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
64
|
+
return WithPostItemRequestBuilder.new(raw_url, @request_adapter)
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../models/github_com_rixlhq_api_internal_errors_error_response'
|
|
3
|
+
require_relative '../../models/pagination_paginated_response_post'
|
|
4
|
+
require_relative '../../rixl'
|
|
5
|
+
require_relative '../feeds'
|
|
6
|
+
require_relative './creators/creators_request_builder'
|
|
7
|
+
require_relative './item'
|
|
8
|
+
require_relative './item/with_post_item_request_builder'
|
|
9
|
+
|
|
10
|
+
module Rixl
|
|
11
|
+
module Feeds
|
|
12
|
+
module Item
|
|
13
|
+
##
|
|
14
|
+
# Builds and executes requests for operations under \feeds\{feedId}
|
|
15
|
+
class WithFeedItemRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
16
|
+
|
|
17
|
+
##
|
|
18
|
+
# The creators property
|
|
19
|
+
def creators()
|
|
20
|
+
return Rixl::Feeds::Item::Creators::CreatorsRequestBuilder.new(@path_parameters, @request_adapter)
|
|
21
|
+
end
|
|
22
|
+
##
|
|
23
|
+
## Gets an item from the rixl.feeds.item.item collection
|
|
24
|
+
## @param post_id Post ID
|
|
25
|
+
## @return a with_post_item_request_builder
|
|
26
|
+
##
|
|
27
|
+
def by_post_id(post_id)
|
|
28
|
+
raise StandardError, 'post_id cannot be null' if post_id.nil?
|
|
29
|
+
url_tpl_params = @path_parameters.clone
|
|
30
|
+
url_tpl_params["postId"] = post_id
|
|
31
|
+
return Rixl::Feeds::Item::Item::WithPostItemRequestBuilder.new(url_tpl_params, @request_adapter)
|
|
32
|
+
end
|
|
33
|
+
##
|
|
34
|
+
## Instantiates a new WithFeedItemRequestBuilder and sets the default values.
|
|
35
|
+
## @param path_parameters Path parameters for the request
|
|
36
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
37
|
+
## @return a void
|
|
38
|
+
##
|
|
39
|
+
def initialize(path_parameters, request_adapter)
|
|
40
|
+
super(path_parameters, request_adapter, "{+baseurl}/feeds/{feedId}{?limit*,offset*}")
|
|
41
|
+
end
|
|
42
|
+
##
|
|
43
|
+
## Retrieve posts in a feed, with pagination.
|
|
44
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
45
|
+
## @return a Fiber of pagination_paginated_response_post
|
|
46
|
+
##
|
|
47
|
+
def get(request_configuration=nil)
|
|
48
|
+
request_info = self.to_get_request_information(
|
|
49
|
+
request_configuration
|
|
50
|
+
)
|
|
51
|
+
error_mapping = Hash.new
|
|
52
|
+
error_mapping["400"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
53
|
+
error_mapping["500"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
54
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::PaginationPaginatedResponsePost.create_from_discriminator_value(pn) }, error_mapping)
|
|
55
|
+
end
|
|
56
|
+
##
|
|
57
|
+
## Retrieve posts in a feed, with pagination.
|
|
58
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
59
|
+
## @return a request_information
|
|
60
|
+
##
|
|
61
|
+
def to_get_request_information(request_configuration=nil)
|
|
62
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
63
|
+
unless request_configuration.nil?
|
|
64
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
65
|
+
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
|
|
66
|
+
request_info.add_request_options(request_configuration.options)
|
|
67
|
+
end
|
|
68
|
+
request_info.url_template = @url_template
|
|
69
|
+
request_info.path_parameters = @path_parameters
|
|
70
|
+
request_info.http_method = :GET
|
|
71
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
72
|
+
return request_info
|
|
73
|
+
end
|
|
74
|
+
##
|
|
75
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
76
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
77
|
+
## @return a with_feed_item_request_builder
|
|
78
|
+
##
|
|
79
|
+
def with_url(raw_url)
|
|
80
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
81
|
+
return WithFeedItemRequestBuilder.new(raw_url, @request_adapter)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
##
|
|
85
|
+
# Retrieve posts in a feed, with pagination.
|
|
86
|
+
class WithFeedItemRequestBuilderGetQueryParameters
|
|
87
|
+
|
|
88
|
+
##
|
|
89
|
+
# Maximum number of items to return in a single request. <br> **Default:** `25`
|
|
90
|
+
attr_accessor :limit
|
|
91
|
+
##
|
|
92
|
+
# Starting point of the result set. <br>To get page 2 with a limit of 25, set `offset` to `25`. <br> **Default:** `0`
|
|
93
|
+
attr_accessor :offset
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../models/github_com_rixlhq_api_internal_errors_error_response'
|
|
3
|
+
require_relative '../models/pagination_paginated_response_image'
|
|
4
|
+
require_relative '../rixl'
|
|
5
|
+
require_relative './images'
|
|
6
|
+
require_relative './item/with_image_item_request_builder'
|
|
7
|
+
require_relative './upload/upload_request_builder'
|
|
8
|
+
|
|
9
|
+
module Rixl
|
|
10
|
+
module Images
|
|
11
|
+
##
|
|
12
|
+
# Builds and executes requests for operations under \images
|
|
13
|
+
class ImagesRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder
|
|
14
|
+
|
|
15
|
+
##
|
|
16
|
+
# The upload property
|
|
17
|
+
def upload()
|
|
18
|
+
return Rixl::Images::Upload::UploadRequestBuilder.new(@path_parameters, @request_adapter)
|
|
19
|
+
end
|
|
20
|
+
##
|
|
21
|
+
## Gets an item from the rixl.images.item collection
|
|
22
|
+
## @param image_id Image ID
|
|
23
|
+
## @return a with_image_item_request_builder
|
|
24
|
+
##
|
|
25
|
+
def by_image_id(image_id)
|
|
26
|
+
raise StandardError, 'image_id cannot be null' if image_id.nil?
|
|
27
|
+
url_tpl_params = @path_parameters.clone
|
|
28
|
+
url_tpl_params["imageId"] = image_id
|
|
29
|
+
return Rixl::Images::Item::WithImageItemRequestBuilder.new(url_tpl_params, @request_adapter)
|
|
30
|
+
end
|
|
31
|
+
##
|
|
32
|
+
## Instantiates a new ImagesRequestBuilder and sets the default values.
|
|
33
|
+
## @param path_parameters Path parameters for the request
|
|
34
|
+
## @param request_adapter The request adapter to use to execute the requests.
|
|
35
|
+
## @return a void
|
|
36
|
+
##
|
|
37
|
+
def initialize(path_parameters, request_adapter)
|
|
38
|
+
super(path_parameters, request_adapter, "{+baseurl}/images{?limit*,offset*,order*,sort*}")
|
|
39
|
+
end
|
|
40
|
+
##
|
|
41
|
+
## Retrieve all images for a specific project, with pagination and sorting.
|
|
42
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
43
|
+
## @return a Fiber of pagination_paginated_response_image
|
|
44
|
+
##
|
|
45
|
+
def get(request_configuration=nil)
|
|
46
|
+
request_info = self.to_get_request_information(
|
|
47
|
+
request_configuration
|
|
48
|
+
)
|
|
49
|
+
error_mapping = Hash.new
|
|
50
|
+
error_mapping["400"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
51
|
+
error_mapping["401"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
52
|
+
error_mapping["403"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
53
|
+
error_mapping["500"] = lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_errorsErrorResponse.create_from_discriminator_value(pn) }
|
|
54
|
+
return @request_adapter.send_async(request_info, lambda {|pn| Rixl::Models::PaginationPaginatedResponseImage.create_from_discriminator_value(pn) }, error_mapping)
|
|
55
|
+
end
|
|
56
|
+
##
|
|
57
|
+
## Retrieve all images for a specific project, with pagination and sorting.
|
|
58
|
+
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
|
|
59
|
+
## @return a request_information
|
|
60
|
+
##
|
|
61
|
+
def to_get_request_information(request_configuration=nil)
|
|
62
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
63
|
+
unless request_configuration.nil?
|
|
64
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
65
|
+
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
|
|
66
|
+
request_info.add_request_options(request_configuration.options)
|
|
67
|
+
end
|
|
68
|
+
request_info.url_template = @url_template
|
|
69
|
+
request_info.path_parameters = @path_parameters
|
|
70
|
+
request_info.http_method = :GET
|
|
71
|
+
request_info.headers.try_add('Accept', 'application/json')
|
|
72
|
+
return request_info
|
|
73
|
+
end
|
|
74
|
+
##
|
|
75
|
+
## Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
76
|
+
## @param raw_url The raw URL to use for the request builder.
|
|
77
|
+
## @return a images_request_builder
|
|
78
|
+
##
|
|
79
|
+
def with_url(raw_url)
|
|
80
|
+
raise StandardError, 'raw_url cannot be null' if raw_url.nil?
|
|
81
|
+
return ImagesRequestBuilder.new(raw_url, @request_adapter)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
##
|
|
85
|
+
# Retrieve all images for a specific project, with pagination and sorting.
|
|
86
|
+
class ImagesRequestBuilderGetQueryParameters
|
|
87
|
+
|
|
88
|
+
##
|
|
89
|
+
# Maximum number of items to return in a single request. <br> **Default:** `25`
|
|
90
|
+
attr_accessor :limit
|
|
91
|
+
##
|
|
92
|
+
# Starting point of the result set. <br>To get page 2 with a limit of 25, set `offset` to `25`. <br> **Default:** `0`
|
|
93
|
+
attr_accessor :offset
|
|
94
|
+
##
|
|
95
|
+
# Sort order (asc, desc)
|
|
96
|
+
attr_accessor :order
|
|
97
|
+
##
|
|
98
|
+
# Field to sort by (created_at, name, size, updated_at)
|
|
99
|
+
attr_accessor :sort
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
File without changes
|