Class: Google::Apis::CloudsupportV2beta::Case

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

Overview

A support case.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Case

Returns a new instance of Case.



249
250
251
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 249

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

Instance Attribute Details

#classificationGoogle::Apis::CloudsupportV2beta::CaseClassification

A classification object with a product type and value. Corresponds to the JSON property classification



176
177
178
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 176

def classification
  @classification
end

#create_timeString

Output only. The time this case was created. Corresponds to the JSON property createTime

Returns:

  • (String)


181
182
183
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 181

def create_time
  @create_time
end

#creatorGoogle::Apis::CloudsupportV2beta::Actor

An object containing information about the effective user and authenticated principal responsible for an action. Corresponds to the JSON property creator



187
188
189
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 187

def creator
  @creator
end

#descriptionString

A broad description of the issue. Corresponds to the JSON property description

Returns:

  • (String)


192
193
194
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 192

def description
  @description
end

#display_nameString

The short summary of the issue reported in this case. Corresponds to the JSON property displayName

Returns:

  • (String)


197
198
199
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 197

def display_name
  @display_name
end

#escalatedBoolean Also known as: escalated?

Whether the case is currently escalated. Corresponds to the JSON property escalated

Returns:

  • (Boolean)


202
203
204
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 202

def escalated
  @escalated
end

#nameString

The resource name for the case. Corresponds to the JSON property name

Returns:

  • (String)


208
209
210
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 208

def name
  @name
end

#priorityString

The priority of this case. If this is set, do not set severity. Corresponds to the JSON property priority

Returns:

  • (String)


213
214
215
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 213

def priority
  @priority
end

#severityString

The severity of this case. Deprecated. Use priority instead. Corresponds to the JSON property severity

Returns:

  • (String)


218
219
220
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 218

def severity
  @severity
end

#stateString

Output only. The current status of the support case. Corresponds to the JSON property state

Returns:

  • (String)


223
224
225
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 223

def state
  @state
end

#subscriber_email_addressesArray<String>

The email addresses to receive updates on this case. Corresponds to the JSON property subscriberEmailAddresses

Returns:

  • (Array<String>)


228
229
230
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 228

def subscriber_email_addresses
  @subscriber_email_addresses
end

#test_caseBoolean Also known as: test_case?

Whether this case was created for internal API testing and should not be acted on by the support team. Corresponds to the JSON property testCase

Returns:

  • (Boolean)


234
235
236
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 234

def test_case
  @test_case
end

#time_zoneString

The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API. Corresponds to the JSON property timeZone

Returns:

  • (String)


242
243
244
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 242

def time_zone
  @time_zone
end

#update_timeString

Output only. The time this case was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


247
248
249
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 247

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 254

def update!(**args)
  @classification = args[:classification] if args.key?(:classification)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creator = args[:creator] if args.key?(:creator)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @escalated = args[:escalated] if args.key?(:escalated)
  @name = args[:name] if args.key?(:name)
  @priority = args[:priority] if args.key?(:priority)
  @severity = args[:severity] if args.key?(:severity)
  @state = args[:state] if args.key?(:state)
  @subscriber_email_addresses = args[:subscriber_email_addresses] if args.key?(:subscriber_email_addresses)
  @test_case = args[:test_case] if args.key?(:test_case)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
  @update_time = args[:update_time] if args.key?(:update_time)
end