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.



419
420
421
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 419

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



407
408
409
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 407

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



412
413
414
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 412

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



417
418
419
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 417

def pre_credit_cost_estimate
  @pre_credit_cost_estimate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



424
425
426
427
428
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 424

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