daytona_api_client 0.144.0 → 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.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +101 -0
  4. data/daytona_api_client.gemspec +2 -2
  5. data/lib/daytona_api_client/api/audit_api.rb +66 -18
  6. data/lib/daytona_api_client/api/docker_registry_api.rb +0 -3
  7. data/lib/daytona_api_client/api/health_api.rb +1 -52
  8. data/lib/daytona_api_client/api/organizations_api.rb +121 -973
  9. data/lib/daytona_api_client/api/preview_api.rb +5 -74
  10. data/lib/daytona_api_client/api/runners_api.rb +20 -407
  11. data/lib/daytona_api_client/api/sandbox_api.rb +189 -961
  12. data/lib/daytona_api_client/api/snapshots_api.rb +0 -66
  13. data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
  14. data/lib/daytona_api_client/api/workspace_api.rb +3 -3
  15. data/lib/daytona_api_client/models/build_info.rb +4 -31
  16. data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -166
  17. data/lib/daytona_api_client/models/create_organization.rb +4 -31
  18. data/lib/daytona_api_client/models/create_runner.rb +315 -31
  19. data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
  20. data/lib/daytona_api_client/models/create_snapshot.rb +4 -14
  21. data/lib/daytona_api_client/models/create_user.rb +1 -10
  22. data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
  23. data/lib/daytona_api_client/models/organization.rb +85 -119
  24. data/lib/daytona_api_client/models/organization_suspension.rb +5 -7
  25. data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
  26. data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
  27. data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -4
  28. data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
  29. data/lib/daytona_api_client/models/region.rb +4 -178
  30. data/lib/daytona_api_client/models/runner.rb +117 -79
  31. data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -0
  32. data/lib/daytona_api_client/models/sandbox.rb +14 -51
  33. data/lib/daytona_api_client/models/sandbox_state.rb +1 -2
  34. data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
  35. data/lib/daytona_api_client/models/snapshot_dto.rb +4 -36
  36. data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
  37. data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -31
  38. data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
  39. data/lib/daytona_api_client/models/update_organization_quota.rb +41 -77
  40. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +6 -26
  41. data/lib/daytona_api_client/models/workspace.rb +35 -45
  42. data/lib/daytona_api_client/version.rb +1 -1
  43. data/lib/daytona_api_client.rb +1 -40
  44. data/project.json +8 -56
  45. metadata +7 -53
  46. data/.gitignore +0 -39
  47. data/.openapi-generator/FILES +0 -204
  48. data/.openapi-generator/VERSION +0 -1
  49. data/.openapi-generator-ignore +0 -31
  50. data/.rspec +0 -2
  51. data/.rubocop.yml +0 -148
  52. data/fix-gemspec.sh +0 -11
  53. data/lib/daytona_api_client/api/admin_api.rb +0 -386
  54. data/lib/daytona_api_client/api/jobs_api.rb +0 -299
  55. data/lib/daytona_api_client/api/regions_api.rb +0 -77
  56. data/lib/daytona_api_client/models/admin_create_runner.rb +0 -385
  57. data/lib/daytona_api_client/models/create_region.rb +0 -269
  58. data/lib/daytona_api_client/models/create_region_response.rb +0 -280
  59. data/lib/daytona_api_client/models/create_runner_response.rb +0 -263
  60. data/lib/daytona_api_client/models/job_status.rb +0 -42
  61. data/lib/daytona_api_client/models/job_type.rb +0 -50
  62. data/lib/daytona_api_client/models/log_entry.rb +0 -405
  63. data/lib/daytona_api_client/models/metric_data_point.rb +0 -263
  64. data/lib/daytona_api_client/models/metric_series.rb +0 -265
  65. data/lib/daytona_api_client/models/metrics_response.rb +0 -238
  66. data/lib/daytona_api_client/models/otel_config.rb +0 -249
  67. data/lib/daytona_api_client/models/paginated_logs.rb +0 -319
  68. data/lib/daytona_api_client/models/paginated_traces.rb +0 -319
  69. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -238
  70. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
  71. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
  72. data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -236
  73. data/lib/daytona_api_client/models/region_quota.rb +0 -339
  74. data/lib/daytona_api_client/models/region_type.rb +0 -41
  75. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
  76. data/lib/daytona_api_client/models/resize_sandbox.rb +0 -296
  77. data/lib/daytona_api_client/models/runner_full.rb +0 -779
  78. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -533
  79. data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -276
  80. data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -317
  81. data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -263
  82. data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -236
  83. data/lib/daytona_api_client/models/trace_span.rb +0 -403
  84. data/lib/daytona_api_client/models/trace_summary.rb +0 -381
  85. data/lib/daytona_api_client/models/update_job_status.rb +0 -278
  86. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
  87. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
  88. data/lib/daytona_api_client/models/update_region.rb +0 -242
  89. data/lib/daytona_api_client/models/url.rb +0 -236
  90. data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
