Close httplib2 connections.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists all AdaptiveMtSentences under a given file/dataset.
Retrieves the next page of results.
close()
Close httplib2 connections.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists all AdaptiveMtSentences under a given file/dataset. Args: parent: string, Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}` (required) pageSize: integer, A parameter pageToken: string, A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` method. The first page is returned if `page_token` is empty or missing. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # List AdaptiveMt sentences response. "adaptiveMtSentences": [ # Output only. The list of AdaptiveMtSentences. { # An AdaptiveMt sentence entry. "createTime": "A String", # Output only. Timestamp when this sentence was created. "name": "A String", # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}` "sourceSentence": "A String", # Required. The source sentence. "targetSentence": "A String", # Required. The target sentence. "updateTime": "A String", # Output only. Timestamp when this sentence was last updated. }, ], "nextPageToken": "A String", # Optional. }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.