Skip to content

Commit

Permalink
feat(migrationcenter): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
yoshi-automation authored and bcoe committed Feb 2, 2024
1 parent b720258 commit d374bff
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 22 deletions.
18 changes: 17 additions & 1 deletion discovery/migrationcenter-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2099,7 +2099,7 @@
}
}
},
"revision": "20231215",
"revision": "20240122",
"rootUrl": "https://migrationcenter.googleapis.com/",
"schemas": {
"AddAssetsToGroupRequest": {
Expand Down Expand Up @@ -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"
Expand Down
36 changes: 24 additions & 12 deletions discovery/migrationcenter-v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2107,7 +2107,7 @@
}
}
},
"revision": "20231215",
"revision": "20240122",
"rootUrl": "https://migrationcenter.googleapis.com/",
"schemas": {
"AddAssetsToGroupRequest": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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.",
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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.",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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,
Expand All @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/apis/migrationcenter/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
26 changes: 17 additions & 9 deletions src/apis/migrationcenter/v1alpha1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
/**
Expand All @@ -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;
/**
Expand All @@ -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;
/**
Expand All @@ -2173,15 +2181,15 @@ 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;
/**
* Text describing the business priority specified for this Preference Set
*/
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;
}
Expand Down

0 comments on commit d374bff

Please sign in to comment.