Skip to content

Commit 3b99d33

Browse files
feat(migrationcenter): update the API
#### migrationcenter:v1alpha1 The following keys were added: - schemas.AwsRds.description - schemas.AwsRds.id - schemas.AwsRds.type - schemas.DatabaseDeploymentDetails.properties.awsRds.$ref - schemas.DatabaseDeploymentDetails.properties.awsRds.description - schemas.DiskPartitionDetails.description - schemas.DiskPartitionDetails.id - schemas.DiskPartitionDetails.properties.freeSpaceBytes.description - schemas.DiskPartitionDetails.properties.freeSpaceBytes.format - schemas.DiskPartitionDetails.properties.freeSpaceBytes.readOnly - schemas.DiskPartitionDetails.properties.freeSpaceBytes.type - schemas.DiskPartitionDetails.properties.partitions.$ref - schemas.DiskPartitionDetails.properties.partitions.description - schemas.DiskPartitionDetails.properties.totalCapacityBytes.description - schemas.DiskPartitionDetails.properties.totalCapacityBytes.format - schemas.DiskPartitionDetails.properties.totalCapacityBytes.readOnly - schemas.DiskPartitionDetails.properties.totalCapacityBytes.type - schemas.DiskPartitionDetails.type - schemas.MachineDetails.properties.diskPartitions.$ref - schemas.MachineDetails.properties.diskPartitions.description - schemas.VirtualMachineDetails.properties.diskPartitions.$ref - schemas.VirtualMachineDetails.properties.diskPartitions.description The following keys were changed: - schemas.DiskPartition.properties.mountPoint.description - schemas.DiskUsageSample.properties.averageIops.description - schemas.DiskUsageSample.properties.averageReadIops.description - schemas.DiskUsageSample.properties.averageWriteIops.description - schemas.NetworkAddress.properties.assignment.enumDescriptions #### migrationcenter:v1 The following keys were added: - schemas.AwsRds.description - schemas.AwsRds.id - schemas.AwsRds.type - schemas.DatabaseDeploymentDetails.properties.awsRds.$ref - schemas.DatabaseDeploymentDetails.properties.awsRds.description - schemas.DiskPartitionDetails.description - schemas.DiskPartitionDetails.id - schemas.DiskPartitionDetails.properties.freeSpaceBytes.description - schemas.DiskPartitionDetails.properties.freeSpaceBytes.format - schemas.DiskPartitionDetails.properties.freeSpaceBytes.readOnly - schemas.DiskPartitionDetails.properties.freeSpaceBytes.type - schemas.DiskPartitionDetails.properties.partitions.$ref - schemas.DiskPartitionDetails.properties.partitions.description - schemas.DiskPartitionDetails.properties.totalCapacityBytes.description - schemas.DiskPartitionDetails.properties.totalCapacityBytes.format - schemas.DiskPartitionDetails.properties.totalCapacityBytes.readOnly - schemas.DiskPartitionDetails.properties.totalCapacityBytes.type - schemas.DiskPartitionDetails.type - schemas.MachineDetails.properties.diskPartitions.$ref - schemas.MachineDetails.properties.diskPartitions.description The following keys were changed: - resources.projects.resources.locations.resources.assets.methods.get.parameters.view.enum - resources.projects.resources.locations.resources.assets.methods.get.parameters.view.enumDescriptions - resources.projects.resources.locations.resources.assets.methods.list.parameters.view.enum - resources.projects.resources.locations.resources.assets.methods.list.parameters.view.enumDescriptions - schemas.DiskPartition.properties.mountPoint.description - schemas.DiskUsageSample.properties.averageIops.description - schemas.DiskUsageSample.properties.averageReadIops.description - schemas.DiskUsageSample.properties.averageWriteIops.description - schemas.NetworkAddress.properties.assignment.enumDescriptions
1 parent 0c44609 commit 3b99d33

File tree

4 files changed

+176
-24
lines changed

4 files changed

+176
-24
lines changed

discovery/migrationcenter-v1.json

