From d374bff802aed76a2285181ce42ba0f01b737bbc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Fri, 2 Feb 2024 01:30:42 +0000 Subject: [PATCH] feat(migrationcenter): update the API #### migrationcenter:v1alpha1 The following keys were added: - schemas.ComputeEngineSoleTenantMigrationTarget.description - schemas.ComputeEngineSoleTenantMigrationTarget.id - schemas.ComputeEngineSoleTenantMigrationTarget.type - schemas.MigrationInsight.properties.computeEngineSoleTenantTarget.$ref - schemas.MigrationInsight.properties.computeEngineSoleTenantTarget.description - schemas.MigrationInsight.properties.computeEngineSoleTenantTarget.readOnly - schemas.ReportSummaryGroupPreferenceSetFinding.properties.machineFinding.readOnly The following keys were changed: - schemas.Report.properties.type.enumDescriptions - schemas.ReportSummary.properties.allAssetsStats.description - schemas.ReportSummaryAssetAggregateStats.properties.operatingSystem.description - schemas.ReportSummaryGroupFinding.properties.description.description - schemas.ReportSummaryGroupFinding.properties.displayName.description - schemas.ReportSummaryGroupPreferenceSetFinding.properties.machineFinding.description - schemas.ReportSummaryGroupPreferenceSetFinding.properties.monthlyCostNetworkEgress.description - schemas.ReportSummaryGroupPreferenceSetFinding.properties.monthlyCostOsLicense.description - schemas.ReportSummaryGroupPreferenceSetFinding.properties.soleTenantFinding.description - schemas.ReportSummaryGroupPreferenceSetFinding.properties.vmwareEngineFinding.description #### migrationcenter:v1 The following keys were added: - schemas.ComputeEnginePreferences.properties.persistentDiskType.description - schemas.ComputeEnginePreferences.properties.persistentDiskType.enum - schemas.ComputeEnginePreferences.properties.persistentDiskType.enumDescriptions - schemas.ComputeEnginePreferences.properties.persistentDiskType.type --- discovery/migrationcenter-v1.json | 18 ++++++++++++- discovery/migrationcenter-v1alpha1.json | 36 ++++++++++++++++--------- src/apis/migrationcenter/v1.ts | 4 +++ src/apis/migrationcenter/v1alpha1.ts | 26 +++++++++++------- 4 files changed, 62 insertions(+), 22 deletions(-) diff --git a/discovery/migrationcenter-v1.json b/discovery/migrationcenter-v1.json index cb5acf401a..be9d85fb39 100644 --- a/discovery/migrationcenter-v1.json +++ b/discovery/migrationcenter-v1.json @@ -2099,7 +2099,7 @@ } } }, - "revision": "20231215", + "revision": "20240122", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2595,6 +2595,22 @@ "machinePreferences": { "$ref": "MachinePreferences", "description": "Preferences concerning the machine types to consider on Compute Engine." + }, + "persistentDiskType": { + "description": "Persistent disk type to use. If unspecified (default), all types are considered, based on available usage data.", + "enum": [ + "PERSISTENT_DISK_TYPE_UNSPECIFIED", + "PERSISTENT_DISK_TYPE_STANDARD", + "PERSISTENT_DISK_TYPE_BALANCED", + "PERSISTENT_DISK_TYPE_SSD" + ], + "enumDescriptions": [ + "Unspecified (default value). Selecting this value allows the system to use any disk type according to reported usage. This a good value to start with.", + "Standard HDD Persistent Disk.", + "Balanced Persistent Disk.", + "SSD Persistent Disk." + ], + "type": "string" } }, "type": "object" diff --git a/discovery/migrationcenter-v1alpha1.json b/discovery/migrationcenter-v1alpha1.json index 056d9fdcc2..e7185543a5 100644 --- a/discovery/migrationcenter-v1alpha1.json +++ b/discovery/migrationcenter-v1alpha1.json @@ -2107,7 +2107,7 @@ } } }, - "revision": "20231215", + "revision": "20240122", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2673,6 +2673,12 @@ }, "type": "object" }, + "ComputeEngineSoleTenantMigrationTarget": { + "description": "Compute engine sole tenant migration target.", + "id": "ComputeEngineSoleTenantMigrationTarget", + "properties": {}, + "type": "object" + }, "ComputeStorageDescriptor": { "description": "Compute Engine storage option descriptor.", "id": "ComputeStorageDescriptor", @@ -4146,6 +4152,11 @@ "description": "An insight about potential migrations for an asset.", "id": "MigrationInsight", "properties": { + "computeEngineSoleTenantTarget": { + "$ref": "ComputeEngineSoleTenantMigrationTarget", + "description": "Output only. A Google Compute Engine Sole Tenant target.", + "readOnly": true + }, "computeEngineTarget": { "$ref": "ComputeEngineMigrationTarget", "description": "Output only. A Google Compute Engine target.", @@ -4696,8 +4707,8 @@ "TOTAL_COST_OF_OWNERSHIP" ], "enumDescriptions": [ - "Default Report type.", - "Total cost of ownership Report type." + "Default report type.", + "Total cost of ownership report type." ], "type": "string" }, @@ -4776,7 +4787,7 @@ "properties": { "allAssetsStats": { "$ref": "ReportSummaryAssetAggregateStats", - "description": "Aggregate statistics for all the assets across all the groups." + "description": "Aggregate statistics for unique assets across all the groups." }, "groupFindings": { "description": "Findings for each Group included in this report.", @@ -4816,7 +4827,7 @@ }, "operatingSystem": { "$ref": "ReportSummaryChartData", - "description": "Count of assets grouped by Operating System families." + "description": "Count of assets grouped by Operating System families. Only present for virtual machines." }, "storageBytesHistogram": { "$ref": "ReportSummaryHistogramChartData", @@ -4893,11 +4904,11 @@ "description": "Summary statistics for all the assets in this group." }, "description": { - "description": "Description for the Group.", + "description": "Description for this group finding.", "type": "string" }, "displayName": { - "description": "Display Name for the Group.", + "description": "Display Name for this group finding.", "type": "string" }, "overlappingAssetCount": { @@ -4930,7 +4941,8 @@ }, "machineFinding": { "$ref": "ReportSummaryMachineFinding", - "description": "A set of findings that applies to all machines in the input." + "description": "Output only. A set of findings that applies to all virtual machines in the input. Only present for virtual machines.", + "readOnly": true }, "machinePreferences": { "$ref": "VirtualMachinePreferences", @@ -4942,11 +4954,11 @@ }, "monthlyCostNetworkEgress": { "$ref": "Money", - "description": "Network Egress monthly cost for this preference set." + "description": "Network Egress monthly cost for this preference set. Only present for virtual machines." }, "monthlyCostOsLicense": { "$ref": "Money", - "description": "Licensing monthly cost for this preference set." + "description": "Operating system licensing monthly cost for this preference set. Only present for virtual machines." }, "monthlyCostOther": { "$ref": "Money", @@ -4972,7 +4984,7 @@ }, "soleTenantFinding": { "$ref": "ReportSummarySoleTenantFinding", - "description": "A set of findings that applies to Stole-Tenant machines in the input." + "description": "A set of findings that applies to Stole-Tenant machines in the input. Only present for virtual machines." }, "topPriority": { "deprecated": true, @@ -4981,7 +4993,7 @@ }, "vmwareEngineFinding": { "$ref": "ReportSummaryVMWareEngineFinding", - "description": "A set of findings that applies to VMWare machines in the input." + "description": "A set of findings that applies to VMWare machines in the input. Only present for virtual machines." } }, "type": "object" diff --git a/src/apis/migrationcenter/v1.ts b/src/apis/migrationcenter/v1.ts index 7dadd1685c..a9f2605050 100644 --- a/src/apis/migrationcenter/v1.ts +++ b/src/apis/migrationcenter/v1.ts @@ -470,6 +470,10 @@ export namespace migrationcenter_v1 { * Preferences concerning the machine types to consider on Compute Engine. */ machinePreferences?: Schema$MachinePreferences; + /** + * Persistent disk type to use. If unspecified (default), all types are considered, based on available usage data. + */ + persistentDiskType?: string | null; } /** * Compute Engine target shape descriptor. diff --git a/src/apis/migrationcenter/v1alpha1.ts b/src/apis/migrationcenter/v1alpha1.ts index f950a959fa..590c362e50 100644 --- a/src/apis/migrationcenter/v1alpha1.ts +++ b/src/apis/migrationcenter/v1alpha1.ts @@ -516,6 +516,10 @@ export namespace migrationcenter_v1alpha1 { */ storage?: Schema$ComputeStorageDescriptor[]; } + /** + * Compute engine sole tenant migration target. + */ + export interface Schema$ComputeEngineSoleTenantMigrationTarget {} /** * Compute Engine storage option descriptor. */ @@ -1533,6 +1537,10 @@ export namespace migrationcenter_v1alpha1 { * An insight about potential migrations for an asset. */ export interface Schema$MigrationInsight { + /** + * Output only. A Google Compute Engine Sole Tenant target. + */ + computeEngineSoleTenantTarget?: Schema$ComputeEngineSoleTenantMigrationTarget; /** * Output only. A Google Compute Engine target. */ @@ -2008,7 +2016,7 @@ export namespace migrationcenter_v1alpha1 { */ export interface Schema$ReportSummary { /** - * Aggregate statistics for all the assets across all the groups. + * Aggregate statistics for unique assets across all the groups. */ allAssetsStats?: Schema$ReportSummaryAssetAggregateStats; /** @@ -2041,7 +2049,7 @@ export namespace migrationcenter_v1alpha1 { */ memoryUtilizationChart?: Schema$ReportSummaryUtilizationChartData; /** - * Count of assets grouped by Operating System families. + * Count of assets grouped by Operating System families. Only present for virtual machines. */ operatingSystem?: Schema$ReportSummaryChartData; /** @@ -2104,11 +2112,11 @@ export namespace migrationcenter_v1alpha1 { */ assetAggregateStats?: Schema$ReportSummaryAssetAggregateStats; /** - * Description for the Group. + * Description for this group finding. */ description?: string | null; /** - * Display Name for the Group. + * Display Name for this group finding. */ displayName?: string | null; /** @@ -2133,7 +2141,7 @@ export namespace migrationcenter_v1alpha1 { */ displayName?: string | null; /** - * A set of findings that applies to all machines in the input. + * Output only. A set of findings that applies to all virtual machines in the input. Only present for virtual machines. */ machineFinding?: Schema$ReportSummaryMachineFinding; /** @@ -2145,11 +2153,11 @@ export namespace migrationcenter_v1alpha1 { */ monthlyCostCompute?: Schema$Money; /** - * Network Egress monthly cost for this preference set. + * Network Egress monthly cost for this preference set. Only present for virtual machines. */ monthlyCostNetworkEgress?: Schema$Money; /** - * Licensing monthly cost for this preference set. + * Operating system licensing monthly cost for this preference set. Only present for virtual machines. */ monthlyCostOsLicense?: Schema$Money; /** @@ -2173,7 +2181,7 @@ export namespace migrationcenter_v1alpha1 { */ pricingTrack?: string | null; /** - * A set of findings that applies to Stole-Tenant machines in the input. + * A set of findings that applies to Stole-Tenant machines in the input. Only present for virtual machines. */ soleTenantFinding?: Schema$ReportSummarySoleTenantFinding; /** @@ -2181,7 +2189,7 @@ export namespace migrationcenter_v1alpha1 { */ topPriority?: string | null; /** - * A set of findings that applies to VMWare machines in the input. + * A set of findings that applies to VMWare machines in the input. Only present for virtual machines. */ vmwareEngineFinding?: Schema$ReportSummaryVMWareEngineFinding; }