Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillingAccount
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillingAccount
- 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
-
#create_time ⇒ String
Output only.
-
#currency_code ⇒ String
Output only.
-
#display_name ⇒ String
Display name of the billing account.
-
#name ⇒ String
Output only.
-
#region_code ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1BillingAccount
constructor
A new instance of GoogleCloudChannelV1BillingAccount.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_time ⇒ String
Output only. The time when this billing account was created.
Corresponds to the JSON property createTime
147 148 149 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 147 def create_time @create_time end |
#currency_code ⇒ String
Output only. The 3-letter currency code defined in ISO 4217.
Corresponds to the JSON property currencyCode
152 153 154 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 152 def currency_code @currency_code end |
#display_name ⇒ String
Display name of the billing account.
Corresponds to the JSON property displayName
157 158 159 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 157 def display_name @display_name end |
#name ⇒ String
Output only. Resource name of the billing account. Format: accounts/
account_id
/billingAccounts/billing_account_id
.
Corresponds to the JSON property name
163 164 165 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 163 def name @name end |
#region_code ⇒ String
Output only. The CLDR region code.
Corresponds to the JSON property regionCode
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 |