Lines changed: 59 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,18 @@
378378
"enum": [
379379
"ASSET_VIEW_UNSPECIFIED",
380380
"ASSET_VIEW_BASIC",
381-
"ASSET_VIEW_FULL"
381+
"ASSET_VIEW_FULL",
382+
"ASSET_VIEW_STANDARD",
383+
"ASSET_VIEW_UI",
384+
"ASSET_VIEW_LABELS"
382385
],
383386
"enumDescriptions": [
384387
"The asset view is not specified. The API displays the basic view by default.",
385388
"The asset view includes only basic metadata of the asset.",
386-
"The asset view includes all the metadata of an asset and performance data."
389+
"The asset view includes all the metadata of an asset and performance data.",
390+
"The asset view includes the standard metadata of an asset.",
391+
"The asset view includes fields needed by UI.",
392+
"The asset view includes asset name and labels."
387393
],
388394
"location": "query",
389395
"type": "string"
@@ -439,12 +445,18 @@
439445
"enum": [
440446
"ASSET_VIEW_UNSPECIFIED",
441447
"ASSET_VIEW_BASIC",
442-
"ASSET_VIEW_FULL"
448+
"ASSET_VIEW_FULL",
449+
"ASSET_VIEW_STANDARD",
450+
"ASSET_VIEW_UI",
451+
"ASSET_VIEW_LABELS"
443452
],
444453
"enumDescriptions": [
445454
"The asset view is not specified. The API displays the basic view by default.",
446455
"The asset view includes only basic metadata of the asset.",
447-
"The asset view includes all the metadata of an asset and performance data."
456+
"The asset view includes all the metadata of an asset and performance data.",
457+
"The asset view includes the standard metadata of an asset.",
458+
"The asset view includes fields needed by UI.",
459+
"The asset view includes asset name and labels."
448460
],
449461
"location": "query",
450462
"type": "string"
@@ -2384,7 +2396,7 @@
23842396
}
23852397
}
23862398
},
2387-
"revision": "20250115",
2399+
"revision": "20250227",
23882400
"rootUrl": "https://migrationcenter.googleapis.com/",
23892401
"schemas": {
23902402
"AddAssetsToGroupRequest": {
@@ -2802,6 +2814,12 @@
28022814
},
28032815
"type": "object"
28042816
},
2817+
"AwsRds": {
2818+
"description": "Specific details for an AWS RDS database deployment.",
2819+
"id": "AwsRds",
2820+
"properties": {},
2821+
"type": "object"
2822+
},
28052823
"AzureVmPlatformDetails": {
28062824
"description": "Azure VM specific details.",
28072825
"id": "AzureVmPlatformDetails",
@@ -3173,6 +3191,10 @@
31733191
"description": "Output only. Aggregated stats for the database deployment.",
31743192
"readOnly": true
31753193
},
3194+
"awsRds": {
3195+
"$ref": "AwsRds",
3196+
"description": "Optional. Details of an AWS RDS instance."
3197+
},
31763198
"edition": {
31773199
"description": "Optional. The database deployment edition.",
31783200
"type": "string"
@@ -3658,7 +3680,7 @@
36583680
"type": "string"
36593681
},
36603682
"mountPoint": {
3661-
"description": "Mount pount (Linux/Windows) or drive letter (Windows).",
3683+
"description": "Mount point (Linux/Windows) or drive letter (Windows).",
36623684
"type": "string"
36633685
},
36643686
"subPartitions": {
@@ -3676,6 +3698,29 @@
36763698
},
36773699
"type": "object"
36783700
},
3701+
"DiskPartitionDetails": {
3702+
"description": "Disk partition details.",
3703+
"id": "DiskPartitionDetails",
3704+
"properties": {
3705+
"freeSpaceBytes": {
3706+
"description": "Output only. Total free space of all partitions.",
3707+
"format": "int64",
3708+
"readOnly": true,
3709+
"type": "string"
3710+
},
3711+
"partitions": {
3712+
"$ref": "DiskPartitionList",
3713+
"description": "Optional. List of partitions."
3714+
},
3715+
"totalCapacityBytes": {
3716+
"description": "Output only. Total capacity of all partitions.",
3717+
"format": "int64",
3718+
"readOnly": true,
3719+
"type": "string"
3720+
}
3721+
},
3722+
"type": "object"
3723+
},
36793724
"DiskPartitionList": {
36803725
"description": "Disk partition list.",
36813726
"id": "DiskPartitionList",
@@ -3695,17 +3740,17 @@
36953740
"id": "DiskUsageSample",
36963741
"properties": {
36973742
"averageIops": {
3698-
"description": "Optional. Average IOPS sampled over a short window. Must be non-negative. Must be equal to the sum of read and write if one of them is positive. if both read and write are zero they are ignored.",
3743+
"description": "Optional. Average IOPS sampled over a short window. Must be non-negative. If read or write are set, the sum of read and write will override the value of the average_iops.",
36993744
"format": "float",
37003745
"type": "number"
37013746
},
37023747
"averageReadIops": {
3703-
"description": "Optional. Average read IOPS sampled over a short window. Must be non-negative.",
3748+
"description": "Optional. Average read IOPS sampled over a short window. Must be non-negative. If both read and write are zero they are ignored.",
37043749
"format": "float",
37053750
"type": "number"
37063751
},
37073752
"averageWriteIops": {
3708-
"description": "Optional. Average write IOPS sampled over a short window. Must be non-negative.",
3753+
"description": "Optional. Average write IOPS sampled over a short window. Must be non-negative. If both read and write are zero they are ignored.",
37093754
"format": "float",
37103755
"type": "number"
37113756
}
@@ -4908,6 +4953,10 @@
49084953
"format": "google-datetime",
49094954
"type": "string"
49104955
},
4956+
"diskPartitions": {
4957+
"$ref": "DiskPartitionDetails",
4958+
"description": "Optional. Disk partitions details. Note: Partitions are not necessarily mounted on local disks and therefore might not have a one-to-one correspondence with local disks."
4959+
},
49114960
"disks": {
49124961
"$ref": "MachineDiskDetails",
49134962
"description": "Disk details."
@@ -5281,7 +5330,7 @@
52815330
],
52825331
"enumDescriptions": [
52835332
"Unknown (default value).",
5284-
"Staticly assigned IP.",
5333+
"Statically assigned IP.",
52855334
"Dynamically assigned IP (DHCP)."
52865335
],
52875336
"type": "string"

discovery/migrationcenter-v1alpha1.json

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2548,7 +2548,7 @@
25482548
}
25492549
}
25502550
},
2551-
"revision": "20250123",
2551+
"revision": "20250220",
25522552
"rootUrl": "https://migrationcenter.googleapis.com/",
25532553
"schemas": {
25542554
"AddAssetsToGroupRequest": {
@@ -3159,6 +3159,12 @@
31593159
},
31603160
"type": "object"
31613161
},
3162+
"AwsRds": {
3163+
"description": "Specific details for an AWS RDS database deployment.",
3164+
"id": "AwsRds",
3165+
"properties": {},
3166+
"type": "object"
3167+
},
31623168
"AzureVmPlatformDetails": {
31633169
"description": "Azure VM specific details.",
31643170
"id": "AzureVmPlatformDetails",
@@ -3904,6 +3910,10 @@
39043910
"description": "Output only. Aggregated stats for the database deployment.",
39053911
"readOnly": true
39063912
},
3913+
"awsRds": {
3914+
"$ref": "AwsRds",
3915+
"description": "Optional. Details of an AWS RDS instance."
3916+
},
39073917
"edition": {
39083918
"description": "The database deployment edition.",
39093919
"type": "string"
@@ -4643,7 +4653,7 @@
46434653
"type": "string"
46444654
},
46454655
"mountPoint": {
4646-
"description": "Mount pount (Linux/Windows) or drive letter (Windows).",
4656+
"description": "Mount point (Linux/Windows) or drive letter (Windows).",
46474657
"type": "string"
46484658
},
46494659
"subPartitions": {
@@ -4661,6 +4671,29 @@
46614671
},
46624672
"type": "object"
46634673
},
4674+
"DiskPartitionDetails": {
4675+
"description": "Disk partition details.",
4676+
"id": "DiskPartitionDetails",
4677+
"properties": {
4678+
"freeSpaceBytes": {
4679+
"description": "Output only. Total free space of all partitions.",
4680+
"format": "int64",
4681+
"readOnly": true,
4682+
"type": "string"
4683+
},
4684+
"partitions": {
4685+
"$ref": "DiskPartitionList",
4686+
"description": "Optional. List of partitions."
4687+
},
4688+
"totalCapacityBytes": {
4689+
"description": "Output only. Total capacity of all partitions.",
4690+
"format": "int64",
4691+
"readOnly": true,
4692+
"type": "string"
4693+
}
4694+
},
4695+
"type": "object"
4696+
},
46644697
"DiskPartitionList": {
46654698
"description": "Disk partition list.",
46664699
"id": "DiskPartitionList",
@@ -4680,17 +4713,17 @@
46804713
"id": "DiskUsageSample",
46814714
"properties": {
46824715
"averageIops": {
4683-
"description": "Average IOPS sampled over a short window. Must be non-negative. Must be equal to the sum of read and write if one of them is positive. if both read and write are zero they are ignored.",
4716+
"description": "Average IOPS sampled over a short window. Must be non-negative. If read or write are set, the sum of read and write will override the value of the average_iops.",
46844717
"format": "float",
46854718
"type": "number"
46864719
},
46874720
"averageReadIops": {
4688-
"description": "Average read IOPS sampled over a short window. Must be non-negative.",
4721+
"description": "Average read IOPS sampled over a short window. Must be non-negative. If both read and write are zero they are ignored.",
46894722
"format": "float",
46904723
"type": "number"
46914724
},
46924725
"averageWriteIops": {
4693-
"description": "Average write IOPS sampled over a short window. Must be non-negative.",
4726+
"description": "Average write IOPS sampled over a short window. Must be non-negative. If both read and write are zero they are ignored.",
46944727
"format": "float",
46954728
"type": "number"
46964729
}
@@ -6068,6 +6101,10 @@
60686101
"format": "google-datetime",
60696102
"type": "string"
60706103
},
6104+
"diskPartitions": {
6105+
"$ref": "DiskPartitionDetails",
6106+
"description": "Optional. Disk partitions details. Note: Partitions are not necessarily mounted on local disks and therefore might not have a one-to-one correspondence with local disks."
6107+
},
60716108
"disks": {
60726109
"$ref": "MachineDiskDetails",
60736110
"description": "Disk details."
@@ -6477,7 +6514,7 @@
64776514
],
64786515
"enumDescriptions": [
64796516
"Unknown (default value).",
6480-
"Staticly assigned IP.",
6517+
"Statically assigned IP.",
64816518
"Dynamically assigned IP (DHCP)."
64826519
],
64836520
"type": "string"
@@ -8590,6 +8627,10 @@
85908627
"format": "google-datetime",
85918628
"type": "string"
85928629
},
8630+
"diskPartitions": {
8631+
"$ref": "DiskPartitionDetails",
8632+
"description": "Optional. Disk partitions details. Note: Partitions are not necessarily mounted on local disks and therefore might not have a one-to-one correspondence with local disks."
8633+
},
85938634
"guestOs": {
85948635
"$ref": "GuestOsDetails",
85958636
"description": "Guest OS information."

src/apis/migrationcenter/v1.ts

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ export namespace migrationcenter_v1 {
396396
*/
397397
machineTypeLabel?: string | null;
398398
}
399+
/**
400+
* Specific details for an AWS RDS database deployment.
401+
*/
402+
export interface Schema$AwsRds {}
399403
/**
400404
* Azure VM specific details.
401405
*/
@@ -660,6 +664,10 @@ export namespace migrationcenter_v1 {
660664
* Output only. Aggregated stats for the database deployment.
661665
*/
662666
aggregatedStats?: Schema$DatabaseDeploymentDetailsAggregatedStats;
667+
/**
668+
* Optional. Details of an AWS RDS instance.
669+
*/
670+
awsRds?: Schema$AwsRds;
663671
/**
664672
* Optional. The database deployment edition.
665673
*/
@@ -998,7 +1006,7 @@ export namespace migrationcenter_v1 {
9981006
*/
9991007
freeBytes?: string | null;
10001008
/**
1001-
* Mount pount (Linux/Windows) or drive letter (Windows).
1009+
* Mount point (Linux/Windows) or drive letter (Windows).
10021010
*/
10031011
mountPoint?: string | null;
10041012
/**
@@ -1014,6 +1022,23 @@ export namespace migrationcenter_v1 {
10141022
*/
10151023
uuid?: string | null;
10161024
}
1025+
/**
1026+
* Disk partition details.
1027+
*/
1028+
export interface Schema$DiskPartitionDetails {
1029+
/**
1030+
* Output only. Total free space of all partitions.
1031+
*/
1032+
freeSpaceBytes?: string | null;
1033+
/**
1034+
* Optional. List of partitions.
1035+
*/
1036+
partitions?: Schema$DiskPartitionList;
1037+
/**
1038+
* Output only. Total capacity of all partitions.
1039+
*/
1040+
totalCapacityBytes?: string | null;
1041+
}
10171042
/**
10181043
* Disk partition list.
10191044
*/
@@ -1028,15 +1053,15 @@ export namespace migrationcenter_v1 {
10281053
*/
10291054
export interface Schema$DiskUsageSample {
10301055
/**
1031-
* Optional. Average IOPS sampled over a short window. Must be non-negative. Must be equal to the sum of read and write if one of them is positive. if both read and write are zero they are ignored.
1056+
* Optional. Average IOPS sampled over a short window. Must be non-negative. If read or write are set, the sum of read and write will override the value of the average_iops.
10321057
*/
10331058
averageIops?: number | null;
10341059
/**
1035-
* Optional. Average read IOPS sampled over a short window. Must be non-negative.
1060+
* Optional. Average read IOPS sampled over a short window. Must be non-negative. If both read and write are zero they are ignored.
10361061
*/
10371062
averageReadIops?: number | null;
10381063
/**
1039-
* Optional. Average write IOPS sampled over a short window. Must be non-negative.
1064+
* Optional. Average write IOPS sampled over a short window. Must be non-negative. If both read and write are zero they are ignored.
10401065
*/
10411066
averageWriteIops?: number | null;
10421067
}
@@ -1854,6 +1879,10 @@ export namespace migrationcenter_v1 {
18541879
* Machine creation time.
18551880
*/
18561881
createTime?: string | null;
1882+
/**
1883+
* Optional. Disk partitions details. Note: Partitions are not necessarily mounted on local disks and therefore might not have a one-to-one correspondence with local disks.
1884+
*/
1885+
diskPartitions?: Schema$DiskPartitionDetails;
18571886
/**
18581887
* Disk details.
18591888
*/

0 commit comments

Comments
 (0)