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.
532 533 534 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 532 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
520 521 522 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 520 def credit_amount @credit_amount end |
#credit_description ⇒ String
The credit description.
Corresponds to the JSON property creditDescription
525 526 527 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 525 def credit_description @credit_description end |
#credit_type ⇒ String
The credit type.
Corresponds to the JSON property creditType
530 531 532 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 530 def credit_type @credit_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
537 538 539 540 541 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 537 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 |