Class: GetDetectedSecretsSecretIDLocationsResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetDetectedSecretsSecretIDLocationsResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
9495 9496 9497 9498 9499 9500 9501 9502 9503 |
# File 'lib/schemas.rb', line 9495 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_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
9505 9506 9507 |
# File 'lib/schemas.rb', line 9505 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
9509 9510 9511 9512 9513 9514 9515 9516 |
# File 'lib/schemas.rb', line 9509 def to_dynamic { "instance" => instance, "status" => status, "title" => title, "type" => get_detected_secrets_secret_id_locations_response401_type, } end |
#to_json(options = nil) ⇒ Object
9518 9519 9520 |
# File 'lib/schemas.rb', line 9518 def to_json( = nil) JSON.generate(to_dynamic, ) end |