Class: Google::Apis::CloudsupportV2::CaseClassification

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

Overview

A classification object with a product type and value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CaseClassification

Returns a new instance of CaseClassification.



298
299
300
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 298

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

Instance Attribute Details

#display_nameString

A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the CaseClassification.id field. Corresponds to the JSON property displayName

Returns:

  • (String)


286
287
288
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 286

def display_name
  @display_name
end

#idString

The unique ID for a classification. Must be specified for case creation. To retrieve valid classification IDs for case creation, use caseClassifications. search. Classification IDs returned by caseClassifications.search are guaranteed to be valid for at least 6 months. If a given classification is deactiveated, it will immediately stop being returned. After 6 months, case. create requests using the classification ID will fail. Corresponds to the JSON property id

Returns:

  • (String)


296
297
298
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 296

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



303
304
305
306
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 303

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
end