Class: Cadenya::Types::WorkspaceSecret
- Inherits:
-
Object
- Object
- Cadenya::Types::WorkspaceSecret
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata: nil, spec: nil, info: nil) ⇒ WorkspaceSecret
constructor
A new instance of WorkspaceSecret.
- #to_h ⇒ Object
Constructor Details
#initialize(metadata: nil, spec: nil, info: nil) ⇒ WorkspaceSecret
Returns a new instance of WorkspaceSecret.
7587 7588 7589 7590 7591 |
# File 'lib/cadenya/types.rb', line 7587 def initialize(metadata: nil, spec: nil, info: nil) @metadata = @spec = spec @info = info end |
Instance Attribute Details
#info ⇒ Object (readonly)
Returns the value of attribute info.
7585 7586 7587 |
# File 'lib/cadenya/types.rb', line 7585 def info @info end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7585 7586 7587 |
# File 'lib/cadenya/types.rb', line 7585 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
7585 7586 7587 |
# File 'lib/cadenya/types.rb', line 7585 def spec @spec end |
Class Method Details
.from_json(data) ⇒ Object
7593 7594 7595 7596 7597 7598 7599 |
# File 'lib/cadenya/types.rb', line 7593 def self.from_json(data) new( metadata: data["metadata"].nil? ? nil : Types::ResourceMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::WorkspaceSecretSpec.from_json(data["spec"]), info: data["info"].nil? ? nil : Types::WorkspaceSecretInfo.from_json(data["info"]), ) end |