Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ReliabilityProjection

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

Overview

Contains information on the impact of a reliability recommendation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1ReliabilityProjection

Returns a new instance of GoogleCloudRecommenderV1ReliabilityProjection.



913
914
915
# File 'lib/google/apis/recommender_v1/classes.rb', line 913

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>)


906
907
908
# File 'lib/google/apis/recommender_v1/classes.rb', line 906

def details
  @details
end

#risksArray<String>

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

Returns:

  • (Array<String>)


911
912
913
# File 'lib/google/apis/recommender_v1/classes.rb', line 911

def risks
  @risks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



918
919
920
921
# File 'lib/google/apis/recommender_v1/classes.rb', line 918

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