View Source GoogleApi.Recommender.V1.Model.GoogleCloudRecommenderV1CostProjection (google_api_recommender v0.20.1)

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

Attributes

  • cost (type: GoogleApi.Recommender.V1.Model.GoogleTypeMoney.t, default: nil) - 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.
  • costInLocalCurrency (type: GoogleApi.Recommender.V1.Model.GoogleTypeMoney.t, default: nil) - The approximate cost savings in the billing account's local currency.
  • duration (type: String.t, default: nil) - Duration for which this cost applies.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Recommender.V1.Model.GoogleCloudRecommenderV1CostProjection{
  cost: GoogleApi.Recommender.V1.Model.GoogleTypeMoney.t() | nil,
  costInLocalCurrency: GoogleApi.Recommender.V1.Model.GoogleTypeMoney.t() | nil,
  duration: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.