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,102 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../rixl'
3
+ require_relative './models'
4
+
5
+ module Rixl
6
+ module Models
7
+ class AudioTrackDelete
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 AudioTrackDelete 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 audio_track_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 AudioTrackDelete.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,142 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../rixl'
3
+ require_relative './models'
4
+
5
+ module Rixl
6
+ module Models
7
+ class Chapter
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 duration_label property
14
+ @duration_label
15
+ ##
16
+ # The end_time_sec property
17
+ @end_time_sec
18
+ ##
19
+ # The start_time_sec property
20
+ @start_time_sec
21
+ ##
22
+ # The title property
23
+ @title
24
+ ##
25
+ ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
26
+ ## @return a i_dictionary
27
+ ##
28
+ def additional_data
29
+ return @additional_data
30
+ end
31
+ ##
32
+ ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
33
+ ## @param value Value to set for the AdditionalData property.
34
+ ## @return a void
35
+ ##
36
+ def additional_data=(value)
37
+ @additional_data = value
38
+ end
39
+ ##
40
+ ## Instantiates a new Chapter and sets the default values.
41
+ ## @return a void
42
+ ##
43
+ def initialize()
44
+ @additional_data = Hash.new
45
+ end
46
+ ##
47
+ ## Creates a new instance of the appropriate class based on discriminator value
48
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
49
+ ## @return a chapter
50
+ ##
51
+ def self.create_from_discriminator_value(parse_node)
52
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
53
+ return Chapter.new
54
+ end
55
+ ##
56
+ ## Gets the duration_label property value. The duration_label property
57
+ ## @return a string
58
+ ##
59
+ def duration_label
60
+ return @duration_label
61
+ end
62
+ ##
63
+ ## Sets the duration_label property value. The duration_label property
64
+ ## @param value Value to set for the duration_label property.
65
+ ## @return a void
66
+ ##
67
+ def duration_label=(value)
68
+ @duration_label = value
69
+ end
70
+ ##
71
+ ## Gets the end_time_sec property value. The end_time_sec property
72
+ ## @return a double
73
+ ##
74
+ def end_time_sec
75
+ return @end_time_sec
76
+ end
77
+ ##
78
+ ## Sets the end_time_sec property value. The end_time_sec property
79
+ ## @param value Value to set for the end_time_sec property.
80
+ ## @return a void
81
+ ##
82
+ def end_time_sec=(value)
83
+ @end_time_sec = value
84
+ end
85
+ ##
86
+ ## The deserialization information for the current model
87
+ ## @return a i_dictionary
88
+ ##
89
+ def get_field_deserializers()
90
+ return {
91
+ "duration_label" => lambda {|n| @duration_label = n.get_string_value() },
92
+ "end_time_sec" => lambda {|n| @end_time_sec = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
93
+ "start_time_sec" => lambda {|n| @start_time_sec = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
94
+ "title" => lambda {|n| @title = n.get_string_value() },
95
+ }
96
+ end
97
+ ##
98
+ ## Serializes information the current object
99
+ ## @param writer Serialization writer to use to serialize this model
100
+ ## @return a void
101
+ ##
102
+ def serialize(writer)
103
+ raise StandardError, 'writer cannot be null' if writer.nil?
104
+ writer.write_string_value("duration_label", @duration_label)
105
+ writer.write_object_value("end_time_sec", @end_time_sec)
106
+ writer.write_object_value("start_time_sec", @start_time_sec)
107
+ writer.write_string_value("title", @title)
108
+ writer.write_additional_data(@additional_data)
109
+ end
110
+ ##
111
+ ## Gets the start_time_sec property value. The start_time_sec property
112
+ ## @return a double
113
+ ##
114
+ def start_time_sec
115
+ return @start_time_sec
116
+ end
117
+ ##
118
+ ## Sets the start_time_sec property value. The start_time_sec property
119
+ ## @param value Value to set for the start_time_sec property.
120
+ ## @return a void
121
+ ##
122
+ def start_time_sec=(value)
123
+ @start_time_sec = value
124
+ end
125
+ ##
126
+ ## Gets the title property value. The title property
127
+ ## @return a string
128
+ ##
129
+ def title
130
+ return @title
131
+ end
132
+ ##
133
+ ## Sets the title property value. The title property
134
+ ## @param value Value to set for the title property.
135
+ ## @return a void
136
+ ##
137
+ def title=(value)
138
+ @title = value
139
+ end
140
+ end
141
+ end
142
+ end
@@ -0,0 +1,242 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../rixl'
3
+ require_relative './models'
4
+
5
+ module Rixl
6
+ module Models
7
+ class File
8
+ include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
9
+ ##
10
+ # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
11
+ @additional_data
12
+ ##
13
+ # The created_at property
14
+ @created_at
15
+ ##
16
+ # The format property
17
+ @format
18
+ ##
19
+ # The id property
20
+ @id
21
+ ##
22
+ # The name property
23
+ @name
24
+ ##
25
+ # The project_id property
26
+ @project_id
27
+ ##
28
+ # The size property
29
+ @size
30
+ ##
31
+ # The status property
32
+ @status
33
+ ##
34
+ # The updated_at property
35
+ @updated_at
36
+ ##
37
+ # The url property
38
+ @url
39
+ ##
40
+ ## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
41
+ ## @return a i_dictionary
42
+ ##
43
+ def additional_data
44
+ return @additional_data
45
+ end
46
+ ##
47
+ ## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
48
+ ## @param value Value to set for the AdditionalData property.
49
+ ## @return a void
50
+ ##
51
+ def additional_data=(value)
52
+ @additional_data = value
53
+ end
54
+ ##
55
+ ## Instantiates a new File and sets the default values.
56
+ ## @return a void
57
+ ##
58
+ def initialize()
59
+ @additional_data = Hash.new
60
+ end
61
+ ##
62
+ ## Gets the created_at property value. The created_at property
63
+ ## @return a string
64
+ ##
65
+ def created_at
66
+ return @created_at
67
+ end
68
+ ##
69
+ ## Sets the created_at property value. The created_at property
70
+ ## @param value Value to set for the created_at property.
71
+ ## @return a void
72
+ ##
73
+ def created_at=(value)
74
+ @created_at = value
75
+ end
76
+ ##
77
+ ## Creates a new instance of the appropriate class based on discriminator value
78
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
79
+ ## @return a file
80
+ ##
81
+ def self.create_from_discriminator_value(parse_node)
82
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
83
+ return File.new
84
+ end
85
+ ##
86
+ ## Gets the format property value. The format property
87
+ ## @return a string
88
+ ##
89
+ def format
90
+ return @format
91
+ end
92
+ ##
93
+ ## Sets the format property value. The format property
94
+ ## @param value Value to set for the format property.
95
+ ## @return a void
96
+ ##
97
+ def format=(value)
98
+ @format = value
99
+ end
100
+ ##
101
+ ## The deserialization information for the current model
102
+ ## @return a i_dictionary
103
+ ##
104
+ def get_field_deserializers()
105
+ return {
106
+ "created_at" => lambda {|n| @created_at = n.get_string_value() },
107
+ "format" => lambda {|n| @format = n.get_string_value() },
108
+ "id" => lambda {|n| @id = n.get_string_value() },
109
+ "name" => lambda {|n| @name = n.get_string_value() },
110
+ "project_id" => lambda {|n| @project_id = n.get_string_value() },
111
+ "size" => lambda {|n| @size = n.get_number_value() },
112
+ "status" => lambda {|n| @status = n.get_enum_value(Rixl::Models::FileStatus) },
113
+ "updated_at" => lambda {|n| @updated_at = n.get_string_value() },
114
+ "url" => lambda {|n| @url = n.get_string_value() },
115
+ }
116
+ end
117
+ ##
118
+ ## Gets the id property value. The id property
119
+ ## @return a string
120
+ ##
121
+ def id
122
+ return @id
123
+ end
124
+ ##
125
+ ## Sets the id property value. The id property
126
+ ## @param value Value to set for the id property.
127
+ ## @return a void
128
+ ##
129
+ def id=(value)
130
+ @id = value
131
+ end
132
+ ##
133
+ ## Gets the name property value. The name property
134
+ ## @return a string
135
+ ##
136
+ def name
137
+ return @name
138
+ end
139
+ ##
140
+ ## Sets the name property value. The name property
141
+ ## @param value Value to set for the name property.
142
+ ## @return a void
143
+ ##
144
+ def name=(value)
145
+ @name = value
146
+ end
147
+ ##
148
+ ## Gets the project_id property value. The project_id property
149
+ ## @return a string
150
+ ##
151
+ def project_id
152
+ return @project_id
153
+ end
154
+ ##
155
+ ## Sets the project_id property value. The project_id property
156
+ ## @param value Value to set for the project_id property.
157
+ ## @return a void
158
+ ##
159
+ def project_id=(value)
160
+ @project_id = value
161
+ end
162
+ ##
163
+ ## Serializes information the current object
164
+ ## @param writer Serialization writer to use to serialize this model
165
+ ## @return a void
166
+ ##
167
+ def serialize(writer)
168
+ raise StandardError, 'writer cannot be null' if writer.nil?
169
+ writer.write_string_value("created_at", @created_at)
170
+ writer.write_string_value("format", @format)
171
+ writer.write_string_value("id", @id)
172
+ writer.write_string_value("name", @name)
173
+ writer.write_string_value("project_id", @project_id)
174
+ writer.write_number_value("size", @size)
175
+ writer.write_enum_value("status", @status)
176
+ writer.write_string_value("updated_at", @updated_at)
177
+ writer.write_string_value("url", @url)
178
+ writer.write_additional_data(@additional_data)
179
+ end
180
+ ##
181
+ ## Gets the size property value. The size property
182
+ ## @return a integer
183
+ ##
184
+ def size
185
+ return @size
186
+ end
187
+ ##
188
+ ## Sets the size property value. The size property
189
+ ## @param value Value to set for the size property.
190
+ ## @return a void
191
+ ##
192
+ def size=(value)
193
+ @size = value
194
+ end
195
+ ##
196
+ ## Gets the status property value. The status property
197
+ ## @return a file_status
198
+ ##
199
+ def status
200
+ return @status
201
+ end
202
+ ##
203
+ ## Sets the status property value. The status property
204
+ ## @param value Value to set for the status property.
205
+ ## @return a void
206
+ ##
207
+ def status=(value)
208
+ @status = value
209
+ end
210
+ ##
211
+ ## Gets the updated_at property value. The updated_at property
212
+ ## @return a string
213
+ ##
214
+ def updated_at
215
+ return @updated_at
216
+ end
217
+ ##
218
+ ## Sets the updated_at property value. The updated_at property
219
+ ## @param value Value to set for the updated_at property.
220
+ ## @return a void
221
+ ##
222
+ def updated_at=(value)
223
+ @updated_at = value
224
+ end
225
+ ##
226
+ ## Gets the url property value. The url property
227
+ ## @return a string
228
+ ##
229
+ def url
230
+ return @url
231
+ end
232
+ ##
233
+ ## Sets the url property value. The url property
234
+ ## @param value Value to set for the url property.
235
+ ## @return a void
236
+ ##
237
+ def url=(value)
238
+ @url = value
239
+ end
240
+ end
241
+ end
242
+ end
@@ -0,0 +1,12 @@
1
+ module Rixl
2
+ module Models
3
+ FileStatus = {
4
+ Uploading: :Uploading,
5
+ Uploaded: :Uploaded,
6
+ Processing: :Processing,
7
+ Preparing: :Preparing,
8
+ Ready: :Ready,
9
+ Error: :Error,
10
+ }
11
+ end
12
+ end
@@ -0,0 +1,10 @@
1
+ module Rixl
2
+ module Models
3
+ Github_com_rixlhq_api_db_sqlcPlanType = {
4
+ Free: :Free,
5
+ Pro: :Pro,
6
+ Custom: :Custom,
7
+ Pay_as_you_go: :Pay_as_you_go,
8
+ }
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ module Rixl
2
+ module Models
3
+ Github_com_rixlhq_api_db_sqlcVideoQuality = {
4
+ Basic: :Basic,
5
+ Shorts: :Shorts,
6
+ Pro: :Pro,
7
+ }
8
+ end
9
+ end
@@ -0,0 +1,126 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../rixl'
3
+ require_relative './models'
4
+
5
+ module Rixl
6
+ module Models
7
+ ##
8
+ # Standard error response returned by the API
9
+ class Github_com_rixlhq_api_internal_errorsErrorResponse < MicrosoftKiotaAbstractions::ApiError
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
+ # HTTP status code
16
+ @code
17
+ ##
18
+ # Optional details about the error
19
+ @details
20
+ ##
21
+ # Error message describing what went wrong
22
+ @error
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
+ ## Gets the code property value. HTTP status code
40
+ ## @return a integer
41
+ ##
42
+ def code
43
+ return @code
44
+ end
45
+ ##
46
+ ## Sets the code property value. HTTP status code
47
+ ## @param value Value to set for the code property.
48
+ ## @return a void
49
+ ##
50
+ def code=(value)
51
+ @code = value
52
+ end
53
+ ##
54
+ ## Instantiates a new Github_com_rixlhq_api_internal_errorsErrorResponse and sets the default values.
55
+ ## @return a void
56
+ ##
57
+ def initialize()
58
+ super
59
+ @additional_data = Hash.new
60
+ end
61
+ ##
62
+ ## Creates a new instance of the appropriate class based on discriminator value
63
+ ## @param parse_node The parse node to use to read the discriminator value and create the object
64
+ ## @return a github_com_rixlhq_api_internal_errors_error_response
65
+ ##
66
+ def self.create_from_discriminator_value(parse_node)
67
+ raise StandardError, 'parse_node cannot be null' if parse_node.nil?
68
+ return Github_com_rixlhq_api_internal_errorsErrorResponse.new
69
+ end
70
+ ##
71
+ ## Gets the details property value. Optional details about the error
72
+ ## @return a string
73
+ ##
74
+ def details
75
+ return @details
76
+ end
77
+ ##
78
+ ## Sets the details property value. Optional details about the error
79
+ ## @param value Value to set for the details property.
80
+ ## @return a void
81
+ ##
82
+ def details=(value)
83
+ @details = value
84
+ end
85
+ ##
86
+ ## Gets the error property value. Error message describing what went wrong
87
+ ## @return a string
88
+ ##
89
+ def error
90
+ return @error
91
+ end
92
+ ##
93
+ ## Sets the error property value. Error message describing what went wrong
94
+ ## @param value Value to set for the error property.
95
+ ## @return a void
96
+ ##
97
+ def error=(value)
98
+ @error = value
99
+ end
100
+ ##
101
+ ## The deserialization information for the current model
102
+ ## @return a i_dictionary
103
+ ##
104
+ def get_field_deserializers()
105
+ return super.merge({
106
+ "code" => lambda {|n| @code = n.get_number_value() },
107
+ "details" => lambda {|n| @details = n.get_string_value() },
108
+ "error" => lambda {|n| @error = n.get_string_value() },
109
+ })
110
+ end
111
+ ##
112
+ ## Serializes information the current object
113
+ ## @param writer Serialization writer to use to serialize this model
114
+ ## @return a void
115
+ ##
116
+ def serialize(writer)
117
+ raise StandardError, 'writer cannot be null' if writer.nil?
118
+ super
119
+ writer.write_number_value("code", @code)
120
+ writer.write_string_value("details", @details)
121
+ writer.write_string_value("error", @error)
122
+ writer.write_additional_data(@additional_data)
123
+ end
124
+ end
125
+ end
126
+ end