Class: Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse

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

Overview

Response message containing a list of Tasks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2ListTasksResponse

Returns a new instance of GoogleCloudRunV2ListTasksResponse.



1323
1324
1325
# File 'lib/google/apis/run_v2/classes.rb', line 1323

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

Instance Attribute Details

#next_page_tokenString

A token indicating there are more items than page_size. Use it in the next ListTasks request to continue. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1316
1317
1318
# File 'lib/google/apis/run_v2/classes.rb', line 1316

def next_page_token
  @next_page_token
end

#tasksArray<Google::Apis::RunV2::GoogleCloudRunV2Task>

The resulting list of Tasks. Corresponds to the JSON property tasks



1321
1322
1323
# File 'lib/google/apis/run_v2/classes.rb', line 1321

def tasks
  @tasks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1328
1329
1330
1331
# File 'lib/google/apis/run_v2/classes.rb', line 1328

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