Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ReliabilityProjection

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

Overview

Contains information on the impact of a reliability recommendation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1ReliabilityProjection

Returns a new instance of GoogleCloudRecommenderV1beta1ReliabilityProjection.



1069
1070
1071
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 1069

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

Instance Attribute Details

#detailsHash<String,Object>

Per-recommender projection. Corresponds to the JSON property details

Returns:

  • (Hash<String,Object>)


1062
1063
1064
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 1062

def details
  @details
end

#risksArray<String>

Reliability risks mitigated by this recommendation. Corresponds to the JSON property risks

Returns:

  • (Array<String>)


1067
1068
1069
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 1067

def risks
  @risks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1074
1075
1076
1077
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 1074

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