Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact

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 the impact a recommendation can have for a given category.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1Impact

Returns a new instance of GoogleCloudRecommenderV1Impact.



80
81
82
# File 'lib/google/apis/recommender_v1/classes.rb', line 80

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

Instance Attribute Details

#categoryString

Category that is being targeted. Corresponds to the JSON property category

Returns:

  • (String)


57
58
59
# File 'lib/google/apis/recommender_v1/classes.rb', line 57

def category
  @category
end

#cost_projectionGoogle::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection

Contains metadata about how much money a recommendation can save or incur. Corresponds to the JSON property costProjection



62
63
64
# File 'lib/google/apis/recommender_v1/classes.rb', line 62

def cost_projection
  @cost_projection
end

#reliability_projectionGoogle::Apis::RecommenderV1::GoogleCloudRecommenderV1ReliabilityProjection

Contains information on the impact of a reliability recommendation. Corresponds to the JSON property reliabilityProjection



67
68
69
# File 'lib/google/apis/recommender_v1/classes.rb', line 67

def reliability_projection
  @reliability_projection
end

#security_projectionGoogle::Apis::RecommenderV1::GoogleCloudRecommenderV1SecurityProjection

Contains various ways of describing the impact on Security. Corresponds to the JSON property securityProjection



72
73
74
# File 'lib/google/apis/recommender_v1/classes.rb', line 72

def security_projection
  @security_projection
end

#sustainability_projectionGoogle::Apis::RecommenderV1::GoogleCloudRecommenderV1SustainabilityProjection

Contains metadata about how much sustainability a recommendation can save or incur. Corresponds to the JSON property sustainabilityProjection



78
79
80
# File 'lib/google/apis/recommender_v1/classes.rb', line 78

def sustainability_projection
  @sustainability_projection
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



85
86
87
88
89
90
91
# File 'lib/google/apis/recommender_v1/classes.rb', line 85

def update!(**args)
  @category = args[:category] if args.key?(:category)
  @cost_projection = args[:cost_projection] if args.key?(:cost_projection)
  @reliability_projection = args[:reliability_projection] if args.key?(:reliability_projection)
  @security_projection = args[:security_projection] if args.key?(:security_projection)
  @sustainability_projection = args[:sustainability_projection] if args.key?(:sustainability_projection)
end