Class: Google::Apis::ComputeAlpha::RiskRecommendation

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

Overview

Recommendation with reference url.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RiskRecommendation

Returns a new instance of RiskRecommendation.



61543
61544
61545
# File 'lib/google/apis/compute_alpha/classes.rb', line 61543

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

Instance Attribute Details

#contentString

Mitigation guide for the risk. Corresponds to the JSON property content

Returns:

  • (String)


61536
61537
61538
# File 'lib/google/apis/compute_alpha/classes.rb', line 61536

def content
  @content
end

#reference_urlString

URL referencing a more detailed mitigation guide. Corresponds to the JSON property referenceUrl

Returns:

  • (String)


61541
61542
61543
# File 'lib/google/apis/compute_alpha/classes.rb', line 61541

def reference_url
  @reference_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



61548
61549
61550
61551
# File 'lib/google/apis/compute_alpha/classes.rb', line 61548

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