diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/api/Azure.ResourceManager.CostManagement.netstandard2.0.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/api/Azure.ResourceManager.CostManagement.netstandard2.0.cs index 42ac31f23f02..a53e9efab77a 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/api/Azure.ResourceManager.CostManagement.netstandard2.0.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/api/Azure.ResourceManager.CostManagement.netstandard2.0.cs @@ -104,18 +104,18 @@ public static partial class CostManagementExtensions public static System.Threading.Tasks.Task> DownloadPriceSheetAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountName, string billingProfileName, string invoiceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response ExternalCloudProviderUsageForecast(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.CostManagement.Models.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, Azure.ResourceManager.CostManagement.Models.ForecastDefinition forecastDefinition, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> ExternalCloudProviderUsageForecastAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.CostManagement.Models.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, Azure.ResourceManager.CostManagement.Models.ForecastDefinition forecastDefinition, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.ArmOperation GenerateBenefitUtilizationSummariesReportAsyncSavingsPlanScope(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GenerateBenefitUtilizationSummariesReportAsyncSavingsPlanScopeAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.ArmOperation GenerateBenefitUtilizationSummariesReportBillingAccountScope(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GenerateBenefitUtilizationSummariesReportBillingAccountScopeAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.ArmOperation GenerateBenefitUtilizationSummariesReportBillingProfileScope(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountId, string billingProfileId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GenerateBenefitUtilizationSummariesReportBillingProfileScopeAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountId, string billingProfileId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.ArmOperation GenerateBenefitUtilizationSummariesReportReservationOrderScope(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string reservationOrderId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GenerateBenefitUtilizationSummariesReportReservationOrderScopeAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string reservationOrderId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.ArmOperation GenerateBenefitUtilizationSummariesReportReservationScope(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string reservationOrderId, string reservationId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GenerateBenefitUtilizationSummariesReportReservationScopeAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string reservationOrderId, string reservationId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.ArmOperation GenerateBenefitUtilizationSummariesReportSavingsPlanOrderScope(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string savingsPlanOrderId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GenerateBenefitUtilizationSummariesReportSavingsPlanOrderScopeAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string savingsPlanOrderId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ArmOperation GenerateByBillingAccountGenerateBenefitUtilizationSummariesReport(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GenerateByBillingAccountGenerateBenefitUtilizationSummariesReportAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ArmOperation GenerateByBillingProfileGenerateBenefitUtilizationSummariesReport(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountId, string billingProfileId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GenerateByBillingProfileGenerateBenefitUtilizationSummariesReportAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountId, string billingProfileId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ArmOperation GenerateByReservationIdGenerateBenefitUtilizationSummariesReport(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string reservationOrderId, string reservationId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GenerateByReservationIdGenerateBenefitUtilizationSummariesReportAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string reservationOrderId, string reservationId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ArmOperation GenerateByReservationOrderIdGenerateBenefitUtilizationSummariesReport(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string reservationOrderId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GenerateByReservationOrderIdGenerateBenefitUtilizationSummariesReportAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string reservationOrderId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ArmOperation GenerateBySavingsPlanIdGenerateBenefitUtilizationSummariesReport(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GenerateBySavingsPlanIdGenerateBenefitUtilizationSummariesReportAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ArmOperation GenerateBySavingsPlanOrderIdGenerateBenefitUtilizationSummariesReport(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string savingsPlanOrderId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GenerateBySavingsPlanOrderIdGenerateBenefitUtilizationSummariesReportAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string savingsPlanOrderId, Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummariesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.CostManagement.CostManagementViewsCollection GetAllCostManagementViews(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } public static Azure.ResourceManager.CostManagement.TenantsCostManagementViewsCollection GetAllTenantsCostManagementViews(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; } public static Azure.Pageable GetBenefitRecommendations(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string filter = null, string orderby = null, string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -169,13 +169,13 @@ public CostManagementViewData() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public string Currency { get { throw null; } } public Azure.ResourceManager.CostManagement.Models.ReportConfigDataset DataSet { get { throw null; } set { } } - public string DateRange { get { throw null; } } + public string DateRange { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } set { } } public bool? IncludeMonetaryCommitment { get { throw null; } set { } } public System.Collections.Generic.IList Kpis { get { throw null; } } public Azure.ResourceManager.CostManagement.Models.ViewMetricType? Metric { get { throw null; } set { } } - public System.DateTimeOffset? ModifiedOn { get { throw null; } } + public System.DateTimeOffset? ModifiedOn { get { throw null; } set { } } public System.Collections.Generic.IList Pivots { get { throw null; } } public Azure.Core.ResourceIdentifier Scope { get { throw null; } set { } } public Azure.ResourceManager.CostManagement.Models.ReportTimeframeType? Timeframe { get { throw null; } set { } } diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ArmCostManagementModelFactory.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ArmCostManagementModelFactory.cs index 5118cffd412e..d18db729ea64 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ArmCostManagementModelFactory.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ArmCostManagementModelFactory.cs @@ -364,7 +364,7 @@ public static DownloadURL DownloadURL(DateTimeOffset? expiryOn = null, DateTimeO /// Notification properties based on scheduled action kind. /// Email address of the point of contact that should get the unsubscribe requests and notification emails. /// Schedule of the scheduled action. - /// Cost Management scope like 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope. + /// For private scheduled action(Create or Update), scope will be empty.<br /> For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope. /// Status of the scheduled action. /// Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'. /// Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required. diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewData.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewData.cs index 401f70c05735..2ae120d38428 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewData.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewData.cs @@ -77,9 +77,9 @@ internal CostManagementViewData(ResourceIdentifier id, string name, ResourceType /// Date the user created this view. public DateTimeOffset? CreatedOn { get; } /// Date when the user last modified this view. - public DateTimeOffset? ModifiedOn { get; } + public DateTimeOffset? ModifiedOn { get; set; } /// Date range of the current view. - public string DateRange { get; } + public string DateRange { get; set; } /// Currency of the current view. public string Currency { get; } /// Chart type of the main view in Cost Analysis. Required. diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Extensions/CostManagementExtensions.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Extensions/CostManagementExtensions.cs index ba58d05238a8..14d2fd295df1 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Extensions/CostManagementExtensions.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Extensions/CostManagementExtensions.cs @@ -1003,7 +1003,7 @@ public static Pageable GetBenefitUtilizationSummaries /// /// /// Operation Id - /// BillingAccountScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount /// /// /// @@ -1014,12 +1014,12 @@ public static Pageable GetBenefitUtilizationSummaries /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public static async Task> GenerateBenefitUtilizationSummariesReportBillingAccountScopeAsync(this TenantResource tenantResource, WaitUntil waitUntil, string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static async Task> GenerateByBillingAccountGenerateBenefitUtilizationSummariesReportAsync(this TenantResource tenantResource, WaitUntil waitUntil, string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); Argument.AssertNotNull(content, nameof(content)); - return await GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportBillingAccountScopeAsync(waitUntil, billingAccountId, content, cancellationToken).ConfigureAwait(false); + return await GetTenantResourceExtensionClient(tenantResource).GenerateByBillingAccountGenerateBenefitUtilizationSummariesReportAsync(waitUntil, billingAccountId, content, cancellationToken).ConfigureAwait(false); } /// @@ -1031,7 +1031,7 @@ public static async Task /// /// Operation Id - /// BillingAccountScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount /// /// /// @@ -1042,12 +1042,12 @@ public static async Task The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public static ArmOperation GenerateBenefitUtilizationSummariesReportBillingAccountScope(this TenantResource tenantResource, WaitUntil waitUntil, string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static ArmOperation GenerateByBillingAccountGenerateBenefitUtilizationSummariesReport(this TenantResource tenantResource, WaitUntil waitUntil, string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); Argument.AssertNotNull(content, nameof(content)); - return GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportBillingAccountScope(waitUntil, billingAccountId, content, cancellationToken); + return GetTenantResourceExtensionClient(tenantResource).GenerateByBillingAccountGenerateBenefitUtilizationSummariesReport(waitUntil, billingAccountId, content, cancellationToken); } /// @@ -1059,7 +1059,7 @@ public static ArmOperation GenerateB /// /// /// Operation Id - /// BillingProfileScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile /// /// /// @@ -1071,13 +1071,13 @@ public static ArmOperation GenerateB /// The cancellation token to use. /// or is an empty string, and was expected to be non-empty. /// , or is null. - public static async Task> GenerateBenefitUtilizationSummariesReportBillingProfileScopeAsync(this TenantResource tenantResource, WaitUntil waitUntil, string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static async Task> GenerateByBillingProfileGenerateBenefitUtilizationSummariesReportAsync(this TenantResource tenantResource, WaitUntil waitUntil, string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); Argument.AssertNotNullOrEmpty(billingProfileId, nameof(billingProfileId)); Argument.AssertNotNull(content, nameof(content)); - return await GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportBillingProfileScopeAsync(waitUntil, billingAccountId, billingProfileId, content, cancellationToken).ConfigureAwait(false); + return await GetTenantResourceExtensionClient(tenantResource).GenerateByBillingProfileGenerateBenefitUtilizationSummariesReportAsync(waitUntil, billingAccountId, billingProfileId, content, cancellationToken).ConfigureAwait(false); } /// @@ -1089,7 +1089,7 @@ public static async Task /// /// Operation Id - /// BillingProfileScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile /// /// /// @@ -1101,13 +1101,13 @@ public static async Task The cancellation token to use. /// or is an empty string, and was expected to be non-empty. /// , or is null. - public static ArmOperation GenerateBenefitUtilizationSummariesReportBillingProfileScope(this TenantResource tenantResource, WaitUntil waitUntil, string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static ArmOperation GenerateByBillingProfileGenerateBenefitUtilizationSummariesReport(this TenantResource tenantResource, WaitUntil waitUntil, string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); Argument.AssertNotNullOrEmpty(billingProfileId, nameof(billingProfileId)); Argument.AssertNotNull(content, nameof(content)); - return GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportBillingProfileScope(waitUntil, billingAccountId, billingProfileId, content, cancellationToken); + return GetTenantResourceExtensionClient(tenantResource).GenerateByBillingProfileGenerateBenefitUtilizationSummariesReport(waitUntil, billingAccountId, billingProfileId, content, cancellationToken); } /// @@ -1119,7 +1119,7 @@ public static ArmOperation GenerateB /// /// /// Operation Id - /// ReservationOrderScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId /// /// /// @@ -1130,12 +1130,12 @@ public static ArmOperation GenerateB /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public static async Task> GenerateBenefitUtilizationSummariesReportReservationOrderScopeAsync(this TenantResource tenantResource, WaitUntil waitUntil, string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static async Task> GenerateByReservationOrderIdGenerateBenefitUtilizationSummariesReportAsync(this TenantResource tenantResource, WaitUntil waitUntil, string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); Argument.AssertNotNull(content, nameof(content)); - return await GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportReservationOrderScopeAsync(waitUntil, reservationOrderId, content, cancellationToken).ConfigureAwait(false); + return await GetTenantResourceExtensionClient(tenantResource).GenerateByReservationOrderIdGenerateBenefitUtilizationSummariesReportAsync(waitUntil, reservationOrderId, content, cancellationToken).ConfigureAwait(false); } /// @@ -1147,7 +1147,7 @@ public static async Task /// /// Operation Id - /// ReservationOrderScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId /// /// /// @@ -1158,12 +1158,12 @@ public static async Task The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public static ArmOperation GenerateBenefitUtilizationSummariesReportReservationOrderScope(this TenantResource tenantResource, WaitUntil waitUntil, string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static ArmOperation GenerateByReservationOrderIdGenerateBenefitUtilizationSummariesReport(this TenantResource tenantResource, WaitUntil waitUntil, string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); Argument.AssertNotNull(content, nameof(content)); - return GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportReservationOrderScope(waitUntil, reservationOrderId, content, cancellationToken); + return GetTenantResourceExtensionClient(tenantResource).GenerateByReservationOrderIdGenerateBenefitUtilizationSummariesReport(waitUntil, reservationOrderId, content, cancellationToken); } /// @@ -1175,7 +1175,7 @@ public static ArmOperation GenerateB /// /// /// Operation Id - /// ReservationScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByReservationId /// /// /// @@ -1187,13 +1187,13 @@ public static ArmOperation GenerateB /// The cancellation token to use. /// or is an empty string, and was expected to be non-empty. /// , or is null. - public static async Task> GenerateBenefitUtilizationSummariesReportReservationScopeAsync(this TenantResource tenantResource, WaitUntil waitUntil, string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static async Task> GenerateByReservationIdGenerateBenefitUtilizationSummariesReportAsync(this TenantResource tenantResource, WaitUntil waitUntil, string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); Argument.AssertNotNullOrEmpty(reservationId, nameof(reservationId)); Argument.AssertNotNull(content, nameof(content)); - return await GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportReservationScopeAsync(waitUntil, reservationOrderId, reservationId, content, cancellationToken).ConfigureAwait(false); + return await GetTenantResourceExtensionClient(tenantResource).GenerateByReservationIdGenerateBenefitUtilizationSummariesReportAsync(waitUntil, reservationOrderId, reservationId, content, cancellationToken).ConfigureAwait(false); } /// @@ -1205,7 +1205,7 @@ public static async Task /// /// Operation Id - /// ReservationScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByReservationId /// /// /// @@ -1217,13 +1217,13 @@ public static async Task The cancellation token to use. /// or is an empty string, and was expected to be non-empty. /// , or is null. - public static ArmOperation GenerateBenefitUtilizationSummariesReportReservationScope(this TenantResource tenantResource, WaitUntil waitUntil, string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static ArmOperation GenerateByReservationIdGenerateBenefitUtilizationSummariesReport(this TenantResource tenantResource, WaitUntil waitUntil, string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); Argument.AssertNotNullOrEmpty(reservationId, nameof(reservationId)); Argument.AssertNotNull(content, nameof(content)); - return GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportReservationScope(waitUntil, reservationOrderId, reservationId, content, cancellationToken); + return GetTenantResourceExtensionClient(tenantResource).GenerateByReservationIdGenerateBenefitUtilizationSummariesReport(waitUntil, reservationOrderId, reservationId, content, cancellationToken); } /// @@ -1235,7 +1235,7 @@ public static ArmOperation GenerateB /// /// /// Operation Id - /// SavingsPlanOrderScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId /// /// /// @@ -1246,12 +1246,12 @@ public static ArmOperation GenerateB /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public static async Task> GenerateBenefitUtilizationSummariesReportSavingsPlanOrderScopeAsync(this TenantResource tenantResource, WaitUntil waitUntil, string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static async Task> GenerateBySavingsPlanOrderIdGenerateBenefitUtilizationSummariesReportAsync(this TenantResource tenantResource, WaitUntil waitUntil, string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); Argument.AssertNotNull(content, nameof(content)); - return await GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportSavingsPlanOrderScopeAsync(waitUntil, savingsPlanOrderId, content, cancellationToken).ConfigureAwait(false); + return await GetTenantResourceExtensionClient(tenantResource).GenerateBySavingsPlanOrderIdGenerateBenefitUtilizationSummariesReportAsync(waitUntil, savingsPlanOrderId, content, cancellationToken).ConfigureAwait(false); } /// @@ -1263,7 +1263,7 @@ public static async Task /// /// Operation Id - /// SavingsPlanOrderScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId /// /// /// @@ -1274,12 +1274,12 @@ public static async Task The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public static ArmOperation GenerateBenefitUtilizationSummariesReportSavingsPlanOrderScope(this TenantResource tenantResource, WaitUntil waitUntil, string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static ArmOperation GenerateBySavingsPlanOrderIdGenerateBenefitUtilizationSummariesReport(this TenantResource tenantResource, WaitUntil waitUntil, string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); Argument.AssertNotNull(content, nameof(content)); - return GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportSavingsPlanOrderScope(waitUntil, savingsPlanOrderId, content, cancellationToken); + return GetTenantResourceExtensionClient(tenantResource).GenerateBySavingsPlanOrderIdGenerateBenefitUtilizationSummariesReport(waitUntil, savingsPlanOrderId, content, cancellationToken); } /// @@ -1291,7 +1291,7 @@ public static ArmOperation GenerateB /// /// /// Operation Id - /// SavingsPlanScope_GenerateBenefitUtilizationSummariesReportAsync + /// GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId /// /// /// @@ -1303,13 +1303,13 @@ public static ArmOperation GenerateB /// The cancellation token to use. /// or is an empty string, and was expected to be non-empty. /// , or is null. - public static async Task> GenerateBenefitUtilizationSummariesReportAsyncSavingsPlanScopeAsync(this TenantResource tenantResource, WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static async Task> GenerateBySavingsPlanIdGenerateBenefitUtilizationSummariesReportAsync(this TenantResource tenantResource, WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); Argument.AssertNotNullOrEmpty(savingsPlanId, nameof(savingsPlanId)); Argument.AssertNotNull(content, nameof(content)); - return await GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportAsyncSavingsPlanScopeAsync(waitUntil, savingsPlanOrderId, savingsPlanId, content, cancellationToken).ConfigureAwait(false); + return await GetTenantResourceExtensionClient(tenantResource).GenerateBySavingsPlanIdGenerateBenefitUtilizationSummariesReportAsync(waitUntil, savingsPlanOrderId, savingsPlanId, content, cancellationToken).ConfigureAwait(false); } /// @@ -1321,7 +1321,7 @@ public static async Task /// /// Operation Id - /// SavingsPlanScope_GenerateBenefitUtilizationSummariesReportAsync + /// GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId /// /// /// @@ -1333,13 +1333,13 @@ public static async Task The cancellation token to use. /// or is an empty string, and was expected to be non-empty. /// , or is null. - public static ArmOperation GenerateBenefitUtilizationSummariesReportAsyncSavingsPlanScope(this TenantResource tenantResource, WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public static ArmOperation GenerateBySavingsPlanIdGenerateBenefitUtilizationSummariesReport(this TenantResource tenantResource, WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); Argument.AssertNotNullOrEmpty(savingsPlanId, nameof(savingsPlanId)); Argument.AssertNotNull(content, nameof(content)); - return GetTenantResourceExtensionClient(tenantResource).GenerateBenefitUtilizationSummariesReportAsyncSavingsPlanScope(waitUntil, savingsPlanOrderId, savingsPlanId, content, cancellationToken); + return GetTenantResourceExtensionClient(tenantResource).GenerateBySavingsPlanIdGenerateBenefitUtilizationSummariesReport(waitUntil, savingsPlanOrderId, savingsPlanId, content, cancellationToken); } /// diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Extensions/TenantResourceExtensionClient.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Extensions/TenantResourceExtensionClient.cs index d5dd61efc4c2..1a43749aebfd 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Extensions/TenantResourceExtensionClient.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Extensions/TenantResourceExtensionClient.cs @@ -21,18 +21,8 @@ internal partial class TenantResourceExtensionClient : ArmResource { private ClientDiagnostics _benefitUtilizationSummariesClientDiagnostics; private BenefitUtilizationSummariesRestOperations _benefitUtilizationSummariesRestClient; - private ClientDiagnostics _billingAccountScopeClientDiagnostics; - private BillingAccountScopeRestOperations _billingAccountScopeRestClient; - private ClientDiagnostics _billingProfileScopeClientDiagnostics; - private BillingProfileScopeRestOperations _billingProfileScopeRestClient; - private ClientDiagnostics _reservationOrderScopeClientDiagnostics; - private ReservationOrderScopeRestOperations _reservationOrderScopeRestClient; - private ClientDiagnostics _reservationScopeClientDiagnostics; - private ReservationScopeRestOperations _reservationScopeRestClient; - private ClientDiagnostics _savingsPlanOrderScopeClientDiagnostics; - private SavingsPlanOrderScopeRestOperations _savingsPlanOrderScopeRestClient; - private ClientDiagnostics _savingsPlanScopeClientDiagnostics; - private SavingsPlanScopeRestOperations _savingsPlanScopeRestClient; + private ClientDiagnostics _generateBenefitUtilizationSummariesReportClientDiagnostics; + private GenerateBenefitUtilizationSummariesReportRestOperations _generateBenefitUtilizationSummariesReportRestClient; private ClientDiagnostics _costManagementAlertAlertsClientDiagnostics; private AlertsRestOperations _costManagementAlertAlertsRestClient; private ClientDiagnostics _forecastClientDiagnostics; @@ -62,18 +52,8 @@ internal TenantResourceExtensionClient(ArmClient client, ResourceIdentifier id) private ClientDiagnostics BenefitUtilizationSummariesClientDiagnostics => _benefitUtilizationSummariesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.CostManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics); private BenefitUtilizationSummariesRestOperations BenefitUtilizationSummariesRestClient => _benefitUtilizationSummariesRestClient ??= new BenefitUtilizationSummariesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics BillingAccountScopeClientDiagnostics => _billingAccountScopeClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.CostManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private BillingAccountScopeRestOperations BillingAccountScopeRestClient => _billingAccountScopeRestClient ??= new BillingAccountScopeRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics BillingProfileScopeClientDiagnostics => _billingProfileScopeClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.CostManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private BillingProfileScopeRestOperations BillingProfileScopeRestClient => _billingProfileScopeRestClient ??= new BillingProfileScopeRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics ReservationOrderScopeClientDiagnostics => _reservationOrderScopeClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.CostManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private ReservationOrderScopeRestOperations ReservationOrderScopeRestClient => _reservationOrderScopeRestClient ??= new ReservationOrderScopeRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics ReservationScopeClientDiagnostics => _reservationScopeClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.CostManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private ReservationScopeRestOperations ReservationScopeRestClient => _reservationScopeRestClient ??= new ReservationScopeRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics SavingsPlanOrderScopeClientDiagnostics => _savingsPlanOrderScopeClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.CostManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private SavingsPlanOrderScopeRestOperations SavingsPlanOrderScopeRestClient => _savingsPlanOrderScopeRestClient ??= new SavingsPlanOrderScopeRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics SavingsPlanScopeClientDiagnostics => _savingsPlanScopeClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.CostManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private SavingsPlanScopeRestOperations SavingsPlanScopeRestClient => _savingsPlanScopeRestClient ??= new SavingsPlanScopeRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private ClientDiagnostics GenerateBenefitUtilizationSummariesReportClientDiagnostics => _generateBenefitUtilizationSummariesReportClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.CostManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics); + private GenerateBenefitUtilizationSummariesReportRestOperations GenerateBenefitUtilizationSummariesReportRestClient => _generateBenefitUtilizationSummariesReportRestClient ??= new GenerateBenefitUtilizationSummariesReportRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics CostManagementAlertAlertsClientDiagnostics => _costManagementAlertAlertsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.CostManagement", CostManagementAlertResource.ResourceType.Namespace, Diagnostics); private AlertsRestOperations CostManagementAlertAlertsRestClient => _costManagementAlertAlertsRestClient ??= new AlertsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(CostManagementAlertResource.ResourceType)); private ClientDiagnostics ForecastClientDiagnostics => _forecastClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.CostManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -322,7 +302,7 @@ public virtual Pageable GetBenefitUtilizationSummarie /// /// /// Operation Id - /// BillingAccountScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount /// /// /// @@ -330,14 +310,14 @@ public virtual Pageable GetBenefitUtilizationSummarie /// Billing account ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual async Task> GenerateBenefitUtilizationSummariesReportBillingAccountScopeAsync(WaitUntil waitUntil, string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual async Task> GenerateByBillingAccountGenerateBenefitUtilizationSummariesReportAsync(WaitUntil waitUntil, string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = BillingAccountScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportBillingAccountScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateByBillingAccountGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = await BillingAccountScopeRestClient.GenerateBenefitUtilizationSummariesReportAsync(billingAccountId, content, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), BillingAccountScopeClientDiagnostics, Pipeline, BillingAccountScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportRequest(billingAccountId, content).Request, response, OperationFinalStateVia.Location); + var response = await GenerateBenefitUtilizationSummariesReportRestClient.GenerateByBillingAccountAsync(billingAccountId, content, cancellationToken).ConfigureAwait(false); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateByBillingAccountRequest(billingAccountId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -358,7 +338,7 @@ public virtual async Task /// /// Operation Id - /// BillingAccountScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount /// /// /// @@ -366,14 +346,14 @@ public virtual async Task Billing account ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual ArmOperation GenerateBenefitUtilizationSummariesReportBillingAccountScope(WaitUntil waitUntil, string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation GenerateByBillingAccountGenerateBenefitUtilizationSummariesReport(WaitUntil waitUntil, string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = BillingAccountScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportBillingAccountScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateByBillingAccountGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = BillingAccountScopeRestClient.GenerateBenefitUtilizationSummariesReport(billingAccountId, content, cancellationToken); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), BillingAccountScopeClientDiagnostics, Pipeline, BillingAccountScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportRequest(billingAccountId, content).Request, response, OperationFinalStateVia.Location); + var response = GenerateBenefitUtilizationSummariesReportRestClient.GenerateByBillingAccount(billingAccountId, content, cancellationToken); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateByBillingAccountRequest(billingAccountId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -394,7 +374,7 @@ public virtual ArmOperation Generate /// /// /// Operation Id - /// BillingProfileScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile /// /// /// @@ -403,14 +383,14 @@ public virtual ArmOperation Generate /// Billing profile ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual async Task> GenerateBenefitUtilizationSummariesReportBillingProfileScopeAsync(WaitUntil waitUntil, string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual async Task> GenerateByBillingProfileGenerateBenefitUtilizationSummariesReportAsync(WaitUntil waitUntil, string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = BillingProfileScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportBillingProfileScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateByBillingProfileGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = await BillingProfileScopeRestClient.GenerateBenefitUtilizationSummariesReportAsync(billingAccountId, billingProfileId, content, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), BillingProfileScopeClientDiagnostics, Pipeline, BillingProfileScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportRequest(billingAccountId, billingProfileId, content).Request, response, OperationFinalStateVia.Location); + var response = await GenerateBenefitUtilizationSummariesReportRestClient.GenerateByBillingProfileAsync(billingAccountId, billingProfileId, content, cancellationToken).ConfigureAwait(false); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateByBillingProfileRequest(billingAccountId, billingProfileId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -431,7 +411,7 @@ public virtual async Task /// /// Operation Id - /// BillingProfileScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile /// /// /// @@ -440,14 +420,14 @@ public virtual async Task Billing profile ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual ArmOperation GenerateBenefitUtilizationSummariesReportBillingProfileScope(WaitUntil waitUntil, string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation GenerateByBillingProfileGenerateBenefitUtilizationSummariesReport(WaitUntil waitUntil, string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = BillingProfileScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportBillingProfileScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateByBillingProfileGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = BillingProfileScopeRestClient.GenerateBenefitUtilizationSummariesReport(billingAccountId, billingProfileId, content, cancellationToken); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), BillingProfileScopeClientDiagnostics, Pipeline, BillingProfileScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportRequest(billingAccountId, billingProfileId, content).Request, response, OperationFinalStateVia.Location); + var response = GenerateBenefitUtilizationSummariesReportRestClient.GenerateByBillingProfile(billingAccountId, billingProfileId, content, cancellationToken); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateByBillingProfileRequest(billingAccountId, billingProfileId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -468,7 +448,7 @@ public virtual ArmOperation Generate /// /// /// Operation Id - /// ReservationOrderScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId /// /// /// @@ -476,14 +456,14 @@ public virtual ArmOperation Generate /// Reservation Order ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual async Task> GenerateBenefitUtilizationSummariesReportReservationOrderScopeAsync(WaitUntil waitUntil, string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual async Task> GenerateByReservationOrderIdGenerateBenefitUtilizationSummariesReportAsync(WaitUntil waitUntil, string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = ReservationOrderScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportReservationOrderScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateByReservationOrderIdGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = await ReservationOrderScopeRestClient.GenerateBenefitUtilizationSummariesReportAsync(reservationOrderId, content, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), ReservationOrderScopeClientDiagnostics, Pipeline, ReservationOrderScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportRequest(reservationOrderId, content).Request, response, OperationFinalStateVia.Location); + var response = await GenerateBenefitUtilizationSummariesReportRestClient.GenerateByReservationOrderIdAsync(reservationOrderId, content, cancellationToken).ConfigureAwait(false); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateByReservationOrderIdRequest(reservationOrderId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -504,7 +484,7 @@ public virtual async Task /// /// Operation Id - /// ReservationOrderScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId /// /// /// @@ -512,14 +492,14 @@ public virtual async Task Reservation Order ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual ArmOperation GenerateBenefitUtilizationSummariesReportReservationOrderScope(WaitUntil waitUntil, string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation GenerateByReservationOrderIdGenerateBenefitUtilizationSummariesReport(WaitUntil waitUntil, string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = ReservationOrderScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportReservationOrderScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateByReservationOrderIdGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = ReservationOrderScopeRestClient.GenerateBenefitUtilizationSummariesReport(reservationOrderId, content, cancellationToken); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), ReservationOrderScopeClientDiagnostics, Pipeline, ReservationOrderScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportRequest(reservationOrderId, content).Request, response, OperationFinalStateVia.Location); + var response = GenerateBenefitUtilizationSummariesReportRestClient.GenerateByReservationOrderId(reservationOrderId, content, cancellationToken); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateByReservationOrderIdRequest(reservationOrderId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -540,7 +520,7 @@ public virtual ArmOperation Generate /// /// /// Operation Id - /// ReservationScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByReservationId /// /// /// @@ -549,14 +529,14 @@ public virtual ArmOperation Generate /// Reservation ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual async Task> GenerateBenefitUtilizationSummariesReportReservationScopeAsync(WaitUntil waitUntil, string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual async Task> GenerateByReservationIdGenerateBenefitUtilizationSummariesReportAsync(WaitUntil waitUntil, string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = ReservationScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportReservationScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateByReservationIdGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = await ReservationScopeRestClient.GenerateBenefitUtilizationSummariesReportAsync(reservationOrderId, reservationId, content, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), ReservationScopeClientDiagnostics, Pipeline, ReservationScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportRequest(reservationOrderId, reservationId, content).Request, response, OperationFinalStateVia.Location); + var response = await GenerateBenefitUtilizationSummariesReportRestClient.GenerateByReservationIdAsync(reservationOrderId, reservationId, content, cancellationToken).ConfigureAwait(false); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateByReservationIdRequest(reservationOrderId, reservationId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -577,7 +557,7 @@ public virtual async Task /// /// Operation Id - /// ReservationScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateByReservationId /// /// /// @@ -586,14 +566,14 @@ public virtual async Task Reservation ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual ArmOperation GenerateBenefitUtilizationSummariesReportReservationScope(WaitUntil waitUntil, string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation GenerateByReservationIdGenerateBenefitUtilizationSummariesReport(WaitUntil waitUntil, string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = ReservationScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportReservationScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateByReservationIdGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = ReservationScopeRestClient.GenerateBenefitUtilizationSummariesReport(reservationOrderId, reservationId, content, cancellationToken); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), ReservationScopeClientDiagnostics, Pipeline, ReservationScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportRequest(reservationOrderId, reservationId, content).Request, response, OperationFinalStateVia.Location); + var response = GenerateBenefitUtilizationSummariesReportRestClient.GenerateByReservationId(reservationOrderId, reservationId, content, cancellationToken); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateByReservationIdRequest(reservationOrderId, reservationId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -614,7 +594,7 @@ public virtual ArmOperation Generate /// /// /// Operation Id - /// SavingsPlanOrderScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId /// /// /// @@ -622,14 +602,14 @@ public virtual ArmOperation Generate /// Savings plan order ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual async Task> GenerateBenefitUtilizationSummariesReportSavingsPlanOrderScopeAsync(WaitUntil waitUntil, string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual async Task> GenerateBySavingsPlanOrderIdGenerateBenefitUtilizationSummariesReportAsync(WaitUntil waitUntil, string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = SavingsPlanOrderScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportSavingsPlanOrderScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBySavingsPlanOrderIdGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = await SavingsPlanOrderScopeRestClient.GenerateBenefitUtilizationSummariesReportAsync(savingsPlanOrderId, content, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), SavingsPlanOrderScopeClientDiagnostics, Pipeline, SavingsPlanOrderScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportRequest(savingsPlanOrderId, content).Request, response, OperationFinalStateVia.Location); + var response = await GenerateBenefitUtilizationSummariesReportRestClient.GenerateBySavingsPlanOrderIdAsync(savingsPlanOrderId, content, cancellationToken).ConfigureAwait(false); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateBySavingsPlanOrderIdRequest(savingsPlanOrderId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -650,7 +630,7 @@ public virtual async Task /// /// Operation Id - /// SavingsPlanOrderScope_GenerateBenefitUtilizationSummariesReport + /// GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId /// /// /// @@ -658,14 +638,14 @@ public virtual async Task Savings plan order ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual ArmOperation GenerateBenefitUtilizationSummariesReportSavingsPlanOrderScope(WaitUntil waitUntil, string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation GenerateBySavingsPlanOrderIdGenerateBenefitUtilizationSummariesReport(WaitUntil waitUntil, string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = SavingsPlanOrderScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportSavingsPlanOrderScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBySavingsPlanOrderIdGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = SavingsPlanOrderScopeRestClient.GenerateBenefitUtilizationSummariesReport(savingsPlanOrderId, content, cancellationToken); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), SavingsPlanOrderScopeClientDiagnostics, Pipeline, SavingsPlanOrderScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportRequest(savingsPlanOrderId, content).Request, response, OperationFinalStateVia.Location); + var response = GenerateBenefitUtilizationSummariesReportRestClient.GenerateBySavingsPlanOrderId(savingsPlanOrderId, content, cancellationToken); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateBySavingsPlanOrderIdRequest(savingsPlanOrderId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -686,7 +666,7 @@ public virtual ArmOperation Generate /// /// /// Operation Id - /// SavingsPlanScope_GenerateBenefitUtilizationSummariesReportAsync + /// GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId /// /// /// @@ -695,14 +675,14 @@ public virtual ArmOperation Generate /// Savings plan ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual async Task> GenerateBenefitUtilizationSummariesReportAsyncSavingsPlanScopeAsync(WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual async Task> GenerateBySavingsPlanIdGenerateBenefitUtilizationSummariesReportAsync(WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = SavingsPlanScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportAsyncSavingsPlanScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBySavingsPlanIdGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = await SavingsPlanScopeRestClient.GenerateBenefitUtilizationSummariesReportAsyncAsync(savingsPlanOrderId, savingsPlanId, content, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), SavingsPlanScopeClientDiagnostics, Pipeline, SavingsPlanScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportAsyncRequest(savingsPlanOrderId, savingsPlanId, content).Request, response, OperationFinalStateVia.Location); + var response = await GenerateBenefitUtilizationSummariesReportRestClient.GenerateBySavingsPlanIdAsync(savingsPlanOrderId, savingsPlanId, content, cancellationToken).ConfigureAwait(false); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateBySavingsPlanIdRequest(savingsPlanOrderId, savingsPlanId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -723,7 +703,7 @@ public virtual async Task /// /// Operation Id - /// SavingsPlanScope_GenerateBenefitUtilizationSummariesReportAsync + /// GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId /// /// /// @@ -732,14 +712,14 @@ public virtual async Task Savings plan ID. /// Async Benefit Utilization Summary report to be created. /// The cancellation token to use. - public virtual ArmOperation GenerateBenefitUtilizationSummariesReportAsyncSavingsPlanScope(WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation GenerateBySavingsPlanIdGenerateBenefitUtilizationSummariesReport(WaitUntil waitUntil, string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) { - using var scope = SavingsPlanScopeClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBenefitUtilizationSummariesReportAsyncSavingsPlanScope"); + using var scope = GenerateBenefitUtilizationSummariesReportClientDiagnostics.CreateScope("TenantResourceExtensionClient.GenerateBySavingsPlanIdGenerateBenefitUtilizationSummariesReport"); scope.Start(); try { - var response = SavingsPlanScopeRestClient.GenerateBenefitUtilizationSummariesReportAsync(savingsPlanOrderId, savingsPlanId, content, cancellationToken); - var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), SavingsPlanScopeClientDiagnostics, Pipeline, SavingsPlanScopeRestClient.CreateGenerateBenefitUtilizationSummariesReportAsyncRequest(savingsPlanOrderId, savingsPlanId, content).Request, response, OperationFinalStateVia.Location); + var response = GenerateBenefitUtilizationSummariesReportRestClient.GenerateBySavingsPlanId(savingsPlanOrderId, savingsPlanId, content, cancellationToken); + var operation = new CostManagementArmOperation(new BenefitUtilizationSummariesOperationStatusOperationSource(), GenerateBenefitUtilizationSummariesReportClientDiagnostics, Pipeline, GenerateBenefitUtilizationSummariesReportRestClient.CreateGenerateBySavingsPlanIdRequest(savingsPlanOrderId, savingsPlanId, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementViewData.Serialization.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementViewData.Serialization.cs index 1c684cfbb89f..2df1742a5a9a 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementViewData.Serialization.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementViewData.Serialization.cs @@ -37,6 +37,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("scope"u8); writer.WriteStringValue(Scope); } + if (Optional.IsDefined(ModifiedOn)) + { + writer.WritePropertyName("modifiedOn"u8); + writer.WriteStringValue(ModifiedOn.Value, "O"); + } + if (Optional.IsDefined(DateRange)) + { + writer.WritePropertyName("dateRange"u8); + writer.WriteStringValue(DateRange); + } if (Optional.IsDefined(Chart)) { writer.WritePropertyName("chart"u8); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingAccountScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingAccountScopeRestOperations.cs deleted file mode 100644 index 0a7398bd59be..000000000000 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingAccountScopeRestOperations.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.CostManagement.Models; - -namespace Azure.ResourceManager.CostManagement -{ - internal partial class BillingAccountScopeRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of BillingAccountScopeRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public BillingAccountScopeRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportRequest(string billingAccountId, BenefitUtilizationSummariesContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); - uri.AppendPath(billingAccountId, true); - uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// Triggers generation of a benefit utilization summaries report for the provided billing account. This API supports only enrollment accounts. - /// Billing account ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public async Task GenerateBenefitUtilizationSummariesReportAsync(string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportRequest(billingAccountId, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Triggers generation of a benefit utilization summaries report for the provided billing account. This API supports only enrollment accounts. - /// Billing account ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public Response GenerateBenefitUtilizationSummariesReport(string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportRequest(billingAccountId, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingProfileScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingProfileScopeRestOperations.cs deleted file mode 100644 index b3234cd78123..000000000000 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingProfileScopeRestOperations.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.CostManagement.Models; - -namespace Azure.ResourceManager.CostManagement -{ - internal partial class BillingProfileScopeRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of BillingProfileScopeRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public BillingProfileScopeRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportRequest(string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); - uri.AppendPath(billingAccountId, true); - uri.AppendPath("/billingProfiles/", false); - uri.AppendPath(billingProfileId, true); - uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// Triggers generation of a benefit utilization summaries report for the provided billing account and billing profile. - /// Billing account ID. - /// Billing profile ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task GenerateBenefitUtilizationSummariesReportAsync(string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); - Argument.AssertNotNullOrEmpty(billingProfileId, nameof(billingProfileId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportRequest(billingAccountId, billingProfileId, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Triggers generation of a benefit utilization summaries report for the provided billing account and billing profile. - /// Billing account ID. - /// Billing profile ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response GenerateBenefitUtilizationSummariesReport(string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); - Argument.AssertNotNullOrEmpty(billingProfileId, nameof(billingProfileId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportRequest(billingAccountId, billingProfileId, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/GenerateBenefitUtilizationSummariesReportRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/GenerateBenefitUtilizationSummariesReportRestOperations.cs new file mode 100644 index 000000000000..723e79fbee44 --- /dev/null +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/GenerateBenefitUtilizationSummariesReportRestOperations.cs @@ -0,0 +1,459 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.CostManagement.Models; + +namespace Azure.ResourceManager.CostManagement +{ + internal partial class GenerateBenefitUtilizationSummariesReportRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of GenerateBenefitUtilizationSummariesReportRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public GenerateBenefitUtilizationSummariesReportRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-03-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateGenerateByBillingAccountRequest(string billingAccountId, BenefitUtilizationSummariesContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Triggers generation of a benefit utilization summaries report for the provided billing account. This API supports only enrollment accounts. + /// Billing account ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task GenerateByBillingAccountAsync(string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateByBillingAccountRequest(billingAccountId, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Triggers generation of a benefit utilization summaries report for the provided billing account. This API supports only enrollment accounts. + /// Billing account ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response GenerateByBillingAccount(string billingAccountId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateByBillingAccountRequest(billingAccountId, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGenerateByBillingProfileRequest(string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Triggers generation of a benefit utilization summaries report for the provided billing account and billing profile. + /// Billing account ID. + /// Billing profile ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task GenerateByBillingProfileAsync(string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); + Argument.AssertNotNullOrEmpty(billingProfileId, nameof(billingProfileId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateByBillingProfileRequest(billingAccountId, billingProfileId, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Triggers generation of a benefit utilization summaries report for the provided billing account and billing profile. + /// Billing account ID. + /// Billing profile ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response GenerateByBillingProfile(string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); + Argument.AssertNotNullOrEmpty(billingProfileId, nameof(billingProfileId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateByBillingProfileRequest(billingAccountId, billingProfileId, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGenerateByReservationOrderIdRequest(string reservationOrderId, BenefitUtilizationSummariesContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationorders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Triggers generation of a benefit utilization summaries report for the provided reservation order. + /// Reservation Order ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task GenerateByReservationOrderIdAsync(string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateByReservationOrderIdRequest(reservationOrderId, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Triggers generation of a benefit utilization summaries report for the provided reservation order. + /// Reservation Order ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response GenerateByReservationOrderId(string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateByReservationOrderIdRequest(reservationOrderId, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGenerateByReservationIdRequest(string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationorders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations/", false); + uri.AppendPath(reservationId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Triggers generation of a benefit utilization summaries report for the provided reservation. + /// Reservation Order ID. + /// Reservation ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task GenerateByReservationIdAsync(string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); + Argument.AssertNotNullOrEmpty(reservationId, nameof(reservationId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateByReservationIdRequest(reservationOrderId, reservationId, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Triggers generation of a benefit utilization summaries report for the provided reservation. + /// Reservation Order ID. + /// Reservation ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response GenerateByReservationId(string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); + Argument.AssertNotNullOrEmpty(reservationId, nameof(reservationId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateByReservationIdRequest(reservationOrderId, reservationId, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGenerateBySavingsPlanOrderIdRequest(string savingsPlanOrderId, BenefitUtilizationSummariesContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Triggers generation of a benefit utilization summaries report for the provided savings plan order. + /// Savings plan order ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task GenerateBySavingsPlanOrderIdAsync(string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateBySavingsPlanOrderIdRequest(savingsPlanOrderId, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Triggers generation of a benefit utilization summaries report for the provided savings plan order. + /// Savings plan order ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response GenerateBySavingsPlanOrderId(string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateBySavingsPlanOrderIdRequest(savingsPlanOrderId, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGenerateBySavingsPlanIdRequest(string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/savingsPlans/", false); + uri.AppendPath(savingsPlanId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Triggers generation of a benefit utilization summaries report for the provided savings plan. + /// Savings plan order ID. + /// Savings plan ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task GenerateBySavingsPlanIdAsync(string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); + Argument.AssertNotNullOrEmpty(savingsPlanId, nameof(savingsPlanId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateBySavingsPlanIdRequest(savingsPlanOrderId, savingsPlanId, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Triggers generation of a benefit utilization summaries report for the provided savings plan. + /// Savings plan order ID. + /// Savings plan ID. + /// Async Benefit Utilization Summary report to be created. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response GenerateBySavingsPlanId(string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); + Argument.AssertNotNullOrEmpty(savingsPlanId, nameof(savingsPlanId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateGenerateBySavingsPlanIdRequest(savingsPlanOrderId, savingsPlanId, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationOrderScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationOrderScopeRestOperations.cs deleted file mode 100644 index 8f739e8239d1..000000000000 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationOrderScopeRestOperations.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.CostManagement.Models; - -namespace Azure.ResourceManager.CostManagement -{ - internal partial class ReservationOrderScopeRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of ReservationOrderScopeRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public ReservationOrderScopeRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportRequest(string reservationOrderId, BenefitUtilizationSummariesContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Capacity/reservationorders/", false); - uri.AppendPath(reservationOrderId, true); - uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// Triggers generation of a benefit utilization summaries report for the provided reservation order. - /// Reservation Order ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public async Task GenerateBenefitUtilizationSummariesReportAsync(string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportRequest(reservationOrderId, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Triggers generation of a benefit utilization summaries report for the provided reservation order. - /// Reservation Order ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public Response GenerateBenefitUtilizationSummariesReport(string reservationOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportRequest(reservationOrderId, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationScopeRestOperations.cs deleted file mode 100644 index 1d4ec5ecec4e..000000000000 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationScopeRestOperations.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.CostManagement.Models; - -namespace Azure.ResourceManager.CostManagement -{ - internal partial class ReservationScopeRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of ReservationScopeRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public ReservationScopeRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportRequest(string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Capacity/reservationorders/", false); - uri.AppendPath(reservationOrderId, true); - uri.AppendPath("/reservations/", false); - uri.AppendPath(reservationId, true); - uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// Triggers generation of a benefit utilization summaries report for the provided reservation. - /// Reservation Order ID. - /// Reservation ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task GenerateBenefitUtilizationSummariesReportAsync(string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); - Argument.AssertNotNullOrEmpty(reservationId, nameof(reservationId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportRequest(reservationOrderId, reservationId, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Triggers generation of a benefit utilization summaries report for the provided reservation. - /// Reservation Order ID. - /// Reservation ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response GenerateBenefitUtilizationSummariesReport(string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(reservationOrderId, nameof(reservationOrderId)); - Argument.AssertNotNullOrEmpty(reservationId, nameof(reservationId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportRequest(reservationOrderId, reservationId, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanOrderScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanOrderScopeRestOperations.cs deleted file mode 100644 index a7a9509363e3..000000000000 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanOrderScopeRestOperations.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.CostManagement.Models; - -namespace Azure.ResourceManager.CostManagement -{ - internal partial class SavingsPlanOrderScopeRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of SavingsPlanOrderScopeRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public SavingsPlanOrderScopeRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportRequest(string savingsPlanOrderId, BenefitUtilizationSummariesContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); - uri.AppendPath(savingsPlanOrderId, true); - uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// Triggers generation of a benefit utilization summaries report for the provided savings plan order. - /// Savings plan order ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public async Task GenerateBenefitUtilizationSummariesReportAsync(string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportRequest(savingsPlanOrderId, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Triggers generation of a benefit utilization summaries report for the provided savings plan order. - /// Savings plan order ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public Response GenerateBenefitUtilizationSummariesReport(string savingsPlanOrderId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportRequest(savingsPlanOrderId, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanScopeRestOperations.cs deleted file mode 100644 index f7f37dea460d..000000000000 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanScopeRestOperations.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.CostManagement.Models; - -namespace Azure.ResourceManager.CostManagement -{ - internal partial class SavingsPlanScopeRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of SavingsPlanScopeRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public SavingsPlanScopeRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportAsyncRequest(string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); - uri.AppendPath(savingsPlanOrderId, true); - uri.AppendPath("/savingsPlans/", false); - uri.AppendPath(savingsPlanId, true); - uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// Triggers generation of a benefit utilization summaries report for the provided savings plan. - /// Savings plan order ID. - /// Savings plan ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task GenerateBenefitUtilizationSummariesReportAsyncAsync(string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); - Argument.AssertNotNullOrEmpty(savingsPlanId, nameof(savingsPlanId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportAsyncRequest(savingsPlanOrderId, savingsPlanId, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Triggers generation of a benefit utilization summaries report for the provided savings plan. - /// Savings plan order ID. - /// Savings plan ID. - /// Async Benefit Utilization Summary report to be created. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response GenerateBenefitUtilizationSummariesReportAsync(string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(savingsPlanOrderId, nameof(savingsPlanOrderId)); - Argument.AssertNotNullOrEmpty(savingsPlanId, nameof(savingsPlanId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateGenerateBenefitUtilizationSummariesReportAsyncRequest(savingsPlanOrderId, savingsPlanId, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionData.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionData.cs index 47168aae55e5..4446cbe66101 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionData.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionData.cs @@ -34,7 +34,7 @@ public ScheduledActionData() /// Notification properties based on scheduled action kind. /// Email address of the point of contact that should get the unsubscribe requests and notification emails. /// Schedule of the scheduled action. - /// Cost Management scope like 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope. + /// For private scheduled action(Create or Update), scope will be empty.<br /> For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope. /// Status of the scheduled action. /// Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'. /// Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required. @@ -74,7 +74,7 @@ public IList FileFormats public string NotificationEmail { get; set; } /// Schedule of the scheduled action. public ScheduleProperties Schedule { get; set; } - /// Cost Management scope like 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope. + /// For private scheduled action(Create or Update), scope will be empty.<br /> For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope. public ResourceIdentifier Scope { get; set; } /// Status of the scheduled action. public ScheduledActionStatus? Status { get; set; } diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/autorest.md b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/autorest.md index 258551e7d62a..4ddd0a7c4a4f 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/autorest.md +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true csharp: true library-name: CostManagement namespace: Azure.ResourceManager.CostManagement -require: https://github.com/Azure/azure-rest-api-specs/blob/20e9229b38b94c8975386b75c652b75e6d691995/specification/cost-management/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/c317f336151f0540ee2a672b3dc8cd60224372d5/specification/cost-management/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true