Class: Google::Apis::CloudbillingV1beta::WorkloadCostEstimate

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkloadCostEstimate

Returns a new instance of WorkloadCostEstimate.



3062
3063
3064
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3062

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

The name of the workload, as specified in the CostScenario. Corresponds to the JSON property name

Returns:

  • (String)


3050
3051
3052
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3050

def name
  @name
end

#sku_cost_estimatesArray<Google::Apis::CloudbillingV1beta::SkuCostEstimate>

Estimated costs for each SKU in the workload. Corresponds to the JSON property skuCostEstimates



3055
3056
3057
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3055

def sku_cost_estimates
  @sku_cost_estimates
end

#workload_total_cost_estimateGoogle::Apis::CloudbillingV1beta::CostEstimate

An estimated cost. Corresponds to the JSON property workloadTotalCostEstimate



3060
3061
3062
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3060

def workload_total_cost_estimate
  @workload_total_cost_estimate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3067
3068
3069
3070
3071
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3067

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