getJobWithHttpInfo method

Future<Response> getJobWithHttpInfo(
  1. String jobId
)

Get a job.

Gets a single job. Minimum server version: 4.1 ##### Permissions Must have manage_jobs permission.

Note: This method returns the HTTP Response.

Parameters:

  • String jobId (required): Job GUID

Implementation

Future<Response> getJobWithHttpInfo(
  String jobId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/jobs/{job_id}'.replaceAll('{job_id}', jobId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}