Class: PutDetectedSecretsSecretIDResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutDetectedSecretsSecretIDResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31935 31936 31937 31938 31939 31940 31941 31942 31943 |
# File 'lib/schemas.rb', line 31935 def self.from_dynamic!(d) d = Types::Hash[d] new( instance: d["instance"], status: d["status"], title: d["title"], put_detected_secrets_secret_id_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
31945 31946 31947 |
# File 'lib/schemas.rb', line 31945 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31949 31950 31951 31952 31953 31954 31955 31956 |
# File 'lib/schemas.rb', line 31949 def to_dynamic { "instance" => instance, "status" => status, "title" => title, "type" => put_detected_secrets_secret_id_response401_type, } end |
#to_json(options = nil) ⇒ Object
31958 31959 31960 |
# File 'lib/schemas.rb', line 31958 def to_json( = nil) JSON.generate(to_dynamic, ) end |