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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbilling_v1/classes.rb,
generated/google/apis/cloudbilling_v1/representations.rb,
generated/google/apis/cloudbilling_v1/representations.rb

Overview

Encapsulates a single service in Google Cloud Platform.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Service

Returns a new instance of Service



796
797
798
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 796

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


782
783
784
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 782

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)


788
789
790
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 788

def name
  @name
end

#service_idString

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

Returns:

  • (String)


794
795
796
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 794

def service_id
  @service_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



801
802
803
804
805
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 801

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