@@ -21,15 +21,11 @@ module DaytonaApiClient
21
21
  # The mount path for the volume
22
22
  attr_accessor :mount_path
23
23
 
24
- # Optional subpath within the volume to mount. When specified, only this S3 prefix will be accessible. When omitted, the entire volume is mounted.
25
- attr_accessor :subpath
26
-
27
24
  # Attribute mapping from ruby-style variable name to JSON key.
28
25
  def self.attribute_map
29
26
  {
30
27
  :'volume_id' => :'volumeId',
31
- :'mount_path' => :'mountPath',
32
- :'subpath' => :'subpath'
28
+ :'mount_path' => :'mountPath'
33
29
  }
34
30
  end
35
31
 
@@ -47,8 +43,7 @@ module DaytonaApiClient
47
43
  def self.openapi_types
48
44
  {
49
45
  :'volume_id' => :'String',
50
- :'mount_path' => :'String',
51
- :'subpath' => :'String'
46
+ :'mount_path' => :'String'
52
47
  }
53
48
  end
54
49
 
@@ -85,10 +80,6 @@ module DaytonaApiClient
85
80
  else
86
81
  self.mount_path = nil
87
82
  end
88
-
89
- if attributes.key?(:'subpath')
90
- self.subpath = attributes[:'subpath']
91
- end
92
83
  end
93
84
 
94
85
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -142,8 +133,7 @@ module DaytonaApiClient
142
133
  return true if self.equal?(o)
143
134
  self.class == o.class &&
144
135
  volume_id == o.volume_id &&
145
- mount_path == o.mount_path &&
146
- subpath == o.subpath
136
+ mount_path == o.mount_path
147
137
  end
148
138
 
149
139
  # @see the `==` method
@@ -155,7 +145,7 @@ module DaytonaApiClient
155
145
  # Calculates hash code according to all attributes.
156
146
  # @return [Integer] Hash code
157
147
  def hash
158
- [volume_id, mount_path, subpath].hash
148
+ [volume_id, mount_path].hash
159
149
  end
160
150
 
161
151
  # Builds the object from hash
@@ -50,15 +50,6 @@ module DaytonaApiClient
50
50
  # Build information for the snapshot
51
51
  attr_accessor :build_info
52
52
 
53
- # IDs of regions where the snapshot is available
54
- attr_accessor :region_ids
55
-
56
- # The initial runner ID of the snapshot
57
- attr_accessor :initial_runner_id
58
-
59
- # The snapshot reference
60
- attr_accessor :ref
61
-
62
53
  class EnumAttributeValidator
63
54
  attr_reader :datatype
64
55
  attr_reader :allowable_values
@@ -100,10 +91,7 @@ module DaytonaApiClient
100
91
  :'created_at' => :'createdAt',
101
92
  :'updated_at' => :'updatedAt',
102
93
  :'last_used_at' => :'lastUsedAt',
103
- :'build_info' => :'buildInfo',
104
- :'region_ids' => :'regionIds',
105
- :'initial_runner_id' => :'initialRunnerId',
106
- :'ref' => :'ref'
94
+ :'build_info' => :'buildInfo'
107
95
  }
108
96
  end
109
97
 
@@ -136,10 +124,7 @@ module DaytonaApiClient
136
124
  :'created_at' => :'Time',
137
125
  :'updated_at' => :'Time',
138
126
  :'last_used_at' => :'Time',
139
- :'build_info' => :'BuildInfo',
140
- :'region_ids' => :'Array<String>',
141
- :'initial_runner_id' => :'String',
142
- :'ref' => :'String'
127
+ :'build_info' => :'BuildInfo'
143
128
  }
144
129
  end
145
130
 
@@ -266,20 +251,6 @@ module DaytonaApiClient
266
251
  if attributes.key?(:'build_info')
267
252
  self.build_info = attributes[:'build_info']
