Class: Google::Apis::CloudbillingV1beta::CostEstimate
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::CostEstimate
- 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
-
#credit_estimates ⇒ Array<Google::Apis::CloudbillingV1beta::CreditEstimate>
The estimated credits applied.
-
#net_cost_estimate ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
-
#pre_credit_cost_estimate ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CostEstimate
constructor
A new instance of CostEstimate.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_estimates ⇒ Array<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_estimate ⇒ Google::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_estimate ⇒ Google::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 |