daytona_api_client 0.197.0 → 0.198.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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +0 -68
  3. data/lib/daytona_api_client/version.rb +1 -1
  4. data/lib/daytona_api_client.rb +0 -68
  5. metadata +1 -69
  6. data/lib/daytona_api_client/api/toolbox_api.rb +0 -5108
  7. data/lib/daytona_api_client/models/command.rb +0 -202
  8. data/lib/daytona_api_client/models/completion_context.rb +0 -173
  9. data/lib/daytona_api_client/models/completion_item.rb +0 -218
  10. data/lib/daytona_api_client/models/completion_list.rb +0 -192
  11. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -185
  12. data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -192
  13. data/lib/daytona_api_client/models/computer_use_status_response.rb +0 -189
  14. data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -192
  15. data/lib/daytona_api_client/models/create_session_request.rb +0 -165
  16. data/lib/daytona_api_client/models/display_info_response.rb +0 -167
  17. data/lib/daytona_api_client/models/download_files.rb +0 -167
  18. data/lib/daytona_api_client/models/execute_request.rb +0 -184
  19. data/lib/daytona_api_client/models/execute_response.rb +0 -192
  20. data/lib/daytona_api_client/models/file_info.rb +0 -346
  21. data/lib/daytona_api_client/models/file_status.rb +0 -242
  22. data/lib/daytona_api_client/models/git_add_request.rb +0 -193
  23. data/lib/daytona_api_client/models/git_branch_request.rb +0 -190
  24. data/lib/daytona_api_client/models/git_checkout_request.rb +0 -190
  25. data/lib/daytona_api_client/models/git_clone_request.rb +0 -226
  26. data/lib/daytona_api_client/models/git_commit_info.rb +0 -268
  27. data/lib/daytona_api_client/models/git_commit_request.rb +0 -254
  28. data/lib/daytona_api_client/models/git_commit_response.rb +0 -164
  29. data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -190
  30. data/lib/daytona_api_client/models/git_repo_request.rb +0 -182
  31. data/lib/daytona_api_client/models/git_status.rb +0 -219
  32. data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -165
  33. data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -177
  34. data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -175
  35. data/lib/daytona_api_client/models/list_branch_response.rb +0 -166
  36. data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -254
  37. data/lib/daytona_api_client/models/lsp_document_request.rb +0 -219
  38. data/lib/daytona_api_client/models/lsp_location.rb +0 -190
  39. data/lib/daytona_api_client/models/lsp_server_request.rb +0 -192
  40. data/lib/daytona_api_client/models/lsp_symbol.rb +0 -216
  41. data/lib/daytona_api_client/models/match.rb +0 -216
  42. data/lib/daytona_api_client/models/mouse_click_request.rb +0 -212
  43. data/lib/daytona_api_client/models/mouse_click_response.rb +0 -192
  44. data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -256
  45. data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -192
  46. data/lib/daytona_api_client/models/mouse_move_request.rb +0 -192
  47. data/lib/daytona_api_client/models/mouse_move_response.rb +0 -192
  48. data/lib/daytona_api_client/models/mouse_position.rb +0 -192
  49. data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -229
  50. data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -165
  51. data/lib/daytona_api_client/models/position.rb +0 -190
  52. data/lib/daytona_api_client/models/process_errors_response.rb +0 -192
  53. data/lib/daytona_api_client/models/process_logs_response.rb +0 -192
  54. data/lib/daytona_api_client/models/process_restart_response.rb +0 -192
  55. data/lib/daytona_api_client/models/process_status_response.rb +0 -192
  56. data/lib/daytona_api_client/models/project_dir_response.rb +0 -147
  57. data/lib/daytona_api_client/models/pty_create_request.rb +0 -217
  58. data/lib/daytona_api_client/models/pty_create_response.rb +0 -165
  59. data/lib/daytona_api_client/models/pty_list_response.rb +0 -167
  60. data/lib/daytona_api_client/models/pty_resize_request.rb +0 -192
  61. data/lib/daytona_api_client/models/pty_session_info.rb +0 -354
  62. data/lib/daytona_api_client/models/range.rb +0 -190
  63. data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -185
  64. data/lib/daytona_api_client/models/replace_request.rb +0 -218
  65. data/lib/daytona_api_client/models/replace_result.rb +0 -165
  66. data/lib/daytona_api_client/models/screenshot_response.rb +0 -185
  67. data/lib/daytona_api_client/models/search_files_response.rb +0 -166
  68. data/lib/daytona_api_client/models/session.rb +0 -180
  69. data/lib/daytona_api_client/models/session_execute_request.rb +0 -185
  70. data/lib/daytona_api_client/models/session_execute_response.rb +0 -168
  71. data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -147
  72. data/lib/daytona_api_client/models/windows_response.rb +0 -194
  73. data/lib/daytona_api_client/models/work_dir_response.rb +0 -147
