Class: Cadenya::Types::UpdateToolSetSecretRequest

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, id: nil, metadata: nil, spec: nil, update_mask: nil) ⇒ UpdateToolSetSecretRequest

Returns a new instance of UpdateToolSetSecretRequest.



6922
6923
6924
6925
6926
6927
6928
6929
# File 'lib/cadenya/types.rb', line 6922

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

#idObject (readonly)

Returns the value of attribute id.



6920
6921
6922
# File 'lib/cadenya/types.rb', line 6920

def id
  @id
end

#metadataObject (readonly)

Returns the value of attribute metadata.



6920
6921
6922
# File 'lib/cadenya/types.rb', line 6920

def 
  @metadata
end

#specObject (readonly)

Returns the value of attribute spec.



6920
6921
6922
# File 'lib/cadenya/types.rb', line 6920

def spec
  @spec
end

#tool_set_idObject (readonly)

Returns the value of attribute tool_set_id.



6920
6921
6922
# File 'lib/cadenya/types.rb', line 6920

def tool_set_id
  @tool_set_id
end

#update_maskObject (readonly)

Returns the value of attribute update_mask.



6920
6921
6922
# File 'lib/cadenya/types.rb', line 6920

def update_mask
  @update_mask
end

#workspace_idObject (readonly)

Returns the value of attribute workspace_id.



6920
6921
6922
# File 'lib/cadenya/types.rb', line 6920

def workspace_id
  @workspace_id
end

Class Method Details

.from_json(data) ⇒ Object



6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
# File 'lib/cadenya/types.rb', line 6931

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::ToolSetSecretSpec.from_json(data["spec"]),
    update_mask: data["updateMask"],
  )
end

Instance Method Details

#to_hObject



6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
# File 'lib/cadenya/types.rb', line 6942

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