Class: Cadenya::Types::UpdateToolRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::UpdateToolRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#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.
-
#update_mask ⇒ Object
readonly
Returns the value of attribute update_mask.
-
#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, id: nil, metadata: nil, spec: nil, update_mask: nil) ⇒ UpdateToolRequest
constructor
A new instance of UpdateToolRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, tool_set_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil) ⇒ UpdateToolRequest
Returns a new instance of UpdateToolRequest.
6855 6856 6857 6858 6859 6860 6861 6862 |
# File 'lib/cadenya/types.rb', line 6855 def initialize(workspace_id: nil, tool_set_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil) @workspace_id = workspace_id @tool_set_id = tool_set_id @id = id @metadata = @spec = spec @update_mask = update_mask end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6853 6854 6855 |
# File 'lib/cadenya/types.rb', line 6853 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
6853 6854 6855 |
# File 'lib/cadenya/types.rb', line 6853 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
6853 6854 6855 |
# File 'lib/cadenya/types.rb', line 6853 def spec @spec end |
#tool_set_id ⇒ Object (readonly)
Returns the value of attribute tool_set_id.
6853 6854 6855 |
# File 'lib/cadenya/types.rb', line 6853 def tool_set_id @tool_set_id end |
#update_mask ⇒ Object (readonly)
Returns the value of attribute update_mask.
6853 6854 6855 |
# File 'lib/cadenya/types.rb', line 6853 def update_mask @update_mask end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
6853 6854 6855 |
# File 'lib/cadenya/types.rb', line 6853 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 |
# File 'lib/cadenya/types.rb', line 6864 def self.from_json(data) new( workspace_id: data["workspaceId"], tool_set_id: data["toolSetId"], id: data["id"], metadata: data["metadata"].nil? ? nil : Types::UpdateResourceMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::ToolSpec.from_json(data["spec"]), update_mask: data["updateMask"], ) end |
Instance Method Details
#to_h ⇒ Object
6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 |
# File 'lib/cadenya/types.rb', line 6875 def to_h { workspace_id: Util.plain(@workspace_id), tool_set_id: Util.plain(@tool_set_id), id: Util.plain(@id), metadata: Util.plain(@metadata), spec: Util.plain(@spec), update_mask: Util.plain(@update_mask), }.reject { |_k, v| v.nil? } end |