daytona_api_client 0.184.0 → 0.186.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: b0e89d6d0c45f0eb9cbb0b4070219fac558f165a1bbd5853a26c2603523b90e8
4
- data.tar.gz: aeec8505e13997efc1e452f08414ec4ca9d07965f4cae05ef3e110597117e9c2
3
+ metadata.gz: 893eb5b565d2686e4783cbe1c565b62c54e69f4e16db9dee4d440d085e8b6c2c
4
+ data.tar.gz: 2f729a54a55d41c582c100d7b811adcf498b85cc3ccfa5c6db2431610a1027de
5
5
  SHA512:
6
- metadata.gz: def6a3f3f3c7ed9e18f6522ec8e08521d42621986143fec2fb92f0e019ae0a9b9275be6a18726b4ccea7591b56449b8002e9e2475662d48c8b689c8e4b317a9d
7
- data.tar.gz: c8ca70a0095a410808bd031ad0327c993848a9e44d8453dc9c350e481f39c6f57fadbea0f97b631ed6a9b03735ea129ba8bc2df80ebae3ac133114556446d6d6
6
+ metadata.gz: 6ec638b0fb8bec7f358837764b92c6f43bfd0089053d75a5690c88d5d7920cd233417197bfdbb00d13052e1b188db105d63dfc09e907147a68a014c6333b34da
7
+ data.tar.gz: 27189331cd08ba3a981d9f4466d75acbd32453ea3460c6c3b96e5c97d06f4be0d502c9c4f1dbfb14d3c5da0e5943081edff91b16fe3fba9c3b6f7c696235edda
@@ -18,10 +18,14 @@ module DaytonaApiClient
18
18
  # Name for the new snapshot
19
19
  attr_accessor :name
20
20
 
21
+ # Include the VM's memory in the snapshot. VM sandboxes only. When true the sandbox must be STARTED; when false (default) VM sandboxes must be STOPPED. Container sandboxes do not support memory snapshots.
22
+ attr_accessor :include_memory
23
+
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
24
- :'name' => :'name'
27
+ :'name' => :'name',
28
+ :'include_memory' => :'includeMemory'
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
- :'name' => :'String'
45
+ :'name' => :'String',
46
+ :'include_memory' => :'Boolean'
42
47
  }
43
48
  end
44
49
 
@@ -69,6 +74,12 @@ module DaytonaApiClient
69
74
  else
70
75
  self.name = nil
71
76
  end
77
+
78
+ if attributes.key?(:'include_memory')
79
+ self.include_memory = attributes[:'include_memory']
80
+ else
81
+ self.include_memory = false
82
+ end
72
83
  end
73
84
 
74
85
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,7 +117,8 @@ module DaytonaApiClient
106
117
  def ==(o)
107
118
  return true if self.equal?(o)
108
119
  self.class == o.class &&
109
- name == o.name
120
+ name == o.name &&
121
+ include_memory == o.include_memory
110
122
  end
111
123
 
112
124
  # @see the `==` method
@@ -118,7 +130,7 @@ module DaytonaApiClient
118
130
  # Calculates hash code according to all attributes.
119
131
  # @return [Integer] Hash code
120
132
  def hash
121
- [name].hash
133
+ [name, include_memory].hash
122
134
  end
123
135
 
124
136
  # Builds the object from hash
@@ -102,7 +102,7 @@ module DaytonaApiClient
102
102
  # The api version of the runner
103
103
  attr_accessor :api_version
104
104
 
105
- # The class of the runner
105
+ # The class of the runner. Deprecated and always returns \"container\" for backward compatibility - use sandboxClass instead.
106
106
  attr_accessor :runner_class
107
107
 
108
108
  # The app version of the runner
@@ -16,11 +16,10 @@ require 'time'
16
16
  module DaytonaApiClient
17
17
  class RunnerClass
18
18
  CONTAINER = "container".freeze
19
- VM = "vm".freeze
20
19
  UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
21
20
 
22
21
  def self.all_vars
23
- @all_vars ||= [CONTAINER, VM, UNKNOWN_DEFAULT_OPEN_API].freeze
22
+ @all_vars ||= [CONTAINER, UNKNOWN_DEFAULT_OPEN_API].freeze
24
23
  end
25
24
 
26
25
  # Builds the enum from string
@@ -102,7 +102,7 @@ module DaytonaApiClient
102
102
  # The api version of the runner
103
103
  attr_accessor :api_version
104
104
 
105
- # The class of the runner
105
+ # The class of the runner. Deprecated and always returns \"container\" for backward compatibility - use sandboxClass instead.
106
106
  attr_accessor :runner_class
107
107
 
108
108
  # The app version of the runner
@@ -173,7 +173,7 @@ module DaytonaApiClient
173
173
  :'name' => :'String',
174
174
  :'target' => :'String',
175
175
  :'runner_id' => :'String',
176
- :'sandbox_class' => :'String',
176
+ :'sandbox_class' => :'SandboxClass',
177
177
  :'state' => :'SandboxState',
178
178
  :'desired_state' => :'SandboxDesiredState',
179
179
  :'snapshot' => :'String',
@@ -424,8 +424,6 @@ module DaytonaApiClient
424
424
  return false if @organization_id.nil?
425
425
  return false if @name.nil?
426
426
  return false if @target.nil?
427
- sandbox_class_validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "windows", "unknown_default_open_api"])
428
- return false unless sandbox_class_validator.valid?(@sandbox_class)
429
427
  return false if @user.nil?
430
428
  return false if @public.nil?
431
429
  return false if @cpu.nil?
@@ -479,16 +477,6 @@ module DaytonaApiClient
479
477
  @target = target
480
478
  end
481
479
 
482
- # Custom attribute writer method checking allowed values (enum).
483
- # @param [Object] sandbox_class Object to be assigned
484
- def sandbox_class=(sandbox_class)
485
- validator = EnumAttributeValidator.new('String', ["linux-vm", "container", "android", "windows", "unknown_default_open_api"])
486
- unless validator.valid?(sandbox_class)
487
- fail ArgumentError, "invalid value for \"sandbox_class\", must be one of #{validator.allowable_values}."
488
- end
489
- @sandbox_class = sandbox_class
490
- end
491
-
492
480
  # Custom attribute writer method with validation
493
481
  # @param [Object] user Value to be assigned
494
482
  def user=(user)
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module DaytonaApiClient
17
17
  class SandboxVolume < ApiModelBase
18
- # The ID of the volume
18
+ # The ID or name of the volume. Resolved to the volume ID on sandbox create.
19
19
  attr_accessor :volume_id
20
20
 
21
21
  # The mount path for the volume
@@ -11,5 +11,5 @@ Generator version: 7.21.0
11
11
  =end
12
12
 
13
13
  module DaytonaApiClient
14
- VERSION = '0.184.0'
14
+ VERSION = '0.186.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.184.0
4
+ version: 0.186.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio