Class: GetDetectedSecretsSecretIDLocationsResponse500

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



9579
9580
9581
9582
9583
9584
9585
9586
9587
# File 'lib/schemas.rb', line 9579

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_response500_type: d["type"],
  )
end

.from_json!(json) ⇒ Object



9589
9590
9591
# File 'lib/schemas.rb', line 9589

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

Instance Method Details

#to_dynamicObject



9593
9594
9595
9596
9597
9598
9599
9600
# File 'lib/schemas.rb', line 9593

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

#to_json(options = nil) ⇒ Object



9602
9603
9604
# File 'lib/schemas.rb', line 9602

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