268
253
  end
269
-
270
- if attributes.key?(:'region_ids')
271
- if (value = attributes[:'region_ids']).is_a?(Array)
272
- self.region_ids = value
273
- end
274
- end
275
-
276
- if attributes.key?(:'initial_runner_id')
277
- self.initial_runner_id = attributes[:'initial_runner_id']
278
- end
279
-
280
- if attributes.key?(:'ref')
281
- self.ref = attributes[:'ref']
282
- end
283
254
  end
284
255
 
285
256
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -468,10 +439,7 @@ module DaytonaApiClient
468
439
  created_at == o.created_at &&
469
440
  updated_at == o.updated_at &&
470
441
  last_used_at == o.last_used_at &&
471
- build_info == o.build_info &&
472
- region_ids == o.region_ids &&
473
- initial_runner_id == o.initial_runner_id &&
474
- ref == o.ref
442
+ build_info == o.build_info
475
443
  end
476
444
 
477
445
  # @see the `==` method
@@ -483,7 +451,7 @@ module DaytonaApiClient
483
451
  # Calculates hash code according to all attributes.
484
452
  # @return [Integer] Hash code
485
453
  def hash
486
- [id, organization_id, general, name, image_name, state, size, entrypoint, cpu, gpu, mem, disk, error_reason, created_at, updated_at, last_used_at, build_info, region_ids, initial_runner_id, ref].hash
454
+ [id, organization_id, general, name, image_name, state, size, entrypoint, cpu, gpu, mem, disk, error_reason, created_at, updated_at, last_used_at, build_info].hash
487
455
  end
488
456
 
489
457
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module DaytonaApiClient
17
17
  class SnapshotState
18
+ BUILD_PENDING = "build_pending".freeze
18
19
  BUILDING = "building".freeze
19
20
  PENDING = "pending".freeze
20
21
  PULLING = "pulling".freeze
22
+ PENDING_VALIDATION = "pending_validation".freeze
23
+ VALIDATING = "validating".freeze
21
24
  ACTIVE = "active".freeze
22
25
  INACTIVE = "inactive".freeze
23
26
  ERROR = "error".freeze
@@ -25,7 +28,7 @@ module DaytonaApiClient
25
28
  REMOVING = "removing".freeze
26
29
 
27
30
  def self.all_vars
28
- @all_vars ||= [BUILDING, PENDING, PULLING, ACTIVE, INACTIVE, ERROR, BUILD_FAILED, REMOVING].freeze
31
+ @all_vars ||= [BUILD_PENDING, BUILDING, PENDING, PULLING, PENDING_VALIDATION, VALIDATING, ACTIVE, INACTIVE, ERROR, BUILD_FAILED, REMOVING].freeze
29
32
  end
30
33
 
31
34
  # Builds the enum from string
@@ -33,9 +33,6 @@ module DaytonaApiClient
33
33
  # When the SSH access was last updated
34
34
  attr_accessor :updated_at
35
35
 
36
- # SSH command to connect to the sandbox
37
- attr_accessor :ssh_command
38
-
39
36
  # Attribute mapping from ruby-style variable name to JSON key.
40
37
  def self.attribute_map
41
38
  {
@@ -44,8 +41,7 @@ module DaytonaApiClient
44
41
  :'token' => :'token',
45
42
  :'expires_at' => :'expiresAt',
46
43
  :'created_at' => :'createdAt',
47
- :'updated_at' => :'updatedAt',
48
- :'ssh_command' => :'sshCommand'
44
+ :'updated_at' => :'updatedAt'
49
45
  }
50
46
  end
51
47
 
@@ -67,8 +63,7 @@ module DaytonaApiClient
67
63
  :'token' => :'String',
68
64
  :'expires_at' => :'Time',
69
65
  :'created_at' => :'Time',
70
- :'updated_at' => :'Time',
71
- :'ssh_command' => :'String'
66
+ :'updated_at' => :'Time'
72
67
  }
73
68
  end
74
69
 
@@ -129,12 +124,6 @@ module DaytonaApiClient
129
124
  else
130
125
  self.updated_at = nil
131
126
  end
132
-
133
- if attributes.key?(:'ssh_command')
134
- self.ssh_command = attributes[:'ssh_command']
135
- else
136
- self.ssh_command = nil
137
- end
138
127
  end
139
128
 
140
129
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -166,10 +155,6 @@ module DaytonaApiClient
166
155
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
167
156
  end
