View Source GoogleApi.Recommender.V1beta1.Model.GoogleCloudRecommenderV1beta1CostProjection (google_api_recommender v0.22.0)

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

Attributes

  • cost (type: GoogleApi.Recommender.V1beta1.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.V1beta1.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.
  • pricingType (type: String.t, default: nil) - How the cost is calculated.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

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

Unwrap a decoded JSON object into its complex fields.