Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService
- 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
Encapsulates a Google Cloud service visible to a billing account.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Description of the BillingAccountService.
-
#name ⇒ String
Resource name for the BillingAccountService.
-
#service_id ⇒ String
Identifier for the service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService
constructor
A new instance of GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService
Returns a new instance of GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService.
1211 1212 1213 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Description of the BillingAccountService. Example: "BigQuery", "Compute Engine"
.
Corresponds to the JSON property displayName
1197 1198 1199 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1197 def display_name @display_name end |
#name ⇒ String
Resource name for the BillingAccountService. Example: "billingAccounts/012345-
567890-ABCDEF/services/DA34-426B-A397".
Corresponds to the JSON property name
1203 1204 1205 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1203 def name @name end |
#service_id ⇒ String
Identifier for the service. It is the string after the collection identifier "
services/". Example: "DA34-426B-A397".
Corresponds to the JSON property serviceId
1209 1210 1211 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1209 def service_id @service_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1216 1217 1218 1219 1220 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1216 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @service_id = args[:service_id] if args.key?(:service_id) end |