Class: Google::Apis::SourcerepoV1::ListReposResponse

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

Overview

Response for ListRepos. The size is not set in the returned repositories.

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

Returns a new instance of ListReposResponse.



322
323
324
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 322

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

Instance Attribute Details

#next_page_tokenString

If non-empty, additional repositories exist within the project. These can be retrieved by including this value in the next ListReposRequest's page_token field. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


315
316
317
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 315

def next_page_token
  @next_page_token
end

#reposArray<Google::Apis::SourcerepoV1::Repo>

The listed repos. Corresponds to the JSON property repos



320
321
322
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 320

def repos
  @repos
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



327
328
329
330
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 327

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