Class: Google::Apis::ComputeAlpha::RiskDetails

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

Details about a risk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RiskDetails

Returns a new instance of RiskDetails.



62065
62066
62067
# File 'lib/google/apis/compute_alpha/classes.rb', line 62065

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

Instance Attribute Details

#durationString

The duration of the risk since it was detected. Corresponds to the JSON property duration

Returns:

  • (String)


62043
62044
62045
# File 'lib/google/apis/compute_alpha/classes.rb', line 62043

def duration
  @duration
end

#global_dns_insightGoogle::Apis::ComputeAlpha::RiskDetailsGlobalDnsInsight

Corresponds to the JSON property globalDnsInsight



62048
62049
62050
# File 'lib/google/apis/compute_alpha/classes.rb', line 62048

def global_dns_insight
  @global_dns_insight
end

#last_update_timestampString

The last time the risk was updated. Corresponds to the JSON property lastUpdateTimestamp

Returns:

  • (String)


62053
62054
62055
# File 'lib/google/apis/compute_alpha/classes.rb', line 62053

def last_update_timestamp
  @last_update_timestamp
end

#severityString

The severity of the risk. Corresponds to the JSON property severity

Returns:

  • (String)


62058
62059
62060
# File 'lib/google/apis/compute_alpha/classes.rb', line 62058

def severity
  @severity
end

#typeString

The type of risk. Corresponds to the JSON property type

Returns:

  • (String)


62063
62064
62065
# File 'lib/google/apis/compute_alpha/classes.rb', line 62063

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



62070
62071
62072
62073
62074
62075
62076
# File 'lib/google/apis/compute_alpha/classes.rb', line 62070

def update!(**args)
  @duration = args[:duration] if args.key?(:duration)
  @global_dns_insight = args[:global_dns_insight] if args.key?(:global_dns_insight)
  @last_update_timestamp = args[:last_update_timestamp] if args.key?(:last_update_timestamp)
  @severity = args[:severity] if args.key?(:severity)
  @type = args[:type] if args.key?(:type)
end