Skip to content

Commit c7351aa

Browse files
yoshi-automationsofisl
authored andcommitted
feat(migrationcenter): update the API
#### migrationcenter:v1 The following keys were added: - schemas.ImportRowError.properties.csvError.$ref - schemas.ImportRowError.properties.csvError.description - schemas.ImportRowError.properties.xlsxError.$ref - schemas.ImportRowError.properties.xlsxError.description - schemas.ImportRowErrorCsvErrorDetails.description - schemas.ImportRowErrorCsvErrorDetails.id - schemas.ImportRowErrorCsvErrorDetails.properties.rowNumber.description - schemas.ImportRowErrorCsvErrorDetails.properties.rowNumber.format - schemas.ImportRowErrorCsvErrorDetails.properties.rowNumber.type - schemas.ImportRowErrorCsvErrorDetails.type - schemas.ImportRowErrorXlsxErrorDetails.description - schemas.ImportRowErrorXlsxErrorDetails.id - schemas.ImportRowErrorXlsxErrorDetails.properties.rowNumber.description - schemas.ImportRowErrorXlsxErrorDetails.properties.rowNumber.format - schemas.ImportRowErrorXlsxErrorDetails.properties.rowNumber.type - schemas.ImportRowErrorXlsxErrorDetails.properties.sheet.description - schemas.ImportRowErrorXlsxErrorDetails.properties.sheet.type - schemas.ImportRowErrorXlsxErrorDetails.type
1 parent b0544b5 commit c7351aa

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

discovery/migrationcenter-v1.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@
23092309
}
23102310
}
23112311
},
2312-
"revision": "20240620",
2312+
"revision": "20240822",
23132313
"rootUrl": "https://migrationcenter.googleapis.com/",
23142314
"schemas": {
23152315
"AddAssetsToGroupRequest": {
@@ -3918,6 +3918,10 @@
39183918
"description": "A resource that reports the import job errors at row level.",
39193919
"id": "ImportRowError",
39203920
"properties": {
3921+
"csvError": {
3922+
"$ref": "ImportRowErrorCsvErrorDetails",
3923+
"description": "Error details for a CSV file."
3924+
},
39213925
"errors": {
39223926
"description": "The list of errors detected in the row.",
39233927
"items": {
@@ -3938,6 +3942,38 @@
39383942
"vmUuid": {
39393943
"description": "The VM UUID.",
39403944
"type": "string"
3945+
},
3946+
"xlsxError": {
3947+
"$ref": "ImportRowErrorXlsxErrorDetails",
3948+
"description": "Error details for an XLSX file."
3949+
}
3950+
},
3951+
"type": "object"
3952+
},
3953+
"ImportRowErrorCsvErrorDetails": {
3954+
"description": "Error details for a CSV file.",
3955+
"id": "ImportRowErrorCsvErrorDetails",
3956+
"properties": {
3957+
"rowNumber": {
3958+
"description": "The row number where the error was detected.",
3959+
"format": "int32",
3960+
"type": "integer"
3961+
}
3962+
},
3963+
"type": "object"
3964+
},
3965+
"ImportRowErrorXlsxErrorDetails": {
3966+
"description": "Error details for an XLSX file.",
3967+
"id": "ImportRowErrorXlsxErrorDetails",
3968+
"properties": {
3969+
"rowNumber": {
3970+
"description": "The row number where the error was detected.",
3971+
"format": "int32",
3972+
"type": "integer"
3973+
},
3974+
"sheet": {
3975+
"description": "The name of the sheet where the error was detected.",
3976+
"type": "string"
39413977
}
39423978
},
39433979
"type": "object"

src/apis/migrationcenter/v1.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,10 @@ export namespace migrationcenter_v1 {
12201220
* A resource that reports the import job errors at row level.
12211221
*/
12221222
export interface Schema$ImportRowError {
1223+
/**
1224+
* Error details for a CSV file.
1225+
*/
1226+
csvError?: Schema$ImportRowErrorCsvErrorDetails;
12231227
/**
12241228
* The list of errors detected in the row.
12251229
*/
@@ -1236,6 +1240,32 @@ export namespace migrationcenter_v1 {
12361240
* The VM UUID.
12371241
*/
12381242
vmUuid?: string | null;
1243+
/**
1244+
* Error details for an XLSX file.
1245+
*/
1246+
xlsxError?: Schema$ImportRowErrorXlsxErrorDetails;
1247+
}
1248+
/**
1249+
* Error details for a CSV file.
1250+
*/
1251+
export interface Schema$ImportRowErrorCsvErrorDetails {
1252+
/**
1253+
* The row number where the error was detected.
1254+
*/
1255+
rowNumber?: number | null;
1256+
}
1257+
/**
1258+
* Error details for an XLSX file.
1259+
*/
1260+
export interface Schema$ImportRowErrorXlsxErrorDetails {
1261+
/**
1262+
* The row number where the error was detected.
1263+
*/
1264+
rowNumber?: number | null;
1265+
/**
1266+
* The name of the sheet where the error was detected.
1267+
*/
1268+
sheet?: string | null;
12391269
}
12401270
/**
12411271
* An insight about an asset.

0 commit comments

Comments
 (0)