Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Impact
- Inherits:
-
Object
- Object
- Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Impact
- 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 the impact a recommendation can have for a given category.
Instance Attribute Summary collapse
-
#category ⇒ String
Category that is being targeted.
-
#cost_projection ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1CostProjection
Contains metadata about how much money a recommendation can save or incur.
-
#security_projection ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection
Contains various ways of describing the impact on Security.
-
#sustainability_projection ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SustainabilityProjection
Contains metadata about how much sustainability a recommendation can save or incur.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1Impact
constructor
A new instance of GoogleCloudRecommenderV1beta1Impact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1Impact
Returns a new instance of GoogleCloudRecommenderV1beta1Impact.
75 76 77 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 75 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
Category that is being targeted.
Corresponds to the JSON property category
57 58 59 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 57 def category @category end |
#cost_projection ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1CostProjection
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_v1beta1/classes.rb', line 62 def cost_projection @cost_projection end |
#security_projection ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection
Contains various ways of describing the impact on Security.
Corresponds to the JSON property securityProjection
67 68 69 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 67 def security_projection @security_projection end |
#sustainability_projection ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SustainabilityProjection
Contains metadata about how much sustainability a recommendation can save or
incur.
Corresponds to the JSON property sustainabilityProjection
73 74 75 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 73 def sustainability_projection @sustainability_projection end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
80 81 82 83 84 85 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 80 def update!(**args) @category = args[:category] if args.key?(:category) @cost_projection = args[:cost_projection] if args.key?(:cost_projection) @security_projection = args[:security_projection] if args.key?(:security_projection) @sustainability_projection = args[:sustainability_projection] if args.key?(:sustainability_projection) end |