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,102 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../rixl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module Rixl
|
|
6
|
+
module Models
|
|
7
|
+
class PaginationPaginatedResponseImage
|
|
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
|
+
# Data contains the slice of items for the current request.
|
|
14
|
+
@data
|
|
15
|
+
##
|
|
16
|
+
# Pagination data for the request.
|
|
17
|
+
@pagination
|
|
18
|
+
##
|
|
19
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
20
|
+
## @return a i_dictionary
|
|
21
|
+
##
|
|
22
|
+
def additional_data
|
|
23
|
+
return @additional_data
|
|
24
|
+
end
|
|
25
|
+
##
|
|
26
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
27
|
+
## @param value Value to set for the AdditionalData property.
|
|
28
|
+
## @return a void
|
|
29
|
+
##
|
|
30
|
+
def additional_data=(value)
|
|
31
|
+
@additional_data = value
|
|
32
|
+
end
|
|
33
|
+
##
|
|
34
|
+
## Instantiates a new PaginationPaginatedResponseImage and sets the default values.
|
|
35
|
+
## @return a void
|
|
36
|
+
##
|
|
37
|
+
def initialize()
|
|
38
|
+
@additional_data = Hash.new
|
|
39
|
+
end
|
|
40
|
+
##
|
|
41
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
42
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
43
|
+
## @return a pagination_paginated_response_image
|
|
44
|
+
##
|
|
45
|
+
def self.create_from_discriminator_value(parse_node)
|
|
46
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
47
|
+
return PaginationPaginatedResponseImage.new
|
|
48
|
+
end
|
|
49
|
+
##
|
|
50
|
+
## Gets the data property value. Data contains the slice of items for the current request.
|
|
51
|
+
## @return a image
|
|
52
|
+
##
|
|
53
|
+
def data
|
|
54
|
+
return @data
|
|
55
|
+
end
|
|
56
|
+
##
|
|
57
|
+
## Sets the data property value. Data contains the slice of items for the current request.
|
|
58
|
+
## @param value Value to set for the data property.
|
|
59
|
+
## @return a void
|
|
60
|
+
##
|
|
61
|
+
def data=(value)
|
|
62
|
+
@data = value
|
|
63
|
+
end
|
|
64
|
+
##
|
|
65
|
+
## The deserialization information for the current model
|
|
66
|
+
## @return a i_dictionary
|
|
67
|
+
##
|
|
68
|
+
def get_field_deserializers()
|
|
69
|
+
return {
|
|
70
|
+
"data" => lambda {|n| @data = n.get_collection_of_object_values(lambda {|pn| Rixl::Models::Image.create_from_discriminator_value(pn) }) },
|
|
71
|
+
"pagination" => lambda {|n| @pagination = n.get_object_value(lambda {|pn| Rixl::Models::PaginationPagination.create_from_discriminator_value(pn) }) },
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
##
|
|
75
|
+
## Gets the pagination property value. Pagination data for the request.
|
|
76
|
+
## @return a pagination_pagination
|
|
77
|
+
##
|
|
78
|
+
def pagination
|
|
79
|
+
return @pagination
|
|
80
|
+
end
|
|
81
|
+
##
|
|
82
|
+
## Sets the pagination property value. Pagination data for the request.
|
|
83
|
+
## @param value Value to set for the pagination property.
|
|
84
|
+
## @return a void
|
|
85
|
+
##
|
|
86
|
+
def pagination=(value)
|
|
87
|
+
@pagination = value
|
|
88
|
+
end
|
|
89
|
+
##
|
|
90
|
+
## Serializes information the current object
|
|
91
|
+
## @param writer Serialization writer to use to serialize this model
|
|
92
|
+
## @return a void
|
|
93
|
+
##
|
|
94
|
+
def serialize(writer)
|
|
95
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
96
|
+
writer.write_collection_of_object_values("data", @data)
|
|
97
|
+
writer.write_object_value("pagination", @pagination)
|
|
98
|
+
writer.write_additional_data(@additional_data)
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../rixl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module Rixl
|
|
6
|
+
module Models
|
|
7
|
+
class PaginationPaginatedResponsePost
|
|
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
|
+
# Data contains the slice of items for the current request.
|
|
14
|
+
@data
|
|
15
|
+
##
|
|
16
|
+
# Pagination data for the request.
|
|
17
|
+
@pagination
|
|
18
|
+
##
|
|
19
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
20
|
+
## @return a i_dictionary
|
|
21
|
+
##
|
|
22
|
+
def additional_data
|
|
23
|
+
return @additional_data
|
|
24
|
+
end
|
|
25
|
+
##
|
|
26
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
27
|
+
## @param value Value to set for the AdditionalData property.
|
|
28
|
+
## @return a void
|
|
29
|
+
##
|
|
30
|
+
def additional_data=(value)
|
|
31
|
+
@additional_data = value
|
|
32
|
+
end
|
|
33
|
+
##
|
|
34
|
+
## Instantiates a new PaginationPaginatedResponsePost and sets the default values.
|
|
35
|
+
## @return a void
|
|
36
|
+
##
|
|
37
|
+
def initialize()
|
|
38
|
+
@additional_data = Hash.new
|
|
39
|
+
end
|
|
40
|
+
##
|
|
41
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
42
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
43
|
+
## @return a pagination_paginated_response_post
|
|
44
|
+
##
|
|
45
|
+
def self.create_from_discriminator_value(parse_node)
|
|
46
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
47
|
+
return PaginationPaginatedResponsePost.new
|
|
48
|
+
end
|
|
49
|
+
##
|
|
50
|
+
## Gets the data property value. Data contains the slice of items for the current request.
|
|
51
|
+
## @return a post
|
|
52
|
+
##
|
|
53
|
+
def data
|
|
54
|
+
return @data
|
|
55
|
+
end
|
|
56
|
+
##
|
|
57
|
+
## Sets the data property value. Data contains the slice of items for the current request.
|
|
58
|
+
## @param value Value to set for the data property.
|
|
59
|
+
## @return a void
|
|
60
|
+
##
|
|
61
|
+
def data=(value)
|
|
62
|
+
@data = value
|
|
63
|
+
end
|
|
64
|
+
##
|
|
65
|
+
## The deserialization information for the current model
|
|
66
|
+
## @return a i_dictionary
|
|
67
|
+
##
|
|
68
|
+
def get_field_deserializers()
|
|
69
|
+
return {
|
|
70
|
+
"data" => lambda {|n| @data = n.get_collection_of_object_values(lambda {|pn| Rixl::Models::Post.create_from_discriminator_value(pn) }) },
|
|
71
|
+
"pagination" => lambda {|n| @pagination = n.get_object_value(lambda {|pn| Rixl::Models::PaginationPagination.create_from_discriminator_value(pn) }) },
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
##
|
|
75
|
+
## Gets the pagination property value. Pagination data for the request.
|
|
76
|
+
## @return a pagination_pagination
|
|
77
|
+
##
|
|
78
|
+
def pagination
|
|
79
|
+
return @pagination
|
|
80
|
+
end
|
|
81
|
+
##
|
|
82
|
+
## Sets the pagination property value. Pagination data for the request.
|
|
83
|
+
## @param value Value to set for the pagination property.
|
|
84
|
+
## @return a void
|
|
85
|
+
##
|
|
86
|
+
def pagination=(value)
|
|
87
|
+
@pagination = value
|
|
88
|
+
end
|
|
89
|
+
##
|
|
90
|
+
## Serializes information the current object
|
|
91
|
+
## @param writer Serialization writer to use to serialize this model
|
|
92
|
+
## @return a void
|
|
93
|
+
##
|
|
94
|
+
def serialize(writer)
|
|
95
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
96
|
+
writer.write_collection_of_object_values("data", @data)
|
|
97
|
+
writer.write_object_value("pagination", @pagination)
|
|
98
|
+
writer.write_additional_data(@additional_data)
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../rixl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module Rixl
|
|
6
|
+
module Models
|
|
7
|
+
class PaginationPaginatedResponseVideo
|
|
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
|
+
# Data contains the slice of items for the current request.
|
|
14
|
+
@data
|
|
15
|
+
##
|
|
16
|
+
# Pagination data for the request.
|
|
17
|
+
@pagination
|
|
18
|
+
##
|
|
19
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
20
|
+
## @return a i_dictionary
|
|
21
|
+
##
|
|
22
|
+
def additional_data
|
|
23
|
+
return @additional_data
|
|
24
|
+
end
|
|
25
|
+
##
|
|
26
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
27
|
+
## @param value Value to set for the AdditionalData property.
|
|
28
|
+
## @return a void
|
|
29
|
+
##
|
|
30
|
+
def additional_data=(value)
|
|
31
|
+
@additional_data = value
|
|
32
|
+
end
|
|
33
|
+
##
|
|
34
|
+
## Instantiates a new PaginationPaginatedResponseVideo and sets the default values.
|
|
35
|
+
## @return a void
|
|
36
|
+
##
|
|
37
|
+
def initialize()
|
|
38
|
+
@additional_data = Hash.new
|
|
39
|
+
end
|
|
40
|
+
##
|
|
41
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
42
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
43
|
+
## @return a pagination_paginated_response_video
|
|
44
|
+
##
|
|
45
|
+
def self.create_from_discriminator_value(parse_node)
|
|
46
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
47
|
+
return PaginationPaginatedResponseVideo.new
|
|
48
|
+
end
|
|
49
|
+
##
|
|
50
|
+
## Gets the data property value. Data contains the slice of items for the current request.
|
|
51
|
+
## @return a video
|
|
52
|
+
##
|
|
53
|
+
def data
|
|
54
|
+
return @data
|
|
55
|
+
end
|
|
56
|
+
##
|
|
57
|
+
## Sets the data property value. Data contains the slice of items for the current request.
|
|
58
|
+
## @param value Value to set for the data property.
|
|
59
|
+
## @return a void
|
|
60
|
+
##
|
|
61
|
+
def data=(value)
|
|
62
|
+
@data = value
|
|
63
|
+
end
|
|
64
|
+
##
|
|
65
|
+
## The deserialization information for the current model
|
|
66
|
+
## @return a i_dictionary
|
|
67
|
+
##
|
|
68
|
+
def get_field_deserializers()
|
|
69
|
+
return {
|
|
70
|
+
"data" => lambda {|n| @data = n.get_collection_of_object_values(lambda {|pn| Rixl::Models::Video.create_from_discriminator_value(pn) }) },
|
|
71
|
+
"pagination" => lambda {|n| @pagination = n.get_object_value(lambda {|pn| Rixl::Models::PaginationPagination.create_from_discriminator_value(pn) }) },
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
##
|
|
75
|
+
## Gets the pagination property value. Pagination data for the request.
|
|
76
|
+
## @return a pagination_pagination
|
|
77
|
+
##
|
|
78
|
+
def pagination
|
|
79
|
+
return @pagination
|
|
80
|
+
end
|
|
81
|
+
##
|
|
82
|
+
## Sets the pagination property value. Pagination data for the request.
|
|
83
|
+
## @param value Value to set for the pagination property.
|
|
84
|
+
## @return a void
|
|
85
|
+
##
|
|
86
|
+
def pagination=(value)
|
|
87
|
+
@pagination = value
|
|
88
|
+
end
|
|
89
|
+
##
|
|
90
|
+
## Serializes information the current object
|
|
91
|
+
## @param writer Serialization writer to use to serialize this model
|
|
92
|
+
## @return a void
|
|
93
|
+
##
|
|
94
|
+
def serialize(writer)
|
|
95
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
96
|
+
writer.write_collection_of_object_values("data", @data)
|
|
97
|
+
writer.write_object_value("pagination", @pagination)
|
|
98
|
+
writer.write_additional_data(@additional_data)
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../rixl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module Rixl
|
|
6
|
+
module Models
|
|
7
|
+
##
|
|
8
|
+
# Pagination data for the request.
|
|
9
|
+
class PaginationPagination
|
|
10
|
+
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
|
|
11
|
+
##
|
|
12
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
13
|
+
@additional_data
|
|
14
|
+
##
|
|
15
|
+
# Maximum number of items to return in a single request.
|
|
16
|
+
@limit
|
|
17
|
+
##
|
|
18
|
+
# Starting point of the result set.
|
|
19
|
+
@offset
|
|
20
|
+
##
|
|
21
|
+
# The total number of available items in the full list.
|
|
22
|
+
@total
|
|
23
|
+
##
|
|
24
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
25
|
+
## @return a i_dictionary
|
|
26
|
+
##
|
|
27
|
+
def additional_data
|
|
28
|
+
return @additional_data
|
|
29
|
+
end
|
|
30
|
+
##
|
|
31
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
32
|
+
## @param value Value to set for the AdditionalData property.
|
|
33
|
+
## @return a void
|
|
34
|
+
##
|
|
35
|
+
def additional_data=(value)
|
|
36
|
+
@additional_data = value
|
|
37
|
+
end
|
|
38
|
+
##
|
|
39
|
+
## Instantiates a new PaginationPagination and sets the default values.
|
|
40
|
+
## @return a void
|
|
41
|
+
##
|
|
42
|
+
def initialize()
|
|
43
|
+
@additional_data = Hash.new
|
|
44
|
+
end
|
|
45
|
+
##
|
|
46
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
47
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
48
|
+
## @return a pagination_pagination
|
|
49
|
+
##
|
|
50
|
+
def self.create_from_discriminator_value(parse_node)
|
|
51
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
52
|
+
return PaginationPagination.new
|
|
53
|
+
end
|
|
54
|
+
##
|
|
55
|
+
## The deserialization information for the current model
|
|
56
|
+
## @return a i_dictionary
|
|
57
|
+
##
|
|
58
|
+
def get_field_deserializers()
|
|
59
|
+
return {
|
|
60
|
+
"limit" => lambda {|n| @limit = n.get_number_value() },
|
|
61
|
+
"offset" => lambda {|n| @offset = n.get_number_value() },
|
|
62
|
+
"total" => lambda {|n| @total = n.get_number_value() },
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
##
|
|
66
|
+
## Gets the limit property value. Maximum number of items to return in a single request.
|
|
67
|
+
## @return a integer
|
|
68
|
+
##
|
|
69
|
+
def limit
|
|
70
|
+
return @limit
|
|
71
|
+
end
|
|
72
|
+
##
|
|
73
|
+
## Sets the limit property value. Maximum number of items to return in a single request.
|
|
74
|
+
## @param value Value to set for the limit property.
|
|
75
|
+
## @return a void
|
|
76
|
+
##
|
|
77
|
+
def limit=(value)
|
|
78
|
+
@limit = value
|
|
79
|
+
end
|
|
80
|
+
##
|
|
81
|
+
## Gets the offset property value. Starting point of the result set.
|
|
82
|
+
## @return a integer
|
|
83
|
+
##
|
|
84
|
+
def offset
|
|
85
|
+
return @offset
|
|
86
|
+
end
|
|
87
|
+
##
|
|
88
|
+
## Sets the offset property value. Starting point of the result set.
|
|
89
|
+
## @param value Value to set for the offset property.
|
|
90
|
+
## @return a void
|
|
91
|
+
##
|
|
92
|
+
def offset=(value)
|
|
93
|
+
@offset = value
|
|
94
|
+
end
|
|
95
|
+
##
|
|
96
|
+
## Serializes information the current object
|
|
97
|
+
## @param writer Serialization writer to use to serialize this model
|
|
98
|
+
## @return a void
|
|
99
|
+
##
|
|
100
|
+
def serialize(writer)
|
|
101
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
102
|
+
writer.write_number_value("limit", @limit)
|
|
103
|
+
writer.write_number_value("offset", @offset)
|
|
104
|
+
writer.write_number_value("total", @total)
|
|
105
|
+
writer.write_additional_data(@additional_data)
|
|
106
|
+
end
|
|
107
|
+
##
|
|
108
|
+
## Gets the total property value. The total number of available items in the full list.
|
|
109
|
+
## @return a integer
|
|
110
|
+
##
|
|
111
|
+
def total
|
|
112
|
+
return @total
|
|
113
|
+
end
|
|
114
|
+
##
|
|
115
|
+
## Sets the total property value. The total number of available items in the full list.
|
|
116
|
+
## @param value Value to set for the total property.
|
|
117
|
+
## @return a void
|
|
118
|
+
##
|
|
119
|
+
def total=(value)
|
|
120
|
+
@total = value
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
data/lib/models/post.rb
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../rixl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module Rixl
|
|
6
|
+
module Models
|
|
7
|
+
class Post
|
|
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 creator_id property
|
|
17
|
+
@creator_id
|
|
18
|
+
##
|
|
19
|
+
# The description property
|
|
20
|
+
@description
|
|
21
|
+
##
|
|
22
|
+
# The feed_id property
|
|
23
|
+
@feed_id
|
|
24
|
+
##
|
|
25
|
+
# The id property
|
|
26
|
+
@id
|
|
27
|
+
##
|
|
28
|
+
# The image property
|
|
29
|
+
@image
|
|
30
|
+
##
|
|
31
|
+
# The plan_type property
|
|
32
|
+
@plan_type
|
|
33
|
+
##
|
|
34
|
+
# The type property
|
|
35
|
+
@type
|
|
36
|
+
##
|
|
37
|
+
# The updated_at property
|
|
38
|
+
@updated_at
|
|
39
|
+
##
|
|
40
|
+
# The video property
|
|
41
|
+
@video
|
|
42
|
+
##
|
|
43
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
44
|
+
## @return a i_dictionary
|
|
45
|
+
##
|
|
46
|
+
def additional_data
|
|
47
|
+
return @additional_data
|
|
48
|
+
end
|
|
49
|
+
##
|
|
50
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
51
|
+
## @param value Value to set for the AdditionalData property.
|
|
52
|
+
## @return a void
|
|
53
|
+
##
|
|
54
|
+
def additional_data=(value)
|
|
55
|
+
@additional_data = value
|
|
56
|
+
end
|
|
57
|
+
##
|
|
58
|
+
## Instantiates a new Post and sets the default values.
|
|
59
|
+
## @return a void
|
|
60
|
+
##
|
|
61
|
+
def initialize()
|
|
62
|
+
@additional_data = Hash.new
|
|
63
|
+
end
|
|
64
|
+
##
|
|
65
|
+
## Gets the created_at property value. The created_at property
|
|
66
|
+
## @return a string
|
|
67
|
+
##
|
|
68
|
+
def created_at
|
|
69
|
+
return @created_at
|
|
70
|
+
end
|
|
71
|
+
##
|
|
72
|
+
## Sets the created_at property value. The created_at property
|
|
73
|
+
## @param value Value to set for the created_at property.
|
|
74
|
+
## @return a void
|
|
75
|
+
##
|
|
76
|
+
def created_at=(value)
|
|
77
|
+
@created_at = value
|
|
78
|
+
end
|
|
79
|
+
##
|
|
80
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
81
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
82
|
+
## @return a post
|
|
83
|
+
##
|
|
84
|
+
def self.create_from_discriminator_value(parse_node)
|
|
85
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
86
|
+
return Post.new
|
|
87
|
+
end
|
|
88
|
+
##
|
|
89
|
+
## Gets the creator_id property value. The creator_id property
|
|
90
|
+
## @return a string
|
|
91
|
+
##
|
|
92
|
+
def creator_id
|
|
93
|
+
return @creator_id
|
|
94
|
+
end
|
|
95
|
+
##
|
|
96
|
+
## Sets the creator_id property value. The creator_id property
|
|
97
|
+
## @param value Value to set for the creator_id property.
|
|
98
|
+
## @return a void
|
|
99
|
+
##
|
|
100
|
+
def creator_id=(value)
|
|
101
|
+
@creator_id = value
|
|
102
|
+
end
|
|
103
|
+
##
|
|
104
|
+
## Gets the description property value. The description property
|
|
105
|
+
## @return a string
|
|
106
|
+
##
|
|
107
|
+
def description
|
|
108
|
+
return @description
|
|
109
|
+
end
|
|
110
|
+
##
|
|
111
|
+
## Sets the description property value. The description property
|
|
112
|
+
## @param value Value to set for the description property.
|
|
113
|
+
## @return a void
|
|
114
|
+
##
|
|
115
|
+
def description=(value)
|
|
116
|
+
@description = value
|
|
117
|
+
end
|
|
118
|
+
##
|
|
119
|
+
## Gets the feed_id property value. The feed_id property
|
|
120
|
+
## @return a string
|
|
121
|
+
##
|
|
122
|
+
def feed_id
|
|
123
|
+
return @feed_id
|
|
124
|
+
end
|
|
125
|
+
##
|
|
126
|
+
## Sets the feed_id property value. The feed_id property
|
|
127
|
+
## @param value Value to set for the feed_id property.
|
|
128
|
+
## @return a void
|
|
129
|
+
##
|
|
130
|
+
def feed_id=(value)
|
|
131
|
+
@feed_id = value
|
|
132
|
+
end
|
|
133
|
+
##
|
|
134
|
+
## The deserialization information for the current model
|
|
135
|
+
## @return a i_dictionary
|
|
136
|
+
##
|
|
137
|
+
def get_field_deserializers()
|
|
138
|
+
return {
|
|
139
|
+
"created_at" => lambda {|n| @created_at = n.get_string_value() },
|
|
140
|
+
"creator_id" => lambda {|n| @creator_id = n.get_string_value() },
|
|
141
|
+
"description" => lambda {|n| @description = n.get_string_value() },
|
|
142
|
+
"feed_id" => lambda {|n| @feed_id = n.get_string_value() },
|
|
143
|
+
"id" => lambda {|n| @id = n.get_string_value() },
|
|
144
|
+
"image" => lambda {|n| @image = n.get_object_value(lambda {|pn| Rixl::Models::Image.create_from_discriminator_value(pn) }) },
|
|
145
|
+
"plan_type" => lambda {|n| @plan_type = n.get_enum_value(Rixl::Models::Github_com_rixlhq_api_db_sqlcPlanType) },
|
|
146
|
+
"type" => lambda {|n| @type = n.get_enum_value(Rixl::Models::PostType) },
|
|
147
|
+
"updated_at" => lambda {|n| @updated_at = n.get_string_value() },
|
|
148
|
+
"video" => lambda {|n| @video = n.get_object_value(lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_videosVideoResponse.create_from_discriminator_value(pn) }) },
|
|
149
|
+
}
|
|
150
|
+
end
|
|
151
|
+
##
|
|
152
|
+
## Gets the id property value. The id property
|
|
153
|
+
## @return a string
|
|
154
|
+
##
|
|
155
|
+
def id
|
|
156
|
+
return @id
|
|
157
|
+
end
|
|
158
|
+
##
|
|
159
|
+
## Sets the id property value. The id property
|
|
160
|
+
## @param value Value to set for the id property.
|
|
161
|
+
## @return a void
|
|
162
|
+
##
|
|
163
|
+
def id=(value)
|
|
164
|
+
@id = value
|
|
165
|
+
end
|
|
166
|
+
##
|
|
167
|
+
## Gets the image property value. The image property
|
|
168
|
+
## @return a image
|
|
169
|
+
##
|
|
170
|
+
def image
|
|
171
|
+
return @image
|
|
172
|
+
end
|
|
173
|
+
##
|
|
174
|
+
## Sets the image property value. The image property
|
|
175
|
+
## @param value Value to set for the image property.
|
|
176
|
+
## @return a void
|
|
177
|
+
##
|
|
178
|
+
def image=(value)
|
|
179
|
+
@image = value
|
|
180
|
+
end
|
|
181
|
+
##
|
|
182
|
+
## Gets the plan_type property value. The plan_type property
|
|
183
|
+
## @return a github_com_rixlhq_api_db_sqlc_plan_type
|
|
184
|
+
##
|
|
185
|
+
def plan_type
|
|
186
|
+
return @plan_type
|
|
187
|
+
end
|
|
188
|
+
##
|
|
189
|
+
## Sets the plan_type property value. The plan_type property
|
|
190
|
+
## @param value Value to set for the plan_type property.
|
|
191
|
+
## @return a void
|
|
192
|
+
##
|
|
193
|
+
def plan_type=(value)
|
|
194
|
+
@plan_type = value
|
|
195
|
+
end
|
|
196
|
+
##
|
|
197
|
+
## Serializes information the current object
|
|
198
|
+
## @param writer Serialization writer to use to serialize this model
|
|
199
|
+
## @return a void
|
|
200
|
+
##
|
|
201
|
+
def serialize(writer)
|
|
202
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
203
|
+
writer.write_string_value("created_at", @created_at)
|
|
204
|
+
writer.write_string_value("creator_id", @creator_id)
|
|
205
|
+
writer.write_string_value("description", @description)
|
|
206
|
+
writer.write_string_value("feed_id", @feed_id)
|
|
207
|
+
writer.write_string_value("id", @id)
|
|
208
|
+
writer.write_object_value("image", @image)
|
|
209
|
+
writer.write_enum_value("plan_type", @plan_type)
|
|
210
|
+
writer.write_enum_value("type", @type)
|
|
211
|
+
writer.write_string_value("updated_at", @updated_at)
|
|
212
|
+
writer.write_object_value("video", @video)
|
|
213
|
+
writer.write_additional_data(@additional_data)
|
|
214
|
+
end
|
|
215
|
+
##
|
|
216
|
+
## Gets the type property value. The type property
|
|
217
|
+
## @return a post_type
|
|
218
|
+
##
|
|
219
|
+
def type
|
|
220
|
+
return @type
|
|
221
|
+
end
|
|
222
|
+
##
|
|
223
|
+
## Sets the type property value. The type property
|
|
224
|
+
## @param value Value to set for the type property.
|
|
225
|
+
## @return a void
|
|
226
|
+
##
|
|
227
|
+
def type=(value)
|
|
228
|
+
@type = value
|
|
229
|
+
end
|
|
230
|
+
##
|
|
231
|
+
## Gets the updated_at property value. The updated_at property
|
|
232
|
+
## @return a string
|
|
233
|
+
##
|
|
234
|
+
def updated_at
|
|
235
|
+
return @updated_at
|
|
236
|
+
end
|
|
237
|
+
##
|
|
238
|
+
## Sets the updated_at property value. The updated_at property
|
|
239
|
+
## @param value Value to set for the updated_at property.
|
|
240
|
+
## @return a void
|
|
241
|
+
##
|
|
242
|
+
def updated_at=(value)
|
|
243
|
+
@updated_at = value
|
|
244
|
+
end
|
|
245
|
+
##
|
|
246
|
+
## Gets the video property value. The video property
|
|
247
|
+
## @return a github_com_rixlhq_api_internal_videos_video_response
|
|
248
|
+
##
|
|
249
|
+
def video
|
|
250
|
+
return @video
|
|
251
|
+
end
|
|
252
|
+
##
|
|
253
|
+
## Sets the video property value. The video property
|
|
254
|
+
## @param value Value to set for the video property.
|
|
255
|
+
## @return a void
|
|
256
|
+
##
|
|
257
|
+
def video=(value)
|
|
258
|
+
@video = value
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|