Class: Google::Apis::CloudbillingV1beta::CreditEstimate
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::CreditEstimate
- 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 credit applied to the costs on a SKU.
Instance Attribute Summary collapse
-
#credit_amount ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
-
#credit_description ⇒ String
The credit description.
-
#credit_type ⇒ String
The credit type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreditEstimate
constructor
A new instance of CreditEstimate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreditEstimate
Returns a new instance of CreditEstimate.
518 519 520 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 518 def initialize(**args) update!(**args) end |
Instance Attribute Details
#credit_amount ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property creditAmount
506 507 508 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 506 def credit_amount @credit_amount end |
#credit_description ⇒ String
The credit description.
Corresponds to the JSON property creditDescription
511 512 513 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 511 def credit_description @credit_description end |
#credit_type ⇒ String
The credit type.
Corresponds to the JSON property creditType
516 517 518 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 516 def credit_type @credit_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
523 524 525 526 527 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 523 def update!(**args) @credit_amount = args[:credit_amount] if args.key?(:credit_amount) @credit_description = args[:credit_description] if args.key?(:credit_description) @credit_type = args[:credit_type] if args.key?(:credit_type) end |