Recommender V1 API - Class Google::Cloud::Recommender::V1::CostProjection (v0.11.0)

Reference documentation and code samples for the Recommender V1 API class Google::Cloud::Recommender::V1::CostProjection.

Contains metadata about how much money a recommendation can save or incur.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cost

def cost() -> ::Google::Type::Money
Returns
  • (::Google::Type::Money) — An approximate projection on amount saved or amount incurred. Negative cost units indicate cost savings and positive cost units indicate increase. See google.type.Money documentation for positive/negative units.

    A user's permissions may affect whether the cost is computed using list prices or custom contract prices.

#cost=

def cost=(value) -> ::Google::Type::Money
Parameter
  • value (::Google::Type::Money) — An approximate projection on amount saved or amount incurred. Negative cost units indicate cost savings and positive cost units indicate increase. See google.type.Money documentation for positive/negative units.

    A user's permissions may affect whether the cost is computed using list prices or custom contract prices.

Returns
  • (::Google::Type::Money) — An approximate projection on amount saved or amount incurred. Negative cost units indicate cost savings and positive cost units indicate increase. See google.type.Money documentation for positive/negative units.

    A user's permissions may affect whether the cost is computed using list prices or custom contract prices.

#duration

def duration() -> ::Google::Protobuf::Duration
Returns

#duration=

def duration=(value) -> ::Google::Protobuf::Duration
Parameter
Returns