Class: GetDetectedSecretsSecretIDLocationsResponse403

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



9537
9538
9539
9540
9541
9542
9543
9544
9545
# File 'lib/schemas.rb', line 9537

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

.from_json!(json) ⇒ Object



9547
9548
9549
# File 'lib/schemas.rb', line 9547

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

Instance Method Details

#to_dynamicObject



9551
9552
9553
9554
9555
9556
9557
9558
# File 'lib/schemas.rb', line 9551

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

#to_json(options = nil) ⇒ Object



9560
9561
9562
# File 'lib/schemas.rb', line 9560

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