daytona_api_client 0.167.0.alpha.1 → 0.168.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c24aec27f6ad389602ce82aad99d81a23180a8bd2b2446babdb8a93af78c2562
4
- data.tar.gz: e8c099edc59c6b72165cfbd9beb3607e5fd2b2cc19737d9a27571e47548e59bc
3
+ metadata.gz: 768cff5f2f3fee243afec7ae3e5c31c0f96e035908b3eada847c5baf2f6a3544
4
+ data.tar.gz: 7e2991694e9b9d956cb87a91efc160318cc0eae5d9c4e907eb2efb666c3fef24
5
5
  SHA512:
6
- metadata.gz: b4b1100a086b14d95aadc9882962d8d43a69e94824e018ae04bc083f4ad4828a1d02109829b65799e0f8a824cd0d01f1f4f04e2129077ada8ff21f2e0bd54b0d
7
- data.tar.gz: 84e526306d2249782d9a6bfb7b4f19f0b0a493b440133ddbb208679ee922a14f06ba103dd737598b3b9c9b41fb44325bd24c4e0492684085a51689499d715611
6
+ metadata.gz: f4f8caf7eabc95046d651a9e648337b48f67d23285d64d33688ba875261d721950bcc3b77669d286db337712690433941c021c850f670783842eb67dac20e8f4
7
+ data.tar.gz: e281bd6624dbf6b97d98789c09fdff9c27c773c3bdc6b7c3bfc8e752f13fd5e39ccb3b72a6e4dc0f914c3cf411245a6fc08e7159414025c32ae5593f215dc657
@@ -1858,7 +1858,7 @@ module DaytonaApiClient
1858
1858
  fail ArgumentError, 'invalid value for "opts[:"max_disk_gi_b"]" when calling SandboxApi.list_sandboxes_paginated, must be greater than or equal to 1.'
1859
1859
  end
1860
1860
 
1861
- allowable_values = ["id", "name", "state", "snapshot", "region", "updatedAt", "createdAt"]
1861
+ allowable_values = ["id", "name", "state", "snapshot", "region", "updatedAt", "createdAt", "lastActivityAt"]
1862
1862
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
1863
1863
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
1864
1864
  end
@@ -25,6 +25,14 @@ module DaytonaApiClient
25
25
 
26
26
  attr_accessor :total_disk_quota
27
27
 
28
+ attr_accessor :max_cpu_per_sandbox
29
+
30
+ attr_accessor :max_memory_per_sandbox
31
+
32
+ attr_accessor :max_disk_per_sandbox
33
+
34
+ attr_accessor :max_disk_per_non_ephemeral_sandbox
35
+
28
36
  # Attribute mapping from ruby-style variable name to JSON key.
29
37
  def self.attribute_map
30
38
  {
@@ -32,7 +40,11 @@ module DaytonaApiClient
32
40
  :'region_id' => :'regionId',
33
41
  :'total_cpu_quota' => :'totalCpuQuota',
34
42
  :'total_memory_quota' => :'totalMemoryQuota',
35
- :'total_disk_quota' => :'totalDiskQuota'
43
+ :'total_disk_quota' => :'totalDiskQuota',
44
+ :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
45
+ :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
46
+ :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
47
+ :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox'
36
48
  }
37
49
  end
38
50
 
@@ -53,13 +65,21 @@ module DaytonaApiClient
53
65
  :'region_id' => :'String',
54
66
  :'total_cpu_quota' => :'Float',
55
67
  :'total_memory_quota' => :'Float',
56
- :'total_disk_quota' => :'Float'
68
+ :'total_disk_quota' => :'Float',
69
+ :'max_cpu_per_sandbox' => :'Float',
70
+ :'max_memory_per_sandbox' => :'Float',
71
+ :'max_disk_per_sandbox' => :'Float',
72
+ :'max_disk_per_non_ephemeral_sandbox' => :'Float'
57
73
  }
58
74
  end
59
75
 
60
76
  # List of attributes with nullable: true
61
77
  def self.openapi_nullable
