Class: GetSecretOptions
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetSecretOptions
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
639 640 641 642 643 644 645 646 647 648 649 650 |
# File 'lib/schemas.rb', line 639 def self.from_dynamic!(d) d = Types::Hash[d] new( environment: d.fetch("environment"), expand_secret_references: d["expandSecretReferences"], include_imports: d["includeImports"], path: d["path"], project_id: d.fetch("projectId"), secret_name: d.fetch("secretName"), get_secret_options_type: d["type"], ) end |
.from_json!(json) ⇒ Object
652 653 654 |
# File 'lib/schemas.rb', line 652 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
656 657 658 659 660 661 662 663 664 665 666 |
# File 'lib/schemas.rb', line 656 def to_dynamic { "environment" => environment, "expandSecretReferences" => , "includeImports" => include_imports, "path" => path, "projectId" => project_id, "secretName" => secret_name, "type" => , } end |
#to_json(options = nil) ⇒ Object
668 669 670 |
# File 'lib/schemas.rb', line 668 def to_json( = nil) JSON.generate(to_dynamic, ) end |