@@ -27,10 +27,10 @@ class Project
2727 # The description of the project.
2828 attr_accessor :description
2929
30- # The type of carbon removal project, currently available project types are Biomass, Dac, Forestry, Mineralization, Ocean, Renewables, Soil .
30+ # Deprecated. Favor the technology_type field instead .
3131 attr_accessor :type
3232
33- # The mechanism of the project. removal or avoidance.
33+ # The mechanism of the project. Either removal or avoidance.
3434 attr_accessor :mechanism
3535
3636 # The country of origin of the project.
@@ -63,11 +63,11 @@ class Project
6363 # An array returning the UN Sustainable Development Goals associated with this project.
6464 attr_accessor :sdgs
6565
66- attr_accessor :technology_type
67-
68- # A short description of the project
66+ # A short description of the project.
6967 attr_accessor :tagline
7068
69+ attr_accessor :technology_type
70+
7171 class EnumAttributeValidator
7272 attr_reader :datatype
7373 attr_reader :allowable_values
@@ -109,8 +109,8 @@ def self.attribute_map
109109 :'remaining_mass_g' => :'remaining_mass_g' ,
110110 :'standard' => :'standard' ,
111111 :'sdgs' => :'sdgs' ,
112- :'technology_type ' => :'technology_type ' ,
113- :'tagline ' => :'tagline '
112+ :'tagline ' => :'tagline ' ,
113+ :'technology_type ' => :'technology_type '
114114 }
115115 end
116116
@@ -138,8 +138,8 @@ def self.openapi_types
138138 :'remaining_mass_g' => :'Integer' ,
139139 :'standard' => :'Standard' ,
140140 :'sdgs' => :'Array<Sdg>' ,
141- :'technology_type ' => :'TechnologyType ' ,
142- :'tagline ' => :'String '
141+ :'tagline ' => :'String ' ,
142+ :'technology_type ' => :'TechnologyType '
143143 }
144144 end
145145
@@ -152,7 +152,6 @@ def self.openapi_nullable
152152 :'photos' ,
153153 :'standard' ,
154154 :'sdgs' ,
155- :'tagline'
156155 ] )
157156 end
158157
@@ -251,13 +250,13 @@ def initialize(attributes = {})
251250 end
252251 end
253252
254- if attributes . key? ( :'technology_type' )
255- self . technology_type = attributes [ :'technology_type' ]
256- end
257-
258253 if attributes . key? ( :'tagline' )
259254 self . tagline = attributes [ :'tagline' ]
260255 end
256+
257+ if attributes . key? ( :'technology_type' )
258+ self . technology_type = attributes [ :'technology_type' ]
259+ end
261260 end
262261
263262 # Show invalid properties with the reasons. Usually used together with valid?
@@ -296,6 +295,10 @@ def list_invalid_properties
296295 invalid_properties . push ( 'invalid value for "remaining_mass_g", remaining_mass_g cannot be nil.' )
297296 end
298297
298+ if @technology_type . nil?
299+ invalid_properties . push ( 'invalid value for "technology_type", technology_type cannot be nil.' )
300+ end
301+
299302 invalid_properties
300303 end
301304
@@ -306,27 +309,16 @@ def valid?
306309 return false if @production . nil?
307310 return false if @name . nil?
308311 return false if @description . nil?
309- type_validator = EnumAttributeValidator . new ( 'String' , [ "biomass" , "dac" , "forestry" , "mineralization" , "ocean" , "renewables" , "soil" ] )
310- return false unless type_validator . valid? ( @type )
311312 mechanism_validator = EnumAttributeValidator . new ( 'String' , [ "removal" , "avoidance" ] )
312313 return false unless mechanism_validator . valid? ( @mechanism )
313314 return false if @country . nil?
314315 return false if @developer . nil?
315316 return false if @average_price_per_tonne_cents_usd . nil?
316317 return false if @remaining_mass_g . nil?
318+ return false if @technology_type . nil?
317319 true
318320 end
319321
320- # Custom attribute writer method checking allowed values (enum).
321- # @param [Object] type Object to be assigned
322- def type = ( type )
323- validator = EnumAttributeValidator . new ( 'String' , [ "biomass" , "dac" , "forestry" , "mineralization" , "ocean" , "renewables" , "soil" ] )
324- unless validator . valid? ( type )
325- fail ArgumentError , "invalid value for \" type\" , must be one of #{ validator . allowable_values } ."
326- end
327- @type = type
328- end
329-
330322 # Custom attribute writer method checking allowed values (enum).
331323 # @param [Object] mechanism Object to be assigned
332324 def mechanism = ( mechanism )
@@ -358,8 +350,8 @@ def ==(o)
358350 remaining_mass_g == o . remaining_mass_g &&
359351 standard == o . standard &&
360352 sdgs == o . sdgs &&
361- technology_type == o . technology_type &&
362- tagline == o . tagline
353+ tagline == o . tagline &&
354+ technology_type == o . technology_type
363355 end
364356
365357 # @see the `==` method
@@ -371,7 +363,7 @@ def eql?(o)
371363 # Calculates hash code according to all attributes.
372364 # @return [Integer] Hash code
373365 def hash
374- [ id , production , name , description , type , mechanism , country , state , latitude , longitude , developer , photos , average_price_per_tonne_cents_usd , remaining_mass_g , standard , sdgs , technology_type , tagline ] . hash
366+ [ id , production , name , description , type , mechanism , country , state , latitude , longitude , developer , photos , average_price_per_tonne_cents_usd , remaining_mass_g , standard , sdgs , tagline , technology_type ] . hash
375367 end
376368
377369 # Builds the object from hash
0 commit comments