Class: Google::Apis::DeploymentmanagerV2::Resource::Warning::Datum

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Datum

Returns a new instance of Datum.


1543
1544
1545
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1543

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

Instance Attribute Details

#keyString

[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). Corresponds to the JSON property key

Returns:

  • (String)

1536
1537
1538
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1536

def key
  @key
end

#valueString

[Output Only] A warning data value corresponding to the key. Corresponds to the JSON property value

Returns:

  • (String)

1541
1542
1543
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1541

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1548
1549
1550
1551
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1548

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