Class: Google::Apis::CloudbillingV1beta::SegmentCostEstimate

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

Workload cost estimates for a single time segment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SegmentCostEstimate

Returns a new instance of SegmentCostEstimate.



2652
2653
2654
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2652

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

Instance Attribute Details

#commitment_cost_estimatesArray<Google::Apis::CloudbillingV1beta::CommitmentCostEstimate>

Estimated costs for each commitment. Corresponds to the JSON property commitmentCostEstimates



2635
2636
2637
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2635

def commitment_cost_estimates
  @commitment_cost_estimates
end

#segment_start_timeGoogle::Apis::CloudbillingV1beta::EstimationTimePoint

Represents a point in time. Corresponds to the JSON property segmentStartTime



2640
2641
2642
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2640

def segment_start_time
  @segment_start_time
end

#segment_total_cost_estimateGoogle::Apis::CloudbillingV1beta::CostEstimate

An estimated cost. Corresponds to the JSON property segmentTotalCostEstimate



2645
2646
2647
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2645

def segment_total_cost_estimate
  @segment_total_cost_estimate
end

#workload_cost_estimatesArray<Google::Apis::CloudbillingV1beta::WorkloadCostEstimate>

Estimated costs for each workload. Corresponds to the JSON property workloadCostEstimates



2650
2651
2652
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2650

def workload_cost_estimates
  @workload_cost_estimates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2657
2658
2659
2660
2661
2662
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2657

def update!(**args)
  @commitment_cost_estimates = args[:commitment_cost_estimates] if args.key?(:commitment_cost_estimates)
  @segment_start_time = args[:segment_start_time] if args.key?(:segment_start_time)
  @segment_total_cost_estimate = args[:segment_total_cost_estimate] if args.key?(:segment_total_cost_estimate)
  @workload_cost_estimates = args[:workload_cost_estimates] if args.key?(:workload_cost_estimates)
end