class Google::Apis::CloudbillingV1::Category

Represents the category hierarchy of a SKU.

Attributes

resource_family[RW]

The type of product the SKU refers to. Example: “Compute”, “Storage”, “Network” , “ApplicationServices” etc. Corresponds to the JSON property `resourceFamily` @return [String]

resource_group[RW]

A group classification for related SKUs. Example: “RAM”, “GPU”, “Prediction”, “ Ops”, “GoogleEgress” etc. Corresponds to the JSON property `resourceGroup` @return [String]

service_display_name[RW]

The display name of the service this SKU belongs to. Corresponds to the JSON property `serviceDisplayName` @return [String]

usage_type[RW]

Represents how the SKU is consumed. Example: “OnDemand”, “Preemptible”, “ Commit1Mo”, “Commit1Yr” etc. Corresponds to the JSON property `usageType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbilling_v1/classes.rb, line 274
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbilling_v1/classes.rb, line 279
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