daytona_api_client 0.216.0 → 0.216.1
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/.openapi-generator/FILES +15 -16
- data/lib/daytona_api_client/api/organizations_api.rb +260 -484
- data/lib/daytona_api_client/api/sandbox_api.rb +14 -163
- data/lib/daytona_api_client/api/users_api.rb +82 -90
- data/lib/daytona_api_client/models/account_provider.rb +48 -19
- data/lib/daytona_api_client/models/api_key_list.rb +14 -4
- data/lib/daytona_api_client/models/create_runner.rb +37 -4
- data/lib/daytona_api_client/models/create_runner_sandbox_class.rb +42 -0
- data/lib/daytona_api_client/models/daytona_configuration.rb +45 -1
- data/lib/daytona_api_client/models/{organization_preview_warning.rb → generate_workos_admin_portal_link.rb} +42 -20
- data/lib/daytona_api_client/models/{send_webhook_dto.rb → gpu_capacity.rb} +77 -43
- data/lib/daytona_api_client/models/{organization_sso_enabled.rb → gpu_capacity_response.rb} +48 -20
- data/lib/daytona_api_client/models/oidc_config.rb +65 -4
- data/lib/daytona_api_client/models/organization.rb +38 -1
- data/lib/daytona_api_client/models/sandbox_created_webhook.rb +349 -0
- data/lib/daytona_api_client/models/{organization_sandbox_default_limited_network_egress.rb → sandbox_identity.rb} +47 -20
- data/lib/daytona_api_client/models/sandbox_state_updated_webhook.rb +349 -0
- data/lib/daytona_api_client/models/snapshot_created_webhook.rb +349 -0
- data/lib/daytona_api_client/models/{create_user.rb → snapshot_removed_webhook.rb} +119 -71
- data/lib/daytona_api_client/models/snapshot_state_updated_webhook.rb +376 -0
- data/lib/daytona_api_client/models/user.rb +11 -1
- data/lib/daytona_api_client/models/volume_created_webhook.rb +349 -0
- data/lib/daytona_api_client/models/volume_state_updated_webhook.rb +376 -0
- data/lib/daytona_api_client/models/workos_admin_portal_intent.rb +41 -0
- data/lib/daytona_api_client/models/{set_snapshot_general_status_dto.rb → workos_admin_portal_link.rb} +20 -20
- data/lib/daytona_api_client/models/{admin_create_runner.rb → workos_sso_connection.rb} +123 -120
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +15 -16
- metadata +16 -17
- data/lib/daytona_api_client/api/admin_api.rb +0 -1618
- data/lib/daytona_api_client/models/admin_create_organization.rb +0 -219
- data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +0 -147
- data/lib/daytona_api_client/models/create_organization_quota.rb +0 -238
- data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -386
- data/lib/daytona_api_client/models/organization_suspension.rb +0 -221
- data/lib/daytona_api_client/models/paginated_sandboxes_deprecated.rb +0 -244
- data/lib/daytona_api_client/models/update_organization_quota.rb +0 -333
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -313
|
@@ -0,0 +1,349 @@
|
|
|
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 SandboxCreatedWebhook < ApiModelBase
|
|
18
|
+
# Event type identifier
|
|
19
|
+
attr_accessor :event
|
|
20
|
+
|
|
21
|
+
# Timestamp when the event occurred
|
|
22
|
+
attr_accessor :timestamp
|
|
23
|
+
|
|
24
|
+
# Sandbox ID
|
|
25
|
+
attr_accessor :id
|
|
26
|
+
|
|
27
|
+
# Organization ID
|
|
28
|
+
attr_accessor :organization_id
|
|
29
|
+
|
|
30
|
+
# Sandbox state
|
|
31
|
+
attr_accessor :state
|
|
32
|
+
|
|
33
|
+
# Sandbox class
|
|
34
|
+
attr_accessor :sandbox_class
|
|
35
|
+
|
|
36
|
+
# When the sandbox was created
|
|
37
|
+
attr_accessor :created_at
|
|
38
|
+
|
|
39
|
+
class EnumAttributeValidator
|
|
40
|
+
attr_reader :datatype
|
|
41
|
+
attr_reader :allowable_values
|
|
42
|
+
|
|
43
|
+
def initialize(datatype, allowable_values)
|
|
44
|
+
@allowable_values = allowable_values.map do |value|
|
|
45
|
+
case datatype.to_s
|
|
46
|
+
when /Integer/i
|
|
47
|
+
value.to_i
|
|
48
|
+
when /Float/i
|
|
49
|
+
value.to_f
|
|
50
|
+
else
|
|
51
|
+
value
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def valid?(value)
|
|
57
|
+
!value || allowable_values.include?(value)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
62
|
+
def self.attribute_map
|
|
63
|
+
{
|
|
64
|
+
:'event' => :'event',
|
|
65
|
+
:'timestamp' => :'timestamp',
|
|
66
|
+
:'id' => :'id',
|
|
67
|
+
:'organization_id' => :'organizationId',
|
|
68
|
+
:'state' => :'state',
|
|
69
|
+
:'sandbox_class' => :'sandboxClass',
|
|
70
|
+
:'created_at' => :'createdAt'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Returns attribute mapping this model knows about
|
|
75
|
+
def self.acceptable_attribute_map
|
|
76
|
+
attribute_map
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Returns all the JSON keys this model knows about
|
|
80
|
+
def self.acceptable_attributes
|
|
81
|
+
acceptable_attribute_map.values
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Attribute type mapping.
|
|
85
|
+
def self.openapi_types
|
|
86
|
+
{
|
|
87
|
+
:'event' => :'WebhookEvent',
|
|
88
|
+
:'timestamp' => :'Time',
|
|
89
|
+
:'id' => :'String',
|
|
90
|
+
:'organization_id' => :'String',
|
|
91
|
+
:'state' => :'SandboxState',
|
|
92
|
+
:'sandbox_class' => :'SandboxClass',
|
|
93
|
+
:'created_at' => :'Time'
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# List of attributes with nullable: true
|
|
98
|
+
def self.openapi_nullable
|
|
99
|
+
Set.new([
|
|
100
|
+
])
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Initializes the object
|
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
|
+
def initialize(attributes = {})
|
|
106
|
+
if (!attributes.is_a?(Hash))
|
|
107
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::SandboxCreatedWebhook` initialize method"
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
111
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
112
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
113
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
114
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::SandboxCreatedWebhook`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
115
|
+
end
|
|
116
|
+
h[k.to_sym] = v
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'event')
|
|
120
|
+
self.event = attributes[:'event']
|
|
121
|
+
else
|
|
122
|
+
self.event = nil
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'timestamp')
|
|
126
|
+
self.timestamp = attributes[:'timestamp']
|
|
127
|
+
else
|
|
128
|
+
self.timestamp = nil
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'id')
|
|
132
|
+
self.id = attributes[:'id']
|
|
133
|
+
else
|
|
134
|
+
self.id = nil
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'organization_id')
|
|
138
|
+
self.organization_id = attributes[:'organization_id']
|
|
139
|
+
else
|
|
140
|
+
self.organization_id = nil
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'state')
|
|
144
|
+
self.state = attributes[:'state']
|
|
145
|
+
else
|
|
146
|
+
self.state = nil
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'sandbox_class')
|
|
150
|
+
self.sandbox_class = attributes[:'sandbox_class']
|
|
151
|
+
else
|
|
152
|
+
self.sandbox_class = nil
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'created_at')
|
|
156
|
+
self.created_at = attributes[:'created_at']
|
|
157
|
+
else
|
|
158
|
+
self.created_at = nil
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
163
|
+
# @return Array for valid properties with the reasons
|
|
164
|
+
def list_invalid_properties
|
|
165
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
166
|
+
invalid_properties = Array.new
|
|
167
|
+
if @event.nil?
|
|
168
|
+
invalid_properties.push('invalid value for "event", event cannot be nil.')
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if @timestamp.nil?
|
|
172
|
+
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if @id.nil?
|
|
176
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if @organization_id.nil?
|
|
180
|
+
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if @state.nil?
|
|
184
|
+
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if @sandbox_class.nil?
|
|
188
|
+
invalid_properties.push('invalid value for "sandbox_class", sandbox_class cannot be nil.')
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if @created_at.nil?
|
|
192
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
invalid_properties
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Check to see if the all the properties in the model are valid
|
|
199
|
+
# @return true if the model is valid
|
|
200
|
+
def valid?
|
|
201
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
202
|
+
return false if @event.nil?
|
|
203
|
+
return false if @timestamp.nil?
|
|
204
|
+
return false if @id.nil?
|
|
205
|
+
return false if @organization_id.nil?
|
|
206
|
+
return false if @state.nil?
|
|
207
|
+
return false if @sandbox_class.nil?
|
|
208
|
+
return false if @created_at.nil?
|
|
209
|
+
true
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Custom attribute writer method with validation
|
|
213
|
+
# @param [Object] event Value to be assigned
|
|
214
|
+
def event=(event)
|
|
215
|
+
if event.nil?
|
|
216
|
+
fail ArgumentError, 'event cannot be nil'
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
@event = event
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Custom attribute writer method with validation
|
|
223
|
+
# @param [Object] timestamp Value to be assigned
|
|
224
|
+
def timestamp=(timestamp)
|
|
225
|
+
if timestamp.nil?
|
|
226
|
+
fail ArgumentError, 'timestamp cannot be nil'
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
@timestamp = timestamp
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Custom attribute writer method with validation
|
|
233
|
+
# @param [Object] id Value to be assigned
|
|
234
|
+
def id=(id)
|
|
235
|
+
if id.nil?
|
|
236
|
+
fail ArgumentError, 'id cannot be nil'
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
@id = id
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Custom attribute writer method with validation
|
|
243
|
+
# @param [Object] organization_id Value to be assigned
|
|
244
|
+
def organization_id=(organization_id)
|
|
245
|
+
if organization_id.nil?
|
|
246
|
+
fail ArgumentError, 'organization_id cannot be nil'
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
@organization_id = organization_id
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Custom attribute writer method with validation
|
|
253
|
+
# @param [Object] state Value to be assigned
|
|
254
|
+
def state=(state)
|
|
255
|
+
if state.nil?
|
|
256
|
+
fail ArgumentError, 'state cannot be nil'
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
@state = state
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Custom attribute writer method with validation
|
|
263
|
+
# @param [Object] sandbox_class Value to be assigned
|
|
264
|
+
def sandbox_class=(sandbox_class)
|
|
265
|
+
if sandbox_class.nil?
|
|
266
|
+
fail ArgumentError, 'sandbox_class cannot be nil'
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
@sandbox_class = sandbox_class
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Custom attribute writer method with validation
|
|
273
|
+
# @param [Object] created_at Value to be assigned
|
|
274
|
+
def created_at=(created_at)
|
|
275
|
+
if created_at.nil?
|
|
276
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
@created_at = created_at
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Checks equality by comparing each attribute.
|
|
283
|
+
# @param [Object] Object to be compared
|
|
284
|
+
def ==(o)
|
|
285
|
+
return true if self.equal?(o)
|
|
286
|
+
self.class == o.class &&
|
|
287
|
+
event == o.event &&
|
|
288
|
+
timestamp == o.timestamp &&
|
|
289
|
+
id == o.id &&
|
|
290
|
+
organization_id == o.organization_id &&
|
|
291
|
+
state == o.state &&
|
|
292
|
+
sandbox_class == o.sandbox_class &&
|
|
293
|
+
created_at == o.created_at
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# @see the `==` method
|
|
297
|
+
# @param [Object] Object to be compared
|
|
298
|
+
def eql?(o)
|
|
299
|
+
self == o
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# Calculates hash code according to all attributes.
|
|
303
|
+
# @return [Integer] Hash code
|
|
304
|
+
def hash
|
|
305
|
+
[event, timestamp, id, organization_id, state, sandbox_class, created_at].hash
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Builds the object from hash
|
|
309
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
310
|
+
# @return [Object] Returns the model itself
|
|
311
|
+
def self.build_from_hash(attributes)
|
|
312
|
+
return nil unless attributes.is_a?(Hash)
|
|
313
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
314
|
+
transformed_hash = {}
|
|
315
|
+
openapi_types.each_pair do |key, type|
|
|
316
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
317
|
+
transformed_hash["#{key}"] = nil
|
|
318
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
319
|
+
# check to ensure the input is an array given that the attribute
|
|
320
|
+
# is documented as an array but the input is not
|
|
321
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
322
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
323
|
+
end
|
|
324
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
325
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
new(transformed_hash)
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# Returns the object in the form of hash
|
|
332
|
+
# @return [Hash] Returns the object in the form of hash
|
|
333
|
+
def to_hash
|
|
334
|
+
hash = {}
|
|
335
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
336
|
+
value = self.send(attr)
|
|
337
|
+
if value.nil?
|
|
338
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
339
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
hash[param] = _to_hash(value)
|
|
343
|
+
end
|
|
344
|
+
hash
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
end
|
|
@@ -14,14 +14,18 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
# Sandbox
|
|
19
|
-
attr_accessor :
|
|
17
|
+
class SandboxIdentity < ApiModelBase
|
|
18
|
+
# Sandbox ID
|
|
19
|
+
attr_accessor :sandbox_id
|
|
20
|
+
|
|
21
|
+
# Organization ID
|
|
22
|
+
attr_accessor :organization_id
|
|
20
23
|
|
|
21
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
25
|
def self.attribute_map
|
|
23
26
|
{
|
|
24
|
-
:'
|
|
27
|
+
:'sandbox_id' => :'sandboxId',
|
|
28
|
+
:'organization_id' => :'organizationId'
|
|
25
29
|
}
|
|
26
30
|
end
|
|
27
31
|
|
|
@@ -38,7 +42,8 @@ module DaytonaApiClient
|
|
|
38
42
|
# Attribute type mapping.
|
|
39
43
|
def self.openapi_types
|
|
40
44
|
{
|
|
41
|
-
:'
|
|
45
|
+
:'sandbox_id' => :'String',
|
|
46
|
+
:'organization_id' => :'String'
|
|
42
47
|
}
|
|
43
48
|
end
|
|
44
49
|
|
|
@@ -52,22 +57,28 @@ module DaytonaApiClient
|
|
|
52
57
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
58
|
def initialize(attributes = {})
|
|
54
59
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::SandboxIdentity` initialize method"
|
|
56
61
|
end
|
|
57
62
|
|
|
58
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
64
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
66
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::SandboxIdentity`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
68
|
end
|
|
64
69
|
h[k.to_sym] = v
|
|
65
70
|
}
|
|
66
71
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
self.
|
|
72
|
+
if attributes.key?(:'sandbox_id')
|
|
73
|
+
self.sandbox_id = attributes[:'sandbox_id']
|
|
74
|
+
else
|
|
75
|
+
self.sandbox_id = nil
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'organization_id')
|
|
79
|
+
self.organization_id = attributes[:'organization_id']
|
|
69
80
|
else
|
|
70
|
-
self.
|
|
81
|
+
self.organization_id = nil
|
|
71
82
|
end
|
|
72
83
|
end
|
|
73
84
|
|
|
@@ -76,8 +87,12 @@ module DaytonaApiClient
|
|
|
76
87
|
def list_invalid_properties
|
|
77
88
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
89
|
invalid_properties = Array.new
|
|
79
|
-
if @
|
|
80
|
-
invalid_properties.push('invalid value for "
|
|
90
|
+
if @sandbox_id.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "sandbox_id", sandbox_id cannot be nil.')
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if @organization_id.nil?
|
|
95
|
+
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
|
81
96
|
end
|
|
82
97
|
|
|
83
98
|
invalid_properties
|
|
@@ -87,18 +102,29 @@ module DaytonaApiClient
|
|
|
87
102
|
# @return true if the model is valid
|
|
88
103
|
def valid?
|
|
89
104
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
90
|
-
return false if @
|
|
105
|
+
return false if @sandbox_id.nil?
|
|
106
|
+
return false if @organization_id.nil?
|
|
91
107
|
true
|
|
92
108
|
end
|
|
93
109
|
|
|
94
110
|
# Custom attribute writer method with validation
|
|
95
|
-
# @param [Object]
|
|
96
|
-
def
|
|
97
|
-
if
|
|
98
|
-
fail ArgumentError, '
|
|
111
|
+
# @param [Object] sandbox_id Value to be assigned
|
|
112
|
+
def sandbox_id=(sandbox_id)
|
|
113
|
+
if sandbox_id.nil?
|
|
114
|
+
fail ArgumentError, 'sandbox_id cannot be nil'
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
@sandbox_id = sandbox_id
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Custom attribute writer method with validation
|
|
121
|
+
# @param [Object] organization_id Value to be assigned
|
|
122
|
+
def organization_id=(organization_id)
|
|
123
|
+
if organization_id.nil?
|
|
124
|
+
fail ArgumentError, 'organization_id cannot be nil'
|
|
99
125
|
end
|
|
100
126
|
|
|
101
|
-
@
|
|
127
|
+
@organization_id = organization_id
|
|
102
128
|
end
|
|
103
129
|
|
|
104
130
|
# Checks equality by comparing each attribute.
|
|
@@ -106,7 +132,8 @@ module DaytonaApiClient
|
|
|
106
132
|
def ==(o)
|
|
107
133
|
return true if self.equal?(o)
|
|
108
134
|
self.class == o.class &&
|
|
109
|
-
|
|
135
|
+
sandbox_id == o.sandbox_id &&
|
|
136
|
+
organization_id == o.organization_id
|
|
110
137
|
end
|
|
111
138
|
|
|
112
139
|
# @see the `==` method
|
|
@@ -118,7 +145,7 @@ module DaytonaApiClient
|
|
|
118
145
|
# Calculates hash code according to all attributes.
|
|
119
146
|
# @return [Integer] Hash code
|
|
120
147
|
def hash
|
|
121
|
-
[
|
|
148
|
+
[sandbox_id, organization_id].hash
|
|
122
149
|
end
|
|
123
150
|
|
|
124
151
|
# Builds the object from hash
|