Class: Google::Apis::NetworkconnectivityV1::Warnings
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::Warnings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkconnectivity_v1/classes.rb,
lib/google/apis/networkconnectivity_v1/representations.rb,
lib/google/apis/networkconnectivity_v1/representations.rb
Overview
Informational warning message.
Instance Attribute Summary collapse
-
#code ⇒ String
Output only.
-
#data ⇒ Hash<String,String>
Output only.
-
#warning_message ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Warnings
constructor
A new instance of Warnings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Warnings
Returns a new instance of Warnings.
3732 3733 3734 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3732 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Output only. A warning code, if applicable.
Corresponds to the JSON property code
3716 3717 3718 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3716 def code @code end |
#data ⇒ Hash<String,String>
Output only. Metadata about this warning in key: value format. The key should
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.
Corresponds to the JSON property data
3725 3726 3727 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3725 def data @data end |
#warning_message ⇒ String
Output only. A human-readable description of the warning code.
Corresponds to the JSON property warningMessage
3730 3731 3732 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3730 def @warning_message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3737 3738 3739 3740 3741 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3737 def update!(**args) @code = args[:code] if args.key?(:code) @data = args[:data] if args.key?(:data) @warning_message = args[:warning_message] if args.key?(:warning_message) end |