62
78
  Set.new([
79
+ :'max_cpu_per_sandbox',
80
+ :'max_memory_per_sandbox',
81
+ :'max_disk_per_sandbox',
82
+ :'max_disk_per_non_ephemeral_sandbox'
63
83
  ])
64
84
  end
65
85
 
@@ -108,6 +128,30 @@ module DaytonaApiClient
108
128
  else
109
129
  self.total_disk_quota = nil
110
130
  end
131
+
132
+ if attributes.key?(:'max_cpu_per_sandbox')
133
+ self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
134
+ else
135
+ self.max_cpu_per_sandbox = nil
136
+ end
137
+
138
+ if attributes.key?(:'max_memory_per_sandbox')
139
+ self.max_memory_per_sandbox = attributes[:'max_memory_per_sandbox']
140
+ else
141
+ self.max_memory_per_sandbox = nil
142
+ end
143
+
144
+ if attributes.key?(:'max_disk_per_sandbox')
145
+ self.max_disk_per_sandbox = attributes[:'max_disk_per_sandbox']
146
+ else
147
+ self.max_disk_per_sandbox = nil
148
+ end
149
+
150
+ if attributes.key?(:'max_disk_per_non_ephemeral_sandbox')
151
+ self.max_disk_per_non_ephemeral_sandbox = attributes[:'max_disk_per_non_ephemeral_sandbox']
152
+ else
153
+ self.max_disk_per_non_ephemeral_sandbox = nil
154
+ end
111
155
  end
112
156
 
113
157
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -209,7 +253,11 @@ module DaytonaApiClient
209
253
  region_id == o.region_id &&
210
254
  total_cpu_quota == o.total_cpu_quota &&
211
255
  total_memory_quota == o.total_memory_quota &&
212
- total_disk_quota == o.total_disk_quota
256
+ total_disk_quota == o.total_disk_quota &&
257
+ max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
258
+ max_memory_per_sandbox == o.max_memory_per_sandbox &&
259
+ max_disk_per_sandbox == o.max_disk_per_sandbox &&
260
+ max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox
213
261
  end
214
262
 
215
263
  # @see the `==` method
@@ -221,7 +269,7 @@ module DaytonaApiClient
221
269
  # Calculates hash code according to all attributes.
222
270
  # @return [Integer] Hash code
223
271
  def hash
224
- [organization_id, region_id, total_cpu_quota, total_memory_quota, total_disk_quota].hash
272
+ [organization_id, region_id, total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox].hash
225
273
  end
226
274
 
227
275
  # Builds the object from hash
@@ -29,6 +29,14 @@ module DaytonaApiClient
29
29
 
30
30
  attr_accessor :current_disk_usage
31
31
 
32
+ attr_accessor :max_cpu_per_sandbox
33
+
34
+ attr_accessor :max_memory_per_sandbox
35
+
36
+ attr_accessor :max_disk_per_sandbox
37
+
38
+ attr_accessor :max_disk_per_non_ephemeral_sandbox
39
+
32
40
  # Attribute mapping from ruby-style variable name to JSON key.
33
41
  def self.attribute_map
34
42
  {
@@ -38,7 +46,11 @@ module DaytonaApiClient
38
46
  :'total_memory_quota' => :'totalMemoryQuota',
39
47
  :'current_memory_usage' => :'currentMemoryUsage',
40
48
  :'total_disk_quota' => :'totalDiskQuota',
41
- :'current_disk_usage' => :'currentDiskUsage'
49
+ :'current_disk_usage' => :'currentDiskUsage',
50
+ :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
51
+ :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
52
+ :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
53
+ :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox'
42
54
  }
43
55
  end
44
56
 
@@ -61,13 +73,21 @@ module DaytonaApiClient
61
73
  :'total_memory_quota' => :'Float',
62
74
  :'current_memory_usage' => :'Float',
63
75
  :'total_disk_quota' => :'Float',
64
- :'current_disk_usage' => :'Float'
76
+ :'current_disk_usage' => :'Float',
77
+ :'max_cpu_per_sandbox' => :'Float',
78
+ :'max_memory_per_sandbox' => :'Float',
79
+ :'max_disk_per_sandbox' => :'Float',
80
+ :'max_disk_per_non_ephemeral_sandbox' => :'Float'
65
81
  }
