Class: Google::Apis::CloudbillingV1beta::SegmentCostEstimate
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::SegmentCostEstimate
- 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
-
#commitment_cost_estimates ⇒ Array<Google::Apis::CloudbillingV1beta::CommitmentCostEstimate>
Estimated costs for each commitment.
-
#segment_start_time ⇒ Google::Apis::CloudbillingV1beta::EstimationTimePoint
Represents a point in time.
-
#segment_total_cost_estimate ⇒ Google::Apis::CloudbillingV1beta::CostEstimate
An estimated cost.
-
#workload_cost_estimates ⇒ Array<Google::Apis::CloudbillingV1beta::WorkloadCostEstimate>
Estimated costs for each workload.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SegmentCostEstimate
constructor
A new instance of SegmentCostEstimate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SegmentCostEstimate
Returns a new instance of SegmentCostEstimate.
2646 2647 2648 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2646 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commitment_cost_estimates ⇒ Array<Google::Apis::CloudbillingV1beta::CommitmentCostEstimate>
Estimated costs for each commitment.
Corresponds to the JSON property commitmentCostEstimates
2629 2630 2631 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2629 def commitment_cost_estimates @commitment_cost_estimates end |
#segment_start_time ⇒ Google::Apis::CloudbillingV1beta::EstimationTimePoint
Represents a point in time.
Corresponds to the JSON property segmentStartTime
2634 2635 2636 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2634 def segment_start_time @segment_start_time end |
#segment_total_cost_estimate ⇒ Google::Apis::CloudbillingV1beta::CostEstimate
An estimated cost.
Corresponds to the JSON property segmentTotalCostEstimate
2639 2640 2641 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2639 def segment_total_cost_estimate @segment_total_cost_estimate end |
#workload_cost_estimates ⇒ Array<Google::Apis::CloudbillingV1beta::WorkloadCostEstimate>
Estimated costs for each workload.
Corresponds to the JSON property workloadCostEstimates
2644 2645 2646 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2644 def workload_cost_estimates @workload_cost_estimates end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2651 2652 2653 2654 2655 2656 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2651 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 |