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,222 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../rixl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module Rixl
|
|
6
|
+
module Models
|
|
7
|
+
class Subtitle
|
|
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 id property
|
|
17
|
+
@id
|
|
18
|
+
##
|
|
19
|
+
# The label property
|
|
20
|
+
@label
|
|
21
|
+
##
|
|
22
|
+
# The language_code property
|
|
23
|
+
@language_code
|
|
24
|
+
##
|
|
25
|
+
# The name property
|
|
26
|
+
@name
|
|
27
|
+
##
|
|
28
|
+
# The size property
|
|
29
|
+
@size
|
|
30
|
+
##
|
|
31
|
+
# The url property
|
|
32
|
+
@url
|
|
33
|
+
##
|
|
34
|
+
# The video_id property
|
|
35
|
+
@video_id
|
|
36
|
+
##
|
|
37
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
38
|
+
## @return a i_dictionary
|
|
39
|
+
##
|
|
40
|
+
def additional_data
|
|
41
|
+
return @additional_data
|
|
42
|
+
end
|
|
43
|
+
##
|
|
44
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
45
|
+
## @param value Value to set for the AdditionalData property.
|
|
46
|
+
## @return a void
|
|
47
|
+
##
|
|
48
|
+
def additional_data=(value)
|
|
49
|
+
@additional_data = value
|
|
50
|
+
end
|
|
51
|
+
##
|
|
52
|
+
## Instantiates a new Subtitle and sets the default values.
|
|
53
|
+
## @return a void
|
|
54
|
+
##
|
|
55
|
+
def initialize()
|
|
56
|
+
@additional_data = Hash.new
|
|
57
|
+
end
|
|
58
|
+
##
|
|
59
|
+
## Gets the created_at property value. The created_at property
|
|
60
|
+
## @return a string
|
|
61
|
+
##
|
|
62
|
+
def created_at
|
|
63
|
+
return @created_at
|
|
64
|
+
end
|
|
65
|
+
##
|
|
66
|
+
## Sets the created_at property value. The created_at property
|
|
67
|
+
## @param value Value to set for the created_at property.
|
|
68
|
+
## @return a void
|
|
69
|
+
##
|
|
70
|
+
def created_at=(value)
|
|
71
|
+
@created_at = value
|
|
72
|
+
end
|
|
73
|
+
##
|
|
74
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
75
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
76
|
+
## @return a subtitle
|
|
77
|
+
##
|
|
78
|
+
def self.create_from_discriminator_value(parse_node)
|
|
79
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
80
|
+
return Subtitle.new
|
|
81
|
+
end
|
|
82
|
+
##
|
|
83
|
+
## The deserialization information for the current model
|
|
84
|
+
## @return a i_dictionary
|
|
85
|
+
##
|
|
86
|
+
def get_field_deserializers()
|
|
87
|
+
return {
|
|
88
|
+
"created_at" => lambda {|n| @created_at = n.get_string_value() },
|
|
89
|
+
"id" => lambda {|n| @id = n.get_string_value() },
|
|
90
|
+
"label" => lambda {|n| @label = n.get_string_value() },
|
|
91
|
+
"language_code" => lambda {|n| @language_code = n.get_string_value() },
|
|
92
|
+
"name" => lambda {|n| @name = n.get_string_value() },
|
|
93
|
+
"size" => lambda {|n| @size = n.get_number_value() },
|
|
94
|
+
"url" => lambda {|n| @url = n.get_string_value() },
|
|
95
|
+
"video_id" => lambda {|n| @video_id = n.get_string_value() },
|
|
96
|
+
}
|
|
97
|
+
end
|
|
98
|
+
##
|
|
99
|
+
## Gets the id property value. The id property
|
|
100
|
+
## @return a string
|
|
101
|
+
##
|
|
102
|
+
def id
|
|
103
|
+
return @id
|
|
104
|
+
end
|
|
105
|
+
##
|
|
106
|
+
## Sets the id property value. The id property
|
|
107
|
+
## @param value Value to set for the id property.
|
|
108
|
+
## @return a void
|
|
109
|
+
##
|
|
110
|
+
def id=(value)
|
|
111
|
+
@id = value
|
|
112
|
+
end
|
|
113
|
+
##
|
|
114
|
+
## Gets the label property value. The label property
|
|
115
|
+
## @return a string
|
|
116
|
+
##
|
|
117
|
+
def label
|
|
118
|
+
return @label
|
|
119
|
+
end
|
|
120
|
+
##
|
|
121
|
+
## Sets the label property value. The label property
|
|
122
|
+
## @param value Value to set for the label property.
|
|
123
|
+
## @return a void
|
|
124
|
+
##
|
|
125
|
+
def label=(value)
|
|
126
|
+
@label = value
|
|
127
|
+
end
|
|
128
|
+
##
|
|
129
|
+
## Gets the language_code property value. The language_code property
|
|
130
|
+
## @return a string
|
|
131
|
+
##
|
|
132
|
+
def language_code
|
|
133
|
+
return @language_code
|
|
134
|
+
end
|
|
135
|
+
##
|
|
136
|
+
## Sets the language_code property value. The language_code property
|
|
137
|
+
## @param value Value to set for the language_code property.
|
|
138
|
+
## @return a void
|
|
139
|
+
##
|
|
140
|
+
def language_code=(value)
|
|
141
|
+
@language_code = value
|
|
142
|
+
end
|
|
143
|
+
##
|
|
144
|
+
## Gets the name property value. The name property
|
|
145
|
+
## @return a string
|
|
146
|
+
##
|
|
147
|
+
def name
|
|
148
|
+
return @name
|
|
149
|
+
end
|
|
150
|
+
##
|
|
151
|
+
## Sets the name property value. The name property
|
|
152
|
+
## @param value Value to set for the name property.
|
|
153
|
+
## @return a void
|
|
154
|
+
##
|
|
155
|
+
def name=(value)
|
|
156
|
+
@name = value
|
|
157
|
+
end
|
|
158
|
+
##
|
|
159
|
+
## Serializes information the current object
|
|
160
|
+
## @param writer Serialization writer to use to serialize this model
|
|
161
|
+
## @return a void
|
|
162
|
+
##
|
|
163
|
+
def serialize(writer)
|
|
164
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
165
|
+
writer.write_string_value("created_at", @created_at)
|
|
166
|
+
writer.write_string_value("id", @id)
|
|
167
|
+
writer.write_string_value("label", @label)
|
|
168
|
+
writer.write_string_value("language_code", @language_code)
|
|
169
|
+
writer.write_string_value("name", @name)
|
|
170
|
+
writer.write_number_value("size", @size)
|
|
171
|
+
writer.write_string_value("url", @url)
|
|
172
|
+
writer.write_string_value("video_id", @video_id)
|
|
173
|
+
writer.write_additional_data(@additional_data)
|
|
174
|
+
end
|
|
175
|
+
##
|
|
176
|
+
## Gets the size property value. The size property
|
|
177
|
+
## @return a integer
|
|
178
|
+
##
|
|
179
|
+
def size
|
|
180
|
+
return @size
|
|
181
|
+
end
|
|
182
|
+
##
|
|
183
|
+
## Sets the size property value. The size property
|
|
184
|
+
## @param value Value to set for the size property.
|
|
185
|
+
## @return a void
|
|
186
|
+
##
|
|
187
|
+
def size=(value)
|
|
188
|
+
@size = value
|
|
189
|
+
end
|
|
190
|
+
##
|
|
191
|
+
## Gets the url property value. The url property
|
|
192
|
+
## @return a string
|
|
193
|
+
##
|
|
194
|
+
def url
|
|
195
|
+
return @url
|
|
196
|
+
end
|
|
197
|
+
##
|
|
198
|
+
## Sets the url property value. The url property
|
|
199
|
+
## @param value Value to set for the url property.
|
|
200
|
+
## @return a void
|
|
201
|
+
##
|
|
202
|
+
def url=(value)
|
|
203
|
+
@url = value
|
|
204
|
+
end
|
|
205
|
+
##
|
|
206
|
+
## Gets the video_id property value. The video_id property
|
|
207
|
+
## @return a string
|
|
208
|
+
##
|
|
209
|
+
def video_id
|
|
210
|
+
return @video_id
|
|
211
|
+
end
|
|
212
|
+
##
|
|
213
|
+
## Sets the video_id property value. The video_id property
|
|
214
|
+
## @param value Value to set for the video_id property.
|
|
215
|
+
## @return a void
|
|
216
|
+
##
|
|
217
|
+
def video_id=(value)
|
|
218
|
+
@video_id = value
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
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 SubtitleDelete
|
|
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 message property
|
|
14
|
+
@message
|
|
15
|
+
##
|
|
16
|
+
# The status property
|
|
17
|
+
@status
|
|
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 SubtitleDelete 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 subtitle_delete
|
|
44
|
+
##
|
|
45
|
+
def self.create_from_discriminator_value(parse_node)
|
|
46
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
47
|
+
return SubtitleDelete.new
|
|
48
|
+
end
|
|
49
|
+
##
|
|
50
|
+
## The deserialization information for the current model
|
|
51
|
+
## @return a i_dictionary
|
|
52
|
+
##
|
|
53
|
+
def get_field_deserializers()
|
|
54
|
+
return {
|
|
55
|
+
"message" => lambda {|n| @message = n.get_string_value() },
|
|
56
|
+
"status" => lambda {|n| @status = n.get_string_value() },
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
##
|
|
60
|
+
## Gets the message property value. The message property
|
|
61
|
+
## @return a string
|
|
62
|
+
##
|
|
63
|
+
def message
|
|
64
|
+
return @message
|
|
65
|
+
end
|
|
66
|
+
##
|
|
67
|
+
## Sets the message property value. The message property
|
|
68
|
+
## @param value Value to set for the message property.
|
|
69
|
+
## @return a void
|
|
70
|
+
##
|
|
71
|
+
def message=(value)
|
|
72
|
+
@message = value
|
|
73
|
+
end
|
|
74
|
+
##
|
|
75
|
+
## Serializes information the current object
|
|
76
|
+
## @param writer Serialization writer to use to serialize this model
|
|
77
|
+
## @return a void
|
|
78
|
+
##
|
|
79
|
+
def serialize(writer)
|
|
80
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
81
|
+
writer.write_string_value("message", @message)
|
|
82
|
+
writer.write_string_value("status", @status)
|
|
83
|
+
writer.write_additional_data(@additional_data)
|
|
84
|
+
end
|
|
85
|
+
##
|
|
86
|
+
## Gets the status property value. The status property
|
|
87
|
+
## @return a string
|
|
88
|
+
##
|
|
89
|
+
def status
|
|
90
|
+
return @status
|
|
91
|
+
end
|
|
92
|
+
##
|
|
93
|
+
## Sets the status property value. The status property
|
|
94
|
+
## @param value Value to set for the status property.
|
|
95
|
+
## @return a void
|
|
96
|
+
##
|
|
97
|
+
def status=(value)
|
|
98
|
+
@status = value
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../rixl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module Rixl
|
|
6
|
+
module Models
|
|
7
|
+
##
|
|
8
|
+
# Chapters array
|
|
9
|
+
class UpdateChaptersRequest
|
|
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
|
+
# The chapters property
|
|
16
|
+
@chapters
|
|
17
|
+
##
|
|
18
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
19
|
+
## @return a i_dictionary
|
|
20
|
+
##
|
|
21
|
+
def additional_data
|
|
22
|
+
return @additional_data
|
|
23
|
+
end
|
|
24
|
+
##
|
|
25
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
26
|
+
## @param value Value to set for the AdditionalData property.
|
|
27
|
+
## @return a void
|
|
28
|
+
##
|
|
29
|
+
def additional_data=(value)
|
|
30
|
+
@additional_data = value
|
|
31
|
+
end
|
|
32
|
+
##
|
|
33
|
+
## Gets the chapters property value. The chapters property
|
|
34
|
+
## @return a github_com_rixlhq_api_internal_videos_types_chapter_input
|
|
35
|
+
##
|
|
36
|
+
def chapters
|
|
37
|
+
return @chapters
|
|
38
|
+
end
|
|
39
|
+
##
|
|
40
|
+
## Sets the chapters property value. The chapters property
|
|
41
|
+
## @param value Value to set for the chapters property.
|
|
42
|
+
## @return a void
|
|
43
|
+
##
|
|
44
|
+
def chapters=(value)
|
|
45
|
+
@chapters = value
|
|
46
|
+
end
|
|
47
|
+
##
|
|
48
|
+
## Instantiates a new UpdateChaptersRequest and sets the default values.
|
|
49
|
+
## @return a void
|
|
50
|
+
##
|
|
51
|
+
def initialize()
|
|
52
|
+
@additional_data = Hash.new
|
|
53
|
+
end
|
|
54
|
+
##
|
|
55
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
56
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
57
|
+
## @return a update_chapters_request
|
|
58
|
+
##
|
|
59
|
+
def self.create_from_discriminator_value(parse_node)
|
|
60
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
61
|
+
return UpdateChaptersRequest.new
|
|
62
|
+
end
|
|
63
|
+
##
|
|
64
|
+
## The deserialization information for the current model
|
|
65
|
+
## @return a i_dictionary
|
|
66
|
+
##
|
|
67
|
+
def get_field_deserializers()
|
|
68
|
+
return {
|
|
69
|
+
"chapters" => lambda {|n| @chapters = n.get_collection_of_object_values(lambda {|pn| Rixl::Models::Github_com_rixlhq_api_internal_videos_typesChapterInput.create_from_discriminator_value(pn) }) },
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
##
|
|
73
|
+
## Serializes information the current object
|
|
74
|
+
## @param writer Serialization writer to use to serialize this model
|
|
75
|
+
## @return a void
|
|
76
|
+
##
|
|
77
|
+
def serialize(writer)
|
|
78
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
79
|
+
writer.write_collection_of_object_values("chapters", @chapters)
|
|
80
|
+
writer.write_additional_data(@additional_data)
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
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 UpdateChaptersResponse
|
|
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 chapters property
|
|
14
|
+
@chapters
|
|
15
|
+
##
|
|
16
|
+
# The video_id property
|
|
17
|
+
@video_id
|
|
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
|
+
## Gets the chapters property value. The chapters property
|
|
35
|
+
## @return a chapter
|
|
36
|
+
##
|
|
37
|
+
def chapters
|
|
38
|
+
return @chapters
|
|
39
|
+
end
|
|
40
|
+
##
|
|
41
|
+
## Sets the chapters property value. The chapters property
|
|
42
|
+
## @param value Value to set for the chapters property.
|
|
43
|
+
## @return a void
|
|
44
|
+
##
|
|
45
|
+
def chapters=(value)
|
|
46
|
+
@chapters = value
|
|
47
|
+
end
|
|
48
|
+
##
|
|
49
|
+
## Instantiates a new UpdateChaptersResponse and sets the default values.
|
|
50
|
+
## @return a void
|
|
51
|
+
##
|
|
52
|
+
def initialize()
|
|
53
|
+
@additional_data = Hash.new
|
|
54
|
+
end
|
|
55
|
+
##
|
|
56
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
57
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
58
|
+
## @return a update_chapters_response
|
|
59
|
+
##
|
|
60
|
+
def self.create_from_discriminator_value(parse_node)
|
|
61
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
62
|
+
return UpdateChaptersResponse.new
|
|
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
|
+
"chapters" => lambda {|n| @chapters = n.get_collection_of_object_values(lambda {|pn| Rixl::Models::Chapter.create_from_discriminator_value(pn) }) },
|
|
71
|
+
"video_id" => lambda {|n| @video_id = n.get_string_value() },
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
##
|
|
75
|
+
## Serializes information the current object
|
|
76
|
+
## @param writer Serialization writer to use to serialize this model
|
|
77
|
+
## @return a void
|
|
78
|
+
##
|
|
79
|
+
def serialize(writer)
|
|
80
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
81
|
+
writer.write_collection_of_object_values("chapters", @chapters)
|
|
82
|
+
writer.write_string_value("video_id", @video_id)
|
|
83
|
+
writer.write_additional_data(@additional_data)
|
|
84
|
+
end
|
|
85
|
+
##
|
|
86
|
+
## Gets the video_id property value. The video_id property
|
|
87
|
+
## @return a string
|
|
88
|
+
##
|
|
89
|
+
def video_id
|
|
90
|
+
return @video_id
|
|
91
|
+
end
|
|
92
|
+
##
|
|
93
|
+
## Sets the video_id property value. The video_id property
|
|
94
|
+
## @param value Value to set for the video_id property.
|
|
95
|
+
## @return a void
|
|
96
|
+
##
|
|
97
|
+
def video_id=(value)
|
|
98
|
+
@video_id = value
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|