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.



3081
3082
3083
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3081

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)


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

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



3074
3075
3076
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 3074

def sku_cost_estimates
  @sku_cost_estimates
end

#workload_total_cost_estimateGoogle::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