Class: Google::Apis::CloudbillingV1::Service
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1::Service
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbilling_v1/classes.rb,
lib/google/apis/cloudbilling_v1/representations.rb,
lib/google/apis/cloudbilling_v1/representations.rb
Overview
Encapsulates a single service in Google Cloud Platform.
Instance Attribute Summary collapse
-
#business_entity_name ⇒ String
The business under which the service is offered.
-
#display_name ⇒ String
A human readable display name for this service.
-
#name ⇒ String
The resource name for the service.
-
#service_id ⇒ String
The identifier for the service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Service
constructor
A new instance of Service.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Service
Returns a new instance of Service.
880 881 882 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 880 def initialize(**args) update!(**args) end |
Instance Attribute Details
#business_entity_name ⇒ String
The business under which the service is offered. Ex. "businessEntities/GCP", "
businessEntities/Maps"
Corresponds to the JSON property businessEntityName
863 864 865 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 863 def business_entity_name @business_entity_name end |
#display_name ⇒ String
A human readable display name for this service.
Corresponds to the JSON property displayName
868 869 870 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 868 def display_name @display_name end |
#name ⇒ String
The resource name for the service. Example: "services/6F81-5844-456A"
Corresponds to the JSON property name
873 874 875 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 873 def name @name end |
#service_id ⇒ String
The identifier for the service. Example: "6F81-5844-456A"
Corresponds to the JSON property serviceId
878 879 880 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 878 def service_id @service_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
885 886 887 888 889 890 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 885 def update!(**args) @business_entity_name = args[:business_entity_name] if args.key?(:business_entity_name) @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 |