daytona_api_client 0.126.0.pre.alpha.5 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +66 -18
- data/lib/daytona_api_client/api/organizations_api.rb +12 -219
- data/lib/daytona_api_client/api/preview_api.rb +5 -7
- data/lib/daytona_api_client/api/runners_api.rb +0 -55
- data/lib/daytona_api_client/api/sandbox_api.rb +222 -309
- data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
- data/lib/daytona_api_client/api/workspace_api.rb +3 -3
- data/lib/daytona_api_client/models/create_organization.rb +4 -31
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
- data/lib/daytona_api_client/models/create_user.rb +1 -10
- data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
- data/lib/daytona_api_client/models/organization.rb +85 -53
- data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
- data/lib/daytona_api_client/models/region.rb +4 -96
- data/lib/daytona_api_client/models/sandbox.rb +11 -38
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -41
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -14
- data/lib/daytona_api_client/models/workspace.rb +38 -38
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +1 -8
- data/project.json +7 -29
- metadata +1 -16
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -171
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -33
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/regions_api.rb +0 -83
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
- data/lib/daytona_api_client/models/region_quota.rb +0 -339
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
|
@@ -15,7 +15,17 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class OrganizationUsageOverview
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :total_cpu_quota
|
|
19
|
+
|
|
20
|
+
attr_accessor :total_memory_quota
|
|
21
|
+
|
|
22
|
+
attr_accessor :total_disk_quota
|
|
23
|
+
|
|
24
|
+
attr_accessor :current_cpu_usage
|
|
25
|
+
|
|
26
|
+
attr_accessor :current_memory_usage
|
|
27
|
+
|
|
28
|
+
attr_accessor :current_disk_usage
|
|
19
29
|
|
|
20
30
|
attr_accessor :total_snapshot_quota
|
|
21
31
|
|
|
@@ -28,7 +38,12 @@ module DaytonaApiClient
|
|
|
28
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
39
|
def self.attribute_map
|
|
30
40
|
{
|
|
31
|
-
:'
|
|
41
|
+
:'total_cpu_quota' => :'totalCpuQuota',
|
|
42
|
+
:'total_memory_quota' => :'totalMemoryQuota',
|
|
43
|
+
:'total_disk_quota' => :'totalDiskQuota',
|
|
44
|
+
:'current_cpu_usage' => :'currentCpuUsage',
|
|
45
|
+
:'current_memory_usage' => :'currentMemoryUsage',
|
|
46
|
+
:'current_disk_usage' => :'currentDiskUsage',
|
|
32
47
|
:'total_snapshot_quota' => :'totalSnapshotQuota',
|
|
33
48
|
:'current_snapshot_usage' => :'currentSnapshotUsage',
|
|
34
49
|
:'total_volume_quota' => :'totalVolumeQuota',
|
|
@@ -49,7 +64,12 @@ module DaytonaApiClient
|
|
|
49
64
|
# Attribute type mapping.
|
|
50
65
|
def self.openapi_types
|
|
51
66
|
{
|
|
52
|
-
:'
|
|
67
|
+
:'total_cpu_quota' => :'Float',
|
|
68
|
+
:'total_memory_quota' => :'Float',
|
|
69
|
+
:'total_disk_quota' => :'Float',
|
|
70
|
+
:'current_cpu_usage' => :'Float',
|
|
71
|
+
:'current_memory_usage' => :'Float',
|
|
72
|
+
:'current_disk_usage' => :'Float',
|
|
53
73
|
:'total_snapshot_quota' => :'Float',
|
|
54
74
|
:'current_snapshot_usage' => :'Float',
|
|
55
75
|
:'total_volume_quota' => :'Float',
|
|
@@ -79,12 +99,40 @@ module DaytonaApiClient
|
|
|
79
99
|
h[k.to_sym] = v
|
|
80
100
|
}
|
|
81
101
|
|
|
82
|
-
if attributes.key?(:'
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
102
|
+
if attributes.key?(:'total_cpu_quota')
|
|
103
|
+
self.total_cpu_quota = attributes[:'total_cpu_quota']
|
|
104
|
+
else
|
|
105
|
+
self.total_cpu_quota = nil
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'total_memory_quota')
|
|
109
|
+
self.total_memory_quota = attributes[:'total_memory_quota']
|
|
110
|
+
else
|
|
111
|
+
self.total_memory_quota = nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'total_disk_quota')
|
|
115
|
+
self.total_disk_quota = attributes[:'total_disk_quota']
|
|
116
|
+
else
|
|
117
|
+
self.total_disk_quota = nil
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'current_cpu_usage')
|
|
121
|
+
self.current_cpu_usage = attributes[:'current_cpu_usage']
|
|
122
|
+
else
|
|
123
|
+
self.current_cpu_usage = nil
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'current_memory_usage')
|
|
127
|
+
self.current_memory_usage = attributes[:'current_memory_usage']
|
|
128
|
+
else
|
|
129
|
+
self.current_memory_usage = nil
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'current_disk_usage')
|
|
133
|
+
self.current_disk_usage = attributes[:'current_disk_usage']
|
|
86
134
|
else
|
|
87
|
-
self.
|
|
135
|
+
self.current_disk_usage = nil
|
|
88
136
|
end
|
|
89
137
|
|
|
90
138
|
if attributes.key?(:'total_snapshot_quota')
|
|
@@ -117,8 +165,28 @@ module DaytonaApiClient
|
|
|
117
165
|
def list_invalid_properties
|
|
118
166
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
119
167
|
invalid_properties = Array.new
|
|
120
|
-
if @
|
|
121
|
-
invalid_properties.push('invalid value for "
|
|
168
|
+
if @total_cpu_quota.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "total_cpu_quota", total_cpu_quota cannot be nil.')
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if @total_memory_quota.nil?
|
|
173
|
+
invalid_properties.push('invalid value for "total_memory_quota", total_memory_quota cannot be nil.')
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if @total_disk_quota.nil?
|
|
177
|
+
invalid_properties.push('invalid value for "total_disk_quota", total_disk_quota cannot be nil.')
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if @current_cpu_usage.nil?
|
|
181
|
+
invalid_properties.push('invalid value for "current_cpu_usage", current_cpu_usage cannot be nil.')
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if @current_memory_usage.nil?
|
|
185
|
+
invalid_properties.push('invalid value for "current_memory_usage", current_memory_usage cannot be nil.')
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if @current_disk_usage.nil?
|
|
189
|
+
invalid_properties.push('invalid value for "current_disk_usage", current_disk_usage cannot be nil.')
|
|
122
190
|
end
|
|
123
191
|
|
|
124
192
|
if @total_snapshot_quota.nil?
|
|
@@ -144,7 +212,12 @@ module DaytonaApiClient
|
|
|
144
212
|
# @return true if the model is valid
|
|
145
213
|
def valid?
|
|
146
214
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
147
|
-
return false if @
|
|
215
|
+
return false if @total_cpu_quota.nil?
|
|
216
|
+
return false if @total_memory_quota.nil?
|
|
217
|
+
return false if @total_disk_quota.nil?
|
|
218
|
+
return false if @current_cpu_usage.nil?
|
|
219
|
+
return false if @current_memory_usage.nil?
|
|
220
|
+
return false if @current_disk_usage.nil?
|
|
148
221
|
return false if @total_snapshot_quota.nil?
|
|
149
222
|
return false if @current_snapshot_usage.nil?
|
|
150
223
|
return false if @total_volume_quota.nil?
|
|
@@ -153,13 +226,63 @@ module DaytonaApiClient
|
|
|
153
226
|
end
|
|
154
227
|
|
|
155
228
|
# Custom attribute writer method with validation
|
|
156
|
-
# @param [Object]
|
|
157
|
-
def
|
|
158
|
-
if
|
|
159
|
-
fail ArgumentError, '
|
|
229
|
+
# @param [Object] total_cpu_quota Value to be assigned
|
|
230
|
+
def total_cpu_quota=(total_cpu_quota)
|
|
231
|
+
if total_cpu_quota.nil?
|
|
232
|
+
fail ArgumentError, 'total_cpu_quota cannot be nil'
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
@total_cpu_quota = total_cpu_quota
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Custom attribute writer method with validation
|
|
239
|
+
# @param [Object] total_memory_quota Value to be assigned
|
|
240
|
+
def total_memory_quota=(total_memory_quota)
|
|
241
|
+
if total_memory_quota.nil?
|
|
242
|
+
fail ArgumentError, 'total_memory_quota cannot be nil'
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
@total_memory_quota = total_memory_quota
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# Custom attribute writer method with validation
|
|
249
|
+
# @param [Object] total_disk_quota Value to be assigned
|
|
250
|
+
def total_disk_quota=(total_disk_quota)
|
|
251
|
+
if total_disk_quota.nil?
|
|
252
|
+
fail ArgumentError, 'total_disk_quota cannot be nil'
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
@total_disk_quota = total_disk_quota
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Custom attribute writer method with validation
|
|
259
|
+
# @param [Object] current_cpu_usage Value to be assigned
|
|
260
|
+
def current_cpu_usage=(current_cpu_usage)
|
|
261
|
+
if current_cpu_usage.nil?
|
|
262
|
+
fail ArgumentError, 'current_cpu_usage cannot be nil'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
@current_cpu_usage = current_cpu_usage
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Custom attribute writer method with validation
|
|
269
|
+
# @param [Object] current_memory_usage Value to be assigned
|
|
270
|
+
def current_memory_usage=(current_memory_usage)
|
|
271
|
+
if current_memory_usage.nil?
|
|
272
|
+
fail ArgumentError, 'current_memory_usage cannot be nil'
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
@current_memory_usage = current_memory_usage
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Custom attribute writer method with validation
|
|
279
|
+
# @param [Object] current_disk_usage Value to be assigned
|
|
280
|
+
def current_disk_usage=(current_disk_usage)
|
|
281
|
+
if current_disk_usage.nil?
|
|
282
|
+
fail ArgumentError, 'current_disk_usage cannot be nil'
|
|
160
283
|
end
|
|
161
284
|
|
|
162
|
-
@
|
|
285
|
+
@current_disk_usage = current_disk_usage
|
|
163
286
|
end
|
|
164
287
|
|
|
165
288
|
# Custom attribute writer method with validation
|
|
@@ -207,7 +330,12 @@ module DaytonaApiClient
|
|
|
207
330
|
def ==(o)
|
|
208
331
|
return true if self.equal?(o)
|
|
209
332
|
self.class == o.class &&
|
|
210
|
-
|
|
333
|
+
total_cpu_quota == o.total_cpu_quota &&
|
|
334
|
+
total_memory_quota == o.total_memory_quota &&
|
|
335
|
+
total_disk_quota == o.total_disk_quota &&
|
|
336
|
+
current_cpu_usage == o.current_cpu_usage &&
|
|
337
|
+
current_memory_usage == o.current_memory_usage &&
|
|
338
|
+
current_disk_usage == o.current_disk_usage &&
|
|
211
339
|
total_snapshot_quota == o.total_snapshot_quota &&
|
|
212
340
|
current_snapshot_usage == o.current_snapshot_usage &&
|
|
213
341
|
total_volume_quota == o.total_volume_quota &&
|
|
@@ -223,7 +351,7 @@ module DaytonaApiClient
|
|
|
223
351
|
# Calculates hash code according to all attributes.
|
|
224
352
|
# @return [Integer] Hash code
|
|
225
353
|
def hash
|
|
226
|
-
[
|
|
354
|
+
[total_cpu_quota, total_memory_quota, total_disk_quota, current_cpu_usage, current_memory_usage, current_disk_usage, total_snapshot_quota, current_snapshot_usage, total_volume_quota, current_volume_usage].hash
|
|
227
355
|
end
|
|
228
356
|
|
|
229
357
|
# Builds the object from hash
|
|
@@ -23,17 +23,13 @@ module DaytonaApiClient
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :total_pages
|
|
25
25
|
|
|
26
|
-
# Token for next page in cursor-based pagination
|
|
27
|
-
attr_accessor :next_token
|
|
28
|
-
|
|
29
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
27
|
def self.attribute_map
|
|
31
28
|
{
|
|
32
29
|
:'items' => :'items',
|
|
33
30
|
:'total' => :'total',
|
|
34
31
|
:'page' => :'page',
|
|
35
|
-
:'total_pages' => :'totalPages'
|
|
36
|
-
:'next_token' => :'nextToken'
|
|
32
|
+
:'total_pages' => :'totalPages'
|
|
37
33
|
}
|
|
38
34
|
end
|
|
39
35
|
|
|
@@ -53,8 +49,7 @@ module DaytonaApiClient
|
|
|
53
49
|
:'items' => :'Array<AuditLog>',
|
|
54
50
|
:'total' => :'Float',
|
|
55
51
|
:'page' => :'Float',
|
|
56
|
-
:'total_pages' => :'Float'
|
|
57
|
-
:'next_token' => :'String'
|
|
52
|
+
:'total_pages' => :'Float'
|
|
58
53
|
}
|
|
59
54
|
end
|
|
60
55
|
|
|
@@ -105,10 +100,6 @@ module DaytonaApiClient
|
|
|
105
100
|
else
|
|
106
101
|
self.total_pages = nil
|
|
107
102
|
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'next_token')
|
|
110
|
-
self.next_token = attributes[:'next_token']
|
|
111
|
-
end
|
|
112
103
|
end
|
|
113
104
|
|
|
114
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -194,8 +185,7 @@ module DaytonaApiClient
|
|
|
194
185
|
items == o.items &&
|
|
195
186
|
total == o.total &&
|
|
196
187
|
page == o.page &&
|
|
197
|
-
total_pages == o.total_pages
|
|
198
|
-
next_token == o.next_token
|
|
188
|
+
total_pages == o.total_pages
|
|
199
189
|
end
|
|
200
190
|
|
|
201
191
|
# @see the `==` method
|
|
@@ -207,7 +197,7 @@ module DaytonaApiClient
|
|
|
207
197
|
# Calculates hash code according to all attributes.
|
|
208
198
|
# @return [Integer] Hash code
|
|
209
199
|
def hash
|
|
210
|
-
[items, total, page, total_pages
|
|
200
|
+
[items, total, page, total_pages].hash
|
|
211
201
|
end
|
|
212
202
|
|
|
213
203
|
# Builds the object from hash
|
|
@@ -15,21 +15,21 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class PortPreviewUrl
|
|
18
|
-
# ID of the sandbox
|
|
19
|
-
attr_accessor :sandbox_id
|
|
20
|
-
|
|
21
18
|
# Preview url
|
|
22
19
|
attr_accessor :url
|
|
23
20
|
|
|
24
21
|
# Access token
|
|
25
22
|
attr_accessor :token
|
|
26
23
|
|
|
24
|
+
# Legacy preview url using runner domain
|
|
25
|
+
attr_accessor :legacy_proxy_url
|
|
26
|
+
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
28
|
def self.attribute_map
|
|
29
29
|
{
|
|
30
|
-
:'sandbox_id' => :'sandboxId',
|
|
31
30
|
:'url' => :'url',
|
|
32
|
-
:'token' => :'token'
|
|
31
|
+
:'token' => :'token',
|
|
32
|
+
:'legacy_proxy_url' => :'legacyProxyUrl'
|
|
33
33
|
}
|
|
34
34
|
end
|
|
35
35
|
|
|
@@ -46,9 +46,9 @@ module DaytonaApiClient
|
|
|
46
46
|
# Attribute type mapping.
|
|
47
47
|
def self.openapi_types
|
|
48
48
|
{
|
|
49
|
-
:'sandbox_id' => :'String',
|
|
50
49
|
:'url' => :'String',
|
|
51
|
-
:'token' => :'String'
|
|
50
|
+
:'token' => :'String',
|
|
51
|
+
:'legacy_proxy_url' => :'String'
|
|
52
52
|
}
|
|
53
53
|
end
|
|
54
54
|
|
|
@@ -74,12 +74,6 @@ module DaytonaApiClient
|
|
|
74
74
|
h[k.to_sym] = v
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
if attributes.key?(:'sandbox_id')
|
|
78
|
-
self.sandbox_id = attributes[:'sandbox_id']
|
|
79
|
-
else
|
|
80
|
-
self.sandbox_id = nil
|
|
81
|
-
end
|
|
82
|
-
|
|
83
77
|
if attributes.key?(:'url')
|
|
84
78
|
self.url = attributes[:'url']
|
|
85
79
|
else
|
|
@@ -91,6 +85,10 @@ module DaytonaApiClient
|
|
|
91
85
|
else
|
|
92
86
|
self.token = nil
|
|
93
87
|
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'legacy_proxy_url')
|
|
90
|
+
self.legacy_proxy_url = attributes[:'legacy_proxy_url']
|
|
91
|
+
end
|
|
94
92
|
end
|
|
95
93
|
|
|
96
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -98,10 +96,6 @@ module DaytonaApiClient
|
|
|
98
96
|
def list_invalid_properties
|
|
99
97
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
100
98
|
invalid_properties = Array.new
|
|
101
|
-
if @sandbox_id.nil?
|
|
102
|
-
invalid_properties.push('invalid value for "sandbox_id", sandbox_id cannot be nil.')
|
|
103
|
-
end
|
|
104
|
-
|
|
105
99
|
if @url.nil?
|
|
106
100
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
107
101
|
end
|
|
@@ -117,22 +111,11 @@ module DaytonaApiClient
|
|
|
117
111
|
# @return true if the model is valid
|
|
118
112
|
def valid?
|
|
119
113
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
120
|
-
return false if @sandbox_id.nil?
|
|
121
114
|
return false if @url.nil?
|
|
122
115
|
return false if @token.nil?
|
|
123
116
|
true
|
|
124
117
|
end
|
|
125
118
|
|
|
126
|
-
# Custom attribute writer method with validation
|
|
127
|
-
# @param [Object] sandbox_id Value to be assigned
|
|
128
|
-
def sandbox_id=(sandbox_id)
|
|
129
|
-
if sandbox_id.nil?
|
|
130
|
-
fail ArgumentError, 'sandbox_id cannot be nil'
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
@sandbox_id = sandbox_id
|
|
134
|
-
end
|
|
135
|
-
|
|
136
119
|
# Custom attribute writer method with validation
|
|
137
120
|
# @param [Object] url Value to be assigned
|
|
138
121
|
def url=(url)
|
|
@@ -158,9 +141,9 @@ module DaytonaApiClient
|
|
|
158
141
|
def ==(o)
|
|
159
142
|
return true if self.equal?(o)
|
|
160
143
|
self.class == o.class &&
|
|
161
|
-
sandbox_id == o.sandbox_id &&
|
|
162
144
|
url == o.url &&
|
|
163
|
-
token == o.token
|
|
145
|
+
token == o.token &&
|
|
146
|
+
legacy_proxy_url == o.legacy_proxy_url
|
|
164
147
|
end
|
|
165
148
|
|
|
166
149
|
# @see the `==` method
|
|
@@ -172,7 +155,7 @@ module DaytonaApiClient
|
|
|
172
155
|
# Calculates hash code according to all attributes.
|
|
173
156
|
# @return [Integer] Hash code
|
|
174
157
|
def hash
|
|
175
|
-
[
|
|
158
|
+
[url, token, legacy_proxy_url].hash
|
|
176
159
|
end
|
|
177
160
|
|
|
178
161
|
# Builds the object from hash
|
|
@@ -15,29 +15,13 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class Region
|
|
18
|
-
# Region ID
|
|
19
|
-
attr_accessor :id
|
|
20
|
-
|
|
21
18
|
# Region name
|
|
22
19
|
attr_accessor :name
|
|
23
20
|
|
|
24
|
-
# Organization ID
|
|
25
|
-
attr_accessor :organization_id
|
|
26
|
-
|
|
27
|
-
# Creation timestamp
|
|
28
|
-
attr_accessor :created_at
|
|
29
|
-
|
|
30
|
-
# Last update timestamp
|
|
31
|
-
attr_accessor :updated_at
|
|
32
|
-
|
|
33
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
22
|
def self.attribute_map
|
|
35
23
|
{
|
|
36
|
-
:'
|
|
37
|
-
:'name' => :'name',
|
|
38
|
-
:'organization_id' => :'organizationId',
|
|
39
|
-
:'created_at' => :'createdAt',
|
|
40
|
-
:'updated_at' => :'updatedAt'
|
|
24
|
+
:'name' => :'name'
|
|
41
25
|
}
|
|
42
26
|
end
|
|
43
27
|
|
|
@@ -54,18 +38,13 @@ module DaytonaApiClient
|
|
|
54
38
|
# Attribute type mapping.
|
|
55
39
|
def self.openapi_types
|
|
56
40
|
{
|
|
57
|
-
:'
|
|
58
|
-
:'name' => :'String',
|
|
59
|
-
:'organization_id' => :'String',
|
|
60
|
-
:'created_at' => :'String',
|
|
61
|
-
:'updated_at' => :'String'
|
|
41
|
+
:'name' => :'String'
|
|
62
42
|
}
|
|
63
43
|
end
|
|
64
44
|
|
|
65
45
|
# List of attributes with nullable: true
|
|
66
46
|
def self.openapi_nullable
|
|
67
47
|
Set.new([
|
|
68
|
-
:'organization_id',
|
|
69
48
|
])
|
|
70
49
|
end
|
|
71
50
|
|
|
@@ -85,33 +64,11 @@ module DaytonaApiClient
|
|
|
85
64
|
h[k.to_sym] = v
|
|
86
65
|
}
|
|
87
66
|
|
|
88
|
-
if attributes.key?(:'id')
|
|
89
|
-
self.id = attributes[:'id']
|
|
90
|
-
else
|
|
91
|
-
self.id = nil
|
|
92
|
-
end
|
|
93
|
-
|
|
94
67
|
if attributes.key?(:'name')
|
|
95
68
|
self.name = attributes[:'name']
|
|
96
69
|
else
|
|
97
70
|
self.name = nil
|
|
98
71
|
end
|
|
99
|
-
|
|
100
|
-
if attributes.key?(:'organization_id')
|
|
101
|
-
self.organization_id = attributes[:'organization_id']
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
if attributes.key?(:'created_at')
|
|
105
|
-
self.created_at = attributes[:'created_at']
|
|
106
|
-
else
|
|
107
|
-
self.created_at = nil
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
if attributes.key?(:'updated_at')
|
|
111
|
-
self.updated_at = attributes[:'updated_at']
|
|
112
|
-
else
|
|
113
|
-
self.updated_at = nil
|
|
114
|
-
end
|
|
115
72
|
end
|
|
116
73
|
|
|
117
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -119,22 +76,10 @@ module DaytonaApiClient
|
|
|
119
76
|
def list_invalid_properties
|
|
120
77
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
121
78
|
invalid_properties = Array.new
|
|
122
|
-
if @id.nil?
|
|
123
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
124
|
-
end
|
|
125
|
-
|
|
126
79
|
if @name.nil?
|
|
127
80
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
128
81
|
end
|
|
129
82
|
|
|
130
|
-
if @created_at.nil?
|
|
131
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
if @updated_at.nil?
|
|
135
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
136
|
-
end
|
|
137
|
-
|
|
138
83
|
invalid_properties
|
|
139
84
|
end
|
|
140
85
|
|
|
@@ -142,23 +87,10 @@ module DaytonaApiClient
|
|
|
142
87
|
# @return true if the model is valid
|
|
143
88
|
def valid?
|
|
144
89
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
145
|
-
return false if @id.nil?
|
|
146
90
|
return false if @name.nil?
|
|
147
|
-
return false if @created_at.nil?
|
|
148
|
-
return false if @updated_at.nil?
|
|
149
91
|
true
|
|
150
92
|
end
|
|
151
93
|
|
|
152
|
-
# Custom attribute writer method with validation
|
|
153
|
-
# @param [Object] id Value to be assigned
|
|
154
|
-
def id=(id)
|
|
155
|
-
if id.nil?
|
|
156
|
-
fail ArgumentError, 'id cannot be nil'
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
@id = id
|
|
160
|
-
end
|
|
161
|
-
|
|
162
94
|
# Custom attribute writer method with validation
|
|
163
95
|
# @param [Object] name Value to be assigned
|
|
164
96
|
def name=(name)
|
|
@@ -169,36 +101,12 @@ module DaytonaApiClient
|
|
|
169
101
|
@name = name
|
|
170
102
|
end
|
|
171
103
|
|
|
172
|
-
# Custom attribute writer method with validation
|
|
173
|
-
# @param [Object] created_at Value to be assigned
|
|
174
|
-
def created_at=(created_at)
|
|
175
|
-
if created_at.nil?
|
|
176
|
-
fail ArgumentError, 'created_at cannot be nil'
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
@created_at = created_at
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
# Custom attribute writer method with validation
|
|
183
|
-
# @param [Object] updated_at Value to be assigned
|
|
184
|
-
def updated_at=(updated_at)
|
|
185
|
-
if updated_at.nil?
|
|
186
|
-
fail ArgumentError, 'updated_at cannot be nil'
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
@updated_at = updated_at
|
|
190
|
-
end
|
|
191
|
-
|
|
192
104
|
# Checks equality by comparing each attribute.
|
|
193
105
|
# @param [Object] Object to be compared
|
|
194
106
|
def ==(o)
|
|
195
107
|
return true if self.equal?(o)
|
|
196
108
|
self.class == o.class &&
|
|
197
|
-
|
|
198
|
-
name == o.name &&
|
|
199
|
-
organization_id == o.organization_id &&
|
|
200
|
-
created_at == o.created_at &&
|
|
201
|
-
updated_at == o.updated_at
|
|
109
|
+
name == o.name
|
|
202
110
|
end
|
|
203
111
|
|
|
204
112
|
# @see the `==` method
|
|
@@ -210,7 +118,7 @@ module DaytonaApiClient
|
|
|
210
118
|
# Calculates hash code according to all attributes.
|
|
211
119
|
# @return [Integer] Hash code
|
|
212
120
|
def hash
|
|
213
|
-
[
|
|
121
|
+
[name].hash
|
|
214
122
|
end
|
|
215
123
|
|
|
216
124
|
# Builds the object from hash
|