Class: GetNetworkPrivateNetworkEntityRequestAllResponse403Error

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



13549
13550
13551
13552
13553
13554
13555
# File 'lib/schemas.rb', line 13549

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

.from_json!(json) ⇒ Object



13557
13558
13559
# File 'lib/schemas.rb', line 13557

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

Instance Method Details

#to_dynamicObject



13561
13562
13563
13564
13565
13566
# File 'lib/schemas.rb', line 13561

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

#to_json(options = nil) ⇒ Object



13568
13569
13570
# File 'lib/schemas.rb', line 13568

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