Class: Google::Apis::CloudbillingV1beta::CreditEstimate

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 credit applied to the costs on a SKU.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_amountGoogle::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_descriptionString

The credit description. Corresponds to the JSON property creditDescription

Returns:

  • (String)


525
526
527
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 525

def credit_description
  @credit_description
end

#credit_typeString

The credit type. Corresponds to the JSON property creditType

Returns:

  • (String)


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