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.
Files changed (102) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/CODE_OF_CONDUCT.md +10 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +43 -0
  6. data/Rakefile +8 -0
  7. data/lib/feeds/feeds.rb +0 -0
  8. data/lib/feeds/feeds_request_builder.rb +34 -0
  9. data/lib/feeds/item/creators/creators.rb +0 -0
  10. data/lib/feeds/item/creators/creators_request_builder.rb +40 -0
  11. data/lib/feeds/item/creators/item/item.rb +0 -0
  12. data/lib/feeds/item/creators/item/with_creator_item_request_builder.rb +86 -0
  13. data/lib/feeds/item/item/item.rb +0 -0
  14. data/lib/feeds/item/item/with_post_item_request_builder.rb +70 -0
  15. data/lib/feeds/item/item.rb +0 -0
  16. data/lib/feeds/item/with_feed_item_request_builder.rb +98 -0
  17. data/lib/images/images.rb +0 -0
  18. data/lib/images/images_request_builder.rb +103 -0
  19. data/lib/images/item/item.rb +0 -0
  20. data/lib/images/item/with_image_item_request_builder.rb +104 -0
  21. data/lib/images/upload/complete/complete.rb +0 -0
  22. data/lib/images/upload/complete/complete_request_builder.rb +79 -0
  23. data/lib/images/upload/init/init.rb +0 -0
  24. data/lib/images/upload/init/init_request_builder.rb +78 -0
  25. data/lib/images/upload/upload.rb +0 -0
  26. data/lib/images/upload/upload_request_builder.rb +37 -0
  27. data/lib/kiota-lock.json +34 -0
  28. data/lib/models/audio_track.rb +242 -0
  29. data/lib/models/audio_track_delete.rb +102 -0
  30. data/lib/models/chapter.rb +142 -0
  31. data/lib/models/file.rb +242 -0
  32. data/lib/models/file_status.rb +12 -0
  33. data/lib/models/github_com_rixlhq_api_db_sqlc/github_com_rixlhq_api_db_sqlc.rb +0 -0
  34. data/lib/models/github_com_rixlhq_api_db_sqlc_plan_type.rb +10 -0
  35. data/lib/models/github_com_rixlhq_api_db_sqlc_video_quality.rb +9 -0
  36. data/lib/models/github_com_rixlhq_api_internal_errors/github_com_rixlhq_api_internal_errors.rb +0 -0
  37. data/lib/models/github_com_rixlhq_api_internal_errors_error_response.rb +126 -0
  38. data/lib/models/github_com_rixlhq_api_internal_videos/github_com_rixlhq_api_internal_videos.rb +0 -0
  39. data/lib/models/github_com_rixlhq_api_internal_videos_handler_upload/github_com_rixlhq_api_internal_videos_handler_upload.rb +0 -0
  40. data/lib/models/github_com_rixlhq_api_internal_videos_handler_upload_complete_request.rb +84 -0
  41. data/lib/models/github_com_rixlhq_api_internal_videos_handler_upload_init_response.rb +162 -0
  42. data/lib/models/github_com_rixlhq_api_internal_videos_types/github_com_rixlhq_api_internal_videos_types.rb +0 -0
  43. data/lib/models/github_com_rixlhq_api_internal_videos_types_chapter_input.rb +102 -0
  44. data/lib/models/github_com_rixlhq_api_internal_videos_video_response.rb +302 -0
  45. data/lib/models/image.rb +182 -0
  46. data/lib/models/internal_images_handler/internal_images_handler.rb +0 -0
  47. data/lib/models/internal_images_handler_complete_request.rb +104 -0
  48. data/lib/models/internal_images_handler_init_response.rb +122 -0
  49. data/lib/models/internal_images_handler_upload_init_request.rb +104 -0
  50. data/lib/models/internal_videos_handler_subtitles/internal_videos_handler_subtitles.rb +0 -0
  51. data/lib/models/internal_videos_handler_subtitles_language_response.rb +102 -0
  52. data/lib/models/models.rb +29 -0
  53. data/lib/models/pagination/pagination.rb +0 -0
  54. data/lib/models/pagination_paginated_response_image.rb +102 -0
  55. data/lib/models/pagination_paginated_response_post.rb +102 -0
  56. data/lib/models/pagination_paginated_response_video.rb +102 -0
  57. data/lib/models/pagination_pagination.rb +124 -0
  58. data/lib/models/post.rb +262 -0
  59. data/lib/models/post_type.rb +8 -0
  60. data/lib/models/subtitle.rb +222 -0
  61. data/lib/models/subtitle_delete.rb +102 -0
  62. data/lib/models/update_chapters_request.rb +84 -0
  63. data/lib/models/update_chapters_response.rb +102 -0
  64. data/lib/models/video.rb +302 -0
  65. data/lib/models/video_upload_init_request.rb +124 -0
  66. data/lib/rixl.rb +43 -0
  67. data/lib/videos/item/audio_tracks/audio_tracks.rb +0 -0
  68. data/lib/videos/item/audio_tracks/audio_tracks_request_builder.rb +118 -0
  69. data/lib/videos/item/audio_tracks/item/item.rb +0 -0
  70. data/lib/videos/item/audio_tracks/item/with_track_item_request_builder.rb +75 -0
  71. data/lib/videos/item/audio_tracks/language/item/item.rb +0 -0
  72. data/lib/videos/item/audio_tracks/language/item/with_lang_code_item_request_builder.rb +106 -0
  73. data/lib/videos/item/audio_tracks/language/language.rb +0 -0
  74. data/lib/videos/item/audio_tracks/language/language_request_builder.rb +43 -0
  75. data/lib/videos/item/chapters/chapters.rb +0 -0
  76. data/lib/videos/item/chapters/chapters_request_builder.rb +112 -0
  77. data/lib/videos/item/delete/delete.rb +0 -0
  78. data/lib/videos/item/delete/delete_request_builder.rb +72 -0
  79. data/lib/videos/item/item.rb +0 -0
  80. data/lib/videos/item/subtitles/item/item.rb +0 -0
  81. data/lib/videos/item/subtitles/item/with_subtitle_item_request_builder.rb +75 -0
  82. data/lib/videos/item/subtitles/language/item/item.rb +0 -0
  83. data/lib/videos/item/subtitles/language/item/with_lang_code_item_request_builder.rb +106 -0
  84. data/lib/videos/item/subtitles/language/language.rb +0 -0
  85. data/lib/videos/item/subtitles/language/language_request_builder.rb +43 -0
  86. data/lib/videos/item/subtitles/subtitles.rb +0 -0
  87. data/lib/videos/item/subtitles/subtitles_request_builder.rb +118 -0
  88. data/lib/videos/item/thumbnail/thumbnail.rb +0 -0
  89. data/lib/videos/item/thumbnail/thumbnail_request_builder.rb +78 -0
  90. data/lib/videos/item/with_video_item_request_builder.rb +100 -0
  91. data/lib/videos/languages/languages.rb +0 -0
  92. data/lib/videos/languages/languages_request_builder.rb +63 -0
  93. data/lib/videos/upload/complete/complete.rb +0 -0
  94. data/lib/videos/upload/complete/complete_request_builder.rb +79 -0
  95. data/lib/videos/upload/init/init.rb +0 -0
  96. data/lib/videos/upload/init/init_request_builder.rb +78 -0
  97. data/lib/videos/upload/upload.rb +0 -0
  98. data/lib/videos/upload/upload_request_builder.rb +37 -0
  99. data/lib/videos/videos.rb +0 -0
  100. data/lib/videos/videos_request_builder.rb +109 -0
  101. data/sig/rixl.rbs +4 -0
  102. metadata +187 -0
