Class: Cadenya::Types::CreateToolSetRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::CreateToolSetRequest
- 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) ⇒ CreateToolSetRequest
constructor
A new instance of CreateToolSetRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, metadata: nil, spec: nil) ⇒ CreateToolSetRequest
Returns a new instance of CreateToolSetRequest.
1857 1858 1859 1860 1861 |
# File 'lib/cadenya/types.rb', line 1857 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.
1855 1856 1857 |
# File 'lib/cadenya/types.rb', line 1855 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
1855 1856 1857 |
# File 'lib/cadenya/types.rb', line 1855 def spec @spec end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
1855 1856 1857 |
# File 'lib/cadenya/types.rb', line 1855 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
1863 1864 1865 1866 1867 1868 1869 |
# File 'lib/cadenya/types.rb', line 1863 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::ToolSetSpec.from_json(data["spec"]), ) end |