Class: Google::Apis::TranslateV3::ListModelsResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::ListModelsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v3/classes.rb,
lib/google/apis/translate_v3/representations.rb,
lib/google/apis/translate_v3/representations.rb
Overview
Response message for ListModels.
Instance Attribute Summary collapse
-
#models ⇒ Array<Google::Apis::TranslateV3::Model>
The models read.
-
#next_page_token ⇒ String
A token to retrieve next page of results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListModelsResponse
constructor
A new instance of ListModelsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListModelsResponse
Returns a new instance of ListModelsResponse.
1592 1593 1594 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1592 def initialize(**args) update!(**args) end |
Instance Attribute Details
#models ⇒ Array<Google::Apis::TranslateV3::Model>
The models read.
Corresponds to the JSON property models
1584 1585 1586 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1584 def models @models end |
#next_page_token ⇒ String
A token to retrieve next page of results. Pass this token to the page_token
field in the ListModelsRequest to obtain the corresponding page.
Corresponds to the JSON property nextPageToken
1590 1591 1592 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1590 def next_page_token @next_page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1597 1598 1599 1600 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1597 def update!(**args) @models = args[:models] if args.key?(:models) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end |