get method

Future<GoogleApiHttpBody> get(
  1. String name, {
  2. String? format,
  3. String? $fields,
})

Gets a revision of a shared flow.

To download the shared flow configuration bundle for the specified revision as a zip file, set the format query parameter to bundle. If you are using curl, specify -o filename.zip to save the output to a file; otherwise, it displays to stdout. Then, develop the shared flow configuration locally and upload the updated sharedFlow configuration revision, as described in [updateSharedFlowRevision](updateSharedFlowRevision).

Request parameters:

name - Required. The name of the shared flow revision to get. Must be of the form: organizations/{organization_id}/sharedflows/{shared_flow_id}/revisions/{revision_id} Value must have pattern ^organizations/\[^/\]+/sharedflows/\[^/\]+/revisions/\[^/\]+$.

format - Specify bundle to export the contents of the shared flow bundle. Otherwise, the bundle metadata is returned.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GoogleApiHttpBody.

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<GoogleApiHttpBody> get(
  core.String name, {
  core.String? format,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (format != null) 'format': [format],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$name');

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return GoogleApiHttpBody.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}