Class: AgentCliRuntime::ProbeResult

Inherits:
Data
  • Object
show all
Defined in:
lib/agent_cli_runtime/values.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider:, ready:, installed:, executable:, version:, minimum_version:, auth_configuration:, capability_evidence:, diagnostic:) ⇒ ProbeResult

Returns a new instance of ProbeResult.



137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# File 'lib/agent_cli_runtime/values.rb', line 137

def initialize(provider:, ready:, installed:, executable:, version:,
               minimum_version:, auth_configuration:, capability_evidence:,
               diagnostic:)
  super(
    provider: provider.to_sym,
    ready: ready == true,
    installed: installed == true,
    executable: Immutable.string(executable),
    version: version.nil? ? nil : Immutable.string(version),
    minimum_version:
      minimum_version.nil? ? nil : Immutable.string(minimum_version),
    auth_configuration: auth_configuration,
    capability_evidence: Array(capability_evidence).freeze,
    diagnostic: diagnostic.nil? ? nil : Immutable.string(diagnostic)
  )
end

Instance Attribute Details

#auth_configurationObject (readonly)

Returns the value of attribute auth_configuration

Returns:

  • (Object)

    the current value of auth_configuration



133
134
135
# File 'lib/agent_cli_runtime/values.rb', line 133

def auth_configuration
  @auth_configuration
end

#capability_evidenceObject (readonly)

Returns the value of attribute capability_evidence

Returns:

  • (Object)

    the current value of capability_evidence



133
134
135
# File 'lib/agent_cli_runtime/values.rb', line 133

def capability_evidence
  @capability_evidence
end

#diagnosticObject (readonly)

Returns the value of attribute diagnostic

Returns:

  • (Object)

    the current value of diagnostic



133
134
135
# File 'lib/agent_cli_runtime/values.rb', line 133

def diagnostic
  @diagnostic
end

#executableObject (readonly)

Returns the value of attribute executable

Returns:

  • (Object)

    the current value of executable



133
134
135
# File 'lib/agent_cli_runtime/values.rb', line 133

def executable
  @executable
end

#installedObject (readonly)

Returns the value of attribute installed

Returns:

  • (Object)

    the current value of installed



133
134
135
# File 'lib/agent_cli_runtime/values.rb', line 133

def installed
  @installed
end

#minimum_versionObject (readonly)

Returns the value of attribute minimum_version

Returns:

  • (Object)

    the current value of minimum_version



133
134
135
# File 'lib/agent_cli_runtime/values.rb', line 133

def minimum_version
  @minimum_version
end

#providerObject (readonly)

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



133
134
135
# File 'lib/agent_cli_runtime/values.rb', line 133

def provider
  @provider
end

#readyObject (readonly)

Returns the value of attribute ready

Returns:

  • (Object)

    the current value of ready



133
134
135
# File 'lib/agent_cli_runtime/values.rb', line 133

def ready
  @ready
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



133
134
135
# File 'lib/agent_cli_runtime/values.rb', line 133

def version
  @version
end