Class: Cadenya::Types::CreateToolSetSecretRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/cadenya/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#metadataObject (readonly)

Returns the value of attribute metadata.



1881
1882
1883
# File 'lib/cadenya/types.rb', line 1881

def 
  @metadata
end

#specObject (readonly)

Returns the value of attribute spec.



1881
1882
1883
# File 'lib/cadenya/types.rb', line 1881

def spec
  @spec
end

#tool_set_idObject (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_idObject (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

Instance Method Details

#to_hObject



1899
1900
1901
1902
1903
1904
1905
1906
# File 'lib/cadenya/types.rb', line 1899

def to_h
  {
    workspace_id: Util.plain(@workspace_id),
    tool_set_id: Util.plain(@tool_set_id),
    metadata: Util.plain(@metadata),
    spec: Util.plain(@spec),
  }.reject { |_k, v| v.nil? }
end