Skip to content

Commit 405e4c0

Browse files
yoshi-automationsofisl
authored andcommitted
feat(migrationcenter): update the API
#### migrationcenter:v1alpha1 The following keys were added: - schemas.CloudSqlForSqlServerShape.properties.smtEnabled.description - schemas.CloudSqlForSqlServerShape.properties.smtEnabled.readOnly - schemas.CloudSqlForSqlServerShape.properties.smtEnabled.type - schemas.ComputeEnginePreferences.properties.multithreading.description - schemas.ComputeEnginePreferences.properties.multithreading.enum - schemas.ComputeEnginePreferences.properties.multithreading.enumDescriptions - schemas.ComputeEnginePreferences.properties.multithreading.type - schemas.ComputeEnginePreferences.properties.osPricingPreferences.$ref - schemas.ComputeEnginePreferences.properties.osPricingPreferences.description - schemas.ComputeEngineShapeDescriptor.properties.smtEnabled.description - schemas.ComputeEngineShapeDescriptor.properties.smtEnabled.readOnly - schemas.ComputeEngineShapeDescriptor.properties.smtEnabled.type - schemas.OperatingSystemPricingPreferences.description - schemas.OperatingSystemPricingPreferences.id - schemas.OperatingSystemPricingPreferences.properties.rhel.$ref - schemas.OperatingSystemPricingPreferences.properties.rhel.description - schemas.OperatingSystemPricingPreferences.properties.sles.$ref - schemas.OperatingSystemPricingPreferences.properties.sles.description - schemas.OperatingSystemPricingPreferences.properties.slesForSap.$ref - schemas.OperatingSystemPricingPreferences.properties.slesForSap.description - schemas.OperatingSystemPricingPreferences.properties.windows.$ref - schemas.OperatingSystemPricingPreferences.properties.windows.description - schemas.OperatingSystemPricingPreferences.type - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.description - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.id - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.properties.commitmentPlan.description - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.properties.commitmentPlan.enum - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.properties.commitmentPlan.enumDescriptions - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.properties.commitmentPlan.type - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.properties.licenseType.description - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.properties.licenseType.enum - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.properties.licenseType.enumDescriptions - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.properties.licenseType.type - schemas.OperatingSystemPricingPreferencesOperatingSystemPricing.type - schemas.SoleTenancyPreferences.properties.osPricingPreferences.$ref - schemas.SoleTenancyPreferences.properties.osPricingPreferences.description The following keys were changed: - schemas.ComputeEnginePreferences.properties.licenseType.description - schemas.DatabasePreferencesCloudSqlCommon.properties.commitmentPlan.enum - schemas.DatabasePreferencesCloudSqlCommon.properties.commitmentPlan.enumDescriptions - schemas.DatabasePreferencesCloudSqlSqlServer.properties.multithreading.enum - schemas.DatabasePreferencesCloudSqlSqlServer.properties.multithreading.enumDescriptions - schemas.MachinePreferences.description - schemas.ReportSummaryGroupPreferenceSetFinding.properties.monthlyCostDatabaseLicensing.description - schemas.SoleTenancyPreferences.properties.commitmentPlan.enum - schemas.SoleTenancyPreferences.properties.commitmentPlan.enumDescriptions - schemas.VirtualMachineDetails.properties.coreCount.description - schemas.VirtualMachinePreferences.properties.commitmentPlan.enum - schemas.VirtualMachinePreferences.properties.commitmentPlan.enumDescriptions #### migrationcenter:v1 The following keys were changed: - schemas.MachineDetails.properties.coreCount.description
1 parent ba9ee0a commit 405e4c0

File tree

4 files changed

+183
-23
lines changed

4 files changed

+183
-23
lines changed

