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.
-
#impact_components ⇒ Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Impact>
If populated, the impact contains multiple components.
-
#reliability_projection ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ReliabilityProjection
Contains information on the impact of a reliability recommendation.
-
#security_projection ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection
Contains various ways of describing the impact on Security.
-
#service ⇒ String
The service that this impact is associated with.
-
#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.
176 177 178 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
Category that is being targeted.
Corresponds to the JSON property category
141 142 143 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 141 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
146 147 148 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 146 def cost_projection @cost_projection end |
#impact_components ⇒ Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Impact>
If populated, the impact contains multiple components. In this case, the top-
level impact contains aggregated values and each component contains per-
service details.
Corresponds to the JSON property impactComponents
153 154 155 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 153 def impact_components @impact_components end |
#reliability_projection ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ReliabilityProjection
Contains information on the impact of a reliability recommendation.
Corresponds to the JSON property reliabilityProjection
158 159 160 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 158 def reliability_projection @reliability_projection end |
#security_projection ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection
Contains various ways of describing the impact on Security.
Corresponds to the JSON property securityProjection
163 164 165 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 163 def security_projection @security_projection end |
#service ⇒ String
The service that this impact is associated with.
Corresponds to the JSON property service
168 169 170 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 168 def service @service 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
174 175 176 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 174 def sustainability_projection @sustainability_projection end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
181 182 183 184 185 186 187 188 189 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 181 def update!(**args) @category = args[:category] if args.key?(:category) @cost_projection = args[:cost_projection] if args.key?(:cost_projection) @impact_components = args[:impact_components] if args.key?(:impact_components) @reliability_projection = args[:reliability_projection] if args.key?(:reliability_projection) @security_projection = args[:security_projection] if args.key?(:security_projection) @service = args[:service] if args.key?(:service) @sustainability_projection = args[:sustainability_projection] if args.key?(:sustainability_projection) end |