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.



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

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



405
406
407
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 405

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



410
411
412
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 410

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



415
416
417
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 415

def pre_credit_cost_estimate
  @pre_credit_cost_estimate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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