Class: Google::Apis::CloudbillingV1beta::WorkloadCostEstimate
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::WorkloadCostEstimate
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbilling_v1beta/classes.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb
Overview
Estimated cost for a workload.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the workload, as specified in the
CostScenario
. -
#sku_cost_estimates ⇒ Array<Google::Apis::CloudbillingV1beta::SkuCostEstimate>
Estimated costs for each SKU in the workload.
-
#workload_total_cost_estimate ⇒ Google::Apis::CloudbillingV1beta::CostEstimate
An estimated cost.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkloadCostEstimate
constructor
A new instance of WorkloadCostEstimate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkloadCostEstimate
Returns a new instance of WorkloadCostEstimate.
3081 3082 3083 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3081 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the workload, as specified in the CostScenario
.
Corresponds to the JSON property name
3069 3070 3071 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3069 def name @name end |
#sku_cost_estimates ⇒ Array<Google::Apis::CloudbillingV1beta::SkuCostEstimate>
Estimated costs for each SKU in the workload.
Corresponds to the JSON property skuCostEstimates
3074 3075 3076 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3074 def sku_cost_estimates @sku_cost_estimates end |
#workload_total_cost_estimate ⇒ Google::Apis::CloudbillingV1beta::CostEstimate
An estimated cost.
Corresponds to the JSON property workloadTotalCostEstimate
3079 3080 3081 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3079 def workload_total_cost_estimate @workload_total_cost_estimate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3086 3087 3088 3089 3090 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3086 def update!(**args) @name = args[:name] if args.key?(:name) @sku_cost_estimates = args[:sku_cost_estimates] if args.key?(:sku_cost_estimates) @workload_total_cost_estimate = args[:workload_total_cost_estimate] if args.key?(:workload_total_cost_estimate) end |