Class: Cadenya::Types::CreateWorkspaceSecretRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::CreateWorkspaceSecretRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, metadata: nil, spec: nil) ⇒ CreateWorkspaceSecretRequest
constructor
A new instance of CreateWorkspaceSecretRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, metadata: nil, spec: nil) ⇒ CreateWorkspaceSecretRequest
Returns a new instance of CreateWorkspaceSecretRequest.
2039 2040 2041 2042 2043 |
# File 'lib/cadenya/types.rb', line 2039 def initialize(workspace_id: nil, metadata: nil, spec: nil) @workspace_id = workspace_id @metadata = @spec = spec end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
2037 2038 2039 |
# File 'lib/cadenya/types.rb', line 2037 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
2037 2038 2039 |
# File 'lib/cadenya/types.rb', line 2037 def spec @spec end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
2037 2038 2039 |
# File 'lib/cadenya/types.rb', line 2037 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
2045 2046 2047 2048 2049 2050 2051 |
# File 'lib/cadenya/types.rb', line 2045 def self.from_json(data) new( workspace_id: data["workspaceId"], metadata: data["metadata"].nil? ? nil : Types::CreateResourceMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::WorkspaceSecretSpec.from_json(data["spec"]), ) end |