Class: Google::Apis::CloudbillingV1beta::CostEstimate

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

An estimated cost.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CostEstimate

Returns a new instance of CostEstimate.



231
232
233
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 231

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

Instance Attribute Details

#credit_estimatesArray<Google::Apis::CloudbillingV1beta::CreditEstimate>

The estimated credits applied. Corresponds to the JSON property creditEstimates



219
220
221
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 219

def credit_estimates
  @credit_estimates
end

#net_cost_estimateGoogle::Apis::CloudbillingV1beta::Money

Represents an amount of money with its currency type. Corresponds to the JSON property netCostEstimate



224
225
226
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 224

def net_cost_estimate
  @net_cost_estimate
end

#pre_credit_cost_estimateGoogle::Apis::CloudbillingV1beta::Money

Represents an amount of money with its currency type. Corresponds to the JSON property preCreditCostEstimate



229
230
231
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 229

def pre_credit_cost_estimate
  @pre_credit_cost_estimate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



236
237
238
239
240
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 236

def update!(**args)
  @credit_estimates = args[:credit_estimates] if args.key?(:credit_estimates)
  @net_cost_estimate = args[:net_cost_estimate] if args.key?(:net_cost_estimate)
  @pre_credit_cost_estimate = args[:pre_credit_cost_estimate] if args.key?(:pre_credit_cost_estimate)
end