getDeployment method
Gets a Deployment.
May throw NotFoundException. May throw TooManyRequestsException.
Parameter apiId
:
The API identifier.
Parameter deploymentId
:
The deployment ID.
Implementation
Future<GetDeploymentResponse> getDeployment({
required String apiId,
required String deploymentId,
}) async {
ArgumentError.checkNotNull(apiId, 'apiId');
ArgumentError.checkNotNull(deploymentId, 'deploymentId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v2/apis/${Uri.encodeComponent(apiId)}/deployments/${Uri.encodeComponent(deploymentId)}',
exceptionFnMap: _exceptionFns,
);
return GetDeploymentResponse.fromJson(response);
}