@@ -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
+ # Video upload completion request
9
+ class Github_com_rixlhq_api_internal_videos_handler_uploadCompleteRequest
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 video_id property
16
+ @video_id
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
+ ## Instantiates a new Github_com_rixlhq_api_internal_videos_handler_uploadCompleteRequest and sets the default values.
34
+ ## @return a void
35
+ ##
36
+ def initialize()
37
+ @additional_data = Hash.new
38
+ end
39
+ ##
40
+ ## Creates a new instance of the appropriate class based on discriminator value
41
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
42
+ ## @return a github_com_rixlhq_api_internal_videos_handler_upload_complete_request
43
+ ##
44
+ def self.create_from_discriminator_value(parse_node)
45
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
46
+ return Github_com_rixlhq_api_internal_videos_handler_uploadCompleteRequest.new
47
+ end
48
+ ##
49
+ ## The deserialization information for the current model
50
+ ## @return a i_dictionary
51
+ ##
52
+ def get_field_deserializers()
53
+ return {
54
+ "video_id" => lambda {|n| @video_id = n.get_string_value() },
55
+ }
56
+ end
57
+ ##
58
+ ## Serializes information the current object
59
+ ## @param writer Serialization writer to use to serialize this model
60
+ ## @return a void
61
+ ##
62
+ def serialize(writer)
63
+ raise StandardError, 'writer cannot be null' if writer.nil?
64
+ writer.write_string_value("video_id", @video_id)
65
+ writer.write_additional_data(@additional_data)
66
+ end
67
+ ##
68
+ ## Gets the video_id property value. The video_id property
69
+ ## @return a string
70
+ ##
71
+ def video_id
72
+ return @video_id
73
+ end
74
+ ##
75
+ ## Sets the video_id property value. The video_id property
76
+ ## @param value Value to set for the video_id property.
77
+ ## @return a void
78
+ ##
79
+ def video_id=(value)
80
+ @video_id = value
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,162 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../rixl'
3
+ require_relative './models'
4
+
5
+ module Rixl
6
+ module Models
7
+ class Github_com_rixlhq_api_internal_videos_handler_uploadInitResponse
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 poster_id property
14
+ @poster_id
15
+ ##
16
+ # The poster_presigned_url property
17
+ @poster_presigned_url
18
+ ##
19
+ # The upload_expires property
20
+ @upload_expires
21
+ ##
22
+ # The video_id property
23
+ @video_id
24
+ ##
25
+ # The video_presigned_url property
26
+ @video_presigned_url
27
+ ##
28
+ ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
29
+ ## @return a i_dictionary
30
+ ##
31
+ def additional_data
32
+ return @additional_data
33
+ end
34
+ ##
35
+ ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
36
+ ## @param value Value to set for the AdditionalData property.
37
+ ## @return a void
38
+ ##
39
+ def additional_data=(value)
40
+ @additional_data = value
41
+ end
42
+ ##
43
+ ## Instantiates a new Github_com_rixlhq_api_internal_videos_handler_uploadInitResponse and sets the default values.
44
+ ## @return a void
45
+ ##
46
+ def initialize()
47
+ @additional_data = Hash.new
48
+ end
49
+ ##
50
+ ## Creates a new instance of the appropriate class based on discriminator value
51
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
52
+ ## @return a github_com_rixlhq_api_internal_videos_handler_upload_init_response
53
+ ##
54
+ def self.create_from_discriminator_value(parse_node)
55
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
56
+ return Github_com_rixlhq_api_internal_videos_handler_uploadInitResponse.new
57
+ end
58
+ ##
59
+ ## The deserialization information for the current model
60
+ ## @return a i_dictionary
61
+ ##
62
+ def get_field_deserializers()
63
+ return {
64
+ "poster_id" => lambda {|n| @poster_id = n.get_string_value() },
65
+ "poster_presigned_url" => lambda {|n| @poster_presigned_url = n.get_string_value() },
66
+ "upload_expires" => lambda {|n| @upload_expires = n.get_number_value() },
67
+ "video_id" => lambda {|n| @video_id = n.get_string_value() },
68
+ "video_presigned_url" => lambda {|n| @video_presigned_url = n.get_string_value() },
69
+ }
70
+ end
71
+ ##
72
+ ## Gets the poster_id property value. The poster_id property
73
+ ## @return a string
74
+ ##
75
+ def poster_id
76
+ return @poster_id
77
+ end
78
+ ##
79
+ ## Sets the poster_id property value. The poster_id property
80
+ ## @param value Value to set for the poster_id property.
81
+ ## @return a void
82
+ ##
83
+ def poster_id=(value)
84
+ @poster_id = value
85
+ end
86
+ ##
87
+ ## Gets the poster_presigned_url property value. The poster_presigned_url property
88
+ ## @return a string
89
+ ##
90
+ def poster_presigned_url
91
+ return @poster_presigned_url
92
+ end
93
+ ##
94
+ ## Sets the poster_presigned_url property value. The poster_presigned_url property
95
+ ## @param value Value to set for the poster_presigned_url property.
96
+ ## @return a void
97
+ ##
98
+ def poster_presigned_url=(value)
99
+ @poster_presigned_url = value
100
+ end
101
+ ##
102
+ ## Serializes information the current object
103
+ ## @param writer Serialization writer to use to serialize this model
104
+ ## @return a void
105
+ ##
106
+ def serialize(writer)
107
+ raise StandardError, 'writer cannot be null' if writer.nil?
108
+ writer.write_string_value("poster_id", @poster_id)
109
+ writer.write_string_value("poster_presigned_url", @poster_presigned_url)
110
+ writer.write_number_value("upload_expires", @upload_expires)
111
+ writer.write_string_value("video_id", @video_id)
112
+ writer.write_string_value("video_presigned_url", @video_presigned_url)
113
+ writer.write_additional_data(@additional_data)
114
+ end
115
+ ##
116
+ ## Gets the upload_expires property value. The upload_expires property
117
+ ## @return a integer
118
+ ##
119
+ def upload_expires
120
+ return @upload_expires
121
+ end
122
+ ##
123
+ ## Sets the upload_expires property value. The upload_expires property
124
+ ## @param value Value to set for the upload_expires property.
125
+ ## @return a void
126
+ ##
127
+ def upload_expires=(value)
128
+ @upload_expires = value
129
+ end
130
+ ##
131
+ ## Gets the video_id property value. The video_id property
132
+ ## @return a string
133
+ ##
134
+ def video_id
135
+ return @video_id
136
+ end
137
+ ##
138
+ ## Sets the video_id property value. The video_id property
139
+ ## @param value Value to set for the video_id property.
140
+ ## @return a void
141
+ ##
142
+ def video_id=(value)
143
+ @video_id = value
144
+ end
145
+ ##
146
+ ## Gets the video_presigned_url property value. The video_presigned_url property
147
+ ## @return a string
148
+ ##
149
+ def video_presigned_url
150
+ return @video_presigned_url
151
+ end
152
+ ##
153
+ ## Sets the video_presigned_url property value. The video_presigned_url property
154
+ ## @param value Value to set for the video_presigned_url property.
155
+ ## @return a void
156
+ ##
157
+ def video_presigned_url=(value)
158
+ @video_presigned_url = value
159
+ end
160
+ end
161
+ end
162
+ 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 Github_com_rixlhq_api_internal_videos_typesChapterInput
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 start_time_sec property
14
+ @start_time_sec
15
+ ##
16
+ # The title property
17
+ @title
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 Github_com_rixlhq_api_internal_videos_typesChapterInput 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 github_com_rixlhq_api_internal_videos_types_chapter_input
44
+ ##
45
+ def self.create_from_discriminator_value(parse_node)
46
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
47
+ return Github_com_rixlhq_api_internal_videos_typesChapterInput.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
+ "start_time_sec" => lambda {|n| @start_time_sec = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
56
+ "title" => lambda {|n| @title = n.get_string_value() },
57
+ }
58
+ end
59
+ ##
60
+ ## Serializes information the current object
61
+ ## @param writer Serialization writer to use to serialize this model
62
+ ## @return a void
63
+ ##
64
+ def serialize(writer)
65
+ raise StandardError, 'writer cannot be null' if writer.nil?
66
+ writer.write_object_value("start_time_sec", @start_time_sec)
67
+ writer.write_string_value("title", @title)
68
+ writer.write_additional_data(@additional_data)
69
+ end
70
+ ##
71
+ ## Gets the start_time_sec property value. The start_time_sec property
72
+ ## @return a double
73
+ ##
74
+ def start_time_sec
75
+ return @start_time_sec
76
+ end
77
+ ##
78
+ ## Sets the start_time_sec property value. The start_time_sec property
79
+ ## @param value Value to set for the start_time_sec property.
80
+ ## @return a void
81
+ ##
82
+ def start_time_sec=(value)
83
+ @start_time_sec = value
84
+ end
85
+ ##
86
+ ## Gets the title property value. The title property
87
+ ## @return a string
88
+ ##
89
+ def title
90
+ return @title
91
+ end
92
+ ##
93
+ ## Sets the title property value. The title property
94
+ ## @param value Value to set for the title property.
95
+ ## @return a void
96
+ ##
97
+ def title=(value)
98
+ @title = value
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,302 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../rixl'
3
+ require_relative './models'
4
+
5
+ module Rixl
6
+ module Models
7
+ class Github_com_rixlhq_api_internal_videosVideoResponse
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 bitrate property
14
+ @bitrate
15
+ ##
16
+ # The chapters property
17
+ @chapters
18
+ ##
19
+ # The codec property
20
+ @codec
21
+ ##
22
+ # The duration property
23
+ @duration
24
+ ##
25
+ # The file property
26
+ @file
27
+ ##
28
+ # The framerate property
29
+ @framerate
30
+ ##
31
+ # The hdr property
32
+ @hdr
33
+ ##
34
+ # The height property
35
+ @height
36
+ ##
37
+ # The id property
38
+ @id
39
+ ##
40
+ # The plan_type property
41
+ @plan_type
42
+ ##
43
+ # The poster property
44
+ @poster
45
+ ##
46
+ # The width property
47
+ @width
48
+ ##
49
+ ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
50
+ ## @return a i_dictionary
51
+ ##
52
+ def additional_data
53
+ return @additional_data
54
+ end
55
+ ##
56
+ ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
57
+ ## @param value Value to set for the AdditionalData property.
58
+ ## @return a void
59
+ ##
60
+ def additional_data=(value)
61
+ @additional_data = value
62
+ end
63
+ ##
64
+ ## Gets the bitrate property value. The bitrate property
65
+ ## @return a integer
66
+ ##
67
+ def bitrate
68
+ return @bitrate
69
+ end
70
+ ##
71
+ ## Sets the bitrate property value. The bitrate property
72
+ ## @param value Value to set for the bitrate property.
73
+ ## @return a void
74
+ ##
75
+ def bitrate=(value)
76
+ @bitrate = value
77
+ end
78
+ ##
79
+ ## Gets the chapters property value. The chapters property
80
+ ## @return a chapter
81
+ ##
82
+ def chapters
83
+ return @chapters
84
+ end
85
+ ##
86
+ ## Sets the chapters property value. The chapters property
87
+ ## @param value Value to set for the chapters property.
88
+ ## @return a void
89
+ ##
90
+ def chapters=(value)
91
+ @chapters = value
92
+ end
93
+ ##
94
+ ## Gets the codec property value. The codec property
95
+ ## @return a string
96
+ ##
97
+ def codec
98
+ return @codec
99
+ end
100
+ ##
101
+ ## Sets the codec property value. The codec property
102
+ ## @param value Value to set for the codec property.
103
+ ## @return a void
104
+ ##
105
+ def codec=(value)
106
+ @codec = value
107
+ end
108
+ ##
109
+ ## Instantiates a new Github_com_rixlhq_api_internal_videosVideoResponse and sets the default values.
110
+ ## @return a void
111
+ ##
112
+ def initialize()
113
+ @additional_data = Hash.new
114
+ end
115
+ ##
116
+ ## Creates a new instance of the appropriate class based on discriminator value
117
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
118
+ ## @return a github_com_rixlhq_api_internal_videos_video_response
119
+ ##
120
+ def self.create_from_discriminator_value(parse_node)
121
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
122
+ return Github_com_rixlhq_api_internal_videosVideoResponse.new
123
+ end
124
+ ##
125
+ ## Gets the duration property value. The duration property
126
+ ## @return a double
127
+ ##
128
+ def duration
129
+ return @duration
130
+ end
131
+ ##
132
+ ## Sets the duration property value. The duration property
133
+ ## @param value Value to set for the duration property.
134
+ ## @return a void
135
+ ##
136
+ def duration=(value)
137
+ @duration = value
138
+ end
139
+ ##
140
+ ## Gets the file property value. The file property
141
+ ## @return a file
142
+ ##
143
+ def file
144
+ return @file
145
+ end
146
+ ##
147
+ ## Sets the file property value. The file property
148
+ ## @param value Value to set for the file property.
149
+ ## @return a void
150
+ ##
151
+ def file=(value)
152
+ @file = value
153
+ end
154
+ ##
155
+ ## Gets the framerate property value. The framerate property
156
+ ## @return a string
157
+ ##
158
+ def framerate
159
+ return @framerate
160
+ end
161
+ ##
162
+ ## Sets the framerate property value. The framerate property
163
+ ## @param value Value to set for the framerate property.
164
+ ## @return a void
165
+ ##
166
+ def framerate=(value)
167
+ @framerate = value
168
+ end
169
+ ##
170
+ ## The deserialization information for the current model
171
+ ## @return a i_dictionary
172
+ ##
173
+ def get_field_deserializers()
174
+ return {
175
+ "bitrate" => lambda {|n| @bitrate = n.get_number_value() },
176
+ "chapters" => lambda {|n| @chapters = n.get_collection_of_object_values(lambda {|pn| Rixl::Models::Chapter.create_from_discriminator_value(pn) }) },
177
+ "codec" => lambda {|n| @codec = n.get_string_value() },
178
+ "duration" => lambda {|n| @duration = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
179
+ "file" => lambda {|n| @file = n.get_object_value(lambda {|pn| Rixl::Models::File.create_from_discriminator_value(pn) }) },
180
+ "framerate" => lambda {|n| @framerate = n.get_string_value() },
181
+ "hdr" => lambda {|n| @hdr = n.get_boolean_value() },
182
+ "height" => lambda {|n| @height = n.get_number_value() },
183
+ "id" => lambda {|n| @id = n.get_string_value() },
184
+ "plan_type" => lambda {|n| @plan_type = n.get_enum_value(Rixl::Models::Github_com_rixlhq_api_db_sqlcPlanType) },
185
+ "poster" => lambda {|n| @poster = n.get_object_value(lambda {|pn| Rixl::Models::Image.create_from_discriminator_value(pn) }) },
186
+ "width" => lambda {|n| @width = n.get_number_value() },
187
+ }
188
+ end
189
+ ##
190
+ ## Gets the hdr property value. The hdr property
191
+ ## @return a boolean
192
+ ##
193
+ def hdr
194
+ return @hdr
195
+ end
196
+ ##
197
+ ## Sets the hdr property value. The hdr property
198
+ ## @param value Value to set for the hdr property.
199
+ ## @return a void
200
+ ##
201
+ def hdr=(value)
202
+ @hdr = value
203
+ end
204
+ ##
205
+ ## Gets the height property value. The height property
206
+ ## @return a integer
207
+ ##
208
+ def height
209
+ return @height
210
+ end
211
+ ##
212
+ ## Sets the height property value. The height property
213
+ ## @param value Value to set for the height property.
214
+ ## @return a void
215
+ ##
216
+ def height=(value)
217
+ @height = value
218
+ end
219
+ ##
220
+ ## Gets the id property value. The id property
221
+ ## @return a string
222
+ ##
223
+ def id
224
+ return @id
225
+ end
226
+ ##
227
+ ## Sets the id property value. The id property
228
+ ## @param value Value to set for the id property.
229
+ ## @return a void
230
+ ##
231
+ def id=(value)
232
+ @id = value
233
+ end
234
+ ##
235
+ ## Gets the plan_type property value. The plan_type property
236
+ ## @return a github_com_rixlhq_api_db_sqlc_plan_type
237
+ ##
238
+ def plan_type
239
+ return @plan_type
240
+ end
241
+ ##
242
+ ## Sets the plan_type property value. The plan_type property
243
+ ## @param value Value to set for the plan_type property.
244
+ ## @return a void
245
+ ##
246
+ def plan_type=(value)
247
+ @plan_type = value
248
+ end
249
+ ##
250
+ ## Gets the poster property value. The poster property
251
+ ## @return a image
252
+ ##
253
+ def poster
254
+ return @poster
255
+ end
256
+ ##
257
+ ## Sets the poster property value. The poster property
258
+ ## @param value Value to set for the poster property.
259
+ ## @return a void
260
+ ##
261
+ def poster=(value)
262
+ @poster = value
263
+ end
264
+ ##
265
+ ## Serializes information the current object
266
+ ## @param writer Serialization writer to use to serialize this model
267
+ ## @return a void
268
+ ##
269
+ def serialize(writer)
270
+ raise StandardError, 'writer cannot be null' if writer.nil?
271
+ writer.write_number_value("bitrate", @bitrate)
272
+ writer.write_collection_of_object_values("chapters", @chapters)
273
+ writer.write_string_value("codec", @codec)
274
+ writer.write_object_value("duration", @duration)
275
+ writer.write_object_value("file", @file)
276
+ writer.write_string_value("framerate", @framerate)
277
+ writer.write_boolean_value("hdr", @hdr)
278
+ writer.write_number_value("height", @height)
279
+ writer.write_string_value("id", @id)
280
+ writer.write_enum_value("plan_type", @plan_type)
281
+ writer.write_object_value("poster", @poster)
282
+ writer.write_number_value("width", @width)
283
+ writer.write_additional_data(@additional_data)
284
+ end
285
+ ##
286
+ ## Gets the width property value. The width property
287
+ ## @return a integer
288
+ ##
289
+ def width
290
+ return @width
291
+ end
292
+ ##
293
+ ## Sets the width property value. The width property
294
+ ## @param value Value to set for the width property.
295
+ ## @return a void
296
+ ##
297
+ def width=(value)
298
+ @width = value
299
+ end
300
+ end
301
+ end
302
+ end