66
82
  end
67
83
 
68
84
  # List of attributes with nullable: true
69
85
  def self.openapi_nullable
70
86
  Set.new([
87
+ :'max_cpu_per_sandbox',
88
+ :'max_memory_per_sandbox',
89
+ :'max_disk_per_sandbox',
90
+ :'max_disk_per_non_ephemeral_sandbox'
71
91
  ])
72
92
  end
73
93
 
@@ -128,6 +148,30 @@ module DaytonaApiClient
128
148
  else
129
149
  self.current_disk_usage = nil
130
150
  end
151
+
152
+ if attributes.key?(:'max_cpu_per_sandbox')
153
+ self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
154
+ else
155
+ self.max_cpu_per_sandbox = nil
156
+ end
157
+
158
+ if attributes.key?(:'max_memory_per_sandbox')
159
+ self.max_memory_per_sandbox = attributes[:'max_memory_per_sandbox']
160
+ else
161
+ self.max_memory_per_sandbox = nil
162
+ end
163
+
164
+ if attributes.key?(:'max_disk_per_sandbox')
165
+ self.max_disk_per_sandbox = attributes[:'max_disk_per_sandbox']
166
+ else
167
+ self.max_disk_per_sandbox = nil
168
+ end
169
+
170
+ if attributes.key?(:'max_disk_per_non_ephemeral_sandbox')
171
+ self.max_disk_per_non_ephemeral_sandbox = attributes[:'max_disk_per_non_ephemeral_sandbox']
172
+ else
173
+ self.max_disk_per_non_ephemeral_sandbox = nil
174
+ end
131
175
  end
132
176
 
133
177
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -261,7 +305,11 @@ module DaytonaApiClient
261
305
  total_memory_quota == o.total_memory_quota &&
262
306
  current_memory_usage == o.current_memory_usage &&
263
307
  total_disk_quota == o.total_disk_quota &&
264
- current_disk_usage == o.current_disk_usage
308
+ current_disk_usage == o.current_disk_usage &&
309
+ max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
310
+ max_memory_per_sandbox == o.max_memory_per_sandbox &&
311
+ max_disk_per_sandbox == o.max_disk_per_sandbox &&
312
+ max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox
265
313
  end
266
314
 
267
315
  # @see the `==` method
@@ -273,7 +321,7 @@ module DaytonaApiClient
273
321
  # Calculates hash code according to all attributes.
274
322
  # @return [Integer] Hash code
275
323
  def hash
276
- [region_id, total_cpu_quota, current_cpu_usage, total_memory_quota, current_memory_usage, total_disk_quota, current_disk_usage].hash
324
+ [region_id, total_cpu_quota, current_cpu_usage, total_memory_quota, current_memory_usage, total_disk_quota, current_disk_usage, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox].hash
277
325
  end
278
326
 
279
327
  # Builds the object from hash
@@ -99,6 +99,9 @@ module DaytonaApiClient
99
99
  # The last update timestamp of the sandbox
100
100
  attr_accessor :updated_at
101
101
 
102
+ # The last activity timestamp of the sandbox
103
+ attr_accessor :last_activity_at
104
+
102
105
  # The class of the sandbox
103
106
  attr_accessor :_class
104
107
 
@@ -164,6 +167,7 @@ module DaytonaApiClient
164
167
  :'build_info' => :'buildInfo',
165
168
  :'created_at' => :'createdAt',
166
169
  :'updated_at' => :'updatedAt',
170
+ :'last_activity_at' => :'lastActivityAt',
167
171
  :'_class' => :'class',
168
172
  :'daemon_version' => :'daemonVersion',
169
173
  :'runner_id' => :'runnerId',
@@ -212,6 +216,7 @@ module DaytonaApiClient
212
216
  :'build_info' => :'BuildInfo',
213
217
  :'created_at' => :'String',
214
218
  :'updated_at' => :'String',
219
+ :'last_activity_at' => :'String',
215
220
  :'_class' => :'String',
