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.



170
171
172
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 170

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)


147
148
149
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 147

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)


152
153
154
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 152

def currency_code
  @currency_code
end

#display_nameString

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

Returns:

  • (String)


157
158
159
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 157

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)


163
164
165
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 163

def name
  @name
end

#region_codeString

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

Returns:

  • (String)


168
169
170
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 168

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



175
176
177
178
179
180
181
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 175

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