getDeployment method

Future<GetDeploymentResponse> getDeployment({
  1. required String apiId,
  2. required String deploymentId,
})

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);
}