Class: PutNetworkPrivateNetworkEntityRequestRequestIDResponse403Error

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



34211
34212
34213
34214
34215
34216
34217
# File 'lib/schemas.rb', line 34211

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

.from_json!(json) ⇒ Object



34219
34220
34221
# File 'lib/schemas.rb', line 34219

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

Instance Method Details

#to_dynamicObject



34223
34224
34225
34226
34227
34228
# File 'lib/schemas.rb', line 34223

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

#to_json(options = nil) ⇒ Object



34230
34231
34232
# File 'lib/schemas.rb', line 34230

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