Class: Google::Apis::CoordinateV1::ListWorkerResponse

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

Response from a List Workers request.

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

Returns a new instance of ListWorkerResponse.



657
658
659
# File 'generated/google/apis/coordinate_v1/classes.rb', line 657

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

Instance Attribute Details

#itemsArray<Google::Apis::CoordinateV1::Worker>

Workers in the collection. Corresponds to the JSON property items



650
651
652
# File 'generated/google/apis/coordinate_v1/classes.rb', line 650

def items
  @items
end

#kindString

Identifies this object as a list of workers. Corresponds to the JSON property kind

Returns:

  • (String)


655
656
657
# File 'generated/google/apis/coordinate_v1/classes.rb', line 655

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



662
663
664
665
# File 'generated/google/apis/coordinate_v1/classes.rb', line 662

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