Class: PutNetworkPrivateElementTypeElementIDResponse403Error

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/schemas.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



33674
33675
33676
33677
33678
33679
33680
# File 'lib/schemas.rb', line 33674

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    message:                                                            d["message"],
    put_network_private_element_type_element_id_response403_error_name: d["name"],
  )
end

.from_json!(json) ⇒ Object



33682
33683
33684
# File 'lib/schemas.rb', line 33682

def self.from_json!(json)
  from_dynamic!(JSON.parse(json))
end

Instance Method Details

#to_dynamicObject



33686
33687
33688
33689
33690
33691
# File 'lib/schemas.rb', line 33686

def to_dynamic
  {
    "message" => message,
    "name"    => put_network_private_element_type_element_id_response403_error_name,
  }
end

#to_json(options = nil) ⇒ Object



33693
33694
33695
# File 'lib/schemas.rb', line 33693

def to_json(options = nil)
  JSON.generate(to_dynamic, options)
end