Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillingAccount

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb

Overview

Represents a billing account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1BillingAccount

Returns a new instance of GoogleCloudChannelV1BillingAccount.



131
132
133
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 131

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The time when this billing account was created. Corresponds to the JSON property createTime

Returns:

  • (String)


108
109
110
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 108

def create_time
  @create_time
end

#currency_codeString

Output only. The 3-letter currency code defined in ISO 4217. Corresponds to the JSON property currencyCode

Returns:

  • (String)


113
114
115
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 113

def currency_code
  @currency_code
end

#display_nameString

Display name of the billing account. Corresponds to the JSON property displayName

Returns:

  • (String)


118
119
120
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 118

def display_name
  @display_name
end

#nameString

Output only. Resource name of the billing account. Format: accounts/ account_id/billingAccounts/billing_account_id. Corresponds to the JSON property name

Returns:

  • (String)


124
125
126
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 124

def name
  @name
end

#region_codeString

Output only. The CLDR region code. Corresponds to the JSON property regionCode

Returns:

  • (String)


129
130
131
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 129

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



136
137
138
139
140
141
142
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 136

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @region_code = args[:region_code] if args.key?(:region_code)
end