Class: Google::Apis::NetworkconnectivityV1::Warnings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Warnings

Returns a new instance of Warnings.



3261
3262
3263
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3261

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

Instance Attribute Details

#codeString

Output only. A warning code, if applicable. Corresponds to the JSON property code

Returns:

  • (String)


3245
3246
3247
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3245

def code
  @code
end

#dataHash<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

Returns:

  • (Hash<String,String>)


3254
3255
3256
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3254

def data
  @data
end

#warning_messageString

Output only. A human-readable description of the warning code. Corresponds to the JSON property warningMessage

Returns:

  • (String)


3259
3260
3261
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3259

def warning_message
  @warning_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3266
3267
3268
3269
3270
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3266

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