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.
1096 1097 1098 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1096 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
1079 1080 1081 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1079 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
1084 1085 1086 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1084 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
1089 1090 1091 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1089 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
1094 1095 1096 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1094 def workload_cost_estimates @workload_cost_estimates end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1101 1102 1103 1104 1105 1106 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1101 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 |