wallee
Version:
TypeScript/JavaScript client for wallee
39 lines (38 loc) • 2.03 kB
JavaScript
import { FacadeUserFriendlyQueryStatusModelFromJSON, FacadeUserFriendlyQueryStatusModelToJSON, } from './FacadeUserFriendlyQueryStatusModel';
/**
* Check if a given object implements the SubmittedAnalyticsQueryExecution interface.
*/
export function instanceOfSubmittedAnalyticsQueryExecution(value) {
return true;
}
export function SubmittedAnalyticsQueryExecutionFromJSON(json) {
return SubmittedAnalyticsQueryExecutionFromJSONTyped(json, false);
}
export function SubmittedAnalyticsQueryExecutionFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'queryExternalId': json['queryExternalId'] == null ? undefined : json['queryExternalId'],
'accountId': json['accountId'] == null ? undefined : json['accountId'],
'totalBilledExecutionTimeMs': json['totalBilledExecutionTimeMs'] == null ? undefined : json['totalBilledExecutionTimeMs'],
'createdTimestamp': json['createdTimestamp'] == null ? undefined : (new Date(json['createdTimestamp'])),
'downloadRequests': json['downloadRequests'] == null ? undefined : json['downloadRequests'],
'originalQuery': json['originalQuery'] == null ? undefined : json['originalQuery'],
'scannedBytes': json['scannedBytes'] == null ? undefined : json['scannedBytes'],
'portalQueryToken': json['portalQueryToken'] == null ? undefined : json['portalQueryToken'],
'resultFileBytes': json['resultFileBytes'] == null ? undefined : json['resultFileBytes'],
'status': json['status'] == null ? undefined : FacadeUserFriendlyQueryStatusModelFromJSON(json['status']),
};
}
export function SubmittedAnalyticsQueryExecutionToJSON(json) {
return SubmittedAnalyticsQueryExecutionToJSONTyped(json, false);
}
export function SubmittedAnalyticsQueryExecutionToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'status': FacadeUserFriendlyQueryStatusModelToJSON(value['status']),
};
}