Class: AgentCliRuntime::ProbeRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(profile:, route:, variant: nil, environment: {}, credential_environment_keys: [], credential_file_staged: false) ⇒ ProbeRequest

Returns a new instance of ProbeRequest.



323
324
325
326
327
328
329
330
331
332
333
334
335
336
# File 'lib/agent_cli_runtime/values.rb', line 323

def initialize(profile:, route:, variant: nil, environment: {},
               credential_environment_keys: [],
               credential_file_staged: false)
  parsed_route = route.is_a?(Route) ? route : Route.parse(route)
  super(
    profile: profile,
    route: parsed_route,
    variant: variant.nil? ? nil : Immutable.string(variant),
    environment: Immutable.hash(environment),
    credential_environment_keys:
      Immutable.strings(credential_environment_keys),
    credential_file_staged: credential_file_staged == true
  )
end

Instance Attribute Details

#credential_environment_keysObject (readonly)

Returns the value of attribute credential_environment_keys

Returns:

  • (Object)

    the current value of credential_environment_keys



319
320
321
# File 'lib/agent_cli_runtime/values.rb', line 319

def credential_environment_keys
  @credential_environment_keys
end

#credential_file_stagedObject (readonly)

Returns the value of attribute credential_file_staged

Returns:

  • (Object)

    the current value of credential_file_staged



319
320
321
# File 'lib/agent_cli_runtime/values.rb', line 319

def credential_file_staged
  @credential_file_staged
end

#environmentObject (readonly)

Returns the value of attribute environment

Returns:

  • (Object)

    the current value of environment



319
320
321
# File 'lib/agent_cli_runtime/values.rb', line 319

def environment
  @environment
end

#profileObject (readonly)

Returns the value of attribute profile

Returns:

  • (Object)

    the current value of profile



319
320
321
# File 'lib/agent_cli_runtime/values.rb', line 319

def profile
  @profile
end

#routeObject (readonly)

Returns the value of attribute route

Returns:

  • (Object)

    the current value of route



319
320
321
# File 'lib/agent_cli_runtime/values.rb', line 319

def route
  @route
end

#variantObject (readonly)

Returns the value of attribute variant

Returns:

  • (Object)

    the current value of variant



319
320
321
# File 'lib/agent_cli_runtime/values.rb', line 319

def variant
  @variant
end