Class: GetDetectedSecretsSecretIDLocationsResponse400

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



9453
9454
9455
9456
9457
9458
9459
9460
9461
# File 'lib/schemas.rb', line 9453

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    instance:                                                  d["instance"],
    status:                                                    d["status"],
    title:                                                     d["title"],
    get_detected_secrets_secret_id_locations_response400_type: d["type"],
  )
end

.from_json!(json) ⇒ Object



9463
9464
9465
# File 'lib/schemas.rb', line 9463

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

Instance Method Details

#to_dynamicObject



9467
9468
9469
9470
9471
9472
9473
9474
# File 'lib/schemas.rb', line 9467

def to_dynamic
  {
    "instance" => instance,
    "status"   => status,
    "title"    => title,
    "type"     => get_detected_secrets_secret_id_locations_response400_type,
  }
end

#to_json(options = nil) ⇒ Object



9476
9477
9478
# File 'lib/schemas.rb', line 9476

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