Class: Google::Apis::CloudbillingV1::Category
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1::Category
- 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
Represents the category hierarchy of a SKU.
Instance Attribute Summary collapse
-
#resource_family ⇒ String
The type of product the SKU refers to.
-
#resource_group ⇒ String
A group classification for related SKUs.
-
#service_display_name ⇒ String
The display name of the service this SKU belongs to.
-
#usage_type ⇒ String
Represents how the SKU is consumed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Category
constructor
A new instance of Category.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Category
Returns a new instance of Category.
277 278 279 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 277 def initialize(**args) update!(**args) end |
Instance Attribute Details
#resource_family ⇒ String
The type of product the SKU refers to. Example: "Compute", "Storage", "Network"
, "ApplicationServices" etc.
Corresponds to the JSON property resourceFamily
258 259 260 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 258 def resource_family @resource_family end |
#resource_group ⇒ String
A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "
Ops", "GoogleEgress" etc.
Corresponds to the JSON property resourceGroup
264 265 266 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 264 def resource_group @resource_group end |
#service_display_name ⇒ String
The display name of the service this SKU belongs to.
Corresponds to the JSON property serviceDisplayName
269 270 271 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 269 def service_display_name @service_display_name end |
#usage_type ⇒ String
Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "
Commit1Mo", "Commit1Yr" etc.
Corresponds to the JSON property usageType
275 276 277 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 275 def usage_type @usage_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
282 283 284 285 286 287 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 282 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 |