getModelTemplate method

Future<GetModelTemplateResponse> getModelTemplate({
  1. required String apiId,
  2. required String modelId,
})

Gets a model template.

May throw NotFoundException. May throw TooManyRequestsException.

Parameter apiId : The API identifier.

Parameter modelId : The model ID.

Implementation

Future<GetModelTemplateResponse> getModelTemplate({
  required String apiId,
  required String modelId,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(modelId, 'modelId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/apis/${Uri.encodeComponent(apiId)}/models/${Uri.encodeComponent(modelId)}/template',
    exceptionFnMap: _exceptionFns,
  );
  return GetModelTemplateResponse.fromJson(response);
}