@@ -1,254 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class GitCommitRequest < ApiModelBase
18
- attr_accessor :path
19
-
20
- attr_accessor :message
21
-
22
- attr_accessor :author
23
-
24
- attr_accessor :email
25
-
26
- # Allow creating an empty commit when no changes are staged
27
- attr_accessor :allow_empty
28
-
29
- # Attribute mapping from ruby-style variable name to JSON key.
30
- def self.attribute_map
31
- {
32
- :'path' => :'path',
33
- :'message' => :'message',
34
- :'author' => :'author',
35
- :'email' => :'email',
36
- :'allow_empty' => :'allow_empty'
37
- }
38
- end
39
-
40
- # Returns attribute mapping this model knows about
41
- def self.acceptable_attribute_map
42
- attribute_map
43
- end
44
-
45
- # Returns all the JSON keys this model knows about
46
- def self.acceptable_attributes
47
- acceptable_attribute_map.values
48
- end
49
-
50
- # Attribute type mapping.
51
- def self.openapi_types
52
- {
53
- :'path' => :'String',
54
- :'message' => :'String',
55
- :'author' => :'String',
56
- :'email' => :'String',
57
- :'allow_empty' => :'Boolean'
58
- }
59
- end
60
-
61
- # List of attributes with nullable: true
62
- def self.openapi_nullable
63
- Set.new([
64
- ])
65
- end
66
-
67
- # Initializes the object
68
- # @param [Hash] attributes Model attributes in the form of hash
69
- def initialize(attributes = {})
70
- if (!attributes.is_a?(Hash))
71
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::GitCommitRequest` initialize method"
72
- end
73
-
74
- # check to see if the attribute exists and convert string to symbol for hash key
75
- acceptable_attribute_map = self.class.acceptable_attribute_map
76
- attributes = attributes.each_with_object({}) { |(k, v), h|
77
- if (!acceptable_attribute_map.key?(k.to_sym))
78
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::GitCommitRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
79
- end
80
- h[k.to_sym] = v
81
- }
82
-
83
- if attributes.key?(:'path')
84
- self.path = attributes[:'path']
85
- else
86
- self.path = nil
87
- end
88
-
89
- if attributes.key?(:'message')
90
- self.message = attributes[:'message']
91
- else
92
- self.message = nil
93
- end
94
-
95
- if attributes.key?(:'author')
96
- self.author = attributes[:'author']
97
- else
98
- self.author = nil
99
- end
100
-
101
- if attributes.key?(:'email')
102
- self.email = attributes[:'email']
103
- else
104
- self.email = nil
105
- end
106
-
107
- if attributes.key?(:'allow_empty')
108
- self.allow_empty = attributes[:'allow_empty']
109
- else
110
- self.allow_empty = false
111
- end
112
- end
113
-
114
- # Show invalid properties with the reasons. Usually used together with valid?
115
- # @return Array for valid properties with the reasons
116
- def list_invalid_properties
117
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
118
- invalid_properties = Array.new
119
- if @path.nil?
120
- invalid_properties.push('invalid value for "path", path cannot be nil.')
121
- end
122
-
123
- if @message.nil?
124
- invalid_properties.push('invalid value for "message", message cannot be nil.')
125
- end
126
-
127
- if @author.nil?
128
- invalid_properties.push('invalid value for "author", author cannot be nil.')
129
- end
130
-
131
- if @email.nil?
132
- invalid_properties.push('invalid value for "email", email cannot be nil.')
133
- end
134
-
135
- invalid_properties
136
- end
137
-
138
- # Check to see if the all the properties in the model are valid
139
- # @return true if the model is valid
140
- def valid?
141
- warn '[DEPRECATED] the `valid?` method is obsolete'
142
- return false if @path.nil?
143
- return false if @message.nil?
144
- return false if @author.nil?
145
- return false if @email.nil?
146
- true
147
- end
148
-
149
- # Custom attribute writer method with validation
150
- # @param [Object] path Value to be assigned
151
- def path=(path)
152
- if path.nil?
153
- fail ArgumentError, 'path cannot be nil'
154
- end
155
-
156
- @path = path
157
- end
158
-
159
- # Custom attribute writer method with validation
160
- # @param [Object] message Value to be assigned
161
- def message=(message)
162
- if message.nil?
163
- fail ArgumentError, 'message cannot be nil'
164
- end
165
-
166
- @message = message
167
- end
168
-
169
- # Custom attribute writer method with validation
170
- # @param [Object] author Value to be assigned
171
- def author=(author)
172
- if author.nil?
173
- fail ArgumentError, 'author cannot be nil'
174
- end
175
-
176
- @author = author
177
- end
178
-
179
- # Custom attribute writer method with validation
180
- # @param [Object] email Value to be assigned
181
- def email=(email)
182
- if email.nil?
183
- fail ArgumentError, 'email cannot be nil'
184
- end
185
-
186
- @email = email
187
- end
188
-
189
- # Checks equality by comparing each attribute.
190
- # @param [Object] Object to be compared
191
- def ==(o)
192
- return true if self.equal?(o)
193
- self.class == o.class &&
194
- path == o.path &&
195
- message == o.message &&
196
- author == o.author &&
197
- email == o.email &&
198
- allow_empty == o.allow_empty
199
- end
200
-
201
- # @see the `==` method
202
- # @param [Object] Object to be compared
203
- def eql?(o)
204
- self == o
205
- end
206
-
207
- # Calculates hash code according to all attributes.
208
- # @return [Integer] Hash code
209
- def hash
210
- [path, message, author, email, allow_empty].hash
211
- end
212
-
213
- # Builds the object from hash
214
- # @param [Hash] attributes Model attributes in the form of hash
215
- # @return [Object] Returns the model itself
216
- def self.build_from_hash(attributes)
217
- return nil unless attributes.is_a?(Hash)
218
- attributes = attributes.transform_keys(&:to_sym)
219
- transformed_hash = {}
220
- openapi_types.each_pair do |key, type|
221
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
222
- transformed_hash["#{key}"] = nil
223
- elsif type =~ /\AArray<(.*)>/i
224
- # check to ensure the input is an array given that the attribute
225
- # is documented as an array but the input is not
226
- if attributes[attribute_map[key]].is_a?(Array)
227
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
228
- end
229
- elsif !attributes[attribute_map[key]].nil?
230
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
231
- end
232
- end
233
- new(transformed_hash)
234
- end
235
-
236
- # Returns the object in the form of hash
237
- # @return [Hash] Returns the object in the form of hash
238
- def to_hash
239
- hash = {}
240
- self.class.attribute_map.each_pair do |attr, param|
241
- value = self.send(attr)
242
- if value.nil?
243
- is_nullable = self.class.openapi_nullable.include?(attr)
244
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
245
- end
246
-
247
- hash[param] = _to_hash(value)
248
- end
249
- hash
250
- end
251
-
252
- end
253
-
254
- end
@@ -1,164 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class GitCommitResponse < ApiModelBase
18
- attr_accessor :hash
19
-
20
- # Attribute mapping from ruby-style variable name to JSON key.
21
- def self.attribute_map
22
- {
23
- :'hash' => :'hash'
24
- }
25
- end
26
-
27
- # Returns attribute mapping this model knows about
28
- def self.acceptable_attribute_map
29
- attribute_map
30
- end
31
-
32
- # Returns all the JSON keys this model knows about
33
- def self.acceptable_attributes
34
- acceptable_attribute_map.values
35
- end
36
-
37
- # Attribute type mapping.
38
- def self.openapi_types
39
- {
40
- :'hash' => :'String'
41
- }
42
- end
43
-
44
- # List of attributes with nullable: true
45
- def self.openapi_nullable
46
- Set.new([
47
- ])
48
- end
49
-
50
- # Initializes the object
51
- # @param [Hash] attributes Model attributes in the form of hash
52
- def initialize(attributes = {})
53
- if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::GitCommitResponse` initialize method"
55
- end
56
-
57
- # check to see if the attribute exists and convert string to symbol for hash key
58
- acceptable_attribute_map = self.class.acceptable_attribute_map
59
- attributes = attributes.each_with_object({}) { |(k, v), h|
60
- if (!acceptable_attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::GitCommitResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
- end
63
- h[k.to_sym] = v
64
- }
65
-
66
- if attributes.key?(:'hash')
67
- self.hash = attributes[:'hash']
68
- else
69
- self.hash = nil
70
- end
71
- end
72
-
73
- # Show invalid properties with the reasons. Usually used together with valid?
74
- # @return Array for valid properties with the reasons
75
- def list_invalid_properties
76
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
- invalid_properties = Array.new
78
- if @hash.nil?
79
- invalid_properties.push('invalid value for "hash", hash cannot be nil.')
80
- end
81
-
82
- invalid_properties
83
- end
84
-
85
- # Check to see if the all the properties in the model are valid
86
- # @return true if the model is valid
87
- def valid?
88
- warn '[DEPRECATED] the `valid?` method is obsolete'
89
- return false if @hash.nil?
90
- true
91
- end
92
-
93
- # Custom attribute writer method with validation
94
- # @param [Object] hash Value to be assigned
95
- def hash=(hash)
96
- if hash.nil?
97
- fail ArgumentError, 'hash cannot be nil'
98
- end
99
-
100
- @hash = hash
101
- end
102
-
103
- # Checks equality by comparing each attribute.
104
- # @param [Object] Object to be compared
105
- def ==(o)
106
- return true if self.equal?(o)
107
- self.class == o.class &&
108
- hash == o.hash
109
- end
110
-
111
- # @see the `==` method
112
- # @param [Object] Object to be compared
113
- def eql?(o)
114
- self == o
115
- end
116
-
117
- # Calculates hash code according to all attributes.
118
- # @return [Integer] Hash code
119
- def hash
120
- [hash].hash
121
- end
122
-
123
- # Builds the object from hash
124
- # @param [Hash] attributes Model attributes in the form of hash
125
- # @return [Object] Returns the model itself
126
- def self.build_from_hash(attributes)
127
- return nil unless attributes.is_a?(Hash)
128
- attributes = attributes.transform_keys(&:to_sym)
129
- transformed_hash = {}
130
- openapi_types.each_pair do |key, type|
131
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
132
- transformed_hash["#{key}"] = nil
133
- elsif type =~ /\AArray<(.*)>/i
134
- # check to ensure the input is an array given that the attribute
135
- # is documented as an array but the input is not
136
- if attributes[attribute_map[key]].is_a?(Array)
137
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
138
- end
139
- elsif !attributes[attribute_map[key]].nil?
140
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
141
- end
142
- end
143
- new(transformed_hash)
144
- end
145
-
146
- # Returns the object in the form of hash
147
- # @return [Hash] Returns the object in the form of hash
148
- def to_hash
149
- hash = {}
150
- self.class.attribute_map.each_pair do |attr, param|
151
- value = self.send(attr)
152
- if value.nil?
153
- is_nullable = self.class.openapi_nullable.include?(attr)
154
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
155
- end
156
-
157
- hash[param] = _to_hash(value)
158
- end
159
- hash
160
- end
161
-
162
- end
163
-
164
- end
@@ -1,190 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class GitDeleteBranchRequest < ApiModelBase
18
- attr_accessor :path
19
-
20
- attr_accessor :name
21
-
22
- # Attribute mapping from ruby-style variable name to JSON key.
23
- def self.attribute_map
24
- {
25
- :'path' => :'path',
26
- :'name' => :'name'
27
- }
28
- end
29
-
30
- # Returns attribute mapping this model knows about
31
- def self.acceptable_attribute_map
32
- attribute_map
33
- end
34
-
35
- # Returns all the JSON keys this model knows about
36
- def self.acceptable_attributes
37
- acceptable_attribute_map.values
38
- end
39
-
40
- # Attribute type mapping.
41
- def self.openapi_types
42
- {
43
- :'path' => :'String',
44
- :'name' => :'String'
45
- }
46
- end
47
-
48
- # List of attributes with nullable: true
49
- def self.openapi_nullable
50
- Set.new([
51
- ])
52
- end
53
-
54
- # Initializes the object
55
- # @param [Hash] attributes Model attributes in the form of hash
56
- def initialize(attributes = {})
57
- if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::GitDeleteBranchRequest` initialize method"
59
- end
60
-
61
- # check to see if the attribute exists and convert string to symbol for hash key
62
- acceptable_attribute_map = self.class.acceptable_attribute_map
63
- attributes = attributes.each_with_object({}) { |(k, v), h|
64
- if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::GitDeleteBranchRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
- end
67
- h[k.to_sym] = v
68
- }
69
-
70
- if attributes.key?(:'path')
71
- self.path = attributes[:'path']
72
- else
73
- self.path = nil
74
- end
75
-
76
- if attributes.key?(:'name')
77
- self.name = attributes[:'name']
78
- else
79
- self.name = nil
80
- end
81
- end
82
-
83
- # Show invalid properties with the reasons. Usually used together with valid?
84
- # @return Array for valid properties with the reasons
85
- def list_invalid_properties
86
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
- invalid_properties = Array.new
88
- if @path.nil?
89
- invalid_properties.push('invalid value for "path", path cannot be nil.')
90
- end
91
-
92
- if @name.nil?
93
- invalid_properties.push('invalid value for "name", name cannot be nil.')
94
- end
95
-
96
- invalid_properties
97
- end
98
-
99
- # Check to see if the all the properties in the model are valid
100
- # @return true if the model is valid
101
- def valid?
102
- warn '[DEPRECATED] the `valid?` method is obsolete'
103
- return false if @path.nil?
104
- return false if @name.nil?
105
- true
106
- end
107
-
108
- # Custom attribute writer method with validation
109
- # @param [Object] path Value to be assigned
110
- def path=(path)
111
- if path.nil?
112
- fail ArgumentError, 'path cannot be nil'
113
- end
114
-
115
- @path = path
116
- end
117
-
118
- # Custom attribute writer method with validation
119
- # @param [Object] name Value to be assigned
120
- def name=(name)
121
- if name.nil?
122
- fail ArgumentError, 'name cannot be nil'
123
- end
124
-
125
- @name = name
126
- end
127
-
128
- # Checks equality by comparing each attribute.
129
- # @param [Object] Object to be compared
130
- def ==(o)
131
- return true if self.equal?(o)
132
- self.class == o.class &&
133
- path == o.path &&
134
- name == o.name
135
- end
136
-
137
- # @see the `==` method
138
- # @param [Object] Object to be compared
139
- def eql?(o)
140
- self == o
141
- end
142
-
143
- # Calculates hash code according to all attributes.
144
- # @return [Integer] Hash code
145
- def hash
146
- [path, name].hash
147
- end
148
-
149
- # Builds the object from hash
150
- # @param [Hash] attributes Model attributes in the form of hash
151
- # @return [Object] Returns the model itself
152
- def self.build_from_hash(attributes)
153
- return nil unless attributes.is_a?(Hash)
154
- attributes = attributes.transform_keys(&:to_sym)
155
- transformed_hash = {}
156
- openapi_types.each_pair do |key, type|
157
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
158
- transformed_hash["#{key}"] = nil
159
- elsif type =~ /\AArray<(.*)>/i
160
- # check to ensure the input is an array given that the attribute
161
- # is documented as an array but the input is not
162
- if attributes[attribute_map[key]].is_a?(Array)
163
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
164
- end
165
- elsif !attributes[attribute_map[key]].nil?
166
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
167
- end
168
- end
169
- new(transformed_hash)
170
- end
171
-
172
- # Returns the object in the form of hash
173
- # @return [Hash] Returns the object in the form of hash
174
- def to_hash
175
- hash = {}
176
- self.class.attribute_map.each_pair do |attr, param|
177
- value = self.send(attr)
178
- if value.nil?
179
- is_nullable = self.class.openapi_nullable.include?(attr)
180
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
181
- end
182
-
183
- hash[param] = _to_hash(value)
184
- end
185
- hash
186
- end
187
-
188
- end
189
-
190
- end