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.
330 331 332 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 330 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
318 319 320 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 318 def credit_amount @credit_amount end |
#credit_description ⇒ String
The credit description.
Corresponds to the JSON property creditDescription
323 324 325 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 323 def credit_description @credit_description end |
#credit_type ⇒ String
The credit type.
Corresponds to the JSON property creditType
328 329 330 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 328 def credit_type @credit_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
335 336 337 338 339 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 335 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 |