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.
3025 3026 3027 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3025 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
3013 3014 3015 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3013 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
3018 3019 3020 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3018 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
3023 3024 3025 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3023 def workload_total_cost_estimate @workload_total_cost_estimate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3030 3031 3032 3033 3034 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3030 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 |