From ac1f25932784c26673ad18384514059954373fe1 Mon Sep 17 00:00:00 2001 From: Azure PowerShell <65331932+azure-powershell-bot@users.noreply.github.com> Date: Thu, 19 Jan 2023 11:31:44 +0800 Subject: [PATCH] Move BillingBenefits to main (#20706) --- .../Az.BillingBenefits.format.ps1xml | 10 +- src/BillingBenefits/Az.BillingBenefits.psd1 | 2 +- src/BillingBenefits/BillingBenefits.sln | 70 ++-- src/BillingBenefits/README.md | 18 +- .../Get-AzBillingBenefitsSavingsPlan.md | 4 +- .../Get-AzBillingBenefitsSavingsPlanList.md | 4 +- ...ingBenefitsSavingsPlanUpdateValidation.ps1 | 84 ++-- .../exports/ProxyCmdletDefinitions.ps1 | 264 +++++------- .../Update-AzBillingBenefitsSavingsPlan.ps1 | 180 +++----- src/BillingBenefits/generate-info.json | 2 +- .../Api20221101/RenewProperties.PowerShell.cs | 160 ------- .../api/Models/Api20221101/RenewProperties.cs | 275 +----------- .../SavingsPlanModel.PowerShell.cs | 256 ++---------- .../Models/Api20221101/SavingsPlanModel.cs | 394 +++--------------- .../SavingsPlanModelProperties.PowerShell.cs | 248 ++--------- .../Api20221101/SavingsPlanModelProperties.cs | 382 +++-------------- .../SavingsPlanModelProperties.json.cs | 4 +- .../SavingsPlanUpdateRequest.PowerShell.cs | 224 ++-------- .../Api20221101/SavingsPlanUpdateRequest.cs | 313 +------------- ...sPlanUpdateRequestProperties.PowerShell.cs | 216 ++-------- .../SavingsPlanUpdateRequestProperties.cs | 330 ++------------- ...SavingsPlanUpdateRequestProperties.json.cs | 4 +- ...llingBenefitsSavingsPlan_UpdateExpanded.cs | 188 +-------- ...tsSavingsPlan_UpdateViaIdentityExpanded.cs | 188 +-------- .../help/Get-AzBillingBenefitsSavingsPlan.md | 4 +- .../Get-AzBillingBenefitsSavingsPlanList.md | 4 +- ...lingBenefitsSavingsPlanUpdateValidation.md | 84 ++-- .../Update-AzBillingBenefitsSavingsPlan.md | 325 +++------------ ...Get-AzBillingBenefitsSavingsPlan.Tests.ps1 | 4 +- ...AzBillingBenefitsSavingsPlanList.Tests.ps1 | 6 +- ...zBillingBenefitsSavingsPlan.Recording.json | 79 ++++ ...ate-AzBillingBenefitsSavingsPlan.Tests.ps1 | 26 ++ 32 files changed, 791 insertions(+), 3561 deletions(-) diff --git a/src/BillingBenefits/Az.BillingBenefits.format.ps1xml b/src/BillingBenefits/Az.BillingBenefits.format.ps1xml index 157708a55f8d..3e2340ad3169 100644 --- a/src/BillingBenefits/Az.BillingBenefits.format.ps1xml +++ b/src/BillingBenefits/Az.BillingBenefits.format.ps1xml @@ -1078,7 +1078,7 @@ - + @@ -1103,16 +1103,16 @@ UserFriendlyAppliedScopeType - AppliedScopePropertiesDisplayName + AppliedScopePropertyDisplayName - SkuName1 + SkuName - Amount + CommitmentAmount - CurrencyCode + CommitmentCurrencyCode diff --git a/src/BillingBenefits/Az.BillingBenefits.psd1 b/src/BillingBenefits/Az.BillingBenefits.psd1 index f743e429db29..e579dd4a29c3 100644 --- a/src/BillingBenefits/Az.BillingBenefits.psd1 +++ b/src/BillingBenefits/Az.BillingBenefits.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/11/2023 +# Generated on: 1/19/2023 # @{ diff --git a/src/BillingBenefits/BillingBenefits.sln b/src/BillingBenefits/BillingBenefits.sln index 049551c477de..1fd27ab66e1d 100644 --- a/src/BillingBenefits/BillingBenefits.sln +++ b/src/BillingBenefits/BillingBenefits.sln @@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{33A2E5B4-9EF4-4CF7-91E9-40539CE59A7C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{99F1752D-0E5C-47E8-A67C-C9D8833A7BBB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{EB5E1131-2EAF-47A9-8D13-55F58A14879E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{54BE211D-66E1-4899-A230-DCA272ADA937}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{765E59E6-7980-49A1-B2DF-6FB34FC95111}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{E578F206-13D8-4437-9196-DB230FA890F2}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{1A7B7B23-2FB4-4473-900B-F0F35BC367BA}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{80027DE0-BD6E-4D9E-AB2B-4EC1B6B92C5D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{D9A3DEB2-B4D9-44A7-B835-769AB4213B5D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{376057D3-585E-4C31-BAC4-F490214F2873}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{F762B24A-2EFB-4E9C-9C95-620357E7716F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{B899099B-CAE8-4A64-A920-435AD57BBDBE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.BillingBenefits", "Az.BillingBenefits.csproj", "{3F5307B5-C120-49AA-B742-5C5D5F99D014}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.BillingBenefits", "Az.BillingBenefits.csproj", "{F249873B-F533-4D8C-9EDF-E0B197684B36}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -26,33 +26,33 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {33A2E5B4-9EF4-4CF7-91E9-40539CE59A7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {33A2E5B4-9EF4-4CF7-91E9-40539CE59A7C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {33A2E5B4-9EF4-4CF7-91E9-40539CE59A7C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {33A2E5B4-9EF4-4CF7-91E9-40539CE59A7C}.Release|Any CPU.Build.0 = Release|Any CPU - {EB5E1131-2EAF-47A9-8D13-55F58A14879E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EB5E1131-2EAF-47A9-8D13-55F58A14879E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EB5E1131-2EAF-47A9-8D13-55F58A14879E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EB5E1131-2EAF-47A9-8D13-55F58A14879E}.Release|Any CPU.Build.0 = Release|Any CPU - {765E59E6-7980-49A1-B2DF-6FB34FC95111}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {765E59E6-7980-49A1-B2DF-6FB34FC95111}.Debug|Any CPU.Build.0 = Debug|Any CPU - {765E59E6-7980-49A1-B2DF-6FB34FC95111}.Release|Any CPU.ActiveCfg = Release|Any CPU - {765E59E6-7980-49A1-B2DF-6FB34FC95111}.Release|Any CPU.Build.0 = Release|Any CPU - {1A7B7B23-2FB4-4473-900B-F0F35BC367BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1A7B7B23-2FB4-4473-900B-F0F35BC367BA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1A7B7B23-2FB4-4473-900B-F0F35BC367BA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1A7B7B23-2FB4-4473-900B-F0F35BC367BA}.Release|Any CPU.Build.0 = Release|Any CPU - {D9A3DEB2-B4D9-44A7-B835-769AB4213B5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D9A3DEB2-B4D9-44A7-B835-769AB4213B5D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D9A3DEB2-B4D9-44A7-B835-769AB4213B5D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D9A3DEB2-B4D9-44A7-B835-769AB4213B5D}.Release|Any CPU.Build.0 = Release|Any CPU - {F762B24A-2EFB-4E9C-9C95-620357E7716F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F762B24A-2EFB-4E9C-9C95-620357E7716F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F762B24A-2EFB-4E9C-9C95-620357E7716F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F762B24A-2EFB-4E9C-9C95-620357E7716F}.Release|Any CPU.Build.0 = Release|Any CPU - {3F5307B5-C120-49AA-B742-5C5D5F99D014}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3F5307B5-C120-49AA-B742-5C5D5F99D014}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3F5307B5-C120-49AA-B742-5C5D5F99D014}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3F5307B5-C120-49AA-B742-5C5D5F99D014}.Release|Any CPU.Build.0 = Release|Any CPU + {99F1752D-0E5C-47E8-A67C-C9D8833A7BBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {99F1752D-0E5C-47E8-A67C-C9D8833A7BBB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {99F1752D-0E5C-47E8-A67C-C9D8833A7BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {99F1752D-0E5C-47E8-A67C-C9D8833A7BBB}.Release|Any CPU.Build.0 = Release|Any CPU + {54BE211D-66E1-4899-A230-DCA272ADA937}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {54BE211D-66E1-4899-A230-DCA272ADA937}.Debug|Any CPU.Build.0 = Debug|Any CPU + {54BE211D-66E1-4899-A230-DCA272ADA937}.Release|Any CPU.ActiveCfg = Release|Any CPU + {54BE211D-66E1-4899-A230-DCA272ADA937}.Release|Any CPU.Build.0 = Release|Any CPU + {E578F206-13D8-4437-9196-DB230FA890F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E578F206-13D8-4437-9196-DB230FA890F2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E578F206-13D8-4437-9196-DB230FA890F2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E578F206-13D8-4437-9196-DB230FA890F2}.Release|Any CPU.Build.0 = Release|Any CPU + {80027DE0-BD6E-4D9E-AB2B-4EC1B6B92C5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {80027DE0-BD6E-4D9E-AB2B-4EC1B6B92C5D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {80027DE0-BD6E-4D9E-AB2B-4EC1B6B92C5D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {80027DE0-BD6E-4D9E-AB2B-4EC1B6B92C5D}.Release|Any CPU.Build.0 = Release|Any CPU + {376057D3-585E-4C31-BAC4-F490214F2873}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {376057D3-585E-4C31-BAC4-F490214F2873}.Debug|Any CPU.Build.0 = Debug|Any CPU + {376057D3-585E-4C31-BAC4-F490214F2873}.Release|Any CPU.ActiveCfg = Release|Any CPU + {376057D3-585E-4C31-BAC4-F490214F2873}.Release|Any CPU.Build.0 = Release|Any CPU + {B899099B-CAE8-4A64-A920-435AD57BBDBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B899099B-CAE8-4A64-A920-435AD57BBDBE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B899099B-CAE8-4A64-A920-435AD57BBDBE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B899099B-CAE8-4A64-A920-435AD57BBDBE}.Release|Any CPU.Build.0 = Release|Any CPU + {F249873B-F533-4D8C-9EDF-E0B197684B36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F249873B-F533-4D8C-9EDF-E0B197684B36}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F249873B-F533-4D8C-9EDF-E0B197684B36}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F249873B-F533-4D8C-9EDF-E0B197684B36}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/BillingBenefits/README.md b/src/BillingBenefits/README.md index 12cf7b51848f..12362f473272 100644 --- a/src/BillingBenefits/README.md +++ b/src/BillingBenefits/README.md @@ -60,6 +60,10 @@ resourcegroup-append: true nested-object-to-string: true directive: + ### No inline + - no-inline: + - RenewProperties + ### Rename Cmdlet names - where: verb: Get @@ -96,20 +100,18 @@ directive: - PurchaseDateTime - Term - UserFriendlyAppliedScopeType - - AppliedScopePropertiesDisplayName - - SkuName1 - - Amount - - CurrencyCode + - AppliedScopePropertyDisplayName + - SkuName + - CommitmentAmount + - CommitmentCurrencyCode labels: DisplayName: Name DisplayProvisioningState: Status ExpiryDateTime: ExpiryDate PurchaseDateTime: PurchaseDate UserFriendlyAppliedScopeType: Scope - SkuName1: ProductName - Amount: CommitmentAmount - CurrencyCode: CommitmentCurrency - AppliedScopePropertiesDisplayName: AppliedScopeDisplayName + SkuName: ProductName + AppliedScopePropertyDisplayName: AppliedScopeDisplayName - where: model-name: SavingsPlanOrderModel set: diff --git a/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlan.md b/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlan.md index c17e968fd533..7383a6e51452 100644 --- a/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlan.md +++ b/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlan.md @@ -4,7 +4,7 @@ Get-AzBillingBenefitsSavingsPlan -OrderId d7ea1620-2bba-46e2-8434-11f31bfb984d ``` ```output -Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency +Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode ---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------ PSTest7 Succeeded 11/29/2025 2:23:51 AM 11/29/2022 2:20:38 AM P3Y Shared Compute_Savings_Plan 0.001 USD ``` @@ -17,7 +17,7 @@ Get-AzBillingBenefitsSavingsPlan -OrderId d7ea1620-2bba-46e2-8434-11f31bfb984d - ``` ```output -Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency +Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode ---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------ PSTest7 Succeeded 11/29/2025 2:23:51 AM 11/29/2022 2:20:38 AM P3Y Shared Compute_Savings_Plan 0.001 USD ``` diff --git a/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlanList.md b/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlanList.md index a2a4f8e85e59..a95d18b34de1 100644 --- a/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlanList.md +++ b/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlanList.md @@ -4,7 +4,7 @@ Get-AzBillingBenefitsSavingsPlanList ``` ```output -Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency +Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode ---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------ Compute_SavingsPlan_11-30-2022_15-19 Succeeded 11/30/2023 11:22:53 PM 11/30/2022 11:19:31 PM P1Y Shared Compute_Savings_Plan 0.001 USD PSTesth1234 Succeeded 11/30/2025 12:36:25 AM 11/30/2022 12:34:31 AM P3Y Shared Compute_Savings_Plan 0.001 USD @@ -22,7 +22,7 @@ Get-AzBillingBenefitsSavingsPlanList -Filter "properties/userFriendlyAppliedScop ``` ```output -Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency +Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode ---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------ Compute_SavingsPlan_11-30-2022_15-19 Succeeded 11/30/2023 11:22:53 PM 11/30/2022 11:19:31 PM P1Y Shared Compute_Savings_Plan 0.001 USD PSTesth1234 Succeeded 11/30/2025 12:36:25 AM 11/30/2022 12:34:31 AM P3Y Shared Compute_Savings_Plan 0.001 USD diff --git a/src/BillingBenefits/exports/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.ps1 b/src/BillingBenefits/exports/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.ps1 index 3193afc79efd..915b1d6f41b6 100644 --- a/src/BillingBenefits/exports/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.ps1 +++ b/src/BillingBenefits/exports/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.ps1 @@ -41,55 +41,59 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BENEFIT : . - [AppliedScopePropertiesDisplayName ]: Display name - [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. [AppliedScopeType ]: Type of the Applied Scope. - [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - [BillingScopeId ]: Subscription that will be charged for purchasing the benefit - [CommitmentAmount ]: - [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. - [CommitmentGrain ]: Commitment grain. [DisplayName ]: Display name [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. - [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope. - [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan - [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [SkuName ]: Name of the SKU to be applied - [Term ]: Represent benefit term in ISO 8601 format. + [RenewProperty ]: + [PurchaseProperty ]: + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopeType ]: Type of the Applied Scope. + [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + [BillingScopeId ]: Subscription that will be charged for purchasing the benefit + [CommitmentAmount ]: + [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. + [CommitmentGrain ]: Commitment grain. + [DisplayName ]: Friendly name of the savings plan + [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. + [SkuName ]: Name of the SKU to be applied + [Term ]: Represent benefit term in ISO 8601 format. BODY : . [Benefit ]: - [AppliedScopePropertiesDisplayName ]: Display name - [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. [AppliedScopeType ]: Type of the Applied Scope. - [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - [BillingScopeId ]: Subscription that will be charged for purchasing the benefit - [CommitmentAmount ]: - [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. - [CommitmentGrain ]: Commitment grain. [DisplayName ]: Display name [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. - [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope. - [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan - [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [SkuName ]: Name of the SKU to be applied - [Term ]: Represent benefit term in ISO 8601 format. + [RenewProperty ]: + [PurchaseProperty ]: + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopeType ]: Type of the Applied Scope. + [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + [BillingScopeId ]: Subscription that will be charged for purchasing the benefit + [CommitmentAmount ]: + [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. + [CommitmentGrain ]: Commitment grain. + [DisplayName ]: Friendly name of the savings plan + [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. + [SkuName ]: Name of the SKU to be applied + [Term ]: Represent benefit term in ISO 8601 format. INPUTOBJECT : Identity Parameter [Id ]: Resource identity path diff --git a/src/BillingBenefits/exports/ProxyCmdletDefinitions.ps1 b/src/BillingBenefits/exports/ProxyCmdletDefinitions.ps1 index 38beff4f8366..52b1e671e5fd 100644 --- a/src/BillingBenefits/exports/ProxyCmdletDefinitions.ps1 +++ b/src/BillingBenefits/exports/ProxyCmdletDefinitions.ps1 @@ -1328,55 +1328,59 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BENEFIT : . - [AppliedScopePropertiesDisplayName ]: Display name - [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. [AppliedScopeType ]: Type of the Applied Scope. - [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - [BillingScopeId ]: Subscription that will be charged for purchasing the benefit - [CommitmentAmount ]: - [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. - [CommitmentGrain ]: Commitment grain. [DisplayName ]: Display name [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. - [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope. - [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan - [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [SkuName ]: Name of the SKU to be applied - [Term ]: Represent benefit term in ISO 8601 format. + [RenewProperty ]: + [PurchaseProperty ]: + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopeType ]: Type of the Applied Scope. + [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + [BillingScopeId ]: Subscription that will be charged for purchasing the benefit + [CommitmentAmount ]: + [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. + [CommitmentGrain ]: Commitment grain. + [DisplayName ]: Friendly name of the savings plan + [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. + [SkuName ]: Name of the SKU to be applied + [Term ]: Represent benefit term in ISO 8601 format. BODY : . [Benefit ]: - [AppliedScopePropertiesDisplayName ]: Display name - [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. [AppliedScopeType ]: Type of the Applied Scope. - [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - [BillingScopeId ]: Subscription that will be charged for purchasing the benefit - [CommitmentAmount ]: - [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. - [CommitmentGrain ]: Commitment grain. [DisplayName ]: Display name [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. - [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope. - [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan - [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [SkuName ]: Name of the SKU to be applied - [Term ]: Represent benefit term in ISO 8601 format. + [RenewProperty ]: + [PurchaseProperty ]: + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopeType ]: Type of the Applied Scope. + [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + [BillingScopeId ]: Subscription that will be charged for purchasing the benefit + [CommitmentAmount ]: + [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. + [CommitmentGrain ]: Commitment grain. + [DisplayName ]: Friendly name of the savings plan + [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. + [SkuName ]: Name of the SKU to be applied + [Term ]: Represent benefit term in ISO 8601 format. INPUTOBJECT : Identity Parameter [Id ]: Resource identity path @@ -2249,29 +2253,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY : Savings plan patch request - [AppliedScopePropertiesDisplayName ]: Display name - [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. [AppliedScopeType ]: Type of the Applied Scope. - [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - [BillingScopeId ]: Subscription that will be charged for purchasing the benefit - [CommitmentAmount ]: - [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. - [CommitmentGrain ]: Commitment grain. [DisplayName ]: Display name [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. - [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope. - [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan - [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [SkuName ]: Name of the SKU to be applied - [Term ]: Represent benefit term in ISO 8601 format. + [RenewProperty ]: + [PurchaseProperty ]: + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopeType ]: Type of the Applied Scope. + [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + [BillingScopeId ]: Subscription that will be charged for purchasing the benefit + [CommitmentAmount ]: + [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. + [CommitmentGrain ]: Commitment grain. + [DisplayName ]: Friendly name of the savings plan + [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. + [SkuName ]: Name of the SKU to be applied + [Term ]: Represent benefit term in ISO 8601 format. INPUTOBJECT : Identity Parameter [Id ]: Resource identity path @@ -2279,6 +2285,24 @@ INPUTOBJECT : Identity Parameter [SavingsPlanId ]: ID of the savings plan [SavingsPlanOrderAliasName ]: Name of the savings plan order alias [SavingsPlanOrderId ]: Order ID of the savings plan + +RENEWPROPERTY : . + [PurchaseProperty ]: + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopeType ]: Type of the Applied Scope. + [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + [BillingScopeId ]: Subscription that will be charged for purchasing the benefit + [CommitmentAmount ]: + [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. + [CommitmentGrain ]: Commitment grain. + [DisplayName ]: Friendly name of the savings plan + [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. + [SkuName ]: Name of the SKU to be applied + [Term ]: Represent benefit term in ISO 8601 format. .Link https://learn.microsoft.com/powershell/module/az.billingbenefits/update-azbillingbenefitssavingsplan #> @@ -2323,35 +2347,35 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] [System.String] # Display name - ${AppliedScopePropertiesDisplayName}, + ${AppliedScopePropertyDisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] [System.String] # Fully-qualified identifier of the management group where the benefit must be applied. - ${AppliedScopePropertiesManagementGroupId}, + ${AppliedScopePropertyManagementGroupId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] [System.String] # Fully-qualified identifier of the resource group. - ${AppliedScopePropertiesResourceGroupId}, + ${AppliedScopePropertyResourceGroupId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] [System.String] # Fully-qualified identifier of the subscription. - ${AppliedScopePropertiesSubscriptionId}, + ${AppliedScopePropertySubscriptionId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] [System.String] # Tenant ID where the benefit is applied. - ${AppliedScopePropertiesTenantId}, + ${AppliedScopePropertyTenantId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] @@ -2361,44 +2385,6 @@ param( # Type of the Applied Scope. ${AppliedScopeType}, - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan])] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan] - # Represents the billing plan in ISO 8601 format. - # Required only for monthly billing plans. - ${BillingPlan}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Subscription that will be charged for purchasing the benefit - ${BillingScopeId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.Double] - # . - ${CommitmentAmount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # The ISO 4217 3-letter currency code for the currency used by this purchase record. - ${CommitmentCurrencyCode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain])] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain] - # Commitment grain. - ${CommitmentGrain}, - [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] @@ -2416,74 +2402,10 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Display name - ${RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Fully-qualified identifier of the management group where the benefit must be applied. - ${RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Fully-qualified identifier of the resource group. - ${RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Fully-qualified identifier of the subscription. - ${RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Tenant ID where the benefit is applied. - ${RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType])] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType] - # Type of the Applied Scope. - ${RenewPropertiesPurchasePropertiesAppliedScopeType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Friendly name of the savings plan - ${RenewPropertiesPurchasePropertiesDisplayName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Setting this to true will automatically purchase a new benefit on the expiration date time. - ${RenewPropertiesPurchasePropertiesRenew}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Name of the SKU to be applied - ${SkuName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term])] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term] - # Represent benefit term in ISO 8601 format. - ${Term}, + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties] + # . + # To construct, see NOTES section for RENEWPROPERTY properties and create a hash table. + ${RenewProperty}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] diff --git a/src/BillingBenefits/exports/Update-AzBillingBenefitsSavingsPlan.ps1 b/src/BillingBenefits/exports/Update-AzBillingBenefitsSavingsPlan.ps1 index d1ed93a5c55f..c17cd7454da7 100644 --- a/src/BillingBenefits/exports/Update-AzBillingBenefitsSavingsPlan.ps1 +++ b/src/BillingBenefits/exports/Update-AzBillingBenefitsSavingsPlan.ps1 @@ -34,29 +34,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY : Savings plan patch request - [AppliedScopePropertiesDisplayName ]: Display name - [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. [AppliedScopeType ]: Type of the Applied Scope. - [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - [BillingScopeId ]: Subscription that will be charged for purchasing the benefit - [CommitmentAmount ]: - [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. - [CommitmentGrain ]: Commitment grain. [DisplayName ]: Display name [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription. - [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied. - [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope. - [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan - [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. - [SkuName ]: Name of the SKU to be applied - [Term ]: Represent benefit term in ISO 8601 format. + [RenewProperty ]: + [PurchaseProperty ]: + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopeType ]: Type of the Applied Scope. + [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + [BillingScopeId ]: Subscription that will be charged for purchasing the benefit + [CommitmentAmount ]: + [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. + [CommitmentGrain ]: Commitment grain. + [DisplayName ]: Friendly name of the savings plan + [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. + [SkuName ]: Name of the SKU to be applied + [Term ]: Represent benefit term in ISO 8601 format. INPUTOBJECT : Identity Parameter [Id ]: Resource identity path @@ -64,6 +66,24 @@ INPUTOBJECT : Identity Parameter [SavingsPlanId ]: ID of the savings plan [SavingsPlanOrderAliasName ]: Name of the savings plan order alias [SavingsPlanOrderId ]: Order ID of the savings plan + +RENEWPROPERTY : . + [PurchaseProperty ]: + [AppliedScopePropertyDisplayName ]: Display name + [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied. + [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group. + [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription. + [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied. + [AppliedScopeType ]: Type of the Applied Scope. + [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + [BillingScopeId ]: Subscription that will be charged for purchasing the benefit + [CommitmentAmount ]: + [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record. + [CommitmentGrain ]: Commitment grain. + [DisplayName ]: Friendly name of the savings plan + [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time. + [SkuName ]: Name of the SKU to be applied + [Term ]: Represent benefit term in ISO 8601 format. .Link https://learn.microsoft.com/powershell/module/az.billingbenefits/update-azbillingbenefitssavingsplan #> @@ -108,35 +128,35 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] [System.String] # Display name - ${AppliedScopePropertiesDisplayName}, + ${AppliedScopePropertyDisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] [System.String] # Fully-qualified identifier of the management group where the benefit must be applied. - ${AppliedScopePropertiesManagementGroupId}, + ${AppliedScopePropertyManagementGroupId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] [System.String] # Fully-qualified identifier of the resource group. - ${AppliedScopePropertiesResourceGroupId}, + ${AppliedScopePropertyResourceGroupId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] [System.String] # Fully-qualified identifier of the subscription. - ${AppliedScopePropertiesSubscriptionId}, + ${AppliedScopePropertySubscriptionId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] [System.String] # Tenant ID where the benefit is applied. - ${AppliedScopePropertiesTenantId}, + ${AppliedScopePropertyTenantId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] @@ -146,44 +166,6 @@ param( # Type of the Applied Scope. ${AppliedScopeType}, - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan])] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan] - # Represents the billing plan in ISO 8601 format. - # Required only for monthly billing plans. - ${BillingPlan}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Subscription that will be charged for purchasing the benefit - ${BillingScopeId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.Double] - # . - ${CommitmentAmount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # The ISO 4217 3-letter currency code for the currency used by this purchase record. - ${CommitmentCurrencyCode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain])] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain] - # Commitment grain. - ${CommitmentGrain}, - [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] @@ -201,74 +183,10 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Display name - ${RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Fully-qualified identifier of the management group where the benefit must be applied. - ${RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Fully-qualified identifier of the resource group. - ${RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Fully-qualified identifier of the subscription. - ${RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Tenant ID where the benefit is applied. - ${RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType])] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType] - # Type of the Applied Scope. - ${RenewPropertiesPurchasePropertiesAppliedScopeType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Friendly name of the savings plan - ${RenewPropertiesPurchasePropertiesDisplayName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Setting this to true will automatically purchase a new benefit on the expiration date time. - ${RenewPropertiesPurchasePropertiesRenew}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [System.String] - # Name of the SKU to be applied - ${SkuName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term])] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term] - # Represent benefit term in ISO 8601 format. - ${Term}, + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties] + # . + # To construct, see NOTES section for RENEWPROPERTY properties and create a hash table. + ${RenewProperty}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] diff --git a/src/BillingBenefits/generate-info.json b/src/BillingBenefits/generate-info.json index 3a653d26e3e2..ec14d72a7e2c 100644 --- a/src/BillingBenefits/generate-info.json +++ b/src/BillingBenefits/generate-info.json @@ -1,5 +1,5 @@ { - "swagger_commit": "71121282e39bccae590462648e77bca283df6d2b", + "swagger_commit": "3751704f5318f1175875c94b66af769db917f2d3", "node": "v14.15.5", "autorest": "`-- (empty)", "autorest_core": "3.9.4", diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/RenewProperties.PowerShell.cs b/src/BillingBenefits/generated/api/Models/Api20221101/RenewProperties.PowerShell.cs index 91fe99d907ff..66c44444b9ab 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/RenewProperties.PowerShell.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/RenewProperties.PowerShell.cs @@ -112,86 +112,6 @@ internal RenewProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) content.GetValueForProperty("PurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestTypeConverter.ConvertFrom); } - if (content.Contains("PurchasePropertySku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchasePropertySku = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku) content.GetValueForProperty("PurchasePropertySku",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchasePropertySku, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("PurchasePropertiesProperties")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchasePropertiesProperties = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties) content.GetValueForProperty("PurchasePropertiesProperties",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchasePropertiesProperties, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("Commitment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Commitment = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment) content.GetValueForProperty("Commitment",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Commitment, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.CommitmentTypeConverter.ConvertFrom); - } - if (content.Contains("Term")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Term = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term?) content.GetValueForProperty("Term",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Term, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term.CreateFrom); - } - if (content.Contains("BillingPlan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).BillingPlan = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan?) content.GetValueForProperty("BillingPlan",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).BillingPlan, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan.CreateFrom); - } - if (content.Contains("Renew")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Renew = (bool?) content.GetValueForProperty("Renew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Renew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("AppliedScopeProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("AppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("DisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).DisplayName, global::System.Convert.ToString); - } - if (content.Contains("BillingScopeId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).BillingScopeId = (string) content.GetValueForProperty("BillingScopeId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).BillingScopeId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("AppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); - } - if (content.Contains("EffectiveDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).EffectiveDateTime = (global::System.DateTime?) content.GetValueForProperty("EffectiveDateTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).EffectiveDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CommitmentGrain")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("CommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); - } - if (content.Contains("AppliedScopePropertyTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyTenantId = (string) content.GetValueForProperty("AppliedScopePropertyTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyTenantId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertySubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertySubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertySubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertyDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyDisplayName = (string) content.GetValueForProperty("AppliedScopePropertyDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyDisplayName, global::System.Convert.ToString); - } - if (content.Contains("CommitmentCurrencyCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentCurrencyCode = (string) content.GetValueForProperty("CommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentCurrencyCode, global::System.Convert.ToString); - } - if (content.Contains("CommitmentAmount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentAmount = (double?) content.GetValueForProperty("CommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("AppliedScopePropertyManagementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertyManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyManagementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertyResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertyResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyResourceGroupId, global::System.Convert.ToString); - } AfterDeserializeDictionary(content); } @@ -213,86 +133,6 @@ internal RenewProperties(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) content.GetValueForProperty("PurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestTypeConverter.ConvertFrom); } - if (content.Contains("PurchasePropertySku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchasePropertySku = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku) content.GetValueForProperty("PurchasePropertySku",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchasePropertySku, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("PurchasePropertiesProperties")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchasePropertiesProperties = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties) content.GetValueForProperty("PurchasePropertiesProperties",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).PurchasePropertiesProperties, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("Commitment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Commitment = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment) content.GetValueForProperty("Commitment",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Commitment, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.CommitmentTypeConverter.ConvertFrom); - } - if (content.Contains("Term")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Term = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term?) content.GetValueForProperty("Term",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Term, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term.CreateFrom); - } - if (content.Contains("BillingPlan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).BillingPlan = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan?) content.GetValueForProperty("BillingPlan",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).BillingPlan, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan.CreateFrom); - } - if (content.Contains("Renew")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Renew = (bool?) content.GetValueForProperty("Renew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).Renew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("AppliedScopeProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("AppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("DisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).DisplayName, global::System.Convert.ToString); - } - if (content.Contains("BillingScopeId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).BillingScopeId = (string) content.GetValueForProperty("BillingScopeId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).BillingScopeId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("AppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); - } - if (content.Contains("EffectiveDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).EffectiveDateTime = (global::System.DateTime?) content.GetValueForProperty("EffectiveDateTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).EffectiveDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CommitmentGrain")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("CommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); - } - if (content.Contains("AppliedScopePropertyTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyTenantId = (string) content.GetValueForProperty("AppliedScopePropertyTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyTenantId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertySubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertySubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertySubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertyDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyDisplayName = (string) content.GetValueForProperty("AppliedScopePropertyDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyDisplayName, global::System.Convert.ToString); - } - if (content.Contains("CommitmentCurrencyCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentCurrencyCode = (string) content.GetValueForProperty("CommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentCurrencyCode, global::System.Convert.ToString); - } - if (content.Contains("CommitmentAmount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentAmount = (double?) content.GetValueForProperty("CommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).CommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("AppliedScopePropertyManagementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertyManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyManagementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertyResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertyResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)this).AppliedScopePropertyResourceGroupId, global::System.Convert.ToString); - } AfterDeserializePSObject(content); } diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/RenewProperties.cs b/src/BillingBenefits/generated/api/Models/Api20221101/RenewProperties.cs index bd9eb0cb62ae..976e93a5787c 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/RenewProperties.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/RenewProperties.cs @@ -12,100 +12,11 @@ public partial class RenewProperties : Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal { - /// Display name - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertyDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopePropertyDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopePropertyDisplayName = value ?? null; } - - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertyManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopePropertyManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopePropertyManagementGroupId = value ?? null; } - - /// Fully-qualified identifier of the resource group. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertyResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopePropertyResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopePropertyResourceGroupId = value ?? null; } - - /// Fully-qualified identifier of the subscription. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertySubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopePropertySubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopePropertySubscriptionId = value ?? null; } - - /// Tenant ID where the benefit is applied. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertyTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopePropertyTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopePropertyTenantId = value ?? null; } - - /// Type of the Applied Scope. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopeType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopeType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType)""); } - - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? BillingPlan { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).BillingPlan; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).BillingPlan = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan)""); } - - /// Subscription that will be charged for purchasing the benefit - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string BillingScopeId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).BillingScopeId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).BillingScopeId = value ?? null; } - - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public double? CommitmentAmount { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).CommitmentAmount; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).CommitmentAmount = value ?? default(double); } - - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string CommitmentCurrencyCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).CommitmentCurrencyCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).CommitmentCurrencyCode = value ?? null; } - - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).CommitmentGrain; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).CommitmentGrain = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); } - - /// Friendly name of the savings plan - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).DisplayName = value ?? null; } - - /// DateTime of the savings plan starts providing benefit from. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public global::System.DateTime? EffectiveDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).EffectiveDateTime; } - - /// Internal Acessors for AppliedScopeProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal.AppliedScopeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).AppliedScopeProperty = value; } - - /// Internal Acessors for Commitment - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal.Commitment { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).Commitment; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).Commitment = value; } - - /// Internal Acessors for EffectiveDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal.EffectiveDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).EffectiveDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).EffectiveDateTime = value; } - - /// Internal Acessors for PurchasePropertiesProperties - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal.PurchasePropertiesProperties { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).Property = value; } - - /// Internal Acessors for PurchaseProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal.PurchaseProperty { get => (this._purchaseProperty = this._purchaseProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequest()); set { {_purchaseProperty = value;} } } - - /// Internal Acessors for PurchasePropertySku - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal.PurchasePropertySku { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).Sku = value; } - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest _purchaseProperty; [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest PurchaseProperty { get => (this._purchaseProperty = this._purchaseProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequest()); set => this._purchaseProperty = value; } - - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public bool? Renew { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).Renew; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).Renew = value ?? default(bool); } - - /// Name of the SKU to be applied - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).SkuName = value ?? null; } - - /// Represent benefit term in ISO 8601 format. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).Term; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestInternal)PurchaseProperty).Term = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term)""); } + public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest PurchaseProperty { get => (this._purchaseProperty = this._purchaseProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequest()); set => this._purchaseProperty = value; } /// Creates an new instance. public RenewProperties() @@ -116,197 +27,19 @@ public RenewProperties() public partial interface IRenewProperties : Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.IJsonSerializable { - /// Display name - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Display name", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertyDisplayName { get; set; } - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", - SerializedName = @"managementGroupId", - PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertyManagementGroupId { get; set; } - /// Fully-qualified identifier of the resource group. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the resource group.", - SerializedName = @"resourceGroupId", - PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertyResourceGroupId { get; set; } - /// Fully-qualified identifier of the subscription. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the subscription.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertySubscriptionId { get; set; } - /// Tenant ID where the benefit is applied. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Tenant ID where the benefit is applied.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertyTenantId { get; set; } - /// Type of the Applied Scope. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of the Applied Scope.", - SerializedName = @"appliedScopeType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get; set; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.", - SerializedName = @"billingPlan", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? BillingPlan { get; set; } - /// Subscription that will be charged for purchasing the benefit - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Subscription that will be charged for purchasing the benefit", - SerializedName = @"billingScopeId", - PossibleTypes = new [] { typeof(string) })] - string BillingScopeId { get; set; } - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, ReadOnly = false, Description = @"", - SerializedName = @"amount", - PossibleTypes = new [] { typeof(double) })] - double? CommitmentAmount { get; set; } - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ISO 4217 3-letter currency code for the currency used by this purchase record.", - SerializedName = @"currencyCode", - PossibleTypes = new [] { typeof(string) })] - string CommitmentCurrencyCode { get; set; } - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Commitment grain.", - SerializedName = @"grain", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get; set; } - /// Friendly name of the savings plan - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of the savings plan", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string DisplayName { get; set; } - /// DateTime of the savings plan starts providing benefit from. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"DateTime of the savings plan starts providing benefit from.", - SerializedName = @"effectiveDateTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? EffectiveDateTime { get; } - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Setting this to true will automatically purchase a new benefit on the expiration date time.", - SerializedName = @"renew", - PossibleTypes = new [] { typeof(bool) })] - bool? Renew { get; set; } - /// Name of the SKU to be applied - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the SKU to be applied", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string SkuName { get; set; } - /// Represent benefit term in ISO 8601 format. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Represent benefit term in ISO 8601 format.", - SerializedName = @"term", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get; set; } + SerializedName = @"purchaseProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) })] + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest PurchaseProperty { get; set; } } internal partial interface IRenewPropertiesInternal { - /// Properties specific to applied scope type. Not required if not applicable. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get; set; } - /// Display name - string AppliedScopePropertyDisplayName { get; set; } - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - string AppliedScopePropertyManagementGroupId { get; set; } - /// Fully-qualified identifier of the resource group. - string AppliedScopePropertyResourceGroupId { get; set; } - /// Fully-qualified identifier of the subscription. - string AppliedScopePropertySubscriptionId { get; set; } - /// Tenant ID where the benefit is applied. - string AppliedScopePropertyTenantId { get; set; } - /// Type of the Applied Scope. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get; set; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? BillingPlan { get; set; } - /// Subscription that will be charged for purchasing the benefit - string BillingScopeId { get; set; } - /// Commitment towards the benefit. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Commitment { get; set; } - - double? CommitmentAmount { get; set; } - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - string CommitmentCurrencyCode { get; set; } - /// Commitment grain. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get; set; } - /// Friendly name of the savings plan - string DisplayName { get; set; } - /// DateTime of the savings plan starts providing benefit from. - global::System.DateTime? EffectiveDateTime { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties PurchasePropertiesProperties { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest PurchaseProperty { get; set; } - /// The SKU to be applied for this resource - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku PurchasePropertySku { get; set; } - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - bool? Renew { get; set; } - /// Name of the SKU to be applied - string SkuName { get; set; } - /// Represent benefit term in ISO 8601 format. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get; set; } } } \ No newline at end of file diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModel.PowerShell.cs b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModel.PowerShell.cs index 6066f4628485..e3a29f6958f8 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModel.PowerShell.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModel.PowerShell.cs @@ -157,9 +157,9 @@ internal SavingsPlanModel(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("SkuName1")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).SkuName1 = (string) content.GetValueForProperty("SkuName1",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).SkuName1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).SkuName, global::System.Convert.ToString); } if (content.Contains("Commitment")) { @@ -169,10 +169,6 @@ internal SavingsPlanModel(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Utilization = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IUtilization) content.GetValueForProperty("Utilization",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Utilization, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.UtilizationTypeConverter.ConvertFrom); } - if (content.Contains("RenewProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); - } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).DisplayName, global::System.Convert.ToString); @@ -205,6 +201,10 @@ internal SavingsPlanModel(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewDestination = (string) content.GetValueForProperty("RenewDestination",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewDestination, global::System.Convert.ToString); } + if (content.Contains("RenewProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); + } if (content.Contains("AppliedScopeProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("AppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); @@ -253,21 +253,21 @@ internal SavingsPlanModel(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).BenefitStartTime = (global::System.DateTime?) content.GetValueForProperty("BenefitStartTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).BenefitStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("AppliedScopePropertiesTenantId")) + if (content.Contains("AppliedScopePropertyTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesTenantId = (string) content.GetValueForProperty("AppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyTenantId = (string) content.GetValueForProperty("AppliedScopePropertyTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyTenantId, global::System.Convert.ToString); } - if (content.Contains("AppliedScopePropertiesSubscriptionId")) + if (content.Contains("AppliedScopePropertySubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertySubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertySubscriptionId, global::System.Convert.ToString); } - if (content.Contains("AppliedScopePropertiesDisplayName")) + if (content.Contains("AppliedScopePropertyDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("AppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyDisplayName = (string) content.GetValueForProperty("AppliedScopePropertyDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyDisplayName, global::System.Convert.ToString); } - if (content.Contains("Grain")) + if (content.Contains("CommitmentGrain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Grain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("Grain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Grain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("CommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); } if (content.Contains("ExtendedStatusInfoStatusCode")) { @@ -285,105 +285,21 @@ internal SavingsPlanModel(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).UtilizationAggregate = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IUtilizationAggregates[]) content.GetValueForProperty("UtilizationAggregate",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).UtilizationAggregate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.UtilizationAggregatesTypeConverter.ConvertFrom)); } - if (content.Contains("AppliedScopePropertiesManagementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("CurrencyCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CurrencyCode = (string) content.GetValueForProperty("CurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CurrencyCode, global::System.Convert.ToString); - } - if (content.Contains("Amount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Amount = (double?) content.GetValueForProperty("Amount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Amount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("RenewPropertyPurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertyPurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) content.GetValueForProperty("RenewPropertyPurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertyPurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestTypeConverter.ConvertFrom); - } - if (content.Contains("PurchasePropertySku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PurchasePropertySku = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku) content.GetValueForProperty("PurchasePropertySku",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PurchasePropertySku, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("PurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties) content.GetValueForProperty("PurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("PropertiesRenewPropertiesPurchasePropertiesSkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PropertiesRenewPropertiesPurchasePropertiesSkuName = (string) content.GetValueForProperty("PropertiesRenewPropertiesPurchasePropertiesSkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PropertiesRenewPropertiesPurchasePropertiesSkuName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitment = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitment",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitment, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.CommitmentTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesTerm")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesTerm = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesTerm",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesTerm, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesBillingPlan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesBillingPlan = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesBillingPlan",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesBillingPlan, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesRenew")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesRenew = (bool?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesRenew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesRenew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesBillingScopeId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesBillingScopeId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesBillingScopeId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesBillingScopeId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesEffectiveDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesEffectiveDateTime = (global::System.DateTime?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesEffectiveDateTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesEffectiveDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentGrain")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentCurrencyCode")) + if (content.Contains("AppliedScopePropertyManagementGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentCurrencyCode = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentCurrencyCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertyManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyManagementGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentAmount")) + if (content.Contains("AppliedScopePropertyResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentAmount = (double?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertyResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyResourceGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId")) + if (content.Contains("CommitmentCurrencyCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentCurrencyCode = (string) content.GetValueForProperty("CommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentCurrencyCode, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId")) + if (content.Contains("CommitmentAmount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentAmount = (double?) content.GetValueForProperty("CommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } AfterDeserializeDictionary(content); } @@ -450,9 +366,9 @@ internal SavingsPlanModel(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("SkuName1")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).SkuName1 = (string) content.GetValueForProperty("SkuName1",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).SkuName1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).SkuName, global::System.Convert.ToString); } if (content.Contains("Commitment")) { @@ -462,10 +378,6 @@ internal SavingsPlanModel(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Utilization = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IUtilization) content.GetValueForProperty("Utilization",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Utilization, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.UtilizationTypeConverter.ConvertFrom); } - if (content.Contains("RenewProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); - } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).DisplayName, global::System.Convert.ToString); @@ -498,6 +410,10 @@ internal SavingsPlanModel(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewDestination = (string) content.GetValueForProperty("RenewDestination",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewDestination, global::System.Convert.ToString); } + if (content.Contains("RenewProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); + } if (content.Contains("AppliedScopeProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("AppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); @@ -546,21 +462,21 @@ internal SavingsPlanModel(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).BenefitStartTime = (global::System.DateTime?) content.GetValueForProperty("BenefitStartTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).BenefitStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("AppliedScopePropertiesTenantId")) + if (content.Contains("AppliedScopePropertyTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesTenantId = (string) content.GetValueForProperty("AppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyTenantId = (string) content.GetValueForProperty("AppliedScopePropertyTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyTenantId, global::System.Convert.ToString); } - if (content.Contains("AppliedScopePropertiesSubscriptionId")) + if (content.Contains("AppliedScopePropertySubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertySubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertySubscriptionId, global::System.Convert.ToString); } - if (content.Contains("AppliedScopePropertiesDisplayName")) + if (content.Contains("AppliedScopePropertyDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("AppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyDisplayName = (string) content.GetValueForProperty("AppliedScopePropertyDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyDisplayName, global::System.Convert.ToString); } - if (content.Contains("Grain")) + if (content.Contains("CommitmentGrain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Grain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("Grain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Grain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("CommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); } if (content.Contains("ExtendedStatusInfoStatusCode")) { @@ -578,105 +494,21 @@ internal SavingsPlanModel(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).UtilizationAggregate = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IUtilizationAggregates[]) content.GetValueForProperty("UtilizationAggregate",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).UtilizationAggregate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.UtilizationAggregatesTypeConverter.ConvertFrom)); } - if (content.Contains("AppliedScopePropertiesManagementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("CurrencyCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CurrencyCode = (string) content.GetValueForProperty("CurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CurrencyCode, global::System.Convert.ToString); - } - if (content.Contains("Amount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Amount = (double?) content.GetValueForProperty("Amount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).Amount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("RenewPropertyPurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertyPurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) content.GetValueForProperty("RenewPropertyPurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertyPurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestTypeConverter.ConvertFrom); - } - if (content.Contains("PurchasePropertySku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PurchasePropertySku = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku) content.GetValueForProperty("PurchasePropertySku",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PurchasePropertySku, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("PurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties) content.GetValueForProperty("PurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("PropertiesRenewPropertiesPurchasePropertiesSkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PropertiesRenewPropertiesPurchasePropertiesSkuName = (string) content.GetValueForProperty("PropertiesRenewPropertiesPurchasePropertiesSkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).PropertiesRenewPropertiesPurchasePropertiesSkuName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitment = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitment",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitment, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.CommitmentTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesTerm")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesTerm = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesTerm",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesTerm, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesBillingPlan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesBillingPlan = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesBillingPlan",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesBillingPlan, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesRenew")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesRenew = (bool?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesRenew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesRenew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesBillingScopeId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesBillingScopeId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesBillingScopeId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesBillingScopeId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesEffectiveDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesEffectiveDateTime = (global::System.DateTime?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesEffectiveDateTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesEffectiveDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentGrain")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentCurrencyCode")) + if (content.Contains("AppliedScopePropertyManagementGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentCurrencyCode = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentCurrencyCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertyManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyManagementGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentAmount")) + if (content.Contains("AppliedScopePropertyResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentAmount = (double?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesCommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertyResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).AppliedScopePropertyResourceGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId")) + if (content.Contains("CommitmentCurrencyCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentCurrencyCode = (string) content.GetValueForProperty("CommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentCurrencyCode, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId")) + if (content.Contains("CommitmentAmount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentAmount = (double?) content.GetValueForProperty("CommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal)this).CommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } AfterDeserializePSObject(content); } diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModel.cs b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModel.cs index cfa4740a3fa5..ab3fde5ad353 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModel.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModel.cs @@ -19,36 +19,32 @@ public partial class SavingsPlanModel : /// private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.Resource(); - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.FormatTable(Index = 8, Label = @"CommitmentAmount")] - public double? Amount { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).Amount; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).Amount = value ?? default(double); } - /// Display name [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.FormatTable(Index = 6, Label = @"AppliedScopeDisplayName")] - public string AppliedScopePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertiesDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertiesDisplayName = value ?? null; } + public string AppliedScopePropertyDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertyDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertyDisplayName = value ?? null; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string AppliedScopePropertiesManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertiesManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertiesManagementGroupId = value ?? null; } + public string AppliedScopePropertyManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertyManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertyManagementGroupId = value ?? null; } /// Fully-qualified identifier of the resource group. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string AppliedScopePropertiesResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertiesResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertiesResourceGroupId = value ?? null; } + public string AppliedScopePropertyResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertyResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertyResourceGroupId = value ?? null; } /// Fully-qualified identifier of the subscription. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string AppliedScopePropertiesSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertiesSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertiesSubscriptionId = value ?? null; } + public string AppliedScopePropertySubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertySubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertySubscriptionId = value ?? null; } /// Tenant ID where the benefit is applied. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string AppliedScopePropertiesTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertiesTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertiesTenantId = value ?? null; } + public string AppliedScopePropertyTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertyTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).AppliedScopePropertyTenantId = value ?? null; } /// Type of the Applied Scope. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] @@ -88,12 +84,21 @@ public partial class SavingsPlanModel : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] public string BillingScopeId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).BillingScopeId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).BillingScopeId = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.FormatTable(Index = 8)] + public double? CommitmentAmount { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).CommitmentAmount; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).CommitmentAmount = value ?? default(double); } + /// /// The ISO 4217 3-letter currency code for the currency used by this purchase record. /// [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.FormatTable(Index = 9, Label = @"CommitmentCurrency")] - public string CurrencyCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).CurrencyCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).CurrencyCode = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.FormatTable(Index = 9)] + public string CommitmentCurrencyCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).CommitmentCurrencyCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).CommitmentCurrencyCode = value ?? null; } + + /// Commitment grain. + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).CommitmentGrain; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).CommitmentGrain = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); } /// /// Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers. @@ -132,11 +137,6 @@ public partial class SavingsPlanModel : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] public string ExtendedStatusInfoStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).ExtendedStatusInfoStatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).ExtendedStatusInfoStatusCode = value ?? null; } - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? Grain { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).Grain; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).Grain = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); } - /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// @@ -180,27 +180,6 @@ public partial class SavingsPlanModel : /// Internal Acessors for PurchaseDateTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal.PurchaseDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).PurchaseDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).PurchaseDateTime = value; } - /// Internal Acessors for PurchaseProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal.PurchaseProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).PurchaseProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).PurchaseProperty = value; } - - /// Internal Acessors for PurchasePropertySku - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal.PurchasePropertySku { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).PurchasePropertySku; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).PurchasePropertySku = value; } - - /// Internal Acessors for RenewPropertiesPurchasePropertiesAppliedScopeProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal.RenewPropertiesPurchasePropertiesAppliedScopeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopeProperty = value; } - - /// Internal Acessors for RenewPropertiesPurchasePropertiesCommitment - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal.RenewPropertiesPurchasePropertiesCommitment { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesCommitment; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesCommitment = value; } - - /// Internal Acessors for RenewPropertiesPurchasePropertiesEffectiveDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal.RenewPropertiesPurchasePropertiesEffectiveDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesEffectiveDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesEffectiveDateTime = value; } - - /// Internal Acessors for RenewProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal.RenewProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewProperty = value; } - - /// Internal Acessors for RenewPropertyPurchaseProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal.RenewPropertyPurchaseProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertyPurchaseProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertyPurchaseProperty = value; } - /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.Sku()); set { {_sku = value;} } } @@ -230,11 +209,6 @@ public partial class SavingsPlanModel : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.IResourceInternal)__resource).Name; } - /// Name of the SKU to be applied - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string PropertiesRenewPropertiesPurchasePropertiesSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).SkuName = value ?? null; } - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelProperties _property; @@ -265,87 +239,9 @@ public partial class SavingsPlanModel : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] public string RenewDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewDestination = value ?? null; } - /// Display name - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = value ?? null; } - - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = value ?? null; } - - /// Fully-qualified identifier of the resource group. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = value ?? null; } - - /// Fully-qualified identifier of the subscription. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = value ?? null; } - - /// Tenant ID where the benefit is applied. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = value ?? null; } - - /// Type of the Applied Scope. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopeType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopeType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType)""); } - - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? RenewPropertiesPurchasePropertiesBillingPlan { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesBillingPlan; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesBillingPlan = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan)""); } - - /// Subscription that will be charged for purchasing the benefit - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string RenewPropertiesPurchasePropertiesBillingScopeId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesBillingScopeId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesBillingScopeId = value ?? null; } - - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public double? RenewPropertiesPurchasePropertiesCommitmentAmount { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesCommitmentAmount; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesCommitmentAmount = value ?? default(double); } - - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string RenewPropertiesPurchasePropertiesCommitmentCurrencyCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesCommitmentCurrencyCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesCommitmentCurrencyCode = value ?? null; } - - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? RenewPropertiesPurchasePropertiesCommitmentGrain { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesCommitmentGrain; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesCommitmentGrain = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); } - - /// Friendly name of the savings plan - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public string RenewPropertiesPurchasePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesDisplayName = value ?? null; } - - /// DateTime of the savings plan starts providing benefit from. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public global::System.DateTime? RenewPropertiesPurchasePropertiesEffectiveDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesEffectiveDateTime; } - - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public bool? RenewPropertiesPurchasePropertiesRenew { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesRenew; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesRenew = value ?? default(bool); } - - /// Represent benefit term in ISO 8601 format. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? RenewPropertiesPurchasePropertiesTerm { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesTerm; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewPropertiesPurchasePropertiesTerm = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term)""); } + public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)Property).RenewProperty = value ?? null /* model class */; } /// SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] @@ -368,7 +264,7 @@ public partial class SavingsPlanModel : /// Name of the SKU to be applied [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.FormatTable(Index = 7, Label = @"ProductName")] - public string SkuName1 { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISkuInternal)Sku).Name = value ?? null; } + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISkuInternal)Sku).Name = value ?? null; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -457,13 +353,6 @@ public partial interface ISavingsPlanModel : Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.IResource { - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"amount", - PossibleTypes = new [] { typeof(double) })] - double? Amount { get; set; } /// Display name [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -471,7 +360,7 @@ public partial interface ISavingsPlanModel : Description = @"Display name", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesDisplayName { get; set; } + string AppliedScopePropertyDisplayName { get; set; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// @@ -481,7 +370,7 @@ public partial interface ISavingsPlanModel : Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", SerializedName = @"managementGroupId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesManagementGroupId { get; set; } + string AppliedScopePropertyManagementGroupId { get; set; } /// Fully-qualified identifier of the resource group. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -489,7 +378,7 @@ public partial interface ISavingsPlanModel : Description = @"Fully-qualified identifier of the resource group.", SerializedName = @"resourceGroupId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesResourceGroupId { get; set; } + string AppliedScopePropertyResourceGroupId { get; set; } /// Fully-qualified identifier of the subscription. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -497,7 +386,7 @@ public partial interface ISavingsPlanModel : Description = @"Fully-qualified identifier of the subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesSubscriptionId { get; set; } + string AppliedScopePropertySubscriptionId { get; set; } /// Tenant ID where the benefit is applied. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -505,7 +394,7 @@ public partial interface ISavingsPlanModel : Description = @"Tenant ID where the benefit is applied.", SerializedName = @"tenantId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesTenantId { get; set; } + string AppliedScopePropertyTenantId { get; set; } /// Type of the Applied Scope. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -562,6 +451,14 @@ public partial interface ISavingsPlanModel : SerializedName = @"billingScopeId", PossibleTypes = new [] { typeof(string) })] string BillingScopeId { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"amount", + PossibleTypes = new [] { typeof(double) })] + double? CommitmentAmount { get; set; } /// /// The ISO 4217 3-letter currency code for the currency used by this purchase record. /// @@ -571,7 +468,15 @@ public partial interface ISavingsPlanModel : Description = @"The ISO 4217 3-letter currency code for the currency used by this purchase record.", SerializedName = @"currencyCode", PossibleTypes = new [] { typeof(string) })] - string CurrencyCode { get; set; } + string CommitmentCurrencyCode { get; set; } + /// Commitment grain. + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Commitment grain.", + SerializedName = @"grain", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get; set; } /// /// Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers. /// @@ -630,22 +535,6 @@ public partial interface ISavingsPlanModel : SerializedName = @"statusCode", PossibleTypes = new [] { typeof(string) })] string ExtendedStatusInfoStatusCode { get; set; } - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Commitment grain.", - SerializedName = @"grain", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? Grain { get; set; } - /// Name of the SKU to be applied - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the SKU to be applied", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string PropertiesRenewPropertiesPurchasePropertiesSkuName { get; set; } /// Provisioning state [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -680,134 +569,14 @@ public partial interface ISavingsPlanModel : SerializedName = @"renewDestination", PossibleTypes = new [] { typeof(string) })] string RenewDestination { get; set; } - /// Display name - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Display name", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get; set; } - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", - SerializedName = @"managementGroupId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get; set; } - /// Fully-qualified identifier of the resource group. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the resource group.", - SerializedName = @"resourceGroupId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get; set; } - /// Fully-qualified identifier of the subscription. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the subscription.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get; set; } - /// Tenant ID where the benefit is applied. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Tenant ID where the benefit is applied.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get; set; } - /// Type of the Applied Scope. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of the Applied Scope.", - SerializedName = @"appliedScopeType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get; set; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.", - SerializedName = @"billingPlan", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? RenewPropertiesPurchasePropertiesBillingPlan { get; set; } - /// Subscription that will be charged for purchasing the benefit - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Subscription that will be charged for purchasing the benefit", - SerializedName = @"billingScopeId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesBillingScopeId { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, ReadOnly = false, Description = @"", - SerializedName = @"amount", - PossibleTypes = new [] { typeof(double) })] - double? RenewPropertiesPurchasePropertiesCommitmentAmount { get; set; } - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ISO 4217 3-letter currency code for the currency used by this purchase record.", - SerializedName = @"currencyCode", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesCommitmentCurrencyCode { get; set; } - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Commitment grain.", - SerializedName = @"grain", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? RenewPropertiesPurchasePropertiesCommitmentGrain { get; set; } - /// Friendly name of the savings plan - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of the savings plan", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesDisplayName { get; set; } - /// DateTime of the savings plan starts providing benefit from. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"DateTime of the savings plan starts providing benefit from.", - SerializedName = @"effectiveDateTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? RenewPropertiesPurchasePropertiesEffectiveDateTime { get; } - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Setting this to true will automatically purchase a new benefit on the expiration date time.", - SerializedName = @"renew", - PossibleTypes = new [] { typeof(bool) })] - bool? RenewPropertiesPurchasePropertiesRenew { get; set; } - /// Represent benefit term in ISO 8601 format. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Represent benefit term in ISO 8601 format.", - SerializedName = @"term", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? RenewPropertiesPurchasePropertiesTerm { get; set; } + SerializedName = @"renewProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get; set; } /// SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -823,7 +592,7 @@ public partial interface ISavingsPlanModel : Description = @"Name of the SKU to be applied", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] - string SkuName1 { get; set; } + string SkuName { get; set; } /// Represent benefit term in ISO 8601 format. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -862,21 +631,20 @@ public partial interface ISavingsPlanModel : internal partial interface ISavingsPlanModelInternal : Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30.IResourceInternal { - double? Amount { get; set; } + /// Properties specific to applied scope type. Not required if not applicable. + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get; set; } /// Display name - string AppliedScopePropertiesDisplayName { get; set; } + string AppliedScopePropertyDisplayName { get; set; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// - string AppliedScopePropertiesManagementGroupId { get; set; } + string AppliedScopePropertyManagementGroupId { get; set; } /// Fully-qualified identifier of the resource group. - string AppliedScopePropertiesResourceGroupId { get; set; } + string AppliedScopePropertyResourceGroupId { get; set; } /// Fully-qualified identifier of the subscription. - string AppliedScopePropertiesSubscriptionId { get; set; } + string AppliedScopePropertySubscriptionId { get; set; } /// Tenant ID where the benefit is applied. - string AppliedScopePropertiesTenantId { get; set; } - /// Properties specific to applied scope type. Not required if not applicable. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get; set; } + string AppliedScopePropertyTenantId { get; set; } /// Type of the Applied Scope. Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get; set; } /// This is the DateTime when the savings plan benefit started. @@ -899,10 +667,14 @@ internal partial interface ISavingsPlanModelInternal : string BillingScopeId { get; set; } /// Commitment towards the benefit. Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Commitment { get; set; } + + double? CommitmentAmount { get; set; } /// /// The ISO 4217 3-letter currency code for the currency used by this purchase record. /// - string CurrencyCode { get; set; } + string CommitmentCurrencyCode { get; set; } + /// Commitment grain. + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get; set; } /// /// Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers. /// @@ -921,78 +693,26 @@ internal partial interface ISavingsPlanModelInternal : string ExtendedStatusInfoMessage { get; set; } /// Status code providing additional information. string ExtendedStatusInfoStatusCode { get; set; } - /// Commitment grain. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? Grain { get; set; } - /// Name of the SKU to be applied - string PropertiesRenewPropertiesPurchasePropertiesSkuName { get; set; } /// Savings plan properties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelProperties Property { get; set; } /// Provisioning state Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.ProvisioningState? ProvisioningState { get; set; } /// Date time when the savings plan was purchased global::System.DateTime? PurchaseDateTime { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties PurchaseProperty { get; set; } - /// The SKU to be applied for this resource - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku PurchasePropertySku { get; set; } /// /// Setting this to true will automatically purchase a new benefit on the expiration date time. /// bool? Renew { get; set; } /// SavingsPlan Id of the SavingsPlan which is purchased because of renew. string RenewDestination { get; set; } - /// Display name - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get; set; } - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get; set; } - /// Fully-qualified identifier of the resource group. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get; set; } - /// Fully-qualified identifier of the subscription. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get; set; } - /// Tenant ID where the benefit is applied. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get; set; } - /// Properties specific to applied scope type. Not required if not applicable. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties RenewPropertiesPurchasePropertiesAppliedScopeProperty { get; set; } - /// Type of the Applied Scope. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get; set; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? RenewPropertiesPurchasePropertiesBillingPlan { get; set; } - /// Subscription that will be charged for purchasing the benefit - string RenewPropertiesPurchasePropertiesBillingScopeId { get; set; } - /// Commitment towards the benefit. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment RenewPropertiesPurchasePropertiesCommitment { get; set; } - - double? RenewPropertiesPurchasePropertiesCommitmentAmount { get; set; } - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - string RenewPropertiesPurchasePropertiesCommitmentCurrencyCode { get; set; } - /// Commitment grain. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? RenewPropertiesPurchasePropertiesCommitmentGrain { get; set; } - /// Friendly name of the savings plan - string RenewPropertiesPurchasePropertiesDisplayName { get; set; } - /// DateTime of the savings plan starts providing benefit from. - global::System.DateTime? RenewPropertiesPurchasePropertiesEffectiveDateTime { get; set; } - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - bool? RenewPropertiesPurchasePropertiesRenew { get; set; } - /// Represent benefit term in ISO 8601 format. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? RenewPropertiesPurchasePropertiesTerm { get; set; } Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest RenewPropertyPurchaseProperty { get; set; } /// SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed. string RenewSource { get; set; } /// Savings plan SKU Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku Sku { get; set; } /// Name of the SKU to be applied - string SkuName1 { get; set; } + string SkuName { get; set; } /// Represent benefit term in ISO 8601 format. Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get; set; } /// The applied scope type of the savings plan for display, e.g. Shared diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.PowerShell.cs b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.PowerShell.cs index bbd6c8665a8d..e3b7f650f3a1 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.PowerShell.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.PowerShell.cs @@ -127,10 +127,6 @@ internal SavingsPlanModelProperties(global::System.Collections.IDictionary conte { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Utilization = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IUtilization) content.GetValueForProperty("Utilization",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Utilization, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.UtilizationTypeConverter.ConvertFrom); } - if (content.Contains("RenewProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); - } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).DisplayName, global::System.Convert.ToString); @@ -203,21 +199,25 @@ internal SavingsPlanModelProperties(global::System.Collections.IDictionary conte { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewDestination = (string) content.GetValueForProperty("RenewDestination",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewDestination, global::System.Convert.ToString); } - if (content.Contains("AppliedScopePropertiesTenantId")) + if (content.Contains("RenewProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesTenantId = (string) content.GetValueForProperty("AppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("AppliedScopePropertiesSubscriptionId")) + if (content.Contains("AppliedScopePropertyTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyTenantId = (string) content.GetValueForProperty("AppliedScopePropertyTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyTenantId, global::System.Convert.ToString); } - if (content.Contains("AppliedScopePropertiesDisplayName")) + if (content.Contains("AppliedScopePropertySubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("AppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertySubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertySubscriptionId, global::System.Convert.ToString); } - if (content.Contains("Grain")) + if (content.Contains("AppliedScopePropertyDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Grain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("Grain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Grain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyDisplayName = (string) content.GetValueForProperty("AppliedScopePropertyDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyDisplayName, global::System.Convert.ToString); + } + if (content.Contains("CommitmentGrain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("CommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); } if (content.Contains("ExtendedStatusInfoStatusCode")) { @@ -235,105 +235,21 @@ internal SavingsPlanModelProperties(global::System.Collections.IDictionary conte { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).UtilizationAggregate = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IUtilizationAggregates[]) content.GetValueForProperty("UtilizationAggregate",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).UtilizationAggregate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.UtilizationAggregatesTypeConverter.ConvertFrom)); } - if (content.Contains("AppliedScopePropertiesManagementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("CurrencyCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CurrencyCode = (string) content.GetValueForProperty("CurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CurrencyCode, global::System.Convert.ToString); - } - if (content.Contains("Amount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Amount = (double?) content.GetValueForProperty("Amount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Amount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("RenewPropertyPurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertyPurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) content.GetValueForProperty("RenewPropertyPurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertyPurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestTypeConverter.ConvertFrom); - } - if (content.Contains("PurchasePropertySku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).PurchasePropertySku = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku) content.GetValueForProperty("PurchasePropertySku",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).PurchasePropertySku, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("PurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).PurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties) content.GetValueForProperty("PurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).PurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitment = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitment",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitment, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.CommitmentTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesTerm")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesTerm = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesTerm",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesTerm, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesBillingPlan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesBillingPlan = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesBillingPlan",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesBillingPlan, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesRenew")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesRenew = (bool?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesRenew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesRenew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesBillingScopeId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesBillingScopeId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesBillingScopeId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesBillingScopeId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesEffectiveDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesEffectiveDateTime = (global::System.DateTime?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesEffectiveDateTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesEffectiveDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentGrain")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentCurrencyCode")) + if (content.Contains("AppliedScopePropertyManagementGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentCurrencyCode = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentCurrencyCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertyManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyManagementGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentAmount")) + if (content.Contains("AppliedScopePropertyResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentAmount = (double?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertyResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyResourceGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId")) + if (content.Contains("CommitmentCurrencyCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentCurrencyCode = (string) content.GetValueForProperty("CommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentCurrencyCode, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId")) + if (content.Contains("CommitmentAmount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentAmount = (double?) content.GetValueForProperty("CommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } AfterDeserializeDictionary(content); } @@ -368,10 +284,6 @@ internal SavingsPlanModelProperties(global::System.Management.Automation.PSObjec { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Utilization = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IUtilization) content.GetValueForProperty("Utilization",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Utilization, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.UtilizationTypeConverter.ConvertFrom); } - if (content.Contains("RenewProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); - } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).DisplayName, global::System.Convert.ToString); @@ -444,21 +356,25 @@ internal SavingsPlanModelProperties(global::System.Management.Automation.PSObjec { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewDestination = (string) content.GetValueForProperty("RenewDestination",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewDestination, global::System.Convert.ToString); } - if (content.Contains("AppliedScopePropertiesTenantId")) + if (content.Contains("RenewProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesTenantId = (string) content.GetValueForProperty("AppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("AppliedScopePropertiesSubscriptionId")) + if (content.Contains("AppliedScopePropertyTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyTenantId = (string) content.GetValueForProperty("AppliedScopePropertyTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyTenantId, global::System.Convert.ToString); } - if (content.Contains("AppliedScopePropertiesDisplayName")) + if (content.Contains("AppliedScopePropertySubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("AppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertySubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertySubscriptionId, global::System.Convert.ToString); } - if (content.Contains("Grain")) + if (content.Contains("AppliedScopePropertyDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Grain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("Grain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Grain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyDisplayName = (string) content.GetValueForProperty("AppliedScopePropertyDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyDisplayName, global::System.Convert.ToString); + } + if (content.Contains("CommitmentGrain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("CommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); } if (content.Contains("ExtendedStatusInfoStatusCode")) { @@ -476,105 +392,21 @@ internal SavingsPlanModelProperties(global::System.Management.Automation.PSObjec { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).UtilizationAggregate = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IUtilizationAggregates[]) content.GetValueForProperty("UtilizationAggregate",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).UtilizationAggregate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.UtilizationAggregatesTypeConverter.ConvertFrom)); } - if (content.Contains("AppliedScopePropertiesManagementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("CurrencyCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CurrencyCode = (string) content.GetValueForProperty("CurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CurrencyCode, global::System.Convert.ToString); - } - if (content.Contains("Amount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Amount = (double?) content.GetValueForProperty("Amount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).Amount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("RenewPropertyPurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertyPurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) content.GetValueForProperty("RenewPropertyPurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertyPurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestTypeConverter.ConvertFrom); - } - if (content.Contains("PurchasePropertySku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).PurchasePropertySku = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku) content.GetValueForProperty("PurchasePropertySku",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).PurchasePropertySku, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("PurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).PurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties) content.GetValueForProperty("PurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).PurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitment = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitment",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitment, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.CommitmentTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesTerm")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesTerm = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesTerm",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesTerm, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesBillingPlan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesBillingPlan = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesBillingPlan",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesBillingPlan, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesRenew")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesRenew = (bool?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesRenew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesRenew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesBillingScopeId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesBillingScopeId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesBillingScopeId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesBillingScopeId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesEffectiveDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesEffectiveDateTime = (global::System.DateTime?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesEffectiveDateTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesEffectiveDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentGrain")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentCurrencyCode")) + if (content.Contains("AppliedScopePropertyManagementGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentCurrencyCode = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentCurrencyCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertyManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyManagementGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesCommitmentAmount")) + if (content.Contains("AppliedScopePropertyResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentAmount = (double?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesCommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesCommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertyResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).AppliedScopePropertyResourceGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId")) + if (content.Contains("CommitmentCurrencyCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentCurrencyCode = (string) content.GetValueForProperty("CommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentCurrencyCode, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId")) + if (content.Contains("CommitmentAmount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentAmount = (double?) content.GetValueForProperty("CommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal)this).CommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } AfterDeserializePSObject(content); } diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.cs b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.cs index 3970fddc3e13..badc48888bb4 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.cs @@ -13,37 +13,34 @@ public partial class SavingsPlanModelProperties : Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal { - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public double? Amount { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPriceInternal)Commitment).Amount; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPriceInternal)Commitment).Amount = value ?? default(double); } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties _appliedScopeProperty; + + /// Properties specific to applied scope type. Not required if not applicable. + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get => (this._appliedScopeProperty = this._appliedScopeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopeProperties()); set => this._appliedScopeProperty = value; } /// Display name [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).DisplayName = value ?? null; } + public string AppliedScopePropertyDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).DisplayName = value ?? null; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ManagementGroupId = value ?? null; } + public string AppliedScopePropertyManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ManagementGroupId = value ?? null; } /// Fully-qualified identifier of the resource group. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ResourceGroupId = value ?? null; } + public string AppliedScopePropertyResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ResourceGroupId = value ?? null; } /// Fully-qualified identifier of the subscription. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).SubscriptionId = value ?? null; } + public string AppliedScopePropertySubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).SubscriptionId = value ?? null; } /// Tenant ID where the benefit is applied. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).TenantId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties _appliedScopeProperty; - - /// Properties specific to applied scope type. Not required if not applicable. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get => (this._appliedScopeProperty = this._appliedScopeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopeProperties()); set => this._appliedScopeProperty = value; } + public string AppliedScopePropertyTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).TenantId = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? _appliedScopeType; @@ -102,11 +99,18 @@ public partial class SavingsPlanModelProperties : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Commitment { get => (this._commitment = this._commitment ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.Commitment()); set => this._commitment = value; } + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] + public double? CommitmentAmount { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPriceInternal)Commitment).Amount; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPriceInternal)Commitment).Amount = value ?? default(double); } + /// /// The ISO 4217 3-letter currency code for the currency used by this purchase record. /// [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string CurrencyCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPriceInternal)Commitment).CurrencyCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPriceInternal)Commitment).CurrencyCode = value ?? null; } + public string CommitmentCurrencyCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPriceInternal)Commitment).CurrencyCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPriceInternal)Commitment).CurrencyCode = value ?? null; } + + /// Commitment grain. + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitmentInternal)Commitment).Grain; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitmentInternal)Commitment).Grain = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); } /// Backing field for property. private string _customerId; @@ -159,10 +163,6 @@ public partial class SavingsPlanModelProperties : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] public string ExtendedStatusInfoStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IExtendedStatusInfoInternal)ExtendedStatusInfo).StatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IExtendedStatusInfoInternal)ExtendedStatusInfo).StatusCode = value ?? null; } - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? Grain { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitmentInternal)Commitment).Grain; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitmentInternal)Commitment).Grain = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); } - /// Internal Acessors for AppliedScopeProperty Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal.AppliedScopeProperty { get => (this._appliedScopeProperty = this._appliedScopeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopeProperties()); set { {_appliedScopeProperty = value;} } } @@ -196,27 +196,6 @@ public partial class SavingsPlanModelProperties : /// Internal Acessors for PurchaseDateTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal.PurchaseDateTime { get => this._purchaseDateTime; set { {_purchaseDateTime = value;} } } - /// Internal Acessors for PurchaseProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal.PurchaseProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchasePropertiesProperties; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchasePropertiesProperties = value; } - - /// Internal Acessors for PurchasePropertySku - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal.PurchasePropertySku { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchasePropertySku; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchasePropertySku = value; } - - /// Internal Acessors for RenewPropertiesPurchasePropertiesAppliedScopeProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal.RenewPropertiesPurchasePropertiesAppliedScopeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopeProperty = value; } - - /// Internal Acessors for RenewPropertiesPurchasePropertiesCommitment - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal.RenewPropertiesPurchasePropertiesCommitment { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Commitment; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Commitment = value; } - - /// Internal Acessors for RenewPropertiesPurchasePropertiesEffectiveDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal.RenewPropertiesPurchasePropertiesEffectiveDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).EffectiveDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).EffectiveDateTime = value; } - - /// Internal Acessors for RenewProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal.RenewProperty { get => (this._renewProperty = this._renewProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewProperties()); set { {_renewProperty = value;} } } - - /// Internal Acessors for RenewPropertyPurchaseProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal.RenewPropertyPurchaseProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchaseProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchaseProperty = value; } - /// Internal Acessors for UserFriendlyAppliedScopeType string Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModelPropertiesInternal.UserFriendlyAppliedScopeType { get => this._userFriendlyAppliedScopeType; set { {_userFriendlyAppliedScopeType = value;} } } @@ -256,78 +235,11 @@ public partial class SavingsPlanModelProperties : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] public string RenewDestination { get => this._renewDestination; set => this._renewDestination = value; } - /// Display name - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyDisplayName = value ?? null; } - - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyManagementGroupId = value ?? null; } - - /// Fully-qualified identifier of the resource group. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyResourceGroupId = value ?? null; } - - /// Fully-qualified identifier of the subscription. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertySubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertySubscriptionId = value ?? null; } - - /// Tenant ID where the benefit is applied. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyTenantId = value ?? null; } - - /// Type of the Applied Scope. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopeType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopeType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType)""); } - - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? RenewPropertiesPurchasePropertiesBillingPlan { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).BillingPlan; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).BillingPlan = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan)""); } - - /// Subscription that will be charged for purchasing the benefit - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesBillingScopeId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).BillingScopeId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).BillingScopeId = value ?? null; } - - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public double? RenewPropertiesPurchasePropertiesCommitmentAmount { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentAmount; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentAmount = value ?? default(double); } - - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesCommitmentCurrencyCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentCurrencyCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentCurrencyCode = value ?? null; } - - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? RenewPropertiesPurchasePropertiesCommitmentGrain { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentGrain; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentGrain = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); } - - /// Friendly name of the savings plan - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).DisplayName = value ?? null; } - - /// DateTime of the savings plan starts providing benefit from. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public global::System.DateTime? RenewPropertiesPurchasePropertiesEffectiveDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).EffectiveDateTime; } - - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public bool? RenewPropertiesPurchasePropertiesRenew { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Renew; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Renew = value ?? default(bool); } - - /// Represent benefit term in ISO 8601 format. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? RenewPropertiesPurchasePropertiesTerm { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Term; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Term = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term)""); } - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties _renewProperty; [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get => (this._renewProperty = this._renewProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewProperties()); set => this._renewProperty = value; } + public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get => (this._renewProperty = this._renewProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewProperties()); set => this._renewProperty = value; } /// Backing field for property. private string _renewSource; @@ -336,10 +248,6 @@ public partial class SavingsPlanModelProperties : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] public string RenewSource { get => this._renewSource; set => this._renewSource = value; } - /// Name of the SKU to be applied - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).SkuName = value ?? null; } - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? _term; @@ -379,13 +287,6 @@ public SavingsPlanModelProperties() public partial interface ISavingsPlanModelProperties : Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.IJsonSerializable { - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"amount", - PossibleTypes = new [] { typeof(double) })] - double? Amount { get; set; } /// Display name [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -393,7 +294,7 @@ public partial interface ISavingsPlanModelProperties : Description = @"Display name", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesDisplayName { get; set; } + string AppliedScopePropertyDisplayName { get; set; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// @@ -403,7 +304,7 @@ public partial interface ISavingsPlanModelProperties : Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", SerializedName = @"managementGroupId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesManagementGroupId { get; set; } + string AppliedScopePropertyManagementGroupId { get; set; } /// Fully-qualified identifier of the resource group. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -411,7 +312,7 @@ public partial interface ISavingsPlanModelProperties : Description = @"Fully-qualified identifier of the resource group.", SerializedName = @"resourceGroupId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesResourceGroupId { get; set; } + string AppliedScopePropertyResourceGroupId { get; set; } /// Fully-qualified identifier of the subscription. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -419,7 +320,7 @@ public partial interface ISavingsPlanModelProperties : Description = @"Fully-qualified identifier of the subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesSubscriptionId { get; set; } + string AppliedScopePropertySubscriptionId { get; set; } /// Tenant ID where the benefit is applied. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -427,7 +328,7 @@ public partial interface ISavingsPlanModelProperties : Description = @"Tenant ID where the benefit is applied.", SerializedName = @"tenantId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesTenantId { get; set; } + string AppliedScopePropertyTenantId { get; set; } /// Type of the Applied Scope. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -484,6 +385,14 @@ public partial interface ISavingsPlanModelProperties : SerializedName = @"billingScopeId", PossibleTypes = new [] { typeof(string) })] string BillingScopeId { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"amount", + PossibleTypes = new [] { typeof(double) })] + double? CommitmentAmount { get; set; } /// /// The ISO 4217 3-letter currency code for the currency used by this purchase record. /// @@ -493,7 +402,15 @@ public partial interface ISavingsPlanModelProperties : Description = @"The ISO 4217 3-letter currency code for the currency used by this purchase record.", SerializedName = @"currencyCode", PossibleTypes = new [] { typeof(string) })] - string CurrencyCode { get; set; } + string CommitmentCurrencyCode { get; set; } + /// Commitment grain. + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Commitment grain.", + SerializedName = @"grain", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get; set; } /// /// Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers. /// @@ -552,14 +469,6 @@ public partial interface ISavingsPlanModelProperties : SerializedName = @"statusCode", PossibleTypes = new [] { typeof(string) })] string ExtendedStatusInfoStatusCode { get; set; } - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Commitment grain.", - SerializedName = @"grain", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? Grain { get; set; } /// Provisioning state [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -594,134 +503,14 @@ public partial interface ISavingsPlanModelProperties : SerializedName = @"renewDestination", PossibleTypes = new [] { typeof(string) })] string RenewDestination { get; set; } - /// Display name - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Display name", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get; set; } - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", - SerializedName = @"managementGroupId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get; set; } - /// Fully-qualified identifier of the resource group. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the resource group.", - SerializedName = @"resourceGroupId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get; set; } - /// Fully-qualified identifier of the subscription. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the subscription.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get; set; } - /// Tenant ID where the benefit is applied. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Tenant ID where the benefit is applied.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get; set; } - /// Type of the Applied Scope. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of the Applied Scope.", - SerializedName = @"appliedScopeType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get; set; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.", - SerializedName = @"billingPlan", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? RenewPropertiesPurchasePropertiesBillingPlan { get; set; } - /// Subscription that will be charged for purchasing the benefit - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Subscription that will be charged for purchasing the benefit", - SerializedName = @"billingScopeId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesBillingScopeId { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, ReadOnly = false, Description = @"", - SerializedName = @"amount", - PossibleTypes = new [] { typeof(double) })] - double? RenewPropertiesPurchasePropertiesCommitmentAmount { get; set; } - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ISO 4217 3-letter currency code for the currency used by this purchase record.", - SerializedName = @"currencyCode", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesCommitmentCurrencyCode { get; set; } - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Commitment grain.", - SerializedName = @"grain", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? RenewPropertiesPurchasePropertiesCommitmentGrain { get; set; } - /// Friendly name of the savings plan - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of the savings plan", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesDisplayName { get; set; } - /// DateTime of the savings plan starts providing benefit from. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"DateTime of the savings plan starts providing benefit from.", - SerializedName = @"effectiveDateTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? RenewPropertiesPurchasePropertiesEffectiveDateTime { get; } - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Setting this to true will automatically purchase a new benefit on the expiration date time.", - SerializedName = @"renew", - PossibleTypes = new [] { typeof(bool) })] - bool? RenewPropertiesPurchasePropertiesRenew { get; set; } - /// Represent benefit term in ISO 8601 format. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Represent benefit term in ISO 8601 format.", - SerializedName = @"term", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? RenewPropertiesPurchasePropertiesTerm { get; set; } + SerializedName = @"renewProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get; set; } /// SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -730,14 +519,6 @@ public partial interface ISavingsPlanModelProperties : SerializedName = @"renewSource", PossibleTypes = new [] { typeof(string) })] string RenewSource { get; set; } - /// Name of the SKU to be applied - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the SKU to be applied", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string SkuName { get; set; } /// Represent benefit term in ISO 8601 format. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -776,21 +557,20 @@ public partial interface ISavingsPlanModelProperties : internal partial interface ISavingsPlanModelPropertiesInternal { - double? Amount { get; set; } + /// Properties specific to applied scope type. Not required if not applicable. + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get; set; } /// Display name - string AppliedScopePropertiesDisplayName { get; set; } + string AppliedScopePropertyDisplayName { get; set; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// - string AppliedScopePropertiesManagementGroupId { get; set; } + string AppliedScopePropertyManagementGroupId { get; set; } /// Fully-qualified identifier of the resource group. - string AppliedScopePropertiesResourceGroupId { get; set; } + string AppliedScopePropertyResourceGroupId { get; set; } /// Fully-qualified identifier of the subscription. - string AppliedScopePropertiesSubscriptionId { get; set; } + string AppliedScopePropertySubscriptionId { get; set; } /// Tenant ID where the benefit is applied. - string AppliedScopePropertiesTenantId { get; set; } - /// Properties specific to applied scope type. Not required if not applicable. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get; set; } + string AppliedScopePropertyTenantId { get; set; } /// Type of the Applied Scope. Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get; set; } /// This is the DateTime when the savings plan benefit started. @@ -813,10 +593,14 @@ internal partial interface ISavingsPlanModelPropertiesInternal string BillingScopeId { get; set; } /// Commitment towards the benefit. Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Commitment { get; set; } + + double? CommitmentAmount { get; set; } /// /// The ISO 4217 3-letter currency code for the currency used by this purchase record. /// - string CurrencyCode { get; set; } + string CommitmentCurrencyCode { get; set; } + /// Commitment grain. + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get; set; } /// /// Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers. /// @@ -835,72 +619,20 @@ internal partial interface ISavingsPlanModelPropertiesInternal string ExtendedStatusInfoMessage { get; set; } /// Status code providing additional information. string ExtendedStatusInfoStatusCode { get; set; } - /// Commitment grain. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? Grain { get; set; } /// Provisioning state Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.ProvisioningState? ProvisioningState { get; set; } /// Date time when the savings plan was purchased global::System.DateTime? PurchaseDateTime { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties PurchaseProperty { get; set; } - /// The SKU to be applied for this resource - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku PurchasePropertySku { get; set; } /// /// Setting this to true will automatically purchase a new benefit on the expiration date time. /// bool? Renew { get; set; } /// SavingsPlan Id of the SavingsPlan which is purchased because of renew. string RenewDestination { get; set; } - /// Display name - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get; set; } - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get; set; } - /// Fully-qualified identifier of the resource group. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get; set; } - /// Fully-qualified identifier of the subscription. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get; set; } - /// Tenant ID where the benefit is applied. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get; set; } - /// Properties specific to applied scope type. Not required if not applicable. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties RenewPropertiesPurchasePropertiesAppliedScopeProperty { get; set; } - /// Type of the Applied Scope. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get; set; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? RenewPropertiesPurchasePropertiesBillingPlan { get; set; } - /// Subscription that will be charged for purchasing the benefit - string RenewPropertiesPurchasePropertiesBillingScopeId { get; set; } - /// Commitment towards the benefit. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment RenewPropertiesPurchasePropertiesCommitment { get; set; } - - double? RenewPropertiesPurchasePropertiesCommitmentAmount { get; set; } - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - string RenewPropertiesPurchasePropertiesCommitmentCurrencyCode { get; set; } - /// Commitment grain. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? RenewPropertiesPurchasePropertiesCommitmentGrain { get; set; } - /// Friendly name of the savings plan - string RenewPropertiesPurchasePropertiesDisplayName { get; set; } - /// DateTime of the savings plan starts providing benefit from. - global::System.DateTime? RenewPropertiesPurchasePropertiesEffectiveDateTime { get; set; } - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - bool? RenewPropertiesPurchasePropertiesRenew { get; set; } - /// Represent benefit term in ISO 8601 format. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? RenewPropertiesPurchasePropertiesTerm { get; set; } Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest RenewPropertyPurchaseProperty { get; set; } /// SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed. string RenewSource { get; set; } - /// Name of the SKU to be applied - string SkuName { get; set; } /// Represent benefit term in ISO 8601 format. Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get; set; } /// The applied scope type of the savings plan for display, e.g. Shared diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.json.cs b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.json.cs index 3dc7c41a819f..4fa45b6d56f9 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.json.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanModelProperties.json.cs @@ -81,7 +81,6 @@ internal SavingsPlanModelProperties(Microsoft.Azure.PowerShell.Cmdlets.BillingBe {_commitment = If( json?.PropertyT("commitment"), out var __jsonCommitment) ? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.Commitment.FromJson(__jsonCommitment) : Commitment;} {_extendedStatusInfo = If( json?.PropertyT("extendedStatusInfo"), out var __jsonExtendedStatusInfo) ? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ExtendedStatusInfo.FromJson(__jsonExtendedStatusInfo) : ExtendedStatusInfo;} {_utilization = If( json?.PropertyT("utilization"), out var __jsonUtilization) ? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.Utilization.FromJson(__jsonUtilization) : Utilization;} - {_renewProperty = If( json?.PropertyT("renewProperties"), out var __jsonRenewProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewProperties.FromJson(__jsonRenewProperties) : RenewProperty;} {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_displayProvisioningState = If( json?.PropertyT("displayProvisioningState"), out var __jsonDisplayProvisioningState) ? (string)__jsonDisplayProvisioningState : (string)DisplayProvisioningState;} @@ -100,6 +99,7 @@ internal SavingsPlanModelProperties(Microsoft.Azure.PowerShell.Cmdlets.BillingBe {_renew = If( json?.PropertyT("renew"), out var __jsonRenew) ? (bool?)__jsonRenew : Renew;} {_renewSource = If( json?.PropertyT("renewSource"), out var __jsonRenewSource) ? (string)__jsonRenewSource : (string)RenewSource;} {_renewDestination = If( json?.PropertyT("renewDestination"), out var __jsonRenewDestination) ? (string)__jsonRenewDestination : (string)RenewDestination;} + {_renewProperty = If( json?.PropertyT("renewProperties"), out var __jsonRenewProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewProperties.FromJson(__jsonRenewProperties) : RenewProperty;} AfterFromJson(json); } @@ -132,7 +132,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode { AddIf( null != this._utilization ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) this._utilization.ToJson(null,serializationMode) : null, "utilization" ,container.Add ); } - AddIf( null != this._renewProperty ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) this._renewProperty.ToJson(null,serializationMode) : null, "renewProperties" ,container.Add ); AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.SerializationMode.IncludeReadOnly)) { @@ -178,6 +177,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode AddIf( null != this._renew ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonBoolean((bool)this._renew) : null, "renew" ,container.Add ); AddIf( null != (((object)this._renewSource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonString(this._renewSource.ToString()) : null, "renewSource" ,container.Add ); AddIf( null != (((object)this._renewDestination)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonString(this._renewDestination.ToString()) : null, "renewDestination" ,container.Add ); + AddIf( null != this._renewProperty ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) this._renewProperty.ToJson(null,serializationMode) : null, "renewProperties" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequest.PowerShell.cs b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequest.PowerShell.cs index dde041fb43d2..f8a3c8e2c59b 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequest.PowerShell.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequest.PowerShell.cs @@ -115,10 +115,6 @@ internal SavingsPlanUpdateRequest(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SavingsPlanUpdateRequestPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("RenewProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); - } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).DisplayName, global::System.Convert.ToString); @@ -127,6 +123,10 @@ internal SavingsPlanUpdateRequest(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Renew = (bool?) content.GetValueForProperty("Renew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Renew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } + if (content.Contains("RenewProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); + } if (content.Contains("AppliedScopeProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("AppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); @@ -135,109 +135,25 @@ internal SavingsPlanUpdateRequest(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("AppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); } - if (content.Contains("AppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesTenantId = (string) content.GetValueForProperty("AppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesSubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("AppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesManagementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertyPurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertyPurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) content.GetValueForProperty("RenewPropertyPurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertyPurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestTypeConverter.ConvertFrom); - } - if (content.Contains("PurchasePropertySku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).PurchasePropertySku = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku) content.GetValueForProperty("PurchasePropertySku",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).PurchasePropertySku, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("PurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).PurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties) content.GetValueForProperty("PurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).PurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("Commitment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Commitment = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment) content.GetValueForProperty("Commitment",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Commitment, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.CommitmentTypeConverter.ConvertFrom); - } - if (content.Contains("Term")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Term = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term?) content.GetValueForProperty("Term",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Term, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term.CreateFrom); - } - if (content.Contains("BillingPlan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).BillingPlan = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan?) content.GetValueForProperty("BillingPlan",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).BillingPlan, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesRenew")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesRenew = (bool?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesRenew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesRenew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("BillingScopeId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).BillingScopeId = (string) content.GetValueForProperty("BillingScopeId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).BillingScopeId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); - } - if (content.Contains("EffectiveDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).EffectiveDateTime = (global::System.DateTime?) content.GetValueForProperty("EffectiveDateTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).EffectiveDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CommitmentGrain")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("CommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName")) + if (content.Contains("AppliedScopePropertyTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyTenantId = (string) content.GetValueForProperty("AppliedScopePropertyTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyTenantId, global::System.Convert.ToString); } - if (content.Contains("CommitmentCurrencyCode")) + if (content.Contains("AppliedScopePropertySubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentCurrencyCode = (string) content.GetValueForProperty("CommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentCurrencyCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertySubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertySubscriptionId, global::System.Convert.ToString); } - if (content.Contains("CommitmentAmount")) + if (content.Contains("AppliedScopePropertyDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentAmount = (double?) content.GetValueForProperty("CommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyDisplayName = (string) content.GetValueForProperty("AppliedScopePropertyDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyDisplayName, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId")) + if (content.Contains("AppliedScopePropertyManagementGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertyManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyManagementGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId")) + if (content.Contains("AppliedScopePropertyResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertyResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyResourceGroupId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -260,10 +176,6 @@ internal SavingsPlanUpdateRequest(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SavingsPlanUpdateRequestPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("RenewProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); - } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).DisplayName, global::System.Convert.ToString); @@ -272,6 +184,10 @@ internal SavingsPlanUpdateRequest(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Renew = (bool?) content.GetValueForProperty("Renew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Renew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } + if (content.Contains("RenewProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); + } if (content.Contains("AppliedScopeProperty")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("AppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); @@ -280,109 +196,25 @@ internal SavingsPlanUpdateRequest(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("AppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); } - if (content.Contains("AppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesTenantId = (string) content.GetValueForProperty("AppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesSubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("AppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesManagementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertyPurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertyPurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) content.GetValueForProperty("RenewPropertyPurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertyPurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestTypeConverter.ConvertFrom); - } - if (content.Contains("PurchasePropertySku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).PurchasePropertySku = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku) content.GetValueForProperty("PurchasePropertySku",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).PurchasePropertySku, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("PurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).PurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties) content.GetValueForProperty("PurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).PurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("Commitment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Commitment = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment) content.GetValueForProperty("Commitment",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Commitment, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.CommitmentTypeConverter.ConvertFrom); - } - if (content.Contains("Term")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Term = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term?) content.GetValueForProperty("Term",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).Term, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term.CreateFrom); - } - if (content.Contains("BillingPlan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).BillingPlan = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan?) content.GetValueForProperty("BillingPlan",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).BillingPlan, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesRenew")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesRenew = (bool?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesRenew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesRenew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("BillingScopeId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).BillingScopeId = (string) content.GetValueForProperty("BillingScopeId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).BillingScopeId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); - } - if (content.Contains("EffectiveDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).EffectiveDateTime = (global::System.DateTime?) content.GetValueForProperty("EffectiveDateTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).EffectiveDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CommitmentGrain")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("CommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName")) + if (content.Contains("AppliedScopePropertyTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyTenantId = (string) content.GetValueForProperty("AppliedScopePropertyTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyTenantId, global::System.Convert.ToString); } - if (content.Contains("CommitmentCurrencyCode")) + if (content.Contains("AppliedScopePropertySubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentCurrencyCode = (string) content.GetValueForProperty("CommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentCurrencyCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertySubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertySubscriptionId, global::System.Convert.ToString); } - if (content.Contains("CommitmentAmount")) + if (content.Contains("AppliedScopePropertyDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentAmount = (double?) content.GetValueForProperty("CommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).CommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyDisplayName = (string) content.GetValueForProperty("AppliedScopePropertyDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyDisplayName, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId")) + if (content.Contains("AppliedScopePropertyManagementGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertyManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyManagementGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId")) + if (content.Contains("AppliedScopePropertyResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertyResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal)this).AppliedScopePropertyResourceGroupId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequest.cs b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequest.cs index 545d496d7737..d85fcb79e246 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequest.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequest.cs @@ -15,88 +15,40 @@ public partial class SavingsPlanUpdateRequest : /// Display name [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertiesDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertiesDisplayName = value ?? null; } + public string AppliedScopePropertyDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertyDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertyDisplayName = value ?? null; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertiesManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertiesManagementGroupId = value ?? null; } + public string AppliedScopePropertyManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertyManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertyManagementGroupId = value ?? null; } /// Fully-qualified identifier of the resource group. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertiesResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertiesResourceGroupId = value ?? null; } + public string AppliedScopePropertyResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertyResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertyResourceGroupId = value ?? null; } /// Fully-qualified identifier of the subscription. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertiesSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertiesSubscriptionId = value ?? null; } + public string AppliedScopePropertySubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertySubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertySubscriptionId = value ?? null; } /// Tenant ID where the benefit is applied. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertiesTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertiesTenantId = value ?? null; } + public string AppliedScopePropertyTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertyTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopePropertyTenantId = value ?? null; } /// Type of the Applied Scope. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopeType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopeType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType)""); } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? BillingPlan { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).BillingPlan; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).BillingPlan = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan)""); } - - /// Subscription that will be charged for purchasing the benefit - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string BillingScopeId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).BillingScopeId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).BillingScopeId = value ?? null; } - - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public double? CommitmentAmount { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).CommitmentAmount; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).CommitmentAmount = value ?? default(double); } - - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string CommitmentCurrencyCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).CommitmentCurrencyCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).CommitmentCurrencyCode = value ?? null; } - - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).CommitmentGrain; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).CommitmentGrain = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); } - /// Display name [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).DisplayName = value ?? null; } - /// DateTime of the savings plan starts providing benefit from. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public global::System.DateTime? EffectiveDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).EffectiveDateTime; } - /// Internal Acessors for AppliedScopeProperty Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal.AppliedScopeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).AppliedScopeProperty = value; } - /// Internal Acessors for Commitment - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal.Commitment { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).Commitment; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).Commitment = value; } - - /// Internal Acessors for EffectiveDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal.EffectiveDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).EffectiveDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).EffectiveDateTime = value; } - /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SavingsPlanUpdateRequestProperties()); set { {_property = value;} } } - /// Internal Acessors for PurchaseProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal.PurchaseProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).PurchaseProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).PurchaseProperty = value; } - - /// Internal Acessors for PurchasePropertySku - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal.PurchasePropertySku { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).PurchasePropertySku; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).PurchasePropertySku = value; } - - /// Internal Acessors for RenewPropertiesPurchasePropertiesAppliedScopeProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal.RenewPropertiesPurchasePropertiesAppliedScopeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopeProperty = value; } - - /// Internal Acessors for RenewProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal.RenewProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewProperty = value; } - - /// Internal Acessors for RenewPropertyPurchaseProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestInternal.RenewPropertyPurchaseProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertyPurchaseProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertyPurchaseProperty = value; } - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestProperties _property; @@ -110,49 +62,8 @@ public partial class SavingsPlanUpdateRequest : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] public bool? Renew { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).Renew; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).Renew = value ?? default(bool); } - /// Display name - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = value ?? null; } - - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = value ?? null; } - - /// Fully-qualified identifier of the resource group. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = value ?? null; } - - /// Fully-qualified identifier of the subscription. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = value ?? null; } - - /// Tenant ID where the benefit is applied. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = value ?? null; } - - /// Type of the Applied Scope. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopeType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesAppliedScopeType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType)""); } - - /// Friendly name of the savings plan - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesDisplayName = value ?? null; } - - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public bool? RenewPropertiesPurchasePropertiesRenew { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesRenew; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewPropertiesPurchasePropertiesRenew = value ?? default(bool); } - - /// Name of the SKU to be applied - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).SkuName = value ?? null; } - - /// Represent benefit term in ISO 8601 format. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).Term; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).Term = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term)""); } + public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)Property).RenewProperty = value ?? null /* model class */; } /// Creates an new instance. public SavingsPlanUpdateRequest() @@ -171,7 +82,7 @@ public partial interface ISavingsPlanUpdateRequest : Description = @"Display name", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesDisplayName { get; set; } + string AppliedScopePropertyDisplayName { get; set; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// @@ -181,7 +92,7 @@ public partial interface ISavingsPlanUpdateRequest : Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", SerializedName = @"managementGroupId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesManagementGroupId { get; set; } + string AppliedScopePropertyManagementGroupId { get; set; } /// Fully-qualified identifier of the resource group. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -189,7 +100,7 @@ public partial interface ISavingsPlanUpdateRequest : Description = @"Fully-qualified identifier of the resource group.", SerializedName = @"resourceGroupId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesResourceGroupId { get; set; } + string AppliedScopePropertyResourceGroupId { get; set; } /// Fully-qualified identifier of the subscription. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -197,7 +108,7 @@ public partial interface ISavingsPlanUpdateRequest : Description = @"Fully-qualified identifier of the subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesSubscriptionId { get; set; } + string AppliedScopePropertySubscriptionId { get; set; } /// Tenant ID where the benefit is applied. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -205,7 +116,7 @@ public partial interface ISavingsPlanUpdateRequest : Description = @"Tenant ID where the benefit is applied.", SerializedName = @"tenantId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesTenantId { get; set; } + string AppliedScopePropertyTenantId { get; set; } /// Type of the Applied Scope. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -214,50 +125,6 @@ public partial interface ISavingsPlanUpdateRequest : SerializedName = @"appliedScopeType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType) })] Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get; set; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.", - SerializedName = @"billingPlan", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? BillingPlan { get; set; } - /// Subscription that will be charged for purchasing the benefit - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Subscription that will be charged for purchasing the benefit", - SerializedName = @"billingScopeId", - PossibleTypes = new [] { typeof(string) })] - string BillingScopeId { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"amount", - PossibleTypes = new [] { typeof(double) })] - double? CommitmentAmount { get; set; } - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ISO 4217 3-letter currency code for the currency used by this purchase record.", - SerializedName = @"currencyCode", - PossibleTypes = new [] { typeof(string) })] - string CommitmentCurrencyCode { get; set; } - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Commitment grain.", - SerializedName = @"grain", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get; set; } /// Display name [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -266,14 +133,6 @@ public partial interface ISavingsPlanUpdateRequest : SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string DisplayName { get; set; } - /// DateTime of the savings plan starts providing benefit from. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"DateTime of the savings plan starts providing benefit from.", - SerializedName = @"effectiveDateTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? EffectiveDateTime { get; } /// /// Setting this to true will automatically purchase a new benefit on the expiration date time. /// @@ -284,172 +143,46 @@ public partial interface ISavingsPlanUpdateRequest : SerializedName = @"renew", PossibleTypes = new [] { typeof(bool) })] bool? Renew { get; set; } - /// Display name - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Display name", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get; set; } - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", - SerializedName = @"managementGroupId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get; set; } - /// Fully-qualified identifier of the resource group. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the resource group.", - SerializedName = @"resourceGroupId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get; set; } - /// Fully-qualified identifier of the subscription. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the subscription.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get; set; } - /// Tenant ID where the benefit is applied. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Tenant ID where the benefit is applied.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get; set; } - /// Type of the Applied Scope. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of the Applied Scope.", - SerializedName = @"appliedScopeType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get; set; } - /// Friendly name of the savings plan - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of the savings plan", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesDisplayName { get; set; } - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Setting this to true will automatically purchase a new benefit on the expiration date time.", - SerializedName = @"renew", - PossibleTypes = new [] { typeof(bool) })] - bool? RenewPropertiesPurchasePropertiesRenew { get; set; } - /// Name of the SKU to be applied - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the SKU to be applied", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string SkuName { get; set; } - /// Represent benefit term in ISO 8601 format. + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Represent benefit term in ISO 8601 format.", - SerializedName = @"term", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get; set; } + Description = @"", + SerializedName = @"renewProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get; set; } } /// Savings plan patch request internal partial interface ISavingsPlanUpdateRequestInternal { + /// Properties specific to applied scope type. Not required if not applicable. + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get; set; } /// Display name - string AppliedScopePropertiesDisplayName { get; set; } + string AppliedScopePropertyDisplayName { get; set; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// - string AppliedScopePropertiesManagementGroupId { get; set; } + string AppliedScopePropertyManagementGroupId { get; set; } /// Fully-qualified identifier of the resource group. - string AppliedScopePropertiesResourceGroupId { get; set; } + string AppliedScopePropertyResourceGroupId { get; set; } /// Fully-qualified identifier of the subscription. - string AppliedScopePropertiesSubscriptionId { get; set; } + string AppliedScopePropertySubscriptionId { get; set; } /// Tenant ID where the benefit is applied. - string AppliedScopePropertiesTenantId { get; set; } - /// Properties specific to applied scope type. Not required if not applicable. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get; set; } + string AppliedScopePropertyTenantId { get; set; } /// Type of the Applied Scope. Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get; set; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? BillingPlan { get; set; } - /// Subscription that will be charged for purchasing the benefit - string BillingScopeId { get; set; } - /// Commitment towards the benefit. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Commitment { get; set; } - - double? CommitmentAmount { get; set; } - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - string CommitmentCurrencyCode { get; set; } - /// Commitment grain. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get; set; } /// Display name string DisplayName { get; set; } - /// DateTime of the savings plan starts providing benefit from. - global::System.DateTime? EffectiveDateTime { get; set; } /// Savings plan patch request Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestProperties Property { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties PurchaseProperty { get; set; } - /// The SKU to be applied for this resource - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku PurchasePropertySku { get; set; } /// /// Setting this to true will automatically purchase a new benefit on the expiration date time. /// bool? Renew { get; set; } - /// Display name - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get; set; } - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get; set; } - /// Fully-qualified identifier of the resource group. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get; set; } - /// Fully-qualified identifier of the subscription. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get; set; } - /// Tenant ID where the benefit is applied. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get; set; } - /// Properties specific to applied scope type. Not required if not applicable. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties RenewPropertiesPurchasePropertiesAppliedScopeProperty { get; set; } - /// Type of the Applied Scope. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get; set; } - /// Friendly name of the savings plan - string RenewPropertiesPurchasePropertiesDisplayName { get; set; } - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - bool? RenewPropertiesPurchasePropertiesRenew { get; set; } Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest RenewPropertyPurchaseProperty { get; set; } - /// Name of the SKU to be applied - string SkuName { get; set; } - /// Represent benefit term in ISO 8601 format. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get; set; } - } } \ No newline at end of file diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.PowerShell.cs b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.PowerShell.cs index 93ebdda9a82d..47a796caf207 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.PowerShell.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.PowerShell.cs @@ -117,10 +117,6 @@ internal SavingsPlanUpdateRequestProperties(global::System.Collections.IDictiona { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("AppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); } - if (content.Contains("RenewProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); - } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).DisplayName, global::System.Convert.ToString); @@ -133,109 +129,29 @@ internal SavingsPlanUpdateRequestProperties(global::System.Collections.IDictiona { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Renew = (bool?) content.GetValueForProperty("Renew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Renew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } - if (content.Contains("AppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesTenantId = (string) content.GetValueForProperty("AppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesSubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("AppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesManagementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertyPurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertyPurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) content.GetValueForProperty("RenewPropertyPurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertyPurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestTypeConverter.ConvertFrom); - } - if (content.Contains("PurchasePropertySku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).PurchasePropertySku = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku) content.GetValueForProperty("PurchasePropertySku",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).PurchasePropertySku, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("PurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).PurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties) content.GetValueForProperty("PurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).PurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("Commitment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Commitment = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment) content.GetValueForProperty("Commitment",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Commitment, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.CommitmentTypeConverter.ConvertFrom); - } - if (content.Contains("Term")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Term = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term?) content.GetValueForProperty("Term",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Term, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term.CreateFrom); - } - if (content.Contains("BillingPlan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).BillingPlan = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan?) content.GetValueForProperty("BillingPlan",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).BillingPlan, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesRenew")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesRenew = (bool?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesRenew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesRenew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("BillingScopeId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).BillingScopeId = (string) content.GetValueForProperty("BillingScopeId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).BillingScopeId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); - } - if (content.Contains("EffectiveDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).EffectiveDateTime = (global::System.DateTime?) content.GetValueForProperty("EffectiveDateTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).EffectiveDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CommitmentGrain")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("CommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId")) + if (content.Contains("RenewProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName")) + if (content.Contains("AppliedScopePropertyTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyTenantId = (string) content.GetValueForProperty("AppliedScopePropertyTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyTenantId, global::System.Convert.ToString); } - if (content.Contains("CommitmentCurrencyCode")) + if (content.Contains("AppliedScopePropertySubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentCurrencyCode = (string) content.GetValueForProperty("CommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentCurrencyCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertySubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertySubscriptionId, global::System.Convert.ToString); } - if (content.Contains("CommitmentAmount")) + if (content.Contains("AppliedScopePropertyDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentAmount = (double?) content.GetValueForProperty("CommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyDisplayName = (string) content.GetValueForProperty("AppliedScopePropertyDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyDisplayName, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId")) + if (content.Contains("AppliedScopePropertyManagementGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertyManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyManagementGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId")) + if (content.Contains("AppliedScopePropertyResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertyResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyResourceGroupId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -258,10 +174,6 @@ internal SavingsPlanUpdateRequestProperties(global::System.Management.Automation { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("AppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); } - if (content.Contains("RenewProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); - } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).DisplayName, global::System.Convert.ToString); @@ -274,109 +186,29 @@ internal SavingsPlanUpdateRequestProperties(global::System.Management.Automation { ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Renew = (bool?) content.GetValueForProperty("Renew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Renew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } - if (content.Contains("AppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesTenantId = (string) content.GetValueForProperty("AppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesSubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("AppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesManagementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AppliedScopePropertiesResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertyPurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertyPurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest) content.GetValueForProperty("RenewPropertyPurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertyPurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestTypeConverter.ConvertFrom); - } - if (content.Contains("PurchasePropertySku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).PurchasePropertySku = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku) content.GetValueForProperty("PurchasePropertySku",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).PurchasePropertySku, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("PurchaseProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).PurchaseProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties) content.GetValueForProperty("PurchaseProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).PurchaseProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.PurchaseRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("Commitment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Commitment = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment) content.GetValueForProperty("Commitment",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Commitment, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.CommitmentTypeConverter.ConvertFrom); - } - if (content.Contains("Term")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Term = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term?) content.GetValueForProperty("Term",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).Term, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term.CreateFrom); - } - if (content.Contains("BillingPlan")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).BillingPlan = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan?) content.GetValueForProperty("BillingPlan",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).BillingPlan, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesRenew")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesRenew = (bool?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesRenew",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesRenew, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesDisplayName, global::System.Convert.ToString); - } - if (content.Contains("BillingScopeId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).BillingScopeId = (string) content.GetValueForProperty("BillingScopeId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).BillingScopeId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType?) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopeType",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopeType, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType.CreateFrom); - } - if (content.Contains("EffectiveDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).EffectiveDateTime = (global::System.DateTime?) content.GetValueForProperty("EffectiveDateTime",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).EffectiveDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CommitmentGrain")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentGrain = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain?) content.GetValueForProperty("CommitmentGrain",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentGrain, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain.CreateFrom); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId, global::System.Convert.ToString); - } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId")) + if (content.Contains("RenewProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewProperty = (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) content.GetValueForProperty("RenewProperty",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewProperty, Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName")) + if (content.Contains("AppliedScopePropertyTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyTenantId = (string) content.GetValueForProperty("AppliedScopePropertyTenantId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyTenantId, global::System.Convert.ToString); } - if (content.Contains("CommitmentCurrencyCode")) + if (content.Contains("AppliedScopePropertySubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentCurrencyCode = (string) content.GetValueForProperty("CommitmentCurrencyCode",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentCurrencyCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertySubscriptionId = (string) content.GetValueForProperty("AppliedScopePropertySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertySubscriptionId, global::System.Convert.ToString); } - if (content.Contains("CommitmentAmount")) + if (content.Contains("AppliedScopePropertyDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentAmount = (double?) content.GetValueForProperty("CommitmentAmount",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).CommitmentAmount, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyDisplayName = (string) content.GetValueForProperty("AppliedScopePropertyDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyDisplayName, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId")) + if (content.Contains("AppliedScopePropertyManagementGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyManagementGroupId = (string) content.GetValueForProperty("AppliedScopePropertyManagementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyManagementGroupId, global::System.Convert.ToString); } - if (content.Contains("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId")) + if (content.Contains("AppliedScopePropertyResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = (string) content.GetValueForProperty("RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyResourceGroupId = (string) content.GetValueForProperty("AppliedScopePropertyResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal)this).AppliedScopePropertyResourceGroupId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.cs b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.cs index 034d35a35dfc..9d0dafeab9a0 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.cs @@ -13,34 +13,34 @@ public partial class SavingsPlanUpdateRequestProperties : Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal { + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties _appliedScopeProperty; + + /// Properties specific to applied scope type. Not required if not applicable. + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get => (this._appliedScopeProperty = this._appliedScopeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopeProperties()); set => this._appliedScopeProperty = value; } + /// Display name [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).DisplayName = value ?? null; } + public string AppliedScopePropertyDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).DisplayName = value ?? null; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ManagementGroupId = value ?? null; } + public string AppliedScopePropertyManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ManagementGroupId = value ?? null; } /// Fully-qualified identifier of the resource group. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ResourceGroupId = value ?? null; } + public string AppliedScopePropertyResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).ResourceGroupId = value ?? null; } /// Fully-qualified identifier of the subscription. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).SubscriptionId = value ?? null; } + public string AppliedScopePropertySubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).SubscriptionId = value ?? null; } /// Tenant ID where the benefit is applied. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string AppliedScopePropertiesTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).TenantId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties _appliedScopeProperty; - - /// Properties specific to applied scope type. Not required if not applicable. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get => (this._appliedScopeProperty = this._appliedScopeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopeProperties()); set => this._appliedScopeProperty = value; } + public string AppliedScopePropertyTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopePropertiesInternal)AppliedScopeProperty).TenantId = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? _appliedScopeType; @@ -49,29 +49,6 @@ public partial class SavingsPlanUpdateRequestProperties : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get => this._appliedScopeType; set => this._appliedScopeType = value; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? BillingPlan { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).BillingPlan; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).BillingPlan = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan)""); } - - /// Subscription that will be charged for purchasing the benefit - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string BillingScopeId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).BillingScopeId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).BillingScopeId = value ?? null; } - - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public double? CommitmentAmount { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentAmount; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentAmount = value ?? default(double); } - - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string CommitmentCurrencyCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentCurrencyCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentCurrencyCode = value ?? null; } - - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentGrain; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).CommitmentGrain = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); } - /// Backing field for property. private string _displayName; @@ -79,34 +56,9 @@ public partial class SavingsPlanUpdateRequestProperties : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] public string DisplayName { get => this._displayName; set => this._displayName = value; } - /// DateTime of the savings plan starts providing benefit from. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public global::System.DateTime? EffectiveDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).EffectiveDateTime; } - /// Internal Acessors for AppliedScopeProperty Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal.AppliedScopeProperty { get => (this._appliedScopeProperty = this._appliedScopeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopeProperties()); set { {_appliedScopeProperty = value;} } } - /// Internal Acessors for Commitment - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal.Commitment { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Commitment; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Commitment = value; } - - /// Internal Acessors for EffectiveDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal.EffectiveDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).EffectiveDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).EffectiveDateTime = value; } - - /// Internal Acessors for PurchaseProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal.PurchaseProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchasePropertiesProperties; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchasePropertiesProperties = value; } - - /// Internal Acessors for PurchasePropertySku - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal.PurchasePropertySku { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchasePropertySku; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchasePropertySku = value; } - - /// Internal Acessors for RenewPropertiesPurchasePropertiesAppliedScopeProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal.RenewPropertiesPurchasePropertiesAppliedScopeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopeProperty = value; } - - /// Internal Acessors for RenewProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal.RenewProperty { get => (this._renewProperty = this._renewProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewProperties()); set { {_renewProperty = value;} } } - - /// Internal Acessors for RenewPropertyPurchaseProperty - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestPropertiesInternal.RenewPropertyPurchaseProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchaseProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).PurchaseProperty = value; } - /// Backing field for property. private bool? _renew; @@ -116,55 +68,11 @@ public partial class SavingsPlanUpdateRequestProperties : [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] public bool? Renew { get => this._renew; set => this._renew = value; } - /// Display name - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyDisplayName = value ?? null; } - - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyManagementGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyManagementGroupId = value ?? null; } - - /// Fully-qualified identifier of the resource group. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyResourceGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyResourceGroupId = value ?? null; } - - /// Fully-qualified identifier of the subscription. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertySubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertySubscriptionId = value ?? null; } - - /// Tenant ID where the benefit is applied. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopePropertyTenantId = value ?? null; } - - /// Type of the Applied Scope. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopeType; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).AppliedScopeType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType)""); } - - /// Friendly name of the savings plan - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string RenewPropertiesPurchasePropertiesDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).DisplayName = value ?? null; } - - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public bool? RenewPropertiesPurchasePropertiesRenew { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Renew; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Renew = value ?? default(bool); } - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties _renewProperty; [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get => (this._renewProperty = this._renewProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewProperties()); set => this._renewProperty = value; } - - /// Name of the SKU to be applied - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).SkuName = value ?? null; } - - /// Represent benefit term in ISO 8601 format. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Origin(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Term; set => ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewPropertiesInternal)RenewProperty).Term = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term)""); } + public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get => (this._renewProperty = this._renewProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewProperties()); set => this._renewProperty = value; } /// Creates an new instance. public SavingsPlanUpdateRequestProperties() @@ -183,7 +91,7 @@ public partial interface ISavingsPlanUpdateRequestProperties : Description = @"Display name", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesDisplayName { get; set; } + string AppliedScopePropertyDisplayName { get; set; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// @@ -193,7 +101,7 @@ public partial interface ISavingsPlanUpdateRequestProperties : Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", SerializedName = @"managementGroupId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesManagementGroupId { get; set; } + string AppliedScopePropertyManagementGroupId { get; set; } /// Fully-qualified identifier of the resource group. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -201,7 +109,7 @@ public partial interface ISavingsPlanUpdateRequestProperties : Description = @"Fully-qualified identifier of the resource group.", SerializedName = @"resourceGroupId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesResourceGroupId { get; set; } + string AppliedScopePropertyResourceGroupId { get; set; } /// Fully-qualified identifier of the subscription. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -209,7 +117,7 @@ public partial interface ISavingsPlanUpdateRequestProperties : Description = @"Fully-qualified identifier of the subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesSubscriptionId { get; set; } + string AppliedScopePropertySubscriptionId { get; set; } /// Tenant ID where the benefit is applied. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -217,7 +125,7 @@ public partial interface ISavingsPlanUpdateRequestProperties : Description = @"Tenant ID where the benefit is applied.", SerializedName = @"tenantId", PossibleTypes = new [] { typeof(string) })] - string AppliedScopePropertiesTenantId { get; set; } + string AppliedScopePropertyTenantId { get; set; } /// Type of the Applied Scope. [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -226,50 +134,6 @@ public partial interface ISavingsPlanUpdateRequestProperties : SerializedName = @"appliedScopeType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType) })] Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get; set; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.", - SerializedName = @"billingPlan", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? BillingPlan { get; set; } - /// Subscription that will be charged for purchasing the benefit - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Subscription that will be charged for purchasing the benefit", - SerializedName = @"billingScopeId", - PossibleTypes = new [] { typeof(string) })] - string BillingScopeId { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"amount", - PossibleTypes = new [] { typeof(double) })] - double? CommitmentAmount { get; set; } - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ISO 4217 3-letter currency code for the currency used by this purchase record.", - SerializedName = @"currencyCode", - PossibleTypes = new [] { typeof(string) })] - string CommitmentCurrencyCode { get; set; } - /// Commitment grain. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Commitment grain.", - SerializedName = @"grain", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get; set; } /// Display name [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, @@ -278,14 +142,6 @@ public partial interface ISavingsPlanUpdateRequestProperties : SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string DisplayName { get; set; } - /// DateTime of the savings plan starts providing benefit from. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"DateTime of the savings plan starts providing benefit from.", - SerializedName = @"effectiveDateTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? EffectiveDateTime { get; } /// /// Setting this to true will automatically purchase a new benefit on the expiration date time. /// @@ -296,170 +152,44 @@ public partial interface ISavingsPlanUpdateRequestProperties : SerializedName = @"renew", PossibleTypes = new [] { typeof(bool) })] bool? Renew { get; set; } - /// Display name - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Display name", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get; set; } - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", - SerializedName = @"managementGroupId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get; set; } - /// Fully-qualified identifier of the resource group. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the resource group.", - SerializedName = @"resourceGroupId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get; set; } - /// Fully-qualified identifier of the subscription. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the subscription.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get; set; } - /// Tenant ID where the benefit is applied. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Tenant ID where the benefit is applied.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get; set; } - /// Type of the Applied Scope. - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of the Applied Scope.", - SerializedName = @"appliedScopeType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get; set; } - /// Friendly name of the savings plan - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of the savings plan", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string RenewPropertiesPurchasePropertiesDisplayName { get; set; } - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Setting this to true will automatically purchase a new benefit on the expiration date time.", - SerializedName = @"renew", - PossibleTypes = new [] { typeof(bool) })] - bool? RenewPropertiesPurchasePropertiesRenew { get; set; } - /// Name of the SKU to be applied - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the SKU to be applied", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string SkuName { get; set; } - /// Represent benefit term in ISO 8601 format. + [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Represent benefit term in ISO 8601 format.", - SerializedName = @"term", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term) })] - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get; set; } + Description = @"", + SerializedName = @"renewProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get; set; } } /// Savings plan patch request internal partial interface ISavingsPlanUpdateRequestPropertiesInternal { + /// Properties specific to applied scope type. Not required if not applicable. + Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get; set; } /// Display name - string AppliedScopePropertiesDisplayName { get; set; } + string AppliedScopePropertyDisplayName { get; set; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. /// - string AppliedScopePropertiesManagementGroupId { get; set; } + string AppliedScopePropertyManagementGroupId { get; set; } /// Fully-qualified identifier of the resource group. - string AppliedScopePropertiesResourceGroupId { get; set; } + string AppliedScopePropertyResourceGroupId { get; set; } /// Fully-qualified identifier of the subscription. - string AppliedScopePropertiesSubscriptionId { get; set; } + string AppliedScopePropertySubscriptionId { get; set; } /// Tenant ID where the benefit is applied. - string AppliedScopePropertiesTenantId { get; set; } - /// Properties specific to applied scope type. Not required if not applicable. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties AppliedScopeProperty { get; set; } + string AppliedScopePropertyTenantId { get; set; } /// Type of the Applied Scope. Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? AppliedScopeType { get; set; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan? BillingPlan { get; set; } - /// Subscription that will be charged for purchasing the benefit - string BillingScopeId { get; set; } - /// Commitment towards the benefit. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ICommitment Commitment { get; set; } - - double? CommitmentAmount { get; set; } - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - string CommitmentCurrencyCode { get; set; } - /// Commitment grain. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain? CommitmentGrain { get; set; } /// Display name string DisplayName { get; set; } - /// DateTime of the savings plan starts providing benefit from. - global::System.DateTime? EffectiveDateTime { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequestProperties PurchaseProperty { get; set; } - /// The SKU to be applied for this resource - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISku PurchasePropertySku { get; set; } /// /// Setting this to true will automatically purchase a new benefit on the expiration date time. /// bool? Renew { get; set; } - /// Display name - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get; set; } - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get; set; } - /// Fully-qualified identifier of the resource group. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get; set; } - /// Fully-qualified identifier of the subscription. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get; set; } - /// Tenant ID where the benefit is applied. - string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get; set; } - /// Properties specific to applied scope type. Not required if not applicable. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IAppliedScopeProperties RenewPropertiesPurchasePropertiesAppliedScopeProperty { get; set; } - /// Type of the Applied Scope. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType? RenewPropertiesPurchasePropertiesAppliedScopeType { get; set; } - /// Friendly name of the savings plan - string RenewPropertiesPurchasePropertiesDisplayName { get; set; } - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - bool? RenewPropertiesPurchasePropertiesRenew { get; set; } Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IPurchaseRequest RenewPropertyPurchaseProperty { get; set; } - /// Name of the SKU to be applied - string SkuName { get; set; } - /// Represent benefit term in ISO 8601 format. - Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term? Term { get; set; } - } } \ No newline at end of file diff --git a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.json.cs b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.json.cs index 3c6461a63c26..701a416f4323 100644 --- a/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.json.cs +++ b/src/BillingBenefits/generated/api/Models/Api20221101/SavingsPlanUpdateRequestProperties.json.cs @@ -78,10 +78,10 @@ internal SavingsPlanUpdateRequestProperties(Microsoft.Azure.PowerShell.Cmdlets.B return; } {_appliedScopeProperty = If( json?.PropertyT("appliedScopeProperties"), out var __jsonAppliedScopeProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.AppliedScopeProperties.FromJson(__jsonAppliedScopeProperties) : AppliedScopeProperty;} - {_renewProperty = If( json?.PropertyT("renewProperties"), out var __jsonRenewProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewProperties.FromJson(__jsonRenewProperties) : RenewProperty;} {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} {_appliedScopeType = If( json?.PropertyT("appliedScopeType"), out var __jsonAppliedScopeType) ? (string)__jsonAppliedScopeType : (string)AppliedScopeType;} {_renew = If( json?.PropertyT("renew"), out var __jsonRenew) ? (bool?)__jsonRenew : Renew;} + {_renewProperty = If( json?.PropertyT("renewProperties"), out var __jsonRenewProperties) ? Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.RenewProperties.FromJson(__jsonRenewProperties) : RenewProperty;} AfterFromJson(json); } @@ -106,10 +106,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode return container; } AddIf( null != this._appliedScopeProperty ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) this._appliedScopeProperty.ToJson(null,serializationMode) : null, "appliedScopeProperties" ,container.Add ); - AddIf( null != this._renewProperty ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) this._renewProperty.ToJson(null,serializationMode) : null, "renewProperties" ,container.Add ); AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); AddIf( null != (((object)this._appliedScopeType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonString(this._appliedScopeType.ToString()) : null, "appliedScopeType" ,container.Add ); AddIf( null != this._renew ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonBoolean((bool)this._renew) : null, "renew" ,container.Add ); + AddIf( null != this._renewProperty ? (Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Json.JsonNode) this._renewProperty.ToJson(null,serializationMode) : null, "renewProperties" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/BillingBenefits/generated/cmdlets/UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded.cs b/src/BillingBenefits/generated/cmdlets/UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded.cs index 0c79db5ebf02..9c01ee3668d0 100644 --- a/src/BillingBenefits/generated/cmdlets/UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded.cs +++ b/src/BillingBenefits/generated/cmdlets/UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded.cs @@ -45,7 +45,7 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded : global: Description = @"Display name", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] - public string AppliedScopePropertiesDisplayName { get => _body.AppliedScopePropertiesDisplayName ?? null; set => _body.AppliedScopePropertiesDisplayName = value; } + public string AppliedScopePropertyDisplayName { get => _body.AppliedScopePropertyDisplayName ?? null; set => _body.AppliedScopePropertyDisplayName = value; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. @@ -58,7 +58,7 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded : global: Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", SerializedName = @"managementGroupId", PossibleTypes = new [] { typeof(string) })] - public string AppliedScopePropertiesManagementGroupId { get => _body.AppliedScopePropertiesManagementGroupId ?? null; set => _body.AppliedScopePropertiesManagementGroupId = value; } + public string AppliedScopePropertyManagementGroupId { get => _body.AppliedScopePropertyManagementGroupId ?? null; set => _body.AppliedScopePropertyManagementGroupId = value; } /// Fully-qualified identifier of the resource group. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully-qualified identifier of the resource group.")] @@ -69,7 +69,7 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded : global: Description = @"Fully-qualified identifier of the resource group.", SerializedName = @"resourceGroupId", PossibleTypes = new [] { typeof(string) })] - public string AppliedScopePropertiesResourceGroupId { get => _body.AppliedScopePropertiesResourceGroupId ?? null; set => _body.AppliedScopePropertiesResourceGroupId = value; } + public string AppliedScopePropertyResourceGroupId { get => _body.AppliedScopePropertyResourceGroupId ?? null; set => _body.AppliedScopePropertyResourceGroupId = value; } /// Fully-qualified identifier of the subscription. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully-qualified identifier of the subscription.")] @@ -80,7 +80,7 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded : global: Description = @"Fully-qualified identifier of the subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] - public string AppliedScopePropertiesSubscriptionId { get => _body.AppliedScopePropertiesSubscriptionId ?? null; set => _body.AppliedScopePropertiesSubscriptionId = value; } + public string AppliedScopePropertySubscriptionId { get => _body.AppliedScopePropertySubscriptionId ?? null; set => _body.AppliedScopePropertySubscriptionId = value; } /// Tenant ID where the benefit is applied. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tenant ID where the benefit is applied.")] @@ -91,7 +91,7 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded : global: Description = @"Tenant ID where the benefit is applied.", SerializedName = @"tenantId", PossibleTypes = new [] { typeof(string) })] - public string AppliedScopePropertiesTenantId { get => _body.AppliedScopePropertiesTenantId ?? null; set => _body.AppliedScopePropertiesTenantId = value; } + public string AppliedScopePropertyTenantId { get => _body.AppliedScopePropertyTenantId ?? null; set => _body.AppliedScopePropertyTenantId = value; } /// Type of the Applied Scope. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of the Applied Scope.")] @@ -105,31 +105,6 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded : global: [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType))] public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType AppliedScopeType { get => _body.AppliedScopeType ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType)""); set => _body.AppliedScopeType = value; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.", - SerializedName = @"billingPlan", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan))] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan BillingPlan { get => _body.BillingPlan ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan)""); set => _body.BillingPlan = value; } - - /// Subscription that will be charged for purchasing the benefit - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Subscription that will be charged for purchasing the benefit")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Subscription that will be charged for purchasing the benefit", - SerializedName = @"billingScopeId", - PossibleTypes = new [] { typeof(string) })] - public string BillingScopeId { get => _body.BillingScopeId ?? null; set => _body.BillingScopeId = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Runtime)] @@ -138,42 +113,6 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded : global: /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.BillingBenefits Client => Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Module.Instance.ClientAPI; - /// . - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @".", - SerializedName = @"amount", - PossibleTypes = new [] { typeof(double) })] - public double CommitmentAmount { get => _body.CommitmentAmount ?? default(double); set => _body.CommitmentAmount = value; } - - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ISO 4217 3-letter currency code for the currency used by this purchase record.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ISO 4217 3-letter currency code for the currency used by this purchase record.", - SerializedName = @"currencyCode", - PossibleTypes = new [] { typeof(string) })] - public string CommitmentCurrencyCode { get => _body.CommitmentCurrencyCode ?? null; set => _body.CommitmentCurrencyCode = value; } - - /// Commitment grain. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Commitment grain.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Commitment grain.", - SerializedName = @"grain", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain))] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain CommitmentGrain { get => _body.CommitmentGrain ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); set => _body.CommitmentGrain = value; } - /// /// The credentials, account, tenant, and subscription used for communication with Azure /// @@ -288,121 +227,16 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateExpanded : global: PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter Renew { get => _body.Renew ?? default(global::System.Management.Automation.SwitchParameter); set => _body.Renew = value; } - /// Display name - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Display name")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Display name", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ?? null; set => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = value; } - - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully-qualified identifier of the management group where the benefit must be applied.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", - SerializedName = @"managementGroupId", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ?? null; set => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = value; } - - /// Fully-qualified identifier of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully-qualified identifier of the resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the resource group.", - SerializedName = @"resourceGroupId", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ?? null; set => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = value; } - - /// Fully-qualified identifier of the subscription. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully-qualified identifier of the subscription.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the subscription.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ?? null; set => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = value; } - - /// Tenant ID where the benefit is applied. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tenant ID where the benefit is applied.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Tenant ID where the benefit is applied.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ?? null; set => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = value; } - - /// Type of the Applied Scope. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of the Applied Scope.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of the Applied Scope.", - SerializedName = @"appliedScopeType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType))] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType RenewPropertiesPurchasePropertiesAppliedScopeType { get => _body.RenewPropertiesPurchasePropertiesAppliedScopeType ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType)""); set => _body.RenewPropertiesPurchasePropertiesAppliedScopeType = value; } - - /// Friendly name of the savings plan - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Friendly name of the savings plan")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of the savings plan", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesDisplayName { get => _body.RenewPropertiesPurchasePropertiesDisplayName ?? null; set => _body.RenewPropertiesPurchasePropertiesDisplayName = value; } - - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Setting this to true will automatically purchase a new benefit on the expiration date time.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Setting this to true will automatically purchase a new benefit on the expiration date time.", - SerializedName = @"renew", - PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter RenewPropertiesPurchasePropertiesRenew { get => _body.RenewPropertiesPurchasePropertiesRenew ?? default(global::System.Management.Automation.SwitchParameter); set => _body.RenewPropertiesPurchasePropertiesRenew = value; } - - /// Name of the SKU to be applied - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the SKU to be applied")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the SKU to be applied", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - public string SkuName { get => _body.SkuName ?? null; set => _body.SkuName = value; } - - /// Represent benefit term in ISO 8601 format. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Represent benefit term in ISO 8601 format.")] + /// . + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Represent benefit term in ISO 8601 format.", - SerializedName = @"term", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term))] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term Term { get => _body.Term ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term)""); set => _body.Term = value; } + Description = @".", + SerializedName = @"renewProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get => _body.RenewProperty ?? null /* object */; set => _body.RenewProperty = value; } /// /// overrideOnAccepted will be called before the regular onAccepted has been processed, allowing customization of what diff --git a/src/BillingBenefits/generated/cmdlets/UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpanded.cs b/src/BillingBenefits/generated/cmdlets/UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpanded.cs index 2d3bf260b5a0..3f271efdf4be 100644 --- a/src/BillingBenefits/generated/cmdlets/UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpanded.cs +++ b/src/BillingBenefits/generated/cmdlets/UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpanded.cs @@ -45,7 +45,7 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpande Description = @"Display name", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] - public string AppliedScopePropertiesDisplayName { get => _body.AppliedScopePropertiesDisplayName ?? null; set => _body.AppliedScopePropertiesDisplayName = value; } + public string AppliedScopePropertyDisplayName { get => _body.AppliedScopePropertyDisplayName ?? null; set => _body.AppliedScopePropertyDisplayName = value; } /// /// Fully-qualified identifier of the management group where the benefit must be applied. @@ -58,7 +58,7 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpande Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", SerializedName = @"managementGroupId", PossibleTypes = new [] { typeof(string) })] - public string AppliedScopePropertiesManagementGroupId { get => _body.AppliedScopePropertiesManagementGroupId ?? null; set => _body.AppliedScopePropertiesManagementGroupId = value; } + public string AppliedScopePropertyManagementGroupId { get => _body.AppliedScopePropertyManagementGroupId ?? null; set => _body.AppliedScopePropertyManagementGroupId = value; } /// Fully-qualified identifier of the resource group. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully-qualified identifier of the resource group.")] @@ -69,7 +69,7 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpande Description = @"Fully-qualified identifier of the resource group.", SerializedName = @"resourceGroupId", PossibleTypes = new [] { typeof(string) })] - public string AppliedScopePropertiesResourceGroupId { get => _body.AppliedScopePropertiesResourceGroupId ?? null; set => _body.AppliedScopePropertiesResourceGroupId = value; } + public string AppliedScopePropertyResourceGroupId { get => _body.AppliedScopePropertyResourceGroupId ?? null; set => _body.AppliedScopePropertyResourceGroupId = value; } /// Fully-qualified identifier of the subscription. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully-qualified identifier of the subscription.")] @@ -80,7 +80,7 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpande Description = @"Fully-qualified identifier of the subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] - public string AppliedScopePropertiesSubscriptionId { get => _body.AppliedScopePropertiesSubscriptionId ?? null; set => _body.AppliedScopePropertiesSubscriptionId = value; } + public string AppliedScopePropertySubscriptionId { get => _body.AppliedScopePropertySubscriptionId ?? null; set => _body.AppliedScopePropertySubscriptionId = value; } /// Tenant ID where the benefit is applied. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tenant ID where the benefit is applied.")] @@ -91,7 +91,7 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpande Description = @"Tenant ID where the benefit is applied.", SerializedName = @"tenantId", PossibleTypes = new [] { typeof(string) })] - public string AppliedScopePropertiesTenantId { get => _body.AppliedScopePropertiesTenantId ?? null; set => _body.AppliedScopePropertiesTenantId = value; } + public string AppliedScopePropertyTenantId { get => _body.AppliedScopePropertyTenantId ?? null; set => _body.AppliedScopePropertyTenantId = value; } /// Type of the Applied Scope. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of the Applied Scope.")] @@ -105,31 +105,6 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpande [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType))] public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType AppliedScopeType { get => _body.AppliedScopeType ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType)""); set => _body.AppliedScopeType = value; } - /// - /// Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.", - SerializedName = @"billingPlan", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan))] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan BillingPlan { get => _body.BillingPlan ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan)""); set => _body.BillingPlan = value; } - - /// Subscription that will be charged for purchasing the benefit - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Subscription that will be charged for purchasing the benefit")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Subscription that will be charged for purchasing the benefit", - SerializedName = @"billingScopeId", - PossibleTypes = new [] { typeof(string) })] - public string BillingScopeId { get => _body.BillingScopeId ?? null; set => _body.BillingScopeId = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Runtime)] @@ -138,42 +113,6 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpande /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.BillingBenefits Client => Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Module.Instance.ClientAPI; - /// . - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @".", - SerializedName = @"amount", - PossibleTypes = new [] { typeof(double) })] - public double CommitmentAmount { get => _body.CommitmentAmount ?? default(double); set => _body.CommitmentAmount = value; } - - /// - /// The ISO 4217 3-letter currency code for the currency used by this purchase record. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ISO 4217 3-letter currency code for the currency used by this purchase record.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ISO 4217 3-letter currency code for the currency used by this purchase record.", - SerializedName = @"currencyCode", - PossibleTypes = new [] { typeof(string) })] - public string CommitmentCurrencyCode { get => _body.CommitmentCurrencyCode ?? null; set => _body.CommitmentCurrencyCode = value; } - - /// Commitment grain. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Commitment grain.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Commitment grain.", - SerializedName = @"grain", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain))] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain CommitmentGrain { get => _body.CommitmentGrain ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain)""); set => _body.CommitmentGrain = value; } - /// /// The credentials, account, tenant, and subscription used for communication with Azure /// @@ -266,121 +205,16 @@ public partial class UpdateAzBillingBenefitsSavingsPlan_UpdateViaIdentityExpande PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter Renew { get => _body.Renew ?? default(global::System.Management.Automation.SwitchParameter); set => _body.Renew = value; } - /// Display name - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Display name")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Display name", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName { get => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ?? null; set => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName = value; } - - /// - /// Fully-qualified identifier of the management group where the benefit must be applied. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully-qualified identifier of the management group where the benefit must be applied.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the management group where the benefit must be applied.", - SerializedName = @"managementGroupId", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId { get => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ?? null; set => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId = value; } - - /// Fully-qualified identifier of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully-qualified identifier of the resource group.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the resource group.", - SerializedName = @"resourceGroupId", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId { get => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ?? null; set => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId = value; } - - /// Fully-qualified identifier of the subscription. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully-qualified identifier of the subscription.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully-qualified identifier of the subscription.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId { get => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ?? null; set => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId = value; } - - /// Tenant ID where the benefit is applied. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tenant ID where the benefit is applied.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Tenant ID where the benefit is applied.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId { get => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ?? null; set => _body.RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId = value; } - - /// Type of the Applied Scope. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of the Applied Scope.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of the Applied Scope.", - SerializedName = @"appliedScopeType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType))] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType RenewPropertiesPurchasePropertiesAppliedScopeType { get => _body.RenewPropertiesPurchasePropertiesAppliedScopeType ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType)""); set => _body.RenewPropertiesPurchasePropertiesAppliedScopeType = value; } - - /// Friendly name of the savings plan - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Friendly name of the savings plan")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of the savings plan", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - public string RenewPropertiesPurchasePropertiesDisplayName { get => _body.RenewPropertiesPurchasePropertiesDisplayName ?? null; set => _body.RenewPropertiesPurchasePropertiesDisplayName = value; } - - /// - /// Setting this to true will automatically purchase a new benefit on the expiration date time. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Setting this to true will automatically purchase a new benefit on the expiration date time.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Setting this to true will automatically purchase a new benefit on the expiration date time.", - SerializedName = @"renew", - PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter RenewPropertiesPurchasePropertiesRenew { get => _body.RenewPropertiesPurchasePropertiesRenew ?? default(global::System.Management.Automation.SwitchParameter); set => _body.RenewPropertiesPurchasePropertiesRenew = value; } - - /// Name of the SKU to be applied - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the SKU to be applied")] - [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the SKU to be applied", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - public string SkuName { get => _body.SkuName ?? null; set => _body.SkuName = value; } - - /// Represent benefit term in ISO 8601 format. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Represent benefit term in ISO 8601 format.")] + /// . + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Category(global::Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Represent benefit term in ISO 8601 format.", - SerializedName = @"term", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term))] - public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term Term { get => _body.Term ?? ((Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term)""); set => _body.Term = value; } + Description = @".", + SerializedName = @"renewProperties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties RenewProperty { get => _body.RenewProperty ?? null /* object */; set => _body.RenewProperty = value; } /// /// overrideOnAccepted will be called before the regular onAccepted has been processed, allowing customization of what diff --git a/src/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlan.md b/src/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlan.md index 16271565135f..102b01088c49 100644 --- a/src/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlan.md +++ b/src/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlan.md @@ -40,7 +40,7 @@ Get-AzBillingBenefitsSavingsPlan -OrderId d7ea1620-2bba-46e2-8434-11f31bfb984d ``` ```output -Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency +Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode ---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------ PSTest7 Succeeded 11/29/2025 2:23:51 AM 11/29/2022 2:20:38 AM P3Y Shared Compute_Savings_Plan 0.001 USD ``` @@ -53,7 +53,7 @@ Get-AzBillingBenefitsSavingsPlan -OrderId d7ea1620-2bba-46e2-8434-11f31bfb984d - ``` ```output -Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency +Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode ---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------ PSTest7 Succeeded 11/29/2025 2:23:51 AM 11/29/2022 2:20:38 AM P3Y Shared Compute_Savings_Plan 0.001 USD ``` diff --git a/src/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanList.md b/src/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanList.md index fbd04299397c..f64c83e3b2ad 100644 --- a/src/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanList.md +++ b/src/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanList.md @@ -29,7 +29,7 @@ Get-AzBillingBenefitsSavingsPlanList ``` ```output -Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency +Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode ---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------ Compute_SavingsPlan_11-30-2022_15-19 Succeeded 11/30/2023 11:22:53 PM 11/30/2022 11:19:31 PM P1Y Shared Compute_Savings_Plan 0.001 USD PSTesth1234 Succeeded 11/30/2025 12:36:25 AM 11/30/2022 12:34:31 AM P3Y Shared Compute_Savings_Plan 0.001 USD @@ -47,7 +47,7 @@ Get-AzBillingBenefitsSavingsPlanList -Filter "properties/userFriendlyAppliedScop ``` ```output -Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency +Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode ---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------ Compute_SavingsPlan_11-30-2022_15-19 Succeeded 11/30/2023 11:22:53 PM 11/30/2022 11:19:31 PM P1Y Shared Compute_Savings_Plan 0.001 USD PSTesth1234 Succeeded 11/30/2025 12:36:25 AM 11/30/2022 12:34:31 AM P3Y Shared Compute_Savings_Plan 0.001 USD diff --git a/src/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md b/src/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md index 505905f7e18f..2746f46b78ab 100644 --- a/src/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md +++ b/src/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md @@ -214,55 +214,59 @@ To create the parameters described below, construct a hash table containing the `BENEFIT `: . - - `[AppliedScopePropertiesDisplayName ]`: Display name - - `[AppliedScopePropertiesManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. - - `[AppliedScopePropertiesResourceGroupId ]`: Fully-qualified identifier of the resource group. - - `[AppliedScopePropertiesSubscriptionId ]`: Fully-qualified identifier of the subscription. - - `[AppliedScopePropertiesTenantId ]`: Tenant ID where the benefit is applied. + - `[AppliedScopePropertyDisplayName ]`: Display name + - `[AppliedScopePropertyManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. + - `[AppliedScopePropertyResourceGroupId ]`: Fully-qualified identifier of the resource group. + - `[AppliedScopePropertySubscriptionId ]`: Fully-qualified identifier of the subscription. + - `[AppliedScopePropertyTenantId ]`: Tenant ID where the benefit is applied. - `[AppliedScopeType ]`: Type of the Applied Scope. - - `[BillingPlan ]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - - `[BillingScopeId ]`: Subscription that will be charged for purchasing the benefit - - `[CommitmentAmount ]`: - - `[CommitmentCurrencyCode ]`: The ISO 4217 3-letter currency code for the currency used by this purchase record. - - `[CommitmentGrain ]`: Commitment grain. - `[DisplayName ]`: Display name - `[Renew ]`: Setting this to true will automatically purchase a new benefit on the expiration date time. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]`: Display name - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]`: Fully-qualified identifier of the resource group. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]`: Fully-qualified identifier of the subscription. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]`: Tenant ID where the benefit is applied. - - `[RenewPropertiesPurchasePropertiesAppliedScopeType ]`: Type of the Applied Scope. - - `[RenewPropertiesPurchasePropertiesDisplayName ]`: Friendly name of the savings plan - - `[RenewPropertiesPurchasePropertiesRenew ]`: Setting this to true will automatically purchase a new benefit on the expiration date time. - - `[SkuName ]`: Name of the SKU to be applied - - `[Term ]`: Represent benefit term in ISO 8601 format. + - `[RenewProperty ]`: + - `[PurchaseProperty ]`: + - `[AppliedScopePropertyDisplayName ]`: Display name + - `[AppliedScopePropertyManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. + - `[AppliedScopePropertyResourceGroupId ]`: Fully-qualified identifier of the resource group. + - `[AppliedScopePropertySubscriptionId ]`: Fully-qualified identifier of the subscription. + - `[AppliedScopePropertyTenantId ]`: Tenant ID where the benefit is applied. + - `[AppliedScopeType ]`: Type of the Applied Scope. + - `[BillingPlan ]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + - `[BillingScopeId ]`: Subscription that will be charged for purchasing the benefit + - `[CommitmentAmount ]`: + - `[CommitmentCurrencyCode ]`: The ISO 4217 3-letter currency code for the currency used by this purchase record. + - `[CommitmentGrain ]`: Commitment grain. + - `[DisplayName ]`: Friendly name of the savings plan + - `[Renew ]`: Setting this to true will automatically purchase a new benefit on the expiration date time. + - `[SkuName ]`: Name of the SKU to be applied + - `[Term ]`: Represent benefit term in ISO 8601 format. `BODY `: . - `[Benefit ]`: - - `[AppliedScopePropertiesDisplayName ]`: Display name - - `[AppliedScopePropertiesManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. - - `[AppliedScopePropertiesResourceGroupId ]`: Fully-qualified identifier of the resource group. - - `[AppliedScopePropertiesSubscriptionId ]`: Fully-qualified identifier of the subscription. - - `[AppliedScopePropertiesTenantId ]`: Tenant ID where the benefit is applied. + - `[AppliedScopePropertyDisplayName ]`: Display name + - `[AppliedScopePropertyManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. + - `[AppliedScopePropertyResourceGroupId ]`: Fully-qualified identifier of the resource group. + - `[AppliedScopePropertySubscriptionId ]`: Fully-qualified identifier of the subscription. + - `[AppliedScopePropertyTenantId ]`: Tenant ID where the benefit is applied. - `[AppliedScopeType ]`: Type of the Applied Scope. - - `[BillingPlan ]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - - `[BillingScopeId ]`: Subscription that will be charged for purchasing the benefit - - `[CommitmentAmount ]`: - - `[CommitmentCurrencyCode ]`: The ISO 4217 3-letter currency code for the currency used by this purchase record. - - `[CommitmentGrain ]`: Commitment grain. - `[DisplayName ]`: Display name - `[Renew ]`: Setting this to true will automatically purchase a new benefit on the expiration date time. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]`: Display name - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]`: Fully-qualified identifier of the resource group. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]`: Fully-qualified identifier of the subscription. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]`: Tenant ID where the benefit is applied. - - `[RenewPropertiesPurchasePropertiesAppliedScopeType ]`: Type of the Applied Scope. - - `[RenewPropertiesPurchasePropertiesDisplayName ]`: Friendly name of the savings plan - - `[RenewPropertiesPurchasePropertiesRenew ]`: Setting this to true will automatically purchase a new benefit on the expiration date time. - - `[SkuName ]`: Name of the SKU to be applied - - `[Term ]`: Represent benefit term in ISO 8601 format. + - `[RenewProperty ]`: + - `[PurchaseProperty ]`: + - `[AppliedScopePropertyDisplayName ]`: Display name + - `[AppliedScopePropertyManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. + - `[AppliedScopePropertyResourceGroupId ]`: Fully-qualified identifier of the resource group. + - `[AppliedScopePropertySubscriptionId ]`: Fully-qualified identifier of the subscription. + - `[AppliedScopePropertyTenantId ]`: Tenant ID where the benefit is applied. + - `[AppliedScopeType ]`: Type of the Applied Scope. + - `[BillingPlan ]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + - `[BillingScopeId ]`: Subscription that will be charged for purchasing the benefit + - `[CommitmentAmount ]`: + - `[CommitmentCurrencyCode ]`: The ISO 4217 3-letter currency code for the currency used by this purchase record. + - `[CommitmentGrain ]`: Commitment grain. + - `[DisplayName ]`: Friendly name of the savings plan + - `[Renew ]`: Setting this to true will automatically purchase a new benefit on the expiration date time. + - `[SkuName ]`: Name of the SKU to be applied + - `[Term ]`: Represent benefit term in ISO 8601 format. `INPUTOBJECT `: Identity Parameter - `[Id ]`: Resource identity path diff --git a/src/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlan.md b/src/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlan.md index 835827541a23..741ad0211d59 100644 --- a/src/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlan.md +++ b/src/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlan.md @@ -14,21 +14,11 @@ Update savings plan. ### UpdateExpanded (Default) ``` -Update-AzBillingBenefitsSavingsPlan -Id -OrderId - [-AppliedScopePropertiesDisplayName ] [-AppliedScopePropertiesManagementGroupId ] - [-AppliedScopePropertiesResourceGroupId ] [-AppliedScopePropertiesSubscriptionId ] - [-AppliedScopePropertiesTenantId ] [-AppliedScopeType ] - [-BillingPlan ] [-BillingScopeId ] [-CommitmentAmount ] - [-CommitmentCurrencyCode ] [-CommitmentGrain ] [-DisplayName ] [-Renew] - [-RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ] - [-RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ] - [-RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ] - [-RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ] - [-RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ] - [-RenewPropertiesPurchasePropertiesAppliedScopeType ] - [-RenewPropertiesPurchasePropertiesDisplayName ] [-RenewPropertiesPurchasePropertiesRenew] - [-SkuName ] [-Term ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] +Update-AzBillingBenefitsSavingsPlan -Id -OrderId [-AppliedScopePropertyDisplayName ] + [-AppliedScopePropertyManagementGroupId ] [-AppliedScopePropertyResourceGroupId ] + [-AppliedScopePropertySubscriptionId ] [-AppliedScopePropertyTenantId ] + [-AppliedScopeType ] [-DisplayName ] [-Renew] [-RenewProperty ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### Update @@ -46,19 +36,10 @@ Update-AzBillingBenefitsSavingsPlan -InputObject -Bod ### UpdateViaIdentityExpanded ``` Update-AzBillingBenefitsSavingsPlan -InputObject - [-AppliedScopePropertiesDisplayName ] [-AppliedScopePropertiesManagementGroupId ] - [-AppliedScopePropertiesResourceGroupId ] [-AppliedScopePropertiesSubscriptionId ] - [-AppliedScopePropertiesTenantId ] [-AppliedScopeType ] - [-BillingPlan ] [-BillingScopeId ] [-CommitmentAmount ] - [-CommitmentCurrencyCode ] [-CommitmentGrain ] [-DisplayName ] [-Renew] - [-RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ] - [-RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ] - [-RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ] - [-RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ] - [-RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ] - [-RenewPropertiesPurchasePropertiesAppliedScopeType ] - [-RenewPropertiesPurchasePropertiesDisplayName ] [-RenewPropertiesPurchasePropertiesRenew] - [-SkuName ] [-Term ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] + [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] + [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-DisplayName ] + [-Renew] [-RenewProperty ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -82,7 +63,7 @@ Update savings plan property value ## PARAMETERS -### -AppliedScopePropertiesDisplayName +### -AppliedScopePropertyDisplayName Display name ```yaml @@ -97,7 +78,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -AppliedScopePropertiesManagementGroupId +### -AppliedScopePropertyManagementGroupId Fully-qualified identifier of the management group where the benefit must be applied. ```yaml @@ -112,7 +93,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -AppliedScopePropertiesResourceGroupId +### -AppliedScopePropertyResourceGroupId Fully-qualified identifier of the resource group. ```yaml @@ -127,7 +108,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -AppliedScopePropertiesSubscriptionId +### -AppliedScopePropertySubscriptionId Fully-qualified identifier of the subscription. ```yaml @@ -142,7 +123,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -AppliedScopePropertiesTenantId +### -AppliedScopePropertyTenantId Tenant ID where the benefit is applied. ```yaml @@ -172,37 +153,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -BillingPlan -Represents the billing plan in ISO 8601 format. -Required only for monthly billing plans. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -BillingScopeId -Subscription that will be charged for purchasing the benefit - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Body Savings plan patch request To construct, see NOTES section for BODY properties and create a hash table. @@ -219,51 +169,6 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -CommitmentAmount -. - -```yaml -Type: System.Double -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CommitmentCurrencyCode -The ISO 4217 3-letter currency code for the currency used by this purchase record. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CommitmentGrain -Commitment grain. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. @@ -370,146 +275,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName -Display name - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId -Fully-qualified identifier of the management group where the benefit must be applied. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId -Fully-qualified identifier of the resource group. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId -Fully-qualified identifier of the subscription. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId -Tenant ID where the benefit is applied. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RenewPropertiesPurchasePropertiesAppliedScopeType -Type of the Applied Scope. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RenewPropertiesPurchasePropertiesDisplayName -Friendly name of the savings plan - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -RenewPropertiesPurchasePropertiesRenew -Setting this to true will automatically purchase a new benefit on the expiration date time. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SkuName -Name of the SKU to be applied - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Term -Represent benefit term in ISO 8601 format. +### -RenewProperty +. +To construct, see NOTES section for RENEWPROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: @@ -574,29 +345,31 @@ To create the parameters described below, construct a hash table containing the `BODY `: Savings plan patch request - - `[AppliedScopePropertiesDisplayName ]`: Display name - - `[AppliedScopePropertiesManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. - - `[AppliedScopePropertiesResourceGroupId ]`: Fully-qualified identifier of the resource group. - - `[AppliedScopePropertiesSubscriptionId ]`: Fully-qualified identifier of the subscription. - - `[AppliedScopePropertiesTenantId ]`: Tenant ID where the benefit is applied. + - `[AppliedScopePropertyDisplayName ]`: Display name + - `[AppliedScopePropertyManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. + - `[AppliedScopePropertyResourceGroupId ]`: Fully-qualified identifier of the resource group. + - `[AppliedScopePropertySubscriptionId ]`: Fully-qualified identifier of the subscription. + - `[AppliedScopePropertyTenantId ]`: Tenant ID where the benefit is applied. - `[AppliedScopeType ]`: Type of the Applied Scope. - - `[BillingPlan ]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. - - `[BillingScopeId ]`: Subscription that will be charged for purchasing the benefit - - `[CommitmentAmount ]`: - - `[CommitmentCurrencyCode ]`: The ISO 4217 3-letter currency code for the currency used by this purchase record. - - `[CommitmentGrain ]`: Commitment grain. - `[DisplayName ]`: Display name - `[Renew ]`: Setting this to true will automatically purchase a new benefit on the expiration date time. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]`: Display name - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]`: Fully-qualified identifier of the resource group. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]`: Fully-qualified identifier of the subscription. - - `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]`: Tenant ID where the benefit is applied. - - `[RenewPropertiesPurchasePropertiesAppliedScopeType ]`: Type of the Applied Scope. - - `[RenewPropertiesPurchasePropertiesDisplayName ]`: Friendly name of the savings plan - - `[RenewPropertiesPurchasePropertiesRenew ]`: Setting this to true will automatically purchase a new benefit on the expiration date time. - - `[SkuName ]`: Name of the SKU to be applied - - `[Term ]`: Represent benefit term in ISO 8601 format. + - `[RenewProperty ]`: + - `[PurchaseProperty ]`: + - `[AppliedScopePropertyDisplayName ]`: Display name + - `[AppliedScopePropertyManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. + - `[AppliedScopePropertyResourceGroupId ]`: Fully-qualified identifier of the resource group. + - `[AppliedScopePropertySubscriptionId ]`: Fully-qualified identifier of the subscription. + - `[AppliedScopePropertyTenantId ]`: Tenant ID where the benefit is applied. + - `[AppliedScopeType ]`: Type of the Applied Scope. + - `[BillingPlan ]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + - `[BillingScopeId ]`: Subscription that will be charged for purchasing the benefit + - `[CommitmentAmount ]`: + - `[CommitmentCurrencyCode ]`: The ISO 4217 3-letter currency code for the currency used by this purchase record. + - `[CommitmentGrain ]`: Commitment grain. + - `[DisplayName ]`: Friendly name of the savings plan + - `[Renew ]`: Setting this to true will automatically purchase a new benefit on the expiration date time. + - `[SkuName ]`: Name of the SKU to be applied + - `[Term ]`: Represent benefit term in ISO 8601 format. `INPUTOBJECT `: Identity Parameter - `[Id ]`: Resource identity path @@ -605,5 +378,23 @@ To create the parameters described below, construct a hash table containing the - `[SavingsPlanOrderAliasName ]`: Name of the savings plan order alias - `[SavingsPlanOrderId ]`: Order ID of the savings plan +`RENEWPROPERTY `: . + - `[PurchaseProperty ]`: + - `[AppliedScopePropertyDisplayName ]`: Display name + - `[AppliedScopePropertyManagementGroupId ]`: Fully-qualified identifier of the management group where the benefit must be applied. + - `[AppliedScopePropertyResourceGroupId ]`: Fully-qualified identifier of the resource group. + - `[AppliedScopePropertySubscriptionId ]`: Fully-qualified identifier of the subscription. + - `[AppliedScopePropertyTenantId ]`: Tenant ID where the benefit is applied. + - `[AppliedScopeType ]`: Type of the Applied Scope. + - `[BillingPlan ]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + - `[BillingScopeId ]`: Subscription that will be charged for purchasing the benefit + - `[CommitmentAmount ]`: + - `[CommitmentCurrencyCode ]`: The ISO 4217 3-letter currency code for the currency used by this purchase record. + - `[CommitmentGrain ]`: Commitment grain. + - `[DisplayName ]`: Friendly name of the savings plan + - `[Renew ]`: Setting this to true will automatically purchase a new benefit on the expiration date time. + - `[SkuName ]`: Name of the SKU to be applied + - `[Term ]`: Represent benefit term in ISO 8601 format. + ## RELATED LINKS diff --git a/src/BillingBenefits/test/Get-AzBillingBenefitsSavingsPlan.Tests.ps1 b/src/BillingBenefits/test/Get-AzBillingBenefitsSavingsPlan.Tests.ps1 index 9ed8dba34c5e..7243aafa5a7a 100644 --- a/src/BillingBenefits/test/Get-AzBillingBenefitsSavingsPlan.Tests.ps1 +++ b/src/BillingBenefits/test/Get-AzBillingBenefitsSavingsPlan.Tests.ps1 @@ -21,14 +21,14 @@ function ExecuteTestCases([object]$response) { $response.BillingAccountId | Should -Not -Be $null $response.Term | Should -Not -Be $null $response.BillingScopeId | Should -Be "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" - $response.CurrencyCode | Should -Be "USD" + $response.CommitmentCurrencyCode | Should -Be "USD" $response.DisplayName | Should -Not -Be $null $response.EffectiveDateTime | Should -Not -Be $null $response.ExpiryDateTime | Should -Not -Be $null $response.PurchaseDateTime | Should -Not -Be $null $response.DisplayProvisioningState | Should -Be "Succeeded" $response.ProvisioningState | Should -Be "Succeeded" - $response.Grain | Should -Be "Hourly" + $response.CommitmentGrain | Should -Be "Hourly" $response.UtilizationTrend | Should -Be "SAME" $response.UtilizationAggregate | Should -Not -Be $null $response.Renew | Should -Not -Be $null diff --git a/src/BillingBenefits/test/Get-AzBillingBenefitsSavingsPlanList.Tests.ps1 b/src/BillingBenefits/test/Get-AzBillingBenefitsSavingsPlanList.Tests.ps1 index 29479e2c2200..2dfcdaf8dc1a 100644 --- a/src/BillingBenefits/test/Get-AzBillingBenefitsSavingsPlanList.Tests.ps1 +++ b/src/BillingBenefits/test/Get-AzBillingBenefitsSavingsPlanList.Tests.ps1 @@ -23,20 +23,20 @@ Describe 'Get-AzBillingBenefitsSavingsPlanList' { for($i=0;$i -lt $response.Count;$i++) { $version = $response.Count - $i - $response[$i].Amount | Should -BeGreaterThan 0 + $response[$i].CommitmentAmount | Should -BeGreaterThan 0 $response[$i].AppliedScopeType | Should -Not -Be $null $response[$i].BenefitStartTime | Should -Not -Be $null $response[$i].BillingAccountId | Should -Not -Be $null $response[$i].Term | Should -Not -Be $null $response[$i].BillingScopeId | Should -Be "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" - $response[$i].CurrencyCode | Should -Be "USD" + $response[$i].CommitmentCurrencyCode | Should -Be "USD" $response[$i].DisplayName | Should -Not -Be $null $response[$i].EffectiveDateTime | Should -Not -Be $null $response[$i].ExpiryDateTime | Should -Not -Be $null $response[$i].PurchaseDateTime | Should -Not -Be $null $response[$i].DisplayProvisioningState | Should -Be "Succeeded" $response[$i].ProvisioningState | Should -Be "Succeeded" - $response[$i].Grain | Should -Be "Hourly" + $response[$i].CommitmentGrain | Should -Be "Hourly" $response[$i].UtilizationTrend | Should -Be "SAME" $response[$i].UtilizationAggregate | Should -Not -Be $null $response[$i].Renew | Should -Not -Be $null diff --git a/src/BillingBenefits/test/Update-AzBillingBenefitsSavingsPlan.Recording.json b/src/BillingBenefits/test/Update-AzBillingBenefitsSavingsPlan.Recording.json index b6611f27f709..fcaa9cf0bb9e 100644 --- a/src/BillingBenefits/test/Update-AzBillingBenefitsSavingsPlan.Recording.json +++ b/src/BillingBenefits/test/Update-AzBillingBenefitsSavingsPlan.Recording.json @@ -314,5 +314,84 @@ "Content": "{\"id\":\"/providers/microsoft.billingbenefits/savingsPlanOrders/254638e0-2860-4e7b-af3e-92285554fc9d/savingsPlans/cd6d708d-068e-4972-8535-410de471558f\",\"name\":\"cd6d708d-068e-4972-8535-410de471558f\",\"type\":\"microsoft.billingbenefits/savingsPlanOrders/savingsPlans\",\"sku\":{\"name\":\"Compute_Savings_Plan\"},\"properties\":{\"billingScopeId\":\"/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47\",\"billingAccountId\":\"/providers/Microsoft.Billing/billingAccounts/4973e1de-a829-5c64-4fef-0a692e2b3108:1970c5da-0aa4-46fd-a917-4772f9a17978_2019-05-31\",\"billingProfileId\":\"/providers/Microsoft.Billing/billingAccounts/4973e1de-a829-5c64-4fef-0a692e2b3108:1970c5da-0aa4-46fd-a917-4772f9a17978_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB\",\"billingPlan\":\"P1M\",\"appliedScopeProperties\":{\"resourceGroupId\":\"/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47/resourcegroups/fastpathtesting_20210915\",\"displayName\":\"fastpathtesting_20210915\"},\"commitment\":{\"grain\":\"Hourly\",\"currencyCode\":\"USD\",\"amount\":0.001},\"renew\":false,\"appliedScopeType\":\"Single\",\"displayName\":\"TestPSName4\",\"provisioningState\":\"Succeeded\",\"term\":\"P3Y\",\"displayProvisioningState\":\"Succeeded\",\"userFriendlyAppliedScopeType\":\"ResourceGroup\",\"expiryDateTime\":\"2025-11-08T00:00:06.3636747Z\",\"purchaseDateTime\":\"2022-11-07T23:57:58.2428677Z\",\"benefitStartTime\":\"2022-11-08T00:00:06.3636747Z\",\"effectiveDateTime\":\"2022-11-30T21:18:12.1967323Z\",\"utilization\":{\"trend\":\"SAME\",\"aggregates\":[{\"grain\":1.0,\"grainUnit\":\"days\",\"value\":100.0,\"valueUnit\":\"percentage\"},{\"grain\":7.0,\"grainUnit\":\"days\",\"value\":100.0,\"valueUnit\":\"percentage\"},{\"grain\":30.0,\"grainUnit\":\"days\",\"value\":100.27,\"valueUnit\":\"percentage\"}]}}}", "isContentBase64": false } + }, + "Update-AzBillingBenefitsSavingsPlan+[NoContext]+UpdateWithRenewalSetting+$GET+https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrders/6296d1ad-86dd-4959-a949-64b8a10603a6/savingsPlans/82a298d8-67ca-470d-ae9d-17dc39793fe8?api-version=2022-11-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrders/6296d1ad-86dd-4959-a949-64b8a10603a6/savingsPlans/82a298d8-67ca-470d-ae9d-17dc39793fe8?api-version=2022-11-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "d4cb0fb6-d97f-4d17-a09f-1d4a442db538" ], + "CommandName": [ "Get-AzBillingBenefitsSavingsPlan" ], + "FullCommandName": [ "Get-AzBillingBenefitsSavingsPlan_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.8", "Az.BillingBenefits/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11999" ], + "x-ms-request-id": [ "d4cb0fb6-d97f-4d17-a09f-1d4a442db538" ], + "x-ms-version": [ "1.0.2169.1444" ], + "x-ms-correlation-request-id": [ "d64b71bf-2ded-408c-8b83-906938548065" ], + "x-ms-routing-request-id": [ "WESTUS:20230118T024735Z:d64b71bf-2ded-408c-8b83-906938548065" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Jan 2023 02:47:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1485" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/microsoft.billingbenefits/savingsPlanOrders/6296d1ad-86dd-4959-a949-64b8a10603a6/savingsPlans/82a298d8-67ca-470d-ae9d-17dc39793fe8\",\"name\":\"82a298d8-67ca-470d-ae9d-17dc39793fe8\",\"type\":\"microsoft.billingbenefits/savingsPlanOrders/savingsPlans\",\"sku\":{\"name\":\"Compute_Savings_Plan\"},\"properties\":{\"billingScopeId\":\"/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47\",\"billingAccountId\":\"/providers/Microsoft.Billing/billingAccounts/4973e1de-a829-5c64-4fef-0a692e2b3108:1970c5da-0aa4-46fd-a917-4772f9a17978_2019-05-31\",\"billingProfileId\":\"/providers/Microsoft.Billing/billingAccounts/4973e1de-a829-5c64-4fef-0a692e2b3108:1970c5da-0aa4-46fd-a917-4772f9a17978_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB\",\"billingPlan\":\"P1M\",\"commitment\":{\"grain\":\"Hourly\",\"currencyCode\":\"USD\",\"amount\":0.001},\"renew\":false,\"appliedScopeType\":\"Shared\",\"displayName\":\"Compute_SavingsPlan_11-14-2022_18-28\",\"provisioningState\":\"Succeeded\",\"term\":\"P3Y\",\"displayProvisioningState\":\"Succeeded\",\"userFriendlyAppliedScopeType\":\"Shared\",\"expiryDateTime\":\"2025-11-15T02:30:37.8529706Z\",\"purchaseDateTime\":\"2022-11-15T02:28:43.3675428Z\",\"benefitStartTime\":\"2022-11-15T02:30:37.8529706Z\",\"effectiveDateTime\":\"2023-01-18T02:43:49.5421316Z\",\"utilization\":{\"trend\":\"SAME\",\"aggregates\":[{\"grain\":1.0,\"grainUnit\":\"days\",\"value\":0.0,\"valueUnit\":\"percentage\"},{\"grain\":7.0,\"grainUnit\":\"days\",\"value\":0.0,\"valueUnit\":\"percentage\"},{\"grain\":30.0,\"grainUnit\":\"days\",\"value\":0.0,\"valueUnit\":\"percentage\"}]}}}", + "isContentBase64": false + } + }, + "Update-AzBillingBenefitsSavingsPlan+[NoContext]+UpdateWithRenewalSetting+$PATCH+https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrders/e0167471-b48e-4c03-93ca-506ac67a567f/savingsPlans/0c382729-4c81-48a9-a350-5b7a8beccea5?api-version=2022-11-01+2": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrders/e0167471-b48e-4c03-93ca-506ac67a567f/savingsPlans/0c382729-4c81-48a9-a350-5b7a8beccea5?api-version=2022-11-01", + "Content": "{\r\n \"properties\": {\r\n \"renew\": true,\r\n \"renewProperties\": {\r\n \"purchaseProperties\": {\r\n \"sku\": {\r\n \"name\": \"Compute_Savings_Plan\"\r\n },\r\n \"properties\": {\r\n \"commitment\": {\r\n \"currencyCode\": \"USD\",\r\n \"amount\": 0.001,\r\n \"grain\": \"Hourly\"\r\n },\r\n \"displayName\": \"newDisplayName\",\r\n \"billingScopeId\": \"/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47\",\r\n \"term\": \"P1Y\",\r\n \"billingPlan\": \"P1M\",\r\n \"appliedScopeType\": \"Shared\"\r\n }\r\n }\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "594" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-tenant-writes": [ "1199" ], + "x-ms-request-id": [ "e292ff16-1499-4a34-8177-e16978ff8785" ], + "x-ms-version": [ "1.0.2169.1444" ], + "x-ms-correlation-request-id": [ "7a304088-6170-43c8-8934-3be8983f49ef" ], + "x-ms-routing-request-id": [ "WESTUS:20230118T024748Z:7a304088-6170-43c8-8934-3be8983f49ef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Jan 2023 02:47:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1459" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/microsoft.billingbenefits/savingsPlanOrders/e0167471-b48e-4c03-93ca-506ac67a567f/savingsPlans/0c382729-4c81-48a9-a350-5b7a8beccea5\",\"name\":\"0c382729-4c81-48a9-a350-5b7a8beccea5\",\"type\":\"microsoft.billingbenefits/savingsPlanOrders/savingsPlans\",\"sku\":{\"name\":\"Compute_Savings_Plan\"},\"properties\":{\"billingScopeId\":\"/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47\",\"billingAccountId\":\"/providers/Microsoft.Billing/billingAccounts/4973e1de-a829-5c64-4fef-0a692e2b3108:1970c5da-0aa4-46fd-a917-4772f9a17978_2019-05-31\",\"billingProfileId\":\"/providers/Microsoft.Billing/billingAccounts/4973e1de-a829-5c64-4fef-0a692e2b3108:1970c5da-0aa4-46fd-a917-4772f9a17978_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB\",\"billingPlan\":\"P1M\",\"commitment\":{\"grain\":\"Hourly\",\"currencyCode\":\"USD\",\"amount\":0.001},\"renew\":true,\"appliedScopeType\":\"Shared\",\"displayName\":\"TestPSName2\",\"provisioningState\":\"Succeeded\",\"term\":\"P3Y\",\"displayProvisioningState\":\"Succeeded\",\"userFriendlyAppliedScopeType\":\"Shared\",\"expiryDateTime\":\"2025-11-13T02:38:21.9518601Z\",\"purchaseDateTime\":\"2022-11-13T02:36:35.5419411Z\",\"benefitStartTime\":\"2022-11-13T02:38:21.9518601Z\",\"effectiveDateTime\":\"2023-01-18T02:47:41.4005028Z\",\"utilization\":{\"trend\":\"SAME\",\"aggregates\":[{\"grain\":1.0,\"grainUnit\":\"days\",\"value\":0.0,\"valueUnit\":\"percentage\"},{\"grain\":7.0,\"grainUnit\":\"days\",\"value\":0.0,\"valueUnit\":\"percentage\"},{\"grain\":30.0,\"grainUnit\":\"days\",\"value\":0.0,\"valueUnit\":\"percentage\"}]}}}", + "isContentBase64": false + } } } \ No newline at end of file diff --git a/src/BillingBenefits/test/Update-AzBillingBenefitsSavingsPlan.Tests.ps1 b/src/BillingBenefits/test/Update-AzBillingBenefitsSavingsPlan.Tests.ps1 index 3f7afafbb89a..fc6fc40cfbc9 100644 --- a/src/BillingBenefits/test/Update-AzBillingBenefitsSavingsPlan.Tests.ps1 +++ b/src/BillingBenefits/test/Update-AzBillingBenefitsSavingsPlan.Tests.ps1 @@ -64,4 +64,30 @@ Describe 'Update-AzBillingBenefitsSavingsPlan' { $response2.DisplayName | Should -Not -Be $null $response2.DisplayName | Should -Not -Be $oldName } + + It 'UpdateWithRenewalSetting' { + $response1 = Get-AzBillingBenefitsSavingsPlan -Id "82a298d8-67ca-470d-ae9d-17dc39793fe8" -OrderId "6296d1ad-86dd-4959-a949-64b8a10603a6" + $response1.Renew | Should -Be $False + + $request = @{ + Renew = "true" + RenewProperty = @{ + PurchaseProperty = @{ + AppliedScopeType = "Shared" + BillingPlan = "P1M" + BillingScopeId = "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" + CommitmentAmount = 0.001 + CommitmentGrain = "Hourly" + CommitmentCurrency = "USD" + DisplayName = "newDisplayName" + Term = "P1Y" + SkuName = "Compute_Savings_Plan" + } + } + } + + $response2 = Update-AzBillingBenefitsSavingsPlan -Id "0c382729-4c81-48a9-a350-5b7a8beccea5" -OrderId "e0167471-b48e-4c03-93ca-506ac67a567f" -Body $request + $response2 | Should -Not -Be $null + $response2.Renew | Should -Be $True + } }