Class: Google::Apis::HealthV4::ListSubscribersResponse

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

Overview

Response message for ListSubscribers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListSubscribersResponse

Returns a new instance of ListSubscribersResponse.



2285
2286
2287
# File 'lib/google/apis/health_v4/classes.rb', line 2285

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

Instance Attribute Details

#next_page_tokenString

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


2273
2274
2275
# File 'lib/google/apis/health_v4/classes.rb', line 2273

def next_page_token
  @next_page_token
end

#subscribersArray<Google::Apis::HealthV4::Subscriber>

Subscribers from the specified project. Corresponds to the JSON property subscribers



2278
2279
2280
# File 'lib/google/apis/health_v4/classes.rb', line 2278

def subscribers
  @subscribers
end

#total_sizeFixnum

The total number of subscribers matching the request. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


2283
2284
2285
# File 'lib/google/apis/health_v4/classes.rb', line 2283

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2290
2291
2292
2293
2294
# File 'lib/google/apis/health_v4/classes.rb', line 2290

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