Class: Google::Apis::WorkloadmanagerV1::AgentStatusConfigValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb

Overview

The configuration value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AgentStatusConfigValue

Returns a new instance of AgentStatusConfigValue.



385
386
387
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 385

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#is_defaultBoolean Also known as: is_default?

Output only. Whether the configuration value is the default value or overridden. Corresponds to the JSON property isDefault

Returns:

  • (Boolean)


372
373
374
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 372

def is_default
  @is_default
end

#nameString

Output only. The name of the configuration value. Corresponds to the JSON property name

Returns:

  • (String)


378
379
380
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 378

def name
  @name
end

#valueString

Output only. The value of the configuration value. Corresponds to the JSON property value

Returns:

  • (String)


383
384
385
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 383

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



390
391
392
393
394
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 390

def update!(**args)
  @is_default = args[:is_default] if args.key?(:is_default)
  @name = args[:name] if args.key?(:name)
  @value = args[:value] if args.key?(:value)
end