downloadJsonPackage method

Future<GoogleCloudIntegrationsV1alphaDownloadJsonPackageResponse> downloadJsonPackage(
  1. String name, {
  2. List<String>? files,
  3. String? $fields,
})

Downloads an Integration version package like IntegrationVersion,Integration Config etc.

Retrieves the IntegrationVersion package for a given integration_id and returns the response as a JSON.

Request parameters:

name - Required. Integration version name Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+/integrations/\[^/\]+/versions/\[^/\]+$.

files - Optional. Integration related file to download like Integration Version, Config variable, testcase etc.

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

Completes with a GoogleCloudIntegrationsV1alphaDownloadJsonPackageResponse.

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

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

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