Class: Google::Apis::CloudbillingV1::Category

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

Represents the category hierarchy of a SKU.

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) ⇒ Category

Returns a new instance of Category.



334
335
336
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 334

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

Instance Attribute Details

#resource_familyString

The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc. Corresponds to the JSON property resourceFamily

Returns:

  • (String)


315
316
317
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 315

def resource_family
  @resource_family
end

#resource_groupString

A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc. Corresponds to the JSON property resourceGroup

Returns:

  • (String)


321
322
323
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 321

def resource_group
  @resource_group
end

#service_display_nameString

The display name of the service this SKU belongs to. Corresponds to the JSON property serviceDisplayName

Returns:

  • (String)


326
327
328
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 326

def service_display_name
  @service_display_name
end

#usage_typeString

Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc. Corresponds to the JSON property usageType

Returns:

  • (String)


332
333
334
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 332

def usage_type
  @usage_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



339
340
341
342
343
344
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 339

def update!(**args)
  @resource_family = args[:resource_family] if args.key?(:resource_family)
  @resource_group = args[:resource_group] if args.key?(:resource_group)
  @service_display_name = args[:service_display_name] if args.key?(:service_display_name)
  @usage_type = args[:usage_type] if args.key?(:usage_type)
end