discovery/migrationcenter-v1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@
23092309
}
23102310
}
23112311
},
2312-
"revision": "20240523",
2312+
"revision": "20240620",
23132313
"rootUrl": "https://migrationcenter.googleapis.com/",
23142314
"schemas": {
23152315
"AddAssetsToGroupRequest": {
@@ -4370,7 +4370,7 @@
43704370
"description": "Architecture details (vendor, CPU architecture)."
43714371
},
43724372
"coreCount": {
4373-
"description": "Number of CPU cores in the machine. Must be non-negative.",
4373+
"description": "Number of logical CPU cores in the machine. Must be non-negative.",
43744374
"format": "int32",
43754375
"type": "integer"
43764376
},

discovery/migrationcenter-v1alpha1.json

Lines changed: 122 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,7 +2473,7 @@
24732473
}
24742474
}
24752475
},
2476-
"revision": "20240523",
2476+
"revision": "20240620",
24772477
"rootUrl": "https://migrationcenter.googleapis.com/",
24782478
"schemas": {
24792479
"AddAssetsToGroupRequest": {
@@ -3355,6 +3355,11 @@
33553355
"readOnly": true,
33563356
"type": "integer"
33573357
},
3358+
"smtEnabled": {
3359+
"description": "Output only. Whether simultaneous multithreading is enabled (see https://cloud.google.com/sql/docs/sqlserver/create-instance#smt-create-instance).",
3360+
"readOnly": true,
3361+
"type": "boolean"
3362+
},
33583363
"storage": {
33593364
"$ref": "ComputeStorageDescriptor",
33603365
"description": "Output only. Predicted storage shape.",
@@ -3429,7 +3434,7 @@
34293434
"id": "ComputeEnginePreferences",
34303435
"properties": {
34313436
"licenseType": {
3432-
"description": "If os_pricing_preferences is specified, it overrides this field. License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.",
3437+
"description": "License type to consider when calculating costs for operating systems. If unspecified, costs are calculated based on the default licensing plan. If os_pricing_preferences is specified, it overrides this field.",
34333438
"enum": [
34343439
"LICENSE_TYPE_UNSPECIFIED",
34353440
"LICENSE_TYPE_DEFAULT",
@@ -3446,6 +3451,26 @@
34463451
"$ref": "MachinePreferences",
34473452
"description": "Preferences concerning the machine types to consider on Compute Engine."
34483453
},
3454+
"multithreading": {
3455+
"description": "Optional. Preferences for multithreading support.",
3456+
"enum": [
3457+
"MULTITHREADING_UNSPECIFIED",
3458+
"MULTITHREADING_DISABLED",
3459+
"MULTITHREADING_ENABLED",
3460+
"MULTITHREADING_DISABLED_WITH_COMPENSATION"
3461+
],
3462+
"enumDescriptions": [
3463+
"Same as MULTITHREADING_DISABLED_WITH_COMPENSATION.",
3464+
"Disable simultaneous multithreading if doing so is advantageous.",
3465+
"Always enable simultaneous multithreading.",
3466+
"Disable simultaneous multithreading and increase number of VCPUs to compensate, if doing so is advantageous."
3467+
],
3468+
"type": "string"
3469+
},
3470+
"osPricingPreferences": {
3471+
"$ref": "OperatingSystemPricingPreferences",
3472+
"description": "Optional. Pricing options for OS images."
3473+
},
34493474
"persistentDiskType": {
34503475
"description": "Persistent disk type to use. If unspecified (default), all types are considered, based on available usage data.",
34513476
"enum": [
@@ -3497,6 +3522,11 @@
34973522
"readOnly": true,
34983523
"type": "string"
34993524
},
3525+
"smtEnabled": {
3526+
"description": "Output only. Whether simultaneous multithreading is enabled (see https://cloud.google.com/compute/docs/instances/set-threads-per-core).",
3527+
"readOnly": true,
3528+
"type": "boolean"
3529+
},
35003530
"storage": {
35013531
"description": "Output only. Compute Engine storage. Never empty.",
35023532
"items": {
@@ -3901,13 +3931,17 @@
39013931
"COMMITMENT_PLAN_UNSPECIFIED",
39023932
"COMMITMENT_PLAN_NONE",
39033933
"COMMITMENT_PLAN_ONE_YEAR",
3904-
"COMMITMENT_PLAN_THREE_YEARS"
3934+
"COMMITMENT_PLAN_THREE_YEARS",
3935+
"COMMITMENT_PLAN_FLEXIBLE_ONE_YEAR",
3936+
"COMMITMENT_PLAN_FLEXIBLE_THREE_YEARS"
39053937
],
39063938
"enumDescriptions": [
39073939
"Unspecified commitment plan.",
39083940
"No commitment plan.",
39093941
"1-year regular committed use discount.",
3910-
"3-year regular committed use discount."
3942+
"3-year regular committed use discount.",
3943+
"1-year flexible committed use discount. While not supported in the v1 API, this value is converted to UNSPECIFIED in conversions to the v1 API.",
3944+
"3-year flexible committed use discount. While not supported in the v1 API, this value is converted to UNSPECIFIED in conversions to the v1 API."
39113945
],
39123946
"type": "string"
39133947
},
@@ -4033,13 +4067,13 @@
40334067
"MULTITHREADING_UNSPECIFIED",
40344068
"MULTITHREADING_DISABLED",
40354069
"MULTITHREADING_ENABLED",
4036-
"MULTITHREADING_AUTO_SELECT"
4070+
"MULTITHREADING_DISABLED_WITH_COMPENSATION"
40374071
],
40384072
"enumDescriptions": [
4039-
"Same as MULTITHREADING_AUTO_SELECT.",
4040-
"No multithreading support.",
4041-
"Allow multithreading support.",
4042-
"Choose to enable/disable multithreading according to which is lowest cost for your workload."
4073+
"Same as MULTITHREADING_DISABLED_WITH_COMPENSATION.",
4074+
"Disable simultaneous multithreading if doing so is lower cost.",
4075+
"Always enable simultaneous multithreading.",
4076+
"Disable simultaneous multithreading and increase number of VCPUs to compensate, if doing so is lower cost."
40434077
],
40444078
"type": "string"
40454079
},
@@ -5696,7 +5730,7 @@
56965730
"type": "object"
56975731
},
56985732
"MachinePreferences": {
5699-
"description": "The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions.",
5733+
"description": "The type of machines to consider when calculating virtual machine migration insights and recommendations for GCE. Not all machine types are available in all zones and regions.",
57005734
"id": "MachinePreferences",
57015735
"properties": {
57025736
"allowedMachineSeries": {
@@ -6177,6 +6211,66 @@
61776211
},
61786212
"type": "object"
61796213
},
6214+
"OperatingSystemPricingPreferences": {
6215+
"description": "Pricing options for OS images.",
6216+
"id": "OperatingSystemPricingPreferences",
6217+
"properties": {
6218+
"rhel": {
6219+
"$ref": "OperatingSystemPricingPreferencesOperatingSystemPricing",
6220+
"description": "Optional. Pricing options for RHEL images."
6221+
},
6222+
"sles": {
6223+
"$ref": "OperatingSystemPricingPreferencesOperatingSystemPricing",
6224+
"description": "Optional. Pricing options for SLES images."
6225+
},
6226+
"slesForSap": {
6227+
"$ref": "OperatingSystemPricingPreferencesOperatingSystemPricing",
6228+
"description": "Optional. Pricing options for SLES for SAP images."
6229+
},
6230+
"windows": {
6231+
"$ref": "OperatingSystemPricingPreferencesOperatingSystemPricing",
6232+
"description": "Optional. Pricing options for Windows images. No commitment plans are available, set it to unspecified."
6233+
}
6234+
},
6235+
"type": "object"
6236+
},
6237+
"OperatingSystemPricingPreferencesOperatingSystemPricing": {
6238+
"description": "Pricing options of an OS image.",
6239+
"id": "OperatingSystemPricingPreferencesOperatingSystemPricing",
6240+
"properties": {
6241+
"commitmentPlan": {
6242+
"description": "Optional. The plan of commitments for committed use discounts (CUD).",
6243+
"enum": [
6244+
"COMMITMENT_PLAN_UNSPECIFIED",
6245+
"COMMITMENT_PLAN_ON_DEMAND",
6246+
"COMMITMENT_PLAN_1_YEAR",
6247+
"COMMITMENT_PLAN_3_YEAR"
6248+
],
6249+
"enumDescriptions": [
6250+
"Unspecified commitment plan.",
6251+
"No commitment plan (on-demand usage).",
6252+
"1-year committed use discount.",
6253+
"3-year committed use discount."
6254+
],
6255+
"type": "string"
6256+
},
6257+
"licenseType": {
6258+
"description": "Optional. License type of the OS image.",
6259+
"enum": [
6260+
"LICENSE_TYPE_UNSPECIFIED",
6261+
"LICENSE_TYPE_DEFAULT",
6262+
"LICENSE_TYPE_BRING_YOUR_OWN_LICENSE"
6263+
],
6264+
"enumDescriptions": [
6265+
"Unspecified (default value).",
6266+
"Default Google Cloud licensing plan. Licensing is charged per usage. This a good value to start with.",
6267+
"Bring-your-own-license (BYOL) plan. User provides the OS license."
6268+
],
6269+
"type": "string"
6270+
}
6271+
},
6272+
"type": "object"
6273+
},
61806274
"Operation": {
61816275
"description": "This resource represents a long-running operation that is the result of a network API call.",
61826276
"id": "Operation",
@@ -6906,7 +7000,7 @@
69067000
},
69077001
"monthlyCostDatabaseLicensing": {
69087002
"$ref": "Money",
6909-
"description": "Output only. Database licensing monthly cost for this preference set. For virtual machines denotes the cost of licenses for hosted databases.",
7003+
"description": "Output only. Database licensing monthly cost for this preference set. Only present for databases.",
69107004
"readOnly": true
69117005
},
69127006
"monthlyCostNetworkEgress": {
@@ -7440,13 +7534,17 @@
74407534
"COMMITMENT_PLAN_UNSPECIFIED",
74417535
"ON_DEMAND",
74427536
"COMMITMENT_1_YEAR",
7443-
"COMMITMENT_3_YEAR"
7537+
"COMMITMENT_3_YEAR",
7538+
"COMMITMENT_FLEXIBLE_1_YEAR",
7539+
"COMMITMENT_FLEXIBLE_3_YEAR"
74447540
],
74457541
"enumDescriptions": [
74467542
"Unspecified commitment plan.",
74477543
"No commitment plan (on-demand usage).",
74487544
"1-year regular committed use discount.",
7449-
"3-year regular committed use discount."
7545+
"3-year regular committed use discount.",
7546+
"1-year flexible committed use discount. While not supported in the v1 API, this value is converted to UNSPECIFIED in conversions to the v1 API.",
7547+
"3-year flexible committed use discount. While not supported in the v1 API, this value is converted to UNSPECIFIED in conversions to the v1 API."
74507548
],
74517549
"type": "string"
74527550
},
@@ -7477,6 +7575,10 @@
74777575
"$ref": "SoleTenantNodeType"
74787576
},
74797577
"type": "array"
7578+
},
7579+
"osPricingPreferences": {
7580+
"$ref": "OperatingSystemPricingPreferences",
7581+
"description": "Optional. Pricing options for OS images."
74807582
}
74817583
},
74827584
"type": "object"
@@ -7857,7 +7959,7 @@
78577959
"id": "VirtualMachineDetails",
78587960
"properties": {
78597961
"coreCount": {
7860-
"description": "Number of CPU cores in the VirtualMachine. Must be non-negative.",
7962+
"description": "Number of logical CPU cores in the VirtualMachine. Must be non-negative.",
78617963
"format": "int32",
78627964
"type": "integer"
78637965
},
@@ -8004,13 +8106,17 @@
80048106
"COMMITMENT_PLAN_UNSPECIFIED",
80058107
"COMMITMENT_PLAN_NONE",
80068108
"COMMITMENT_PLAN_ONE_YEAR",
8007-
"COMMITMENT_PLAN_THREE_YEARS"
8109+
"COMMITMENT_PLAN_THREE_YEARS",
8110+
"COMMITMENT_PLAN_FLEXIBLE_ONE_YEAR",
8111+
"COMMITMENT_PLAN_FLEXIBLE_THREE_YEARS"
80088112
],
80098113
"enumDescriptions": [
80108114
"Unspecified commitment plan.",
80118115
"No commitment plan.",
80128116
"1-year regular committed use discount.",
8013-
"3-year regular committed use discount."
8117+
"3-year regular committed use discount.",
8118+
"1-year flexible committed use discount. While not supported in the v1 API, this value is converted to UNSPECIFIED in conversions to the v1 API.",
8119+
"3-year flexible committed use discount. While not supported in the v1 API, this value is converted to UNSPECIFIED in conversions to the v1 API."
80148120
],
80158121
"type": "string"
80168122
},

src/apis/migrationcenter/v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ export namespace migrationcenter_v1 {
15301530
*/
15311531
architecture?: Schema$MachineArchitectureDetails;
15321532
/**
1533-
* Number of CPU cores in the machine. Must be non-negative.
1533+
* Number of logical CPU cores in the machine. Must be non-negative.
15341534
*/
15351535
coreCount?: number | null;
15361536
/**

0 commit comments

Comments
 (0)