216
221
  :'daemon_version' => :'String',
217
222
  :'runner_id' => :'String',
@@ -385,6 +390,10 @@ module DaytonaApiClient
385
390
  self.updated_at = attributes[:'updated_at']
386
391
  end
387
392
 
393
+ if attributes.key?(:'last_activity_at')
394
+ self.last_activity_at = attributes[:'last_activity_at']
395
+ end
396
+
388
397
  if attributes.key?(:'_class')
389
398
  self._class = attributes[:'_class']
390
399
  end
@@ -686,6 +695,7 @@ module DaytonaApiClient
686
695
  build_info == o.build_info &&
687
696
  created_at == o.created_at &&
688
697
  updated_at == o.updated_at &&
698
+ last_activity_at == o.last_activity_at &&
689
699
  _class == o._class &&
690
700
  daemon_version == o.daemon_version &&
691
701
  runner_id == o.runner_id &&
@@ -701,7 +711,7 @@ module DaytonaApiClient
701
711
  # Calculates hash code according to all attributes.
702
712
  # @return [Integer] Hash code
703
713
  def hash
704
- [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, _class, daemon_version, runner_id, toolbox_proxy_url].hash
714
+ [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, last_activity_at, _class, daemon_version, runner_id, toolbox_proxy_url].hash
705
715
  end
706
716
 
707
717
  # Builds the object from hash
@@ -21,12 +21,24 @@ module DaytonaApiClient
21
21
 
22
22
  attr_accessor :total_disk_quota
23
23
 
24
+ attr_accessor :max_cpu_per_sandbox
25
+
26
+ attr_accessor :max_memory_per_sandbox
27
+
28
+ attr_accessor :max_disk_per_sandbox
29
+
30
+ attr_accessor :max_disk_per_non_ephemeral_sandbox
31
+
24
32
  # Attribute mapping from ruby-style variable name to JSON key.
25
33
  def self.attribute_map
26
34
  {
27
35
  :'total_cpu_quota' => :'totalCpuQuota',
28
36
  :'total_memory_quota' => :'totalMemoryQuota',
29
- :'total_disk_quota' => :'totalDiskQuota'
37
+ :'total_disk_quota' => :'totalDiskQuota',
38
+ :'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
39
+ :'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
40
+ :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
41
+ :'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox'
30
42
  }
31
43
  end
32
44
 
@@ -45,7 +57,11 @@ module DaytonaApiClient
45
57
  {
46
58
  :'total_cpu_quota' => :'Float',
47
59
  :'total_memory_quota' => :'Float',
48
- :'total_disk_quota' => :'Float'
60
+ :'total_disk_quota' => :'Float',
61
+ :'max_cpu_per_sandbox' => :'Float',
62
+ :'max_memory_per_sandbox' => :'Float',
63
+ :'max_disk_per_sandbox' => :'Float',
64
+ :'max_disk_per_non_ephemeral_sandbox' => :'Float'
49
65
  }
50
66
  end
51
67
 
@@ -54,7 +70,11 @@ module DaytonaApiClient
54
70
  Set.new([
55
71
  :'total_cpu_quota',
56
72
  :'total_memory_quota',
57
- :'total_disk_quota'
73
+ :'total_disk_quota',
74
+ :'max_cpu_per_sandbox',
75
+ :'max_memory_per_sandbox',
76
+ :'max_disk_per_sandbox',
77
+ :'max_disk_per_non_ephemeral_sandbox'
58
78
  ])
59
79
  end
60
80
 
@@ -91,6 +111,22 @@ module DaytonaApiClient
91
111
  else
92
112
  self.total_disk_quota = nil
93
113
  end
114
+
115
+ if attributes.key?(:'max_cpu_per_sandbox')
116
+ self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
117
+ end
118
+
119
+ if attributes.key?(:'max_memory_per_sandbox')
120
+ self.max_memory_per_sandbox = attributes[:'max_memory_per_sandbox']
121
+ end
122
+
123
+ if attributes.key?(:'max_disk_per_sandbox')
124
+ self.max_disk_per_sandbox = attributes[:'max_disk_per_sandbox']
125
+ end
126
+
127
+ if attributes.key?(:'max_disk_per_non_ephemeral_sandbox')
128
+ self.max_disk_per_non_ephemeral_sandbox = attributes[:'max_disk_per_non_ephemeral_sandbox']
129
+ end
94
130
  end
