getSyncJob method

Future<GetSyncJobResponse> getSyncJob({
  1. required String syncSource,
  2. String? workspaceId,
})

Gets the SyncJob.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter syncSource : The sync source.

Parameter workspaceId : The workspace ID.

Implementation

Future<GetSyncJobResponse> getSyncJob({
  required String syncSource,
  String? workspaceId,
}) async {
  final $query = <String, List<String>>{
    if (workspaceId != null) 'workspace': [workspaceId],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/sync-jobs/${Uri.encodeComponent(syncSource)}',
    queryParams: $query,
    hostPrefix: 'api.',
    exceptionFnMap: _exceptionFns,
  );
  return GetSyncJobResponse.fromJson(response);
}