Class: Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse

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

Overview

Response that contains list beacon results and pagination help.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListBeaconsResponse

Returns a new instance of ListBeaconsResponse



719
720
721
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 719

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

Instance Attribute Details

#beaconsArray<Google::Apis::ProximitybeaconV1beta1::Beacon>

The beacons that matched the search criteria. Corresponds to the JSON property beacons



705
706
707
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 705

def beacons
  @beacons
end

#next_page_tokenString

An opaque pagination token that the client may provide in their next request to retrieve the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


711
712
713
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 711

def next_page_token
  @next_page_token
end

#total_countFixnum

Estimate of the total number of beacons matched by the query. Higher values may be less accurate. Corresponds to the JSON property totalCount

Returns:

  • (Fixnum)


717
718
719
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 717

def total_count
  @total_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



724
725
726
727
728
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 724

def update!(**args)
  @beacons = args[:beacons] if args.key?(:beacons)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @total_count = args[:total_count] if args.key?(:total_count)
end