Class: Google::Apis::CloudbillingV1::Service

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Service

Returns a new instance of Service.



843
844
845
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 843

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

Instance Attribute Details

#business_entity_nameString

The business under which the service is offered. Ex. "businessEntities/GCP", " businessEntities/Maps" Corresponds to the JSON property businessEntityName

Returns:

  • (String)


826
827
828
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 826

def business_entity_name
  @business_entity_name
end

#display_nameString

A human readable display name for this service. Corresponds to the JSON property displayName

Returns:

  • (String)


831
832
833
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 831

def display_name
  @display_name
end

#nameString

The resource name for the service. Example: "services/DA34-426B-A397" Corresponds to the JSON property name

Returns:

  • (String)


836
837
838
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 836

def name
  @name
end

#service_idString

The identifier for the service. Example: "DA34-426B-A397" Corresponds to the JSON property serviceId

Returns:

  • (String)


841
842
843
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 841

def service_id
  @service_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



848
849
850
851
852
853
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 848

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