168
157
 
169
- if @ssh_command.nil?
170
- invalid_properties.push('invalid value for "ssh_command", ssh_command cannot be nil.')
171
- end
172
-
173
158
  invalid_properties
174
159
  end
175
160
 
@@ -183,7 +168,6 @@ module DaytonaApiClient
183
168
  return false if @expires_at.nil?
184
169
  return false if @created_at.nil?
185
170
  return false if @updated_at.nil?
186
- return false if @ssh_command.nil?
187
171
  true
188
172
  end
189
173
 
@@ -247,16 +231,6 @@ module DaytonaApiClient
247
231
  @updated_at = updated_at
248
232
  end
249
233
 
250
- # Custom attribute writer method with validation
251
- # @param [Object] ssh_command Value to be assigned
252
- def ssh_command=(ssh_command)
253
- if ssh_command.nil?
254
- fail ArgumentError, 'ssh_command cannot be nil'
255
- end
256
-
257
- @ssh_command = ssh_command
258
- end
259
-
260
234
  # Checks equality by comparing each attribute.
261
235
  # @param [Object] Object to be compared
262
236
  def ==(o)
@@ -267,8 +241,7 @@ module DaytonaApiClient
267
241
  token == o.token &&
268
242
  expires_at == o.expires_at &&
269
243
  created_at == o.created_at &&
270
- updated_at == o.updated_at &&
271
- ssh_command == o.ssh_command
244
+ updated_at == o.updated_at
272
245
  end
273
246
 
274
247
  # @see the `==` method
@@ -280,7 +253,7 @@ module DaytonaApiClient
280
253
  # Calculates hash code according to all attributes.
281
254
  # @return [Integer] Hash code
282
255
  def hash
283
- [id, sandbox_id, token, expires_at, created_at, updated_at, ssh_command].hash
256
+ [id, sandbox_id, token, expires_at, created_at, updated_at].hash
284
257
  end
285
258
 
286
259
  # Builds the object from hash
@@ -21,11 +21,19 @@ module DaytonaApiClient
21
21
  # ID of the sandbox this SSH access is for
22
22
  attr_accessor :sandbox_id
23
23
 
24
+ # ID of the runner hosting the sandbox
25
+ attr_accessor :runner_id
26
+
27
+ # Domain of the runner hosting the sandbox
28
+ attr_accessor :runner_domain
29
+
24
30
  # Attribute mapping from ruby-style variable name to JSON key.
25
31
  def self.attribute_map
26
32
  {
27
33
  :'valid' => :'valid',
28
- :'sandbox_id' => :'sandboxId'
34
+ :'sandbox_id' => :'sandboxId',
35
+ :'runner_id' => :'runnerId',
36
+ :'runner_domain' => :'runnerDomain'
29
37
  }
30
38
  end
31
39
 
@@ -43,7 +51,9 @@ module DaytonaApiClient
43
51
  def self.openapi_types
44
52
  {
45
53
  :'valid' => :'Boolean',
46
- :'sandbox_id' => :'String'
54
+ :'sandbox_id' => :'String',
55
+ :'runner_id' => :'String',
56
+ :'runner_domain' => :'String'
47
57
  }
48
58
  end
49
59
 
@@ -80,6 +90,14 @@ module DaytonaApiClient
80
90
  else
81
91
  self.sandbox_id = nil
82
92
  end
93
+
94
+ if attributes.key?(:'runner_id')
95
+ self.runner_id = attributes[:'runner_id']
96
+ end
97
+
98
+ if attributes.key?(:'runner_domain')
99
+ self.runner_domain = attributes[:'runner_domain']
100
+ end
83
101
  end
84
102
 
85
103
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -133,7 +151,9 @@ module DaytonaApiClient
133
151
  return true if self.equal?(o)
134
152
  self.class == o.class &&
135
153
  valid == o.valid &&
136
- sandbox_id == o.sandbox_id
154
+ sandbox_id == o.sandbox_id &&
155
+ runner_id == o.runner_id &&
156
+ runner_domain == o.runner_domain
137
157
  end
138
158
 
139
159
  # @see the `==` method
@@ -145,7 +165,7 @@ module DaytonaApiClient
145
165
  # Calculates hash code according to all attributes.
146
166
  # @return [Integer] Hash code
147
167
  def hash
