describeConversionWorkspaceRevisions method
Retrieves a list of committed revisions of a specific conversion workspace.
Request parameters:
conversionWorkspace
- Required. Name of the conversion workspace
resource whose revisions are listed. Must be in the form of:
projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/conversionWorkspaces/\[^/\]+$
.
commitId
- Optional. Optional filter to request a specific commit ID.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a DescribeConversionWorkspaceRevisionsResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<DescribeConversionWorkspaceRevisionsResponse>
describeConversionWorkspaceRevisions(
core.String conversionWorkspace, {
core.String? commitId,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (commitId != null) 'commitId': [commitId],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' +
core.Uri.encodeFull('$conversionWorkspace') +
':describeConversionWorkspaceRevisions';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return DescribeConversionWorkspaceRevisionsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}