95
131
 
96
132
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -115,7 +151,11 @@ module DaytonaApiClient
115
151
  self.class == o.class &&
116
152
  total_cpu_quota == o.total_cpu_quota &&
117
153
  total_memory_quota == o.total_memory_quota &&
118
- total_disk_quota == o.total_disk_quota
154
+ total_disk_quota == o.total_disk_quota &&
155
+ max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
156
+ max_memory_per_sandbox == o.max_memory_per_sandbox &&
157
+ max_disk_per_sandbox == o.max_disk_per_sandbox &&
158
+ max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox
119
159
  end
120
160
 
121
161
  # @see the `==` method
@@ -127,7 +167,7 @@ module DaytonaApiClient
127
167
  # Calculates hash code according to all attributes.
128
168
  # @return [Integer] Hash code
129
169
  def hash
130
- [total_cpu_quota, total_memory_quota, total_disk_quota].hash
170
+ [total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox].hash
131
171
  end
132
172
 
133
173
  # Builds the object from hash
@@ -99,6 +99,9 @@ module DaytonaApiClient
99
99
  # The last update timestamp of the sandbox
100
100
  attr_accessor :updated_at
101
101
 
102
+ # The last activity timestamp of the sandbox
103
+ attr_accessor :last_activity_at
104
+
102
105
  # The class of the sandbox
103
106
  attr_accessor :_class
104
107
 
@@ -176,6 +179,7 @@ module DaytonaApiClient
176
179
  :'build_info' => :'buildInfo',
177
180
  :'created_at' => :'createdAt',
178
181
  :'updated_at' => :'updatedAt',
182
+ :'last_activity_at' => :'lastActivityAt',
179
183
  :'_class' => :'class',
180
184
  :'daemon_version' => :'daemonVersion',
181
185
  :'runner_id' => :'runnerId',
@@ -228,6 +232,7 @@ module DaytonaApiClient
228
232
  :'build_info' => :'BuildInfo',
229
233
  :'created_at' => :'String',
230
234
  :'updated_at' => :'String',
235
+ :'last_activity_at' => :'String',
231
236
  :'_class' => :'String',
232
237
  :'daemon_version' => :'String',
233
238
  :'runner_id' => :'String',
@@ -405,6 +410,10 @@ module DaytonaApiClient
405
410
  self.updated_at = attributes[:'updated_at']
406
411
  end
407
412
 
413
+ if attributes.key?(:'last_activity_at')
414
+ self.last_activity_at = attributes[:'last_activity_at']
415
+ end
416
+
408
417
  if attributes.key?(:'_class')
409
418
  self._class = attributes[:'_class']
410
419
  end
@@ -734,6 +743,7 @@ module DaytonaApiClient
734
743
  build_info == o.build_info &&
735
744
  created_at == o.created_at &&
736
745
  updated_at == o.updated_at &&
746
+ last_activity_at == o.last_activity_at &&
737
747
  _class == o._class &&
738
748
  daemon_version == o.daemon_version &&
739
749
  runner_id == o.runner_id &&
@@ -753,7 +763,7 @@ module DaytonaApiClient
753
763
  # Calculates hash code according to all attributes.
754
764
  # @return [Integer] Hash code
755
765
  def hash
756
- [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, _class, daemon_version, runner_id, toolbox_proxy_url, image, snapshot_state, snapshot_created_at, info].hash
766
+ [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, last_activity_at, _class, daemon_version, runner_id, toolbox_proxy_url, image, snapshot_state, snapshot_created_at, info].hash
757
767
  end
758
768
 
759
769
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.12.0
11
11
  =end
12
12
 
13
13
  module DaytonaApiClient
14
- VERSION = '0.167.0.alpha.1'
14
+ VERSION = '0.168.0'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daytona_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.167.0.alpha.1
4
+ version: 0.168.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio