Class: GetDetectedSecretsSecretIDLocationsResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetDetectedSecretsSecretIDLocationsResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
9415 9416 9417 9418 9419 9420 9421 |
# File 'lib/schemas.rb', line 9415 def self.from_dynamic!(d) d = Types::Hash[d] new( data: d["data"]&.map { |x| GetDetectedSecretsSecretIDLocationsResponseDataItem.from_dynamic!(x) }, get_detected_secrets_secret_id_locations_response_meta: d["meta"] ? GetDetectedSecretsSecretIDLocationsResponseMeta.from_dynamic!(d["meta"]) : nil, ) end |
.from_json!(json) ⇒ Object
9423 9424 9425 |
# File 'lib/schemas.rb', line 9423 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
9427 9428 9429 9430 9431 9432 |
# File 'lib/schemas.rb', line 9427 def to_dynamic { "data" => data&.map { |x| x.to_dynamic }, "meta" => &.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
9434 9435 9436 |
# File 'lib/schemas.rb', line 9434 def to_json( = nil) JSON.generate(to_dynamic, ) end |