148
- [valid, sandbox_id].hash
168
+ [valid, sandbox_id, runner_id, runner_domain].hash
149
169
  end
150
170
 
151
171
  # Builds the object from hash
@@ -15,6 +15,12 @@ require 'time'
15
15
 
16
16
  module DaytonaApiClient
17
17
  class UpdateOrganizationQuota
18
+ attr_accessor :total_cpu_quota
19
+
20
+ attr_accessor :total_memory_quota
21
+
22
+ attr_accessor :total_disk_quota
23
+
18
24
  attr_accessor :max_cpu_per_sandbox
19
25
 
20
26
  attr_accessor :max_memory_per_sandbox
@@ -27,33 +33,18 @@ module DaytonaApiClient
27
33
 
28
34
  attr_accessor :volume_quota
29
35
 
30
- attr_accessor :authenticated_rate_limit
31
-
32
- attr_accessor :sandbox_create_rate_limit
33
-
34
- attr_accessor :sandbox_lifecycle_rate_limit
35
-
36
- attr_accessor :authenticated_rate_limit_ttl_seconds
37
-
38
- attr_accessor :sandbox_create_rate_limit_ttl_seconds
39
-
40
- attr_accessor :sandbox_lifecycle_rate_limit_ttl_seconds
41
-
42
36
  # Attribute mapping from ruby-style variable name to JSON key.
43
37
  def self.attribute_map
44
38
  {
39
+ :'total_cpu_quota' => :'totalCpuQuota',
40
+ :'total_memory_quota' => :'totalMemoryQuota',
41
+ :'total_disk_quota' => :'totalDiskQuota',
45
42
  :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
46
43
  :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
47
44
  :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
48
45
  :'snapshot_quota' => :'snapshotQuota',
49
46
  :'max_snapshot_size' => :'maxSnapshotSize',
50
- :'volume_quota' => :'volumeQuota',
51
- :'authenticated_rate_limit' => :'authenticatedRateLimit',
52
- :'sandbox_create_rate_limit' => :'sandboxCreateRateLimit',
53
- :'sandbox_lifecycle_rate_limit' => :'sandboxLifecycleRateLimit',
54
- :'authenticated_rate_limit_ttl_seconds' => :'authenticatedRateLimitTtlSeconds',
55
- :'sandbox_create_rate_limit_ttl_seconds' => :'sandboxCreateRateLimitTtlSeconds',
56
- :'sandbox_lifecycle_rate_limit_ttl_seconds' => :'sandboxLifecycleRateLimitTtlSeconds'
47
+ :'volume_quota' => :'volumeQuota'
57
48
  }
58
49
  end
59
50
 
@@ -70,36 +61,30 @@ module DaytonaApiClient
70
61
  # Attribute type mapping.
71
62
  def self.openapi_types
72
63
  {
64
+ :'total_cpu_quota' => :'Float',
65
+ :'total_memory_quota' => :'Float',
66
+ :'total_disk_quota' => :'Float',
73
67
  :'max_cpu_per_sandbox' => :'Float',
74
68
  :'max_memory_per_sandbox' => :'Float',
75
69
  :'max_disk_per_sandbox' => :'Float',
76
70
  :'snapshot_quota' => :'Float',
77
71
  :'max_snapshot_size' => :'Float',
78
- :'volume_quota' => :'Float',
79
- :'authenticated_rate_limit' => :'Float',
80
- :'sandbox_create_rate_limit' => :'Float',
81
- :'sandbox_lifecycle_rate_limit' => :'Float',
82
- :'authenticated_rate_limit_ttl_seconds' => :'Float',
83
- :'sandbox_create_rate_limit_ttl_seconds' => :'Float',
84
- :'sandbox_lifecycle_rate_limit_ttl_seconds' => :'Float'
72
+ :'volume_quota' => :'Float'
85
73
  }
86
74
  end
87
75
 
88
76
  # List of attributes with nullable: true
89
77
  def self.openapi_nullable
90
78
  Set.new([
79
+ :'total_cpu_quota',
80
+ :'total_memory_quota',
81
+ :'total_disk_quota',
91
82
  :'max_cpu_per_sandbox',
92
83
  :'max_memory_per_sandbox',
93
84
  :'max_disk_per_sandbox',
94
85
  :'snapshot_quota',
95
86
  :'max_snapshot_size',
96
- :'volume_quota',
97
- :'authenticated_rate_limit',
98
- :'sandbox_create_rate_limit',
99
- :'sandbox_lifecycle_rate_limit',
100
- :'authenticated_rate_limit_ttl_seconds',
101
- :'sandbox_create_rate_limit_ttl_seconds',
102
- :'sandbox_lifecycle_rate_limit_ttl_seconds'
87
+ :'volume_quota'
103
88
  ])
