daytona_toolbox_api_client 0.170.0 → 0.171.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: f62cc8a4cedec0dbc245fbb7424e1825ec01e87c026425993c762919ce03ad19
4
- data.tar.gz: b4ab91575a748d300381f6bb2d381be4e809b447741c4165adfcff5372285f8e
3
+ metadata.gz: 6faa0f6faba59070617b24f1b165b75b3aecf4bb6d04f11629be30c5c29bf2d8
4
+ data.tar.gz: dd945b5fb27009657e303e5183bb5215ad4d450aed0a71a07cfe4485538b7377
5
5
  SHA512:
6
- metadata.gz: 349698c22241252a8f431240ede0b0e7d656b7a9df1438d537133a1d440400c617002911fc93ac749d434f8a2e9f1616c51b07c0c79020e0377b5a163605033a
7
- data.tar.gz: 6e73db27bf339e91e6958577f503099b79c42062b75c72adcaf9493838598b07e832840907f785740345db970fcedee6614959f53a7e0baa6b202c65b50f67b7
6
+ metadata.gz: 5fc76ca778c592f9842168a95b153a764a46231ece677bf89bcb45a9c5a7abec5f1968e75cbb1e00e4324df859c480d07c29a075150da34adff779cf7273615e
7
+ data.tar.gz: c1196db8b86e150e0feb9854464b596e283640668b34a18831d6dfedc2451ca688ab77b1d094ed77983865d9753962fb21d88b9e2625b97bb103c25da0754372
@@ -98,6 +98,10 @@ module DaytonaToolboxApiClient
98
98
  def list_invalid_properties
99
99
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
100
100
  invalid_properties = Array.new
101
+ if !@amount.nil? && @amount < 0
102
+ invalid_properties.push('invalid value for "amount", must be greater than or equal to 0.')
103
+ end
104
+
101
105
  invalid_properties
102
106
  end
103
107
 
@@ -105,9 +109,24 @@ module DaytonaToolboxApiClient
105
109
  # @return true if the model is valid
106
110
  def valid?
107
111
  warn '[DEPRECATED] the `valid?` method is obsolete'
112
+ return false if !@amount.nil? && @amount < 0
108
113
  true
109
114
  end
110
115
 
116
+ # Custom attribute writer method with validation
117
+ # @param [Object] amount Value to be assigned
118
+ def amount=(amount)
119
+ if amount.nil?
120
+ fail ArgumentError, 'amount cannot be nil'
121
+ end
122
+
123
+ if amount < 0
124
+ fail ArgumentError, 'invalid value for "amount", must be greater than or equal to 0.'
125
+ end
126
+
127
+ @amount = amount
128
+ end
129
+
111
130
  # Checks equality by comparing each attribute.
112
131
  # @param [Object] Object to be compared
113
132
  def ==(o)
@@ -11,5 +11,5 @@ Generator version: 7.21.0
11
11
  =end
12
12
 
13
13
  module DaytonaToolboxApiClient
14
- VERSION = '0.170.0'
14
+ VERSION = '0.171.0'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daytona_toolbox_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.170.0
4
+ version: 0.171.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio