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.



518
519
520
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 518

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



506
507
508
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 506

def credit_amount
  @credit_amount
end

#credit_descriptionString

The credit description. Corresponds to the JSON property creditDescription

Returns:

  • (String)


511
512
513
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 511

def credit_description
  @credit_description
end

#credit_typeString

The credit type. Corresponds to the JSON property creditType

Returns:

  • (String)


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