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.



166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# File 'lib/agent_cli_runtime/values.rb', line 166

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



162
163
164
# File 'lib/agent_cli_runtime/values.rb', line 162

def auth_configuration
  @auth_configuration
end

#capability_evidenceObject (readonly)

Returns the value of attribute capability_evidence

Returns:

  • (Object)

    the current value of capability_evidence



162
163
164
# File 'lib/agent_cli_runtime/values.rb', line 162

def capability_evidence
  @capability_evidence
end

#diagnosticObject (readonly)

Returns the value of attribute diagnostic

Returns:

  • (Object)

    the current value of diagnostic



162
163
164
# File 'lib/agent_cli_runtime/values.rb', line 162

def diagnostic
  @diagnostic
end

#executableObject (readonly)

Returns the value of attribute executable

Returns:

  • (Object)

    the current value of executable



162
163
164
# File 'lib/agent_cli_runtime/values.rb', line 162

def executable
  @executable
end

#installedObject (readonly)

Returns the value of attribute installed

Returns:

  • (Object)

    the current value of installed



162
163
164
# File 'lib/agent_cli_runtime/values.rb', line 162

def installed
  @installed
end

#minimum_versionObject (readonly)

Returns the value of attribute minimum_version

Returns:

  • (Object)

    the current value of minimum_version



162
163
164
# File 'lib/agent_cli_runtime/values.rb', line 162

def minimum_version
  @minimum_version
end

#providerObject (readonly)

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



162
163
164
# File 'lib/agent_cli_runtime/values.rb', line 162

def provider
  @provider
end

#readyObject (readonly)

Returns the value of attribute ready

Returns:

  • (Object)

    the current value of ready



162
163
164
# File 'lib/agent_cli_runtime/values.rb', line 162

def ready
  @ready
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



162
163
164
# File 'lib/agent_cli_runtime/values.rb', line 162

def version
  @version
end