104
89
  end
105
90
 
@@ -119,6 +104,24 @@ module DaytonaApiClient
119
104
  h[k.to_sym] = v
120
105
  }
121
106
 
107
+ if attributes.key?(:'total_cpu_quota')
108
+ self.total_cpu_quota = attributes[:'total_cpu_quota']
109
+ else
110
+ self.total_cpu_quota = nil
111
+ end
112
+
113
+ if attributes.key?(:'total_memory_quota')
114
+ self.total_memory_quota = attributes[:'total_memory_quota']
115
+ else
116
+ self.total_memory_quota = nil
117
+ end
118
+
119
+ if attributes.key?(:'total_disk_quota')
120
+ self.total_disk_quota = attributes[:'total_disk_quota']
121
+ else
122
+ self.total_disk_quota = nil
123
+ end
124
+
122
125
  if attributes.key?(:'max_cpu_per_sandbox')
123
126
  self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
124
127
  else
@@ -154,42 +157,6 @@ module DaytonaApiClient
154
157
  else
155
158
  self.volume_quota = nil
156
159
  end
157
-
158
- if attributes.key?(:'authenticated_rate_limit')
159
- self.authenticated_rate_limit = attributes[:'authenticated_rate_limit']
160
- else
161
- self.authenticated_rate_limit = nil
162
- end
163
-
164
- if attributes.key?(:'sandbox_create_rate_limit')
165
- self.sandbox_create_rate_limit = attributes[:'sandbox_create_rate_limit']
166
- else
167
- self.sandbox_create_rate_limit = nil
168
- end
169
-
170
- if attributes.key?(:'sandbox_lifecycle_rate_limit')
171
- self.sandbox_lifecycle_rate_limit = attributes[:'sandbox_lifecycle_rate_limit']
172
- else
173
- self.sandbox_lifecycle_rate_limit = nil
174
- end
175
-
176
- if attributes.key?(:'authenticated_rate_limit_ttl_seconds')
177
- self.authenticated_rate_limit_ttl_seconds = attributes[:'authenticated_rate_limit_ttl_seconds']
178
- else
179
- self.authenticated_rate_limit_ttl_seconds = nil
180
- end
181
-
182
- if attributes.key?(:'sandbox_create_rate_limit_ttl_seconds')
183
- self.sandbox_create_rate_limit_ttl_seconds = attributes[:'sandbox_create_rate_limit_ttl_seconds']
184
- else
185
- self.sandbox_create_rate_limit_ttl_seconds = nil
186
- end
187
-
188
- if attributes.key?(:'sandbox_lifecycle_rate_limit_ttl_seconds')
189
- self.sandbox_lifecycle_rate_limit_ttl_seconds = attributes[:'sandbox_lifecycle_rate_limit_ttl_seconds']
190
- else
191
- self.sandbox_lifecycle_rate_limit_ttl_seconds = nil
192
- end
193
160
  end
194
161
 
195
162
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -212,18 +179,15 @@ module DaytonaApiClient
212
179
  def ==(o)
213
180
  return true if self.equal?(o)
214
181
  self.class == o.class &&
182
+ total_cpu_quota == o.total_cpu_quota &&
183
+ total_memory_quota == o.total_memory_quota &&
184
+ total_disk_quota == o.total_disk_quota &&
215
185
  max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
216
186
  max_memory_per_sandbox == o.max_memory_per_sandbox &&
217
187
  max_disk_per_sandbox == o.max_disk_per_sandbox &&
218
188
  snapshot_quota == o.snapshot_quota &&
219
189
  max_snapshot_size == o.max_snapshot_size &&
220
- volume_quota == o.volume_quota &&
221
- authenticated_rate_limit == o.authenticated_rate_limit &&
222
- sandbox_create_rate_limit == o.sandbox_create_rate_limit &&
223
- sandbox_lifecycle_rate_limit == o.sandbox_lifecycle_rate_limit &&
224
- authenticated_rate_limit_ttl_seconds == o.authenticated_rate_limit_ttl_seconds &&
225
- sandbox_create_rate_limit_ttl_seconds == o.sandbox_create_rate_limit_ttl_seconds &&
226
- sandbox_lifecycle_rate_limit_ttl_seconds == o.sandbox_lifecycle_rate_limit_ttl_seconds
190
+ volume_quota == o.volume_quota
227
191
  end
228
192
 
229
193
  # @see the `==` method
@@ -235,7 +199,7 @@ module DaytonaApiClient
235
199
  # Calculates hash code according to all attributes.
236
200
  # @return [Integer] Hash code
237
201
  def hash
238
- [max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota, authenticated_rate_limit, sandbox_create_rate_limit, sandbox_lifecycle_rate_limit, authenticated_rate_limit_ttl_seconds, sandbox_create_rate_limit_ttl_seconds, sandbox_lifecycle_rate_limit_ttl_seconds].hash
202
+ [total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota].hash
239
203
  end
240
204
 
241
205
  # Builds the object from hash
@@ -18,12 +18,6 @@ module DaytonaApiClient
18
18
  # The new state for the sandbox
19
19
  attr_accessor :state
20
20
 
21
- # Optional error message when reporting an error state
22
- attr_accessor :error_reason
23
-
24
- # Whether the sandbox is recoverable
25
- attr_accessor :recoverable
26
-
27
21
  class EnumAttributeValidator
28
22
  attr_reader :datatype
29
23
  attr_reader :allowable_values
@@ -49,9 +43,7 @@ module DaytonaApiClient
49
43
  # Attribute mapping from ruby-style variable name to JSON key.
50
44
  def self.attribute_map
51
45
  {
52
- :'state' => :'state',
53
- :'error_reason' => :'errorReason',
54
- :'recoverable' => :'recoverable'
46
+ :'state' => :'state'
55
47
  }
56
48
  end
57
49
 
@@ -68,9 +60,7 @@ module DaytonaApiClient
68
60
  # Attribute type mapping.
69
61
  def self.openapi_types
70
62
  {
71
- :'state' => :'String',
72
- :'error_reason' => :'String',
73
- :'recoverable' => :'Boolean'
63
+ :'state' => :'String'
74
64
  }
75
65
  end
76
66
 
@@ -101,14 +91,6 @@ module DaytonaApiClient
101
91
  else
102
92
  self.state = nil
103
93
  end
104
-
105
- if attributes.key?(:'error_reason')
106
- self.error_reason = attributes[:'error_reason']
107
- end
108
-
109
- if attributes.key?(:'recoverable')
110
- self.recoverable = attributes[:'recoverable']
111
- end
112
94
  end
113
95
 
114
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -128,7 +110,7 @@ module DaytonaApiClient
128
110
  def valid?
129
111
  warn '[DEPRECATED] the `valid?` method is obsolete'
130
112
  return false if @state.nil?
131
- state_validator = EnumAttributeValidator.new('String', ["creating", "restoring", "destroyed", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving", "resizing"])
113
+ state_validator = EnumAttributeValidator.new('String', ["creating", "restoring", "destroyed", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving"])
132
114
  return false unless state_validator.valid?(@state)
133
115
  true
134
116
  end
@@ -136,7 +118,7 @@ module DaytonaApiClient
136
118
  # Custom attribute writer method checking allowed values (enum).
137
119
  # @param [Object] state Object to be assigned
138
120
  def state=(state)
139
- validator = EnumAttributeValidator.new('String', ["creating", "restoring", "destroyed", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving", "resizing"])
121
+ validator = EnumAttributeValidator.new('String', ["creating", "restoring", "destroyed", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving"])
140
122
  unless validator.valid?(state)
141
123
  fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}."
142
124
  end
@@ -148,9 +130,7 @@ module DaytonaApiClient
148
130
  def ==(o)
149
131
  return true if self.equal?(o)
150
132
  self.class == o.class &&
151
- state == o.state &&
152
- error_reason == o.error_reason &&
153
- recoverable == o.recoverable
133
+ state == o.state
154
134
  end
155
135
 
156
136
  # @see the `==` method
@@ -162,7 +142,7 @@ module DaytonaApiClient
162
142
  # Calculates hash code according to all attributes.
163
143
  # @return [Integer] Hash code
164
144
  def hash
165
- [state, error_reason, recoverable].hash
145
+ [state].hash
166
146
  end
167
147
 
168
148
  # Builds the object from hash