Class: Cadenya::Types::CreateToolSetSecretRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::CreateToolSetSecretRequest
- 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.
-
#tool_set_id ⇒ Object
readonly
Returns the value of attribute tool_set_id.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, tool_set_id: nil, metadata: nil, spec: nil) ⇒ CreateToolSetSecretRequest
constructor
A new instance of CreateToolSetSecretRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, tool_set_id: nil, metadata: nil, spec: nil) ⇒ CreateToolSetSecretRequest
Returns a new instance of CreateToolSetSecretRequest.
1883 1884 1885 1886 1887 1888 |
# File 'lib/cadenya/types.rb', line 1883 def initialize(workspace_id: nil, tool_set_id: nil, metadata: nil, spec: nil) @workspace_id = workspace_id @tool_set_id = tool_set_id @metadata = @spec = spec end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
1881 1882 1883 |
# File 'lib/cadenya/types.rb', line 1881 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
1881 1882 1883 |
# File 'lib/cadenya/types.rb', line 1881 def spec @spec end |
#tool_set_id ⇒ Object (readonly)
Returns the value of attribute tool_set_id.
1881 1882 1883 |
# File 'lib/cadenya/types.rb', line 1881 def tool_set_id @tool_set_id end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
1881 1882 1883 |
# File 'lib/cadenya/types.rb', line 1881 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
1890 1891 1892 1893 1894 1895 1896 1897 |
# File 'lib/cadenya/types.rb', line 1890 def self.from_json(data) new( workspace_id: data["workspaceId"], tool_set_id: data["toolSetId"], metadata: data["metadata"].nil? ? nil : Types::CreateResourceMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::ToolSetSecretSpec.from_json(data["spec"]), ) end |