From 8802ca9159873b039f4fe91cf083b11e59ec6e4f Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Fri, 26 Jul 2024 22:44:23 +0000 Subject: [PATCH] go rewrite - identityplatform -> metastore (#11265) [upstream:43bed5cec9865ffecf0cb12167983ed2ea2c30e1] Signed-off-by: Modular Magician --- .changelog/11265.txt | 3 + .../resource_migration_center_group.go | 2 +- ...esource_migration_center_preference_set.go | 78 +++++-------------- .../r/migration_center_group.html.markdown | 2 +- ...ration_center_preference_set.html.markdown | 50 ++---------- 5 files changed, 33 insertions(+), 102 deletions(-) create mode 100644 .changelog/11265.txt diff --git a/.changelog/11265.txt b/.changelog/11265.txt new file mode 100644 index 00000000000..42b910df155 --- /dev/null +++ b/.changelog/11265.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` \ No newline at end of file diff --git a/google/services/migrationcenter/resource_migration_center_group.go b/google/services/migrationcenter/resource_migration_center_group.go index 2ae2652e97d..72fdb7db737 100644 --- a/google/services/migrationcenter/resource_migration_center_group.go +++ b/google/services/migrationcenter/resource_migration_center_group.go @@ -80,7 +80,7 @@ func ResourceMigrationCenterGroup() *schema.Resource { "labels": { Type: schema.TypeMap, Optional: true, - Description: `Labels as key value pairs. + Description: `Labels as key value pairs. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.`, diff --git a/google/services/migrationcenter/resource_migration_center_preference_set.go b/google/services/migrationcenter/resource_migration_center_preference_set.go index d38971d26d3..8308083ddca 100644 --- a/google/services/migrationcenter/resource_migration_center_preference_set.go +++ b/google/services/migrationcenter/resource_migration_center_preference_set.go @@ -84,14 +84,9 @@ func ResourceMigrationCenterPreferenceSet() *schema.Resource { Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "commitment_plan": { - Type: schema.TypeString, - Optional: true, - Description: `Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. - Possible values: - COMMITMENT_PLAN_UNSPECIFIED -COMMITMENT_PLAN_NONE -COMMITMENT_PLAN_ONE_YEAR -COMMITMENT_PLAN_THREE_YEARS`, + Type: schema.TypeString, + Optional: true, + Description: `Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. Possible values: 'COMMITMENT_PLAN_UNSPECIFIED', 'COMMITMENT_PLAN_NONE', 'COMMITMENT_PLAN_ONE_YEAR', 'COMMITMENT_PLAN_THREE_YEARS'`, }, "compute_engine_preferences": { Type: schema.TypeList, @@ -101,13 +96,9 @@ COMMITMENT_PLAN_THREE_YEARS`, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "license_type": { - Type: schema.TypeString, - Optional: true, - Description: `License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan. - Possible values: - LICENSE_TYPE_UNSPECIFIED -LICENSE_TYPE_DEFAULT -LICENSE_TYPE_BRING_YOUR_OWN_LICENSE`, + Type: schema.TypeString, + Optional: true, + Description: `License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan. Possible values: 'LICENSE_TYPE_UNSPECIFIED', 'LICENSE_TYPE_DEFAULT', 'LICENSE_TYPE_BRING_YOUR_OWN_LICENSE'`, }, "machine_preferences": { Type: schema.TypeList, @@ -155,14 +146,9 @@ LICENSE_TYPE_BRING_YOUR_OWN_LICENSE`, }, }, "sizing_optimization_strategy": { - Type: schema.TypeString, - Optional: true, - Description: `Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with. - Possible values: - SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED -SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE -SIZING_OPTIMIZATION_STRATEGY_MODERATE -SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE`, + Type: schema.TypeString, + Optional: true, + Description: `Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with. Possible values: 'SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED', 'SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE', 'SIZING_OPTIMIZATION_STRATEGY_MODERATE', 'SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE'`, }, "sole_tenancy_preferences": { Type: schema.TypeList, @@ -172,14 +158,9 @@ SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE`, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "commitment_plan": { - Type: schema.TypeString, - Optional: true, - Description: `Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. - Possible values: - COMMITMENT_PLAN_UNSPECIFIED -ON_DEMAND -COMMITMENT_1_YEAR -COMMITMENT_3_YEAR`, + Type: schema.TypeString, + Optional: true, + Description: `Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. Possible values: 'COMMITMENT_PLAN_UNSPECIFIED', 'ON_DEMAND', 'COMMITMENT_1_YEAR', 'COMMITMENT_3_YEAR'`, }, "cpu_overcommit_ratio": { Type: schema.TypeFloat, @@ -187,14 +168,9 @@ COMMITMENT_3_YEAR`, Description: `CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.`, }, "host_maintenance_policy": { - Type: schema.TypeString, - Optional: true, - Description: `Sole Tenancy nodes maintenance policy. - Possible values: - HOST_MAINTENANCE_POLICY_UNSPECIFIED -HOST_MAINTENANCE_POLICY_DEFAULT -HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE -HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP`, + Type: schema.TypeString, + Optional: true, + Description: `Sole Tenancy nodes maintenance policy. Possible values: 'HOST_MAINTENANCE_POLICY_UNSPECIFIED', 'HOST_MAINTENANCE_POLICY_DEFAULT', 'HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE', 'HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP'`, }, "node_types": { Type: schema.TypeList, @@ -214,14 +190,9 @@ HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP`, }, }, "target_product": { - Type: schema.TypeString, - Optional: true, - Description: `Target product for assets using this preference set. Specify either target product or business goal, but not both. - Possible values: - COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED -COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE -COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE -COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY`, + Type: schema.TypeString, + Optional: true, + Description: `Target product for assets using this preference set. Specify either target product or business goal, but not both. Possible values: 'COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED', 'COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE', 'COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE', 'COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY'`, }, "vmware_engine_preferences": { Type: schema.TypeList, @@ -231,16 +202,9 @@ COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY`, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "commitment_plan": { - Type: schema.TypeString, - Optional: true, - Description: `Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. - Possible values: - COMMITMENT_PLAN_UNSPECIFIED -ON_DEMAND -COMMITMENT_1_YEAR_MONTHLY_PAYMENTS -COMMITMENT_3_YEAR_MONTHLY_PAYMENTS -COMMITMENT_1_YEAR_UPFRONT_PAYMENT -COMMITMENT_3_YEAR_UPFRONT_PAYMENT`, + Type: schema.TypeString, + Optional: true, + Description: `Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. Possible values: 'COMMITMENT_PLAN_UNSPECIFIED', 'ON_DEMAND', 'COMMITMENT_1_YEAR_MONTHLY_PAYMENTS', 'COMMITMENT_3_YEAR_MONTHLY_PAYMENTS', 'COMMITMENT_1_YEAR_UPFRONT_PAYMENT', 'COMMITMENT_3_YEAR_UPFRONT_PAYMENT',`, }, "cpu_overcommit_ratio": { Type: schema.TypeFloat, diff --git a/website/docs/r/migration_center_group.html.markdown b/website/docs/r/migration_center_group.html.markdown index 43b2a9bac12..d99b237481b 100644 --- a/website/docs/r/migration_center_group.html.markdown +++ b/website/docs/r/migration_center_group.html.markdown @@ -62,7 +62,7 @@ The following arguments are supported: * `labels` - (Optional) - Labels as key value pairs. + Labels as key value pairs. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field `effective_labels` for all of the labels present on the resource. diff --git a/website/docs/r/migration_center_preference_set.html.markdown b/website/docs/r/migration_center_preference_set.html.markdown index d8d57561f7c..cdb11109141 100644 --- a/website/docs/r/migration_center_preference_set.html.markdown +++ b/website/docs/r/migration_center_preference_set.html.markdown @@ -135,12 +135,7 @@ The following arguments are supported: * `target_product` - (Optional) - Target product for assets using this preference set. Specify either target product or business goal, but not both. - Possible values: - COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED - COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE - COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE - COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY + Target product for assets using this preference set. Specify either target product or business goal, but not both. Possible values: `COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED`, `COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE`, `COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE`, `COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY` * `region_preferences` - (Optional) @@ -149,21 +144,11 @@ The following arguments are supported: * `commitment_plan` - (Optional) - Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. - Possible values: - COMMITMENT_PLAN_UNSPECIFIED - COMMITMENT_PLAN_NONE - COMMITMENT_PLAN_ONE_YEAR - COMMITMENT_PLAN_THREE_YEARS + Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. Possible values: `COMMITMENT_PLAN_UNSPECIFIED`, `COMMITMENT_PLAN_NONE`, `COMMITMENT_PLAN_ONE_YEAR`, `COMMITMENT_PLAN_THREE_YEARS` * `sizing_optimization_strategy` - (Optional) - Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with. - Possible values: - SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED - SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE - SIZING_OPTIMIZATION_STRATEGY_MODERATE - SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE + Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with. Possible values: `SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED`, `SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE`, `SIZING_OPTIMIZATION_STRATEGY_MODERATE`, `SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE` * `compute_engine_preferences` - (Optional) @@ -196,11 +181,7 @@ The following arguments are supported: * `license_type` - (Optional) - License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan. - Possible values: - LICENSE_TYPE_UNSPECIFIED - LICENSE_TYPE_DEFAULT - LICENSE_TYPE_BRING_YOUR_OWN_LICENSE + License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan. Possible values: `LICENSE_TYPE_UNSPECIFIED`, `LICENSE_TYPE_DEFAULT`, `LICENSE_TYPE_BRING_YOUR_OWN_LICENSE` The `machine_preferences` block supports: @@ -233,14 +214,7 @@ The following arguments are supported: * `commitment_plan` - (Optional) - Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. - Possible values: - COMMITMENT_PLAN_UNSPECIFIED - ON_DEMAND - COMMITMENT_1_YEAR_MONTHLY_PAYMENTS - COMMITMENT_3_YEAR_MONTHLY_PAYMENTS - COMMITMENT_1_YEAR_UPFRONT_PAYMENT - COMMITMENT_3_YEAR_UPFRONT_PAYMENT + Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. Possible values: `COMMITMENT_PLAN_UNSPECIFIED`, `ON_DEMAND`, `COMMITMENT_1_YEAR_MONTHLY_PAYMENTS`, `COMMITMENT_3_YEAR_MONTHLY_PAYMENTS`, `COMMITMENT_1_YEAR_UPFRONT_PAYMENT`, `COMMITMENT_3_YEAR_UPFRONT_PAYMENT`, The `sole_tenancy_preferences` block supports: @@ -250,21 +224,11 @@ The following arguments are supported: * `host_maintenance_policy` - (Optional) - Sole Tenancy nodes maintenance policy. - Possible values: - HOST_MAINTENANCE_POLICY_UNSPECIFIED - HOST_MAINTENANCE_POLICY_DEFAULT - HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE - HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP + Sole Tenancy nodes maintenance policy. Possible values: `HOST_MAINTENANCE_POLICY_UNSPECIFIED`, `HOST_MAINTENANCE_POLICY_DEFAULT`, `HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE`, `HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP` * `commitment_plan` - (Optional) - Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. - Possible values: - COMMITMENT_PLAN_UNSPECIFIED - ON_DEMAND - COMMITMENT_1_YEAR - COMMITMENT_3_YEAR + Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with. Possible values: `COMMITMENT_PLAN_UNSPECIFIED`, `ON_DEMAND`, `COMMITMENT_1_YEAR`, `COMMITMENT_3_YEAR` * `node_types` - (Optional)