Class: PutDetectedSecretsSecretIDBody
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutDetectedSecretsSecretIDBody
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31808 31809 31810 31811 31812 31813 31814 |
# File 'lib/schemas.rb', line 31808 def self.from_dynamic!(d) d = Types::Hash[d] new( resolution: d.fetch("resolution"), workspace_id: d.fetch("workspaceId"), ) end |
.from_json!(json) ⇒ Object
31816 31817 31818 |
# File 'lib/schemas.rb', line 31816 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31820 31821 31822 31823 31824 31825 |
# File 'lib/schemas.rb', line 31820 def to_dynamic { "resolution" => resolution, "workspaceId" => workspace_id, } end |
#to_json(options = nil) ⇒ Object
31827 31828 31829 |
# File 'lib/schemas.rb', line 31827 def to_json( = nil) JSON.generate(to_dynamic, ) end |