daytona_api_client 0.216.0 → 0.217.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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +15 -16
  3. data/lib/daytona_api_client/api/organizations_api.rb +260 -484
  4. data/lib/daytona_api_client/api/sandbox_api.rb +14 -163
  5. data/lib/daytona_api_client/api/users_api.rb +82 -90
  6. data/lib/daytona_api_client/models/account_provider.rb +48 -19
  7. data/lib/daytona_api_client/models/api_key_list.rb +14 -4
  8. data/lib/daytona_api_client/models/create_runner.rb +37 -4
  9. data/lib/daytona_api_client/models/create_runner_sandbox_class.rb +42 -0
  10. data/lib/daytona_api_client/models/daytona_configuration.rb +45 -1
  11. data/lib/daytona_api_client/models/{organization_preview_warning.rb → generate_workos_admin_portal_link.rb} +42 -20
  12. data/lib/daytona_api_client/models/{send_webhook_dto.rb → gpu_capacity.rb} +77 -43
  13. data/lib/daytona_api_client/models/{organization_sso_enabled.rb → gpu_capacity_response.rb} +48 -20
  14. data/lib/daytona_api_client/models/gpu_type.rb +2 -1
  15. data/lib/daytona_api_client/models/oidc_config.rb +65 -4
  16. data/lib/daytona_api_client/models/organization.rb +38 -1
  17. data/lib/daytona_api_client/models/sandbox_created_webhook.rb +349 -0
  18. data/lib/daytona_api_client/models/{organization_sandbox_default_limited_network_egress.rb → sandbox_identity.rb} +47 -20
  19. data/lib/daytona_api_client/models/sandbox_state_updated_webhook.rb +349 -0
  20. data/lib/daytona_api_client/models/snapshot_created_webhook.rb +349 -0
  21. data/lib/daytona_api_client/models/{create_user.rb → snapshot_removed_webhook.rb} +119 -71
  22. data/lib/daytona_api_client/models/snapshot_state_updated_webhook.rb +376 -0
  23. data/lib/daytona_api_client/models/user.rb +11 -1
  24. data/lib/daytona_api_client/models/volume_created_webhook.rb +349 -0
  25. data/lib/daytona_api_client/models/volume_state_updated_webhook.rb +376 -0
  26. data/lib/daytona_api_client/models/workos_admin_portal_intent.rb +41 -0
  27. data/lib/daytona_api_client/models/{set_snapshot_general_status_dto.rb → workos_admin_portal_link.rb} +20 -20
  28. data/lib/daytona_api_client/models/{admin_create_runner.rb → workos_sso_connection.rb} +123 -120
  29. data/lib/daytona_api_client/version.rb +1 -1
  30. data/lib/daytona_api_client.rb +15 -16
  31. metadata +16 -17
  32. data/lib/daytona_api_client/api/admin_api.rb +0 -1618
  33. data/lib/daytona_api_client/models/admin_create_organization.rb +0 -219
  34. data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +0 -147
  35. data/lib/daytona_api_client/models/create_organization_quota.rb +0 -238
  36. data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -386
  37. data/lib/daytona_api_client/models/organization_suspension.rb +0 -221
  38. data/lib/daytona_api_client/models/paginated_sandboxes_deprecated.rb +0 -244
  39. data/lib/daytona_api_client/models/update_organization_quota.rb +0 -333
  40. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -313
@@ -1,219 +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 AdminCreateOrganization < ApiModelBase
18
- # The ID of the user the organization will be created for
19
- attr_accessor :user_id
20
-
21
- # The name of organization
22
- attr_accessor :name
23
-
24
- # The ID of the default region for the organization
25
- attr_accessor :default_region_id
26
-
27
- # Attribute mapping from ruby-style variable name to JSON key.
28
- def self.attribute_map
29
- {
30
- :'user_id' => :'userId',
31
- :'name' => :'name',
32
- :'default_region_id' => :'defaultRegionId'
33
- }
34
- end
35
-
36
- # Returns attribute mapping this model knows about
37
- def self.acceptable_attribute_map
38
- attribute_map
39
- end
40
-
41
- # Returns all the JSON keys this model knows about
42
- def self.acceptable_attributes
43
- acceptable_attribute_map.values
44
- end
45
-
46
- # Attribute type mapping.
47
- def self.openapi_types
48
- {
49
- :'user_id' => :'String',
50
- :'name' => :'String',
51
- :'default_region_id' => :'String'
52
- }
53
- end
54
-
55
- # List of attributes with nullable: true
56
- def self.openapi_nullable
57
- Set.new([
58
- ])
59
- end
60
-
61
- # Initializes the object
62
- # @param [Hash] attributes Model attributes in the form of hash
63
- def initialize(attributes = {})
64
- if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::AdminCreateOrganization` initialize method"
66
- end
67
-
68
- # check to see if the attribute exists and convert string to symbol for hash key
69
- acceptable_attribute_map = self.class.acceptable_attribute_map
70
- attributes = attributes.each_with_object({}) { |(k, v), h|
71
- if (!acceptable_attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::AdminCreateOrganization`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
- end
74
- h[k.to_sym] = v
75
- }
76
-
77
- if attributes.key?(:'user_id')
78
- self.user_id = attributes[:'user_id']
79
- else
80
- self.user_id = nil
81
- end
82
-
83
- if attributes.key?(:'name')
84
- self.name = attributes[:'name']
85
- else
86
- self.name = nil
87
- end
88
-
89
- if attributes.key?(:'default_region_id')
90
- self.default_region_id = attributes[:'default_region_id']
91
- else
92
- self.default_region_id = nil
93
- end
94
- end
95
-
96
- # Show invalid properties with the reasons. Usually used together with valid?
97
- # @return Array for valid properties with the reasons
98
- def list_invalid_properties
99
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
100
- invalid_properties = Array.new
101
- if @user_id.nil?
102
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
103
- end
104
-
105
- if @name.nil?
106
- invalid_properties.push('invalid value for "name", name cannot be nil.')
107
- end
108
-
109
- if @default_region_id.nil?
110
- invalid_properties.push('invalid value for "default_region_id", default_region_id cannot be nil.')
111
- end
112
-
113
- invalid_properties
114
- end
115
-
116
- # Check to see if the all the properties in the model are valid
117
- # @return true if the model is valid
118
- def valid?
119
- warn '[DEPRECATED] the `valid?` method is obsolete'
120
- return false if @user_id.nil?
121
- return false if @name.nil?
122
- return false if @default_region_id.nil?
123
- true
124
- end
125
-
126
- # Custom attribute writer method with validation
127
- # @param [Object] user_id Value to be assigned
128
- def user_id=(user_id)
129
- if user_id.nil?
130
- fail ArgumentError, 'user_id cannot be nil'
131
- end
132
-
133
- @user_id = user_id
134
- end
135
-
136
- # Custom attribute writer method with validation
137
- # @param [Object] name Value to be assigned
138
- def name=(name)
139
- if name.nil?
140
- fail ArgumentError, 'name cannot be nil'
141
- end
142
-
143
- @name = name
144
- end
145
-
146
- # Custom attribute writer method with validation
147
- # @param [Object] default_region_id Value to be assigned
148
- def default_region_id=(default_region_id)
149
- if default_region_id.nil?
150
- fail ArgumentError, 'default_region_id cannot be nil'
151
- end
152
-
153
- @default_region_id = default_region_id
154
- end
155
-
156
- # Checks equality by comparing each attribute.
157
- # @param [Object] Object to be compared
158
- def ==(o)
159
- return true if self.equal?(o)
160
- self.class == o.class &&
161
- user_id == o.user_id &&
162
- name == o.name &&
163
- default_region_id == o.default_region_id
164
- end
165
-
166
- # @see the `==` method
167
- # @param [Object] Object to be compared
168
- def eql?(o)
169
- self == o
170
- end
171
-
172
- # Calculates hash code according to all attributes.
173
- # @return [Integer] Hash code
174
- def hash
175
- [user_id, name, default_region_id].hash
176
- end
177
-
178
- # Builds the object from hash
179
- # @param [Hash] attributes Model attributes in the form of hash
180
- # @return [Object] Returns the model itself
181
- def self.build_from_hash(attributes)
182
- return nil unless attributes.is_a?(Hash)
183
- attributes = attributes.transform_keys(&:to_sym)
184
- transformed_hash = {}
185
- openapi_types.each_pair do |key, type|
186
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
187
- transformed_hash["#{key}"] = nil
188
- elsif type =~ /\AArray<(.*)>/i
189
- # check to ensure the input is an array given that the attribute
190
- # is documented as an array but the input is not
191
- if attributes[attribute_map[key]].is_a?(Array)
192
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
193
- end
194
- elsif !attributes[attribute_map[key]].nil?
195
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
196
- end
197
- end
198
- new(transformed_hash)
199
- end
200
-
201
- # Returns the object in the form of hash
202
- # @return [Hash] Returns the object in the form of hash
203
- def to_hash
204
- hash = {}
205
- self.class.attribute_map.each_pair do |attr, param|
206
- value = self.send(attr)
207
- if value.nil?
208
- is_nullable = self.class.openapi_nullable.include?(attr)
209
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
- end
211
-
212
- hash[param] = _to_hash(value)
213
- end
214
- hash
215
- end
216
-
217
- end
218
-
219
- end
@@ -1,147 +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 AdminGetWebhookStatus200Response < ApiModelBase
18
- attr_accessor :enabled
19
-
20
- # Attribute mapping from ruby-style variable name to JSON key.
21
- def self.attribute_map
22
- {
23
- :'enabled' => :'enabled'
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
- :'enabled' => :'Boolean'
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::AdminGetWebhookStatus200Response` 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::AdminGetWebhookStatus200Response`. 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?(:'enabled')
67
- self.enabled = attributes[:'enabled']
68
- end
69
- end
70
-
71
- # Show invalid properties with the reasons. Usually used together with valid?
72
- # @return Array for valid properties with the reasons
73
- def list_invalid_properties
74
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
75
- invalid_properties = Array.new
76
- invalid_properties
77
- end
78
-
79
- # Check to see if the all the properties in the model are valid
80
- # @return true if the model is valid
81
- def valid?
82
- warn '[DEPRECATED] the `valid?` method is obsolete'
83
- true
84
- end
85
-
86
- # Checks equality by comparing each attribute.
87
- # @param [Object] Object to be compared
88
- def ==(o)
89
- return true if self.equal?(o)
90
- self.class == o.class &&
91
- enabled == o.enabled
92
- end
93
-
94
- # @see the `==` method
95
- # @param [Object] Object to be compared
96
- def eql?(o)
97
- self == o
98
- end
99
-
100
- # Calculates hash code according to all attributes.
101
- # @return [Integer] Hash code
102
- def hash
103
- [enabled].hash
104
- end
105
-
106
- # Builds the object from hash
107
- # @param [Hash] attributes Model attributes in the form of hash
108
- # @return [Object] Returns the model itself
109
- def self.build_from_hash(attributes)
110
- return nil unless attributes.is_a?(Hash)
111
- attributes = attributes.transform_keys(&:to_sym)
112
- transformed_hash = {}
113
- openapi_types.each_pair do |key, type|
114
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
115
- transformed_hash["#{key}"] = nil
116
- elsif type =~ /\AArray<(.*)>/i
117
- # check to ensure the input is an array given that the attribute
118
- # is documented as an array but the input is not
119
- if attributes[attribute_map[key]].is_a?(Array)
120
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
121
- end
122
- elsif !attributes[attribute_map[key]].nil?
123
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
124
- end
125
- end
126
- new(transformed_hash)
127
- end
128
-
129
- # Returns the object in the form of hash
130
- # @return [Hash] Returns the object in the form of hash
131
- def to_hash
132
- hash = {}
133
- self.class.attribute_map.each_pair do |attr, param|
134
- value = self.send(attr)
135
- if value.nil?
136
- is_nullable = self.class.openapi_nullable.include?(attr)
137
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
138
- end
139
-
140
- hash[param] = _to_hash(value)
141
- end
142
- hash
143
- end
144
-
145
- end
146
-
147
- end
@@ -1,238 +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 CreateOrganizationQuota < ApiModelBase
18
- attr_accessor :total_cpu_quota
19
-
20
- attr_accessor :total_memory_quota
21
-
22
- attr_accessor :total_disk_quota
23
-
24
- attr_accessor :total_gpu_quota
25
-
26
- attr_accessor :max_cpu_per_sandbox
27
-
28
- attr_accessor :max_memory_per_sandbox
29
-
30
- attr_accessor :max_disk_per_sandbox
31
-
32
- attr_accessor :snapshot_quota
33
-
34
- attr_accessor :max_snapshot_size
35
-
36
- attr_accessor :volume_quota
37
-
38
- # Maximum number of snapshots an organization can process (building or pulling) concurrently. Excess are queued. <= 0 means unlimited.
39
- attr_accessor :max_concurrent_snapshot_processing
40
-
41
- # Attribute mapping from ruby-style variable name to JSON key.
42
- def self.attribute_map
43
- {
44
- :'total_cpu_quota' => :'totalCpuQuota',
45
- :'total_memory_quota' => :'totalMemoryQuota',
46
- :'total_disk_quota' => :'totalDiskQuota',
47
- :'total_gpu_quota' => :'totalGpuQuota',
48
- :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
49
- :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
50
- :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
51
- :'snapshot_quota' => :'snapshotQuota',
52
- :'max_snapshot_size' => :'maxSnapshotSize',
53
- :'volume_quota' => :'volumeQuota',
54
- :'max_concurrent_snapshot_processing' => :'maxConcurrentSnapshotProcessing'
55
- }
56
- end
57
-
58
- # Returns attribute mapping this model knows about
59
- def self.acceptable_attribute_map
60
- attribute_map
61
- end
62
-
63
- # Returns all the JSON keys this model knows about
64
- def self.acceptable_attributes
65
- acceptable_attribute_map.values
66
- end
67
-
68
- # Attribute type mapping.
69
- def self.openapi_types
70
- {
71
- :'total_cpu_quota' => :'Float',
72
- :'total_memory_quota' => :'Float',
73
- :'total_disk_quota' => :'Float',
74
- :'total_gpu_quota' => :'Float',
75
- :'max_cpu_per_sandbox' => :'Float',
76
- :'max_memory_per_sandbox' => :'Float',
77
- :'max_disk_per_sandbox' => :'Float',
78
- :'snapshot_quota' => :'Float',
79
- :'max_snapshot_size' => :'Float',
80
- :'volume_quota' => :'Float',
81
- :'max_concurrent_snapshot_processing' => :'Float'
82
- }
83
- end
84
-
85
- # List of attributes with nullable: true
86
- def self.openapi_nullable
87
- Set.new([
88
- ])
89
- end
90
-
91
- # Initializes the object
92
- # @param [Hash] attributes Model attributes in the form of hash
93
- def initialize(attributes = {})
94
- if (!attributes.is_a?(Hash))
95
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::CreateOrganizationQuota` initialize method"
96
- end
97
-
98
- # check to see if the attribute exists and convert string to symbol for hash key
99
- acceptable_attribute_map = self.class.acceptable_attribute_map
100
- attributes = attributes.each_with_object({}) { |(k, v), h|
101
- if (!acceptable_attribute_map.key?(k.to_sym))
102
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::CreateOrganizationQuota`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
103
- end
104
- h[k.to_sym] = v
105
- }
106
-
107
- if attributes.key?(:'total_cpu_quota')
108
- self.total_cpu_quota = attributes[:'total_cpu_quota']
109
- end
110
-
111
- if attributes.key?(:'total_memory_quota')
112
- self.total_memory_quota = attributes[:'total_memory_quota']
113
- end
114
-
115
- if attributes.key?(:'total_disk_quota')
116
- self.total_disk_quota = attributes[:'total_disk_quota']
117
- end
118
-
119
- if attributes.key?(:'total_gpu_quota')
120
- self.total_gpu_quota = attributes[:'total_gpu_quota']
121
- end
122
-
123
- if attributes.key?(:'max_cpu_per_sandbox')
124
- self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
125
- end
126
-
127
- if attributes.key?(:'max_memory_per_sandbox')
128
- self.max_memory_per_sandbox = attributes[:'max_memory_per_sandbox']
129
- end
130
-
131
- if attributes.key?(:'max_disk_per_sandbox')
132
- self.max_disk_per_sandbox = attributes[:'max_disk_per_sandbox']
133
- end
134
-
135
- if attributes.key?(:'snapshot_quota')
136
- self.snapshot_quota = attributes[:'snapshot_quota']
137
- end
138
-
139
- if attributes.key?(:'max_snapshot_size')
140
- self.max_snapshot_size = attributes[:'max_snapshot_size']
141
- end
142
-
143
- if attributes.key?(:'volume_quota')
144
- self.volume_quota = attributes[:'volume_quota']
145
- end
146
-
147
- if attributes.key?(:'max_concurrent_snapshot_processing')
148
- self.max_concurrent_snapshot_processing = attributes[:'max_concurrent_snapshot_processing']
149
- end
150
- end
151
-
152
- # Show invalid properties with the reasons. Usually used together with valid?
153
- # @return Array for valid properties with the reasons
154
- def list_invalid_properties
155
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
156
- invalid_properties = Array.new
157
- invalid_properties
158
- end
159
-
160
- # Check to see if the all the properties in the model are valid
161
- # @return true if the model is valid
162
- def valid?
163
- warn '[DEPRECATED] the `valid?` method is obsolete'
164
- true
165
- end
166
-
167
- # Checks equality by comparing each attribute.
168
- # @param [Object] Object to be compared
169
- def ==(o)
170
- return true if self.equal?(o)
171
- self.class == o.class &&
172
- total_cpu_quota == o.total_cpu_quota &&
173
- total_memory_quota == o.total_memory_quota &&
174
- total_disk_quota == o.total_disk_quota &&
175
- total_gpu_quota == o.total_gpu_quota &&
176
- max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
177
- max_memory_per_sandbox == o.max_memory_per_sandbox &&
178
- max_disk_per_sandbox == o.max_disk_per_sandbox &&
179
- snapshot_quota == o.snapshot_quota &&
180
- max_snapshot_size == o.max_snapshot_size &&
181
- volume_quota == o.volume_quota &&
182
- max_concurrent_snapshot_processing == o.max_concurrent_snapshot_processing
183
- end
184
-
185
- # @see the `==` method
186
- # @param [Object] Object to be compared
187
- def eql?(o)
188
- self == o
189
- end
190
-
191
- # Calculates hash code according to all attributes.
192
- # @return [Integer] Hash code
193
- def hash
194
- [total_cpu_quota, total_memory_quota, total_disk_quota, total_gpu_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota, max_concurrent_snapshot_processing].hash
195
- end
196
-
197
- # Builds the object from hash
198
- # @param [Hash] attributes Model attributes in the form of hash
199
- # @return [Object] Returns the model itself
200
- def self.build_from_hash(attributes)
201
- return nil unless attributes.is_a?(Hash)
202
- attributes = attributes.transform_keys(&:to_sym)
203
- transformed_hash = {}
204
- openapi_types.each_pair do |key, type|
205
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
206
- transformed_hash["#{key}"] = nil
207
- elsif type =~ /\AArray<(.*)>/i
208
- # check to ensure the input is an array given that the attribute
209
- # is documented as an array but the input is not
210
- if attributes[attribute_map[key]].is_a?(Array)
211
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
212
- end
213
- elsif !attributes[attribute_map[key]].nil?
214
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
215
- end
216
- end
217
- new(transformed_hash)
218
- end
219
-
220
- # Returns the object in the form of hash
221
- # @return [Hash] Returns the object in the form of hash
222
- def to_hash
223
- hash = {}
224
- self.class.attribute_map.each_pair do |attr, param|
225
- value = self.send(attr)
226
- if value.nil?
227
- is_nullable = self.class.openapi_nullable.include?(attr)
228
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
229
- end
230
-
231
- hash[param] = _to_hash(value)
232
- end
233
- hash
234
- end
235
-
236
- end
237
-
238
- end