Class: GcpIamAuthLoginClass
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GcpIamAuthLoginClass
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
581 582 583 584 585 586 587 |
# File 'lib/schemas.rb', line 581 def self.from_dynamic!(d) d = Types::Hash[d] new( identity_id: d.fetch("identityId"), service_account_key_file_path: d.fetch("serviceAccountKeyFilePath"), ) end |
.from_json!(json) ⇒ Object
589 590 591 |
# File 'lib/schemas.rb', line 589 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
593 594 595 596 597 598 |
# File 'lib/schemas.rb', line 593 def to_dynamic { "identityId" => identity_id, "serviceAccountKeyFilePath" => service_account_key_file_path, } end |
#to_json(options = nil) ⇒ Object
600 601 602 |
# File 'lib/schemas.rb', line 600 def to_json( = nil) JSON.generate(to_dynamic, ) end |