Class: Google::Apis::CoordinateV1::JobState

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

Overview

Current state of a job.

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

Returns a new instance of JobState.



348
349
350
# File 'generated/google/apis/coordinate_v1/classes.rb', line 348

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

Instance Attribute Details

#assigneeString

Email address of the assignee, or the string "DELETED_USER" if the account is no longer available. Corresponds to the JSON property assignee

Returns:

  • (String)


306
307
308
# File 'generated/google/apis/coordinate_v1/classes.rb', line 306

def assignee
  @assignee
end

#custom_fieldsGoogle::Apis::CoordinateV1::CustomFields

Collection of custom fields. Corresponds to the JSON property customFields



311
312
313
# File 'generated/google/apis/coordinate_v1/classes.rb', line 311

def custom_fields
  @custom_fields
end

#customer_nameString

Customer name. Corresponds to the JSON property customerName

Returns:

  • (String)


316
317
318
# File 'generated/google/apis/coordinate_v1/classes.rb', line 316

def customer_name
  @customer_name
end

#customer_phone_numberString

Customer phone number. Corresponds to the JSON property customerPhoneNumber

Returns:

  • (String)


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

def customer_phone_number
  @customer_phone_number
end

#kindString

Identifies this object as a job state. Corresponds to the JSON property kind

Returns:

  • (String)


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

def kind
  @kind
end

#locationGoogle::Apis::CoordinateV1::Location

Location of a job. Corresponds to the JSON property location



331
332
333
# File 'generated/google/apis/coordinate_v1/classes.rb', line 331

def location
  @location
end

#noteArray<String>

Note added to the job. Corresponds to the JSON property note

Returns:

  • (Array<String>)


336
337
338
# File 'generated/google/apis/coordinate_v1/classes.rb', line 336

def note
  @note
end

#progressString

Job progress. Corresponds to the JSON property progress

Returns:

  • (String)


341
342
343
# File 'generated/google/apis/coordinate_v1/classes.rb', line 341

def progress
  @progress
end

#titleString

Job title. Corresponds to the JSON property title

Returns:

  • (String)


346
347
348
# File 'generated/google/apis/coordinate_v1/classes.rb', line 346

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



353
354
355
356
357
358
359
360
361
362
363
# File 'generated/google/apis/coordinate_v1/classes.rb', line 353

def update!(**args)
  @assignee = args[:assignee] if args.key?(:assignee)
  @custom_fields = args[:custom_fields] if args.key?(:custom_fields)
  @customer_name = args[:customer_name] if args.key?(:customer_name)
  @customer_phone_number = args[:customer_phone_number] if args.key?(:customer_phone_number)
  @kind = args[:kind] if args.key?(:kind)
  @location = args[:location] if args.key?(:location)
  @note = args[:note] if args.key?(:note)
  @progress = args[:progress] if args.key?(:progress)
  @title = args[:title] if args.key?(:title)
end