Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Budgets API translated from 2022-10-01 stable version of Micro… #22866

Conversation

alprosms
Copy link
Contributor

@alprosms alprosms commented Mar 2, 2023

…soft.Consumption/budgets

ARM API Information (Control Plane)

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Azure 1st Party Service can try out the Shift Left experience to initiate API design review from ADO code repo. If you are interested, may request engineering support by filling in with the form https://aka.ms/ShiftLeftSupportForm.

Changelog

Add a changelog entry for this PR by answering the following questions:

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
  4. By default, Azure SDKs of all languages (.NET/Python/Java/JavaScript for both management-plane SDK and data-plane SDK, Go for management-plane SDK only ) MUST be refreshed with/after swagger of new version is published. If you prefer NOT to refresh any specific SDK language upon swagger updates in the current PR, please leave details with justification here.

Contribution checklist (MS Employees Only):

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

Applicability: ⚠️

If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

  • Change to data plane APIs
  • Adding new properties
  • All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

  • Check this box if any of the following apply to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review. Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki.
  • Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Additional details on the process and office hours are on the Breaking Change Wiki.

NOTE: To update API(s) in public preview for over 1 year (refer to Retirement of Previews)

Please follow the link to find more details on PR review process.

@openapi-workflow-bot
Copy link

Hi, @alprosms Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Mar 2, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️LintDiff: 3 Warnings warning [Detail]
    compared tags (via openapi-validator v2.0.0) new version base version
    package-preview-2023-04 package-preview-2023-04(5ca7147) package-preview-2023-04(dev-cost-management-Microsoft.CostManagement-2023-04-01-preview)

    [must fix]The following errors/warnings are introduced by current PR:

    Rule Message Related RPC [For API reviewers]
    ⚠️ RequiredReadOnlySystemData The response of operation:'Budgets_Get' is defined without 'systemData'. Consider adding the systemData to the response.
    Location: Microsoft.CostManagement/preview/2023-04-01-preview/costmanagement.budgets.json#L80
    ⚠️ RequiredReadOnlySystemData The response of operation:'Budgets_CreateOrUpdate' is defined without 'systemData'. Consider adding the systemData to the response.
    Location: Microsoft.CostManagement/preview/2023-04-01-preview/costmanagement.budgets.json#L120
    ⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
    Location: Microsoft.CostManagement/preview/2023-04-01-preview/costmanagement.budgets.json#L446
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️SwaggerAPIView succeeded [Detail] [Expand]
    ️️✔️CadlAPIView succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Mar 2, 2023

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️⚠️SDK Breaking Change Tracking warning [Detail]

    Breaking Changes Tracking

    ⚠️azure-sdk-for-go - sdk/resourcemanager/costmanagement/armcostmanagement - 2.0.0-beta.1
    +	Const `QueryColumnTypeTag` from type alias `QueryColumnType` has been removed
    +	Field `ETag` of struct `ProxyResource` has been removed
    +	Field `ETag` of struct `Resource` has been removed
    +	Field `ID` of struct `Operation` has been removed
    +	Field `Location` of struct `Resource` has been removed
    +	Field `QueryResult` of struct `ForecastClientExternalCloudProviderUsageResponse` has been removed
    +	Field `QueryResult` of struct `ForecastClientUsageResponse` has been removed
    +	Field `SKU` of struct `Resource` has been removed
    +	Field `Tags` of struct `Resource` has been removed
    +	Operation `*GenerateDetailedCostReportOperationResultsClient.Get` has been changed to LRO, use `*GenerateDetailedCostReportOperationResultsClient.BeginGet` instead.
    +	Struct `ExportExecutionProperties` has been removed
    +	Struct `ExportExecution` has been removed
    +	Type alias `ForecastTimeframeType` has been removed
    +	Type alias `ReportConfigColumnType` has been removed
    +	Type of `ExportExecutionListResult.Value` has been changed from `[]*ExportExecution` to `[]*ExportRun`
    +	Type of `ForecastDataset.Aggregation` has been changed from `map[string]*QueryAggregation` to `map[string]*ForecastAggregation`
    +	Type of `ForecastDataset.Configuration` has been changed from `*QueryDatasetConfiguration` to `*ForecastDatasetConfiguration`
    +	Type of `ForecastDataset.Filter` has been changed from `*QueryFilter` to `*ForecastFilter`
    +	Type of `ForecastDefinition.TimePeriod` has been changed from `*QueryTimePeriod` to `*ForecastTimePeriod`
    +	Type of `ForecastDefinition.Timeframe` has been changed from `*ForecastTimeframeType` to `*ForecastTimeframe`
    +	Type of `OperationListResult.Value` has been changed from `[]*Operation` to `[]*OperationForCostManagement`
    +	Type of `ReportConfigGrouping.Type` has been changed from `*ReportConfigColumnType` to `*QueryColumnType`

    ️❌ azure-sdk-for-net failed [Detail]
    • Code Generator Failed [Logs] Generate from a30d910d5b858648c897133c2336ffcd51f4f571. SDK Automation 14.0.0
      command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
      command	autorest --version=2.0.4421 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION [email protected]/[email protected] --csharp-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/cost-management/resource-manager/readme.md
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
    • Microsoft.Azure.Management.CostManagement [View full logs]  [Preview SDK Changes]
      cmdout	[msbuild] /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateCostDetailsReportOperations.cs(28,108): error CS0535: 'GenerateCostDetailsReportOperations' does not implement interface member 'IGenerateCostDetailsReportOperations.GetOperationResultsWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=netstandard1.4]
      cmdout	[msbuild]      2>/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateDetailedCostReportOperationResultsOperations.cs(28,125): error CS0535: 'GenerateDetailedCostReportOperationResultsOperations' does not implement interface member 'IGenerateDetailedCostReportOperationResultsOperations.GetWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=netstandard1.4]
      cmdout	[msbuild]      2>/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateCostDetailsReportOperations.cs(28,108): error CS0535: 'GenerateCostDetailsReportOperations' does not implement interface member 'IGenerateCostDetailsReportOperations.GetOperationResultsWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=net461]
      cmdout	[msbuild]      2>/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateDetailedCostReportOperationResultsOperations.cs(28,125): error CS0535: 'GenerateDetailedCostReportOperationResultsOperations' does not implement interface member 'IGenerateDetailedCostReportOperationResultsOperations.GetWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=net461]
      cmdout	[msbuild]      2>/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateCostDetailsReportOperations.cs(28,108): error CS0535: 'GenerateCostDetailsReportOperations' does not implement interface member 'IGenerateCostDetailsReportOperations.GetOperationResultsWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=netstandard2.0]
      cmdout	[msbuild]      2>/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateDetailedCostReportOperationResultsOperations.cs(28,125): error CS0535: 'GenerateDetailedCostReportOperationResultsOperations' does not implement interface member 'IGenerateDetailedCostReportOperationResultsOperations.GetWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=netstandard2.0]
      cmdout	[msbuild]      2>/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateCostDetailsReportOperations.cs(28,108): error CS0535: 'GenerateCostDetailsReportOperations' does not implement interface member 'IGenerateCostDetailsReportOperations.GetOperationResultsWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=net452]
      cmdout	[msbuild]      2>/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateDetailedCostReportOperationResultsOperations.cs(28,125): error CS0535: 'GenerateDetailedCostReportOperationResultsOperations' does not implement interface member 'IGenerateDetailedCostReportOperationResultsOperations.GetWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=net452]
      cmdout	[msbuild]          /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateCostDetailsReportOperations.cs(28,108): error CS0535: 'GenerateCostDetailsReportOperations' does not implement interface member 'IGenerateCostDetailsReportOperations.GetOperationResultsWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=netstandard1.4]
      cmdout	[msbuild]          /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateDetailedCostReportOperationResultsOperations.cs(28,125): error CS0535: 'GenerateDetailedCostReportOperationResultsOperations' does not implement interface member 'IGenerateDetailedCostReportOperationResultsOperations.GetWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=netstandard1.4]
      cmdout	[msbuild]          /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateCostDetailsReportOperations.cs(28,108): error CS0535: 'GenerateCostDetailsReportOperations' does not implement interface member 'IGenerateCostDetailsReportOperations.GetOperationResultsWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=net461]
      cmdout	[msbuild]          /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateDetailedCostReportOperationResultsOperations.cs(28,125): error CS0535: 'GenerateDetailedCostReportOperationResultsOperations' does not implement interface member 'IGenerateDetailedCostReportOperationResultsOperations.GetWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=net461]
      cmdout	[msbuild]          /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateCostDetailsReportOperations.cs(28,108): error CS0535: 'GenerateCostDetailsReportOperations' does not implement interface member 'IGenerateCostDetailsReportOperations.GetOperationResultsWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=netstandard2.0]
      cmdout	[msbuild]          /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateDetailedCostReportOperationResultsOperations.cs(28,125): error CS0535: 'GenerateDetailedCostReportOperationResultsOperations' does not implement interface member 'IGenerateDetailedCostReportOperationResultsOperations.GetWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=netstandard2.0]
      cmdout	[msbuild]          /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateCostDetailsReportOperations.cs(28,108): error CS0535: 'GenerateCostDetailsReportOperations' does not implement interface member 'IGenerateCostDetailsReportOperations.GetOperationResultsWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=net452]
      cmdout	[msbuild]          /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated/GenerateDetailedCostReportOperationResultsOperations.cs(28,125): error CS0535: 'GenerateDetailedCostReportOperationResultsOperations' does not implement interface member 'IGenerateDetailedCostReportOperationResultsOperations.GetWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cost-management/Microsoft.Azure.Management.CostManagement/src/Microsoft.Azure.Management.CostManagement.csproj::TargetFramework=net452]
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-net]: dotnet
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from a30d910d5b858648c897133c2336ffcd51f4f571. SDK Automation 14.0.0
      command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️sdk/resourcemanager/costmanagement/armcostmanagement [View full logs]  [Preview SDK Changes] Breaking Change Detected
      Only show 120 items here, please refer to log for details.
      info	[Changelog] - New type alias `Grain` with values `GrainDaily`, `GrainHourly`, `GrainMonthly`
      info	[Changelog] - New type alias `GrainParameter` with values `GrainParameterDaily`, `GrainParameterHourly`, `GrainParameterMonthly`
      info	[Changelog] - New type alias `LookBackPeriod` with values `LookBackPeriodLast30Days`, `LookBackPeriodLast60Days`, `LookBackPeriodLast7Days`
      info	[Changelog] - New type alias `Origin` with values `OriginSystem`, `OriginUser`, `OriginUserSystem`
      info	[Changelog] - New type alias `ScheduleFrequency` with values `ScheduleFrequencyDaily`, `ScheduleFrequencyMonthly`, `ScheduleFrequencyWeekly`
      info	[Changelog] - New type alias `ScheduledActionKind` with values `ScheduledActionKindEmail`, `ScheduledActionKindInsightAlert`
      info	[Changelog] - New type alias `ScheduledActionStatus` with values `ScheduledActionStatusDisabled`, `ScheduledActionStatusEnabled`, `ScheduledActionStatusExpired`
      info	[Changelog] - New type alias `Scope` with values `ScopeShared`, `ScopeSingle`
      info	[Changelog] - New type alias `Term` with values `TermP1Y`, `TermP3Y`
      info	[Changelog] - New type alias `ThresholdType` with values `ThresholdTypeActual`, `ThresholdTypeForecasted`
      info	[Changelog] - New type alias `TimeGrainType` with values `TimeGrainTypeAnnually`, `TimeGrainTypeBillingAnnual`, `TimeGrainTypeBillingMonth`, `TimeGrainTypeBillingQuarter`, `TimeGrainTypeMonthly`, `TimeGrainTypeQuarterly`
      info	[Changelog] - New type alias `WeeksOfMonth` with values `WeeksOfMonthFirst`, `WeeksOfMonthFourth`, `WeeksOfMonthLast`, `WeeksOfMonthSecond`, `WeeksOfMonthThird`
      info	[Changelog] - New function `*BenefitRecommendationProperties.GetBenefitRecommendationProperties() *BenefitRecommendationProperties`
      info	[Changelog] - New function `NewBenefitRecommendationsClient(azcore.TokenCredential, *arm.ClientOptions) (*BenefitRecommendationsClient, error)`
      info	[Changelog] - New function `*BenefitRecommendationsClient.NewListPager(string, *BenefitRecommendationsClientListOptions) *runtime.Pager[BenefitRecommendationsClientListResponse]`
      info	[Changelog] - New function `NewBenefitUtilizationSummariesClient(azcore.TokenCredential, *arm.ClientOptions) (*BenefitUtilizationSummariesClient, error)`
      info	[Changelog] - New function `*BenefitUtilizationSummariesClient.NewListByBillingAccountIDPager(string, *BenefitUtilizationSummariesClientListByBillingAccountIDOptions) *runtime.Pager[BenefitUtilizationSummariesClientListByBillingAccountIDResponse]`
      info	[Changelog] - New function `*BenefitUtilizationSummariesClient.NewListByBillingProfileIDPager(string, string, *BenefitUtilizationSummariesClientListByBillingProfileIDOptions) *runtime.Pager[BenefitUtilizationSummariesClientListByBillingProfileIDResponse]`
      info	[Changelog] - New function `*BenefitUtilizationSummariesClient.NewListBySavingsPlanIDPager(string, string, *BenefitUtilizationSummariesClientListBySavingsPlanIDOptions) *runtime.Pager[BenefitUtilizationSummariesClientListBySavingsPlanIDResponse]`
      info	[Changelog] - New function `*BenefitUtilizationSummariesClient.NewListBySavingsPlanOrderPager(string, *BenefitUtilizationSummariesClientListBySavingsPlanOrderOptions) *runtime.Pager[BenefitUtilizationSummariesClientListBySavingsPlanOrderResponse]`
      info	[Changelog] - New function `*BenefitUtilizationSummary.GetBenefitUtilizationSummary() *BenefitUtilizationSummary`
      info	[Changelog] - New function `NewBudgetsClient(azcore.TokenCredential, *arm.ClientOptions) (*BudgetsClient, error)`
      info	[Changelog] - New function `*BudgetsClient.CreateOrUpdate(context.Context, string, string, Budget, *BudgetsClientCreateOrUpdateOptions) (BudgetsClientCreateOrUpdateResponse, error)`
      info	[Changelog] - New function `*BudgetsClient.Delete(context.Context, string, string, *BudgetsClientDeleteOptions) (BudgetsClientDeleteResponse, error)`
      info	[Changelog] - New function `*BudgetsClient.Get(context.Context, string, string, *BudgetsClientGetOptions) (BudgetsClientGetResponse, error)`
      info	[Changelog] - New function `*BudgetsClient.NewListPager(string, *BudgetsClientListOptions) *runtime.Pager[BudgetsClientListResponse]`
      info	[Changelog] - New function `NewGenerateCostDetailsReportClient(azcore.TokenCredential, *arm.ClientOptions) (*GenerateCostDetailsReportClient, error)`
      info	[Changelog] - New function `*GenerateCostDetailsReportClient.BeginCreateOperation(context.Context, string, GenerateCostDetailsReportRequestDefinition, *GenerateCostDetailsReportClientBeginCreateOperationOptions) (*runtime.Poller[GenerateCostDetailsReportClientCreateOperationResponse], error)`
      info	[Changelog] - New function `*GenerateCostDetailsReportClient.BeginGetOperationResults(context.Context, string, string, *GenerateCostDetailsReportClientBeginGetOperationResultsOptions) (*runtime.Poller[GenerateCostDetailsReportClientGetOperationResultsResponse], error)`
      info	[Changelog] - New function `*IncludedQuantityUtilizationSummary.GetBenefitUtilizationSummary() *BenefitUtilizationSummary`
      info	[Changelog] - New function `PossibleGrainValues() []Grain`
      info	[Changelog] - New function `NewPriceSheetClient(azcore.TokenCredential, *arm.ClientOptions) (*PriceSheetClient, error)`
      info	[Changelog] - New function `*PriceSheetClient.BeginDownload(context.Context, string, string, string, *PriceSheetClientBeginDownloadOptions) (*runtime.Poller[PriceSheetClientDownloadResponse], error)`
      info	[Changelog] - New function `*PriceSheetClient.BeginDownloadByBillingProfile(context.Context, string, string, *PriceSheetClientBeginDownloadByBillingProfileOptions) (*runtime.Poller[PriceSheetClientDownloadByBillingProfileResponse], error)`
      info	[Changelog] - New function `*SavingsPlanUtilizationSummary.GetBenefitUtilizationSummary() *BenefitUtilizationSummary`
      info	[Changelog] - New function `NewScheduledActionsClient(*string, azcore.TokenCredential, *arm.ClientOptions) (*ScheduledActionsClient, error)`
      info	[Changelog] - New function `*ScheduledActionsClient.CheckNameAvailability(context.Context, CheckNameAvailabilityRequest, *ScheduledActionsClientCheckNameAvailabilityOptions) (ScheduledActionsClientCheckNameAvailabilityResponse, error)`
      info	[Changelog] - New function `*ScheduledActionsClient.CheckNameAvailabilityByScope(context.Context, string, CheckNameAvailabilityRequest, *ScheduledActionsClientCheckNameAvailabilityByScopeOptions) (ScheduledActionsClientCheckNameAvailabilityByScopeResponse, error)`
      info	[Changelog] - New function `*ScheduledActionsClient.CreateOrUpdate(context.Context, string, ScheduledAction, *ScheduledActionsClientCreateOrUpdateOptions) (ScheduledActionsClientCreateOrUpdateResponse, error)`
      info	[Changelog] - New function `*ScheduledActionsClient.CreateOrUpdateByScope(context.Context, string, string, ScheduledAction, *ScheduledActionsClientCreateOrUpdateByScopeOptions) (ScheduledActionsClientCreateOrUpdateByScopeResponse, error)`
      info	[Changelog] - New function `*ScheduledActionsClient.Delete(context.Context, string, *ScheduledActionsClientDeleteOptions) (ScheduledActionsClientDeleteResponse, error)`
      info	[Changelog] - New function `*ScheduledActionsClient.DeleteByScope(context.Context, string, string, *ScheduledActionsClientDeleteByScopeOptions) (ScheduledActionsClientDeleteByScopeResponse, error)`
      info	[Changelog] - New function `*ScheduledActionsClient.Get(context.Context, string, *ScheduledActionsClientGetOptions) (ScheduledActionsClientGetResponse, error)`
      info	[Changelog] - New function `*ScheduledActionsClient.GetByScope(context.Context, string, string, *ScheduledActionsClientGetByScopeOptions) (ScheduledActionsClientGetByScopeResponse, error)`
      info	[Changelog] - New function `*ScheduledActionsClient.NewListByScopePager(string, *ScheduledActionsClientListByScopeOptions) *runtime.Pager[ScheduledActionsClientListByScopeResponse]`
      info	[Changelog] - New function `*ScheduledActionsClient.NewListPager(*ScheduledActionsClientListOptions) *runtime.Pager[ScheduledActionsClientListResponse]`
      info	[Changelog] - New function `*ScheduledActionsClient.Run(context.Context, string, *ScheduledActionsClientRunOptions) (ScheduledActionsClientRunResponse, error)`
      info	[Changelog] - New function `*ScheduledActionsClient.RunByScope(context.Context, string, string, *ScheduledActionsClientRunByScopeOptions) (ScheduledActionsClientRunByScopeResponse, error)`
      info	[Changelog] - New function `*SharedScopeBenefitRecommendationProperties.GetBenefitRecommendationProperties() *BenefitRecommendationProperties`
      info	[Changelog] - New function `*SingleScopeBenefitRecommendationProperties.GetBenefitRecommendationProperties() *BenefitRecommendationProperties`
      info	[Changelog] - New struct `AllSavingsBenefitDetails`
      info	[Changelog] - New struct `AllSavingsList`
      info	[Changelog] - New struct `BenefitRecommendationModel`
      info	[Changelog] - New struct `BenefitRecommendationsClient`
      info	[Changelog] - New struct `BenefitRecommendationsListResult`
      info	[Changelog] - New struct `BenefitResource`
      info	[Changelog] - New struct `BenefitUtilizationSummariesClient`
      info	[Changelog] - New struct `BenefitUtilizationSummariesListResult`
      info	[Changelog] - New struct `BenefitUtilizationSummaryProperties`
      info	[Changelog] - New struct `BlobInfo`
      info	[Changelog] - New struct `Budget`
      info	[Changelog] - New struct `BudgetComparisonExpression`
      info	[Changelog] - New struct `BudgetFilter`
      info	[Changelog] - New struct `BudgetFilterProperties`
      info	[Changelog] - New struct `BudgetProperties`
      info	[Changelog] - New struct `BudgetTimePeriod`
      info	[Changelog] - New struct `BudgetsClient`
      info	[Changelog] - New struct `BudgetsListResult`
      info	[Changelog] - New struct `CheckNameAvailabilityRequest`
      info	[Changelog] - New struct `CheckNameAvailabilityResponse`
      info	[Changelog] - New struct `CostDetailsOperationResults`
      info	[Changelog] - New struct `CostDetailsTimePeriod`
      info	[Changelog] - New struct `CurrentSpend`
      info	[Changelog] - New struct `ErrorDetailsWithNestedDetails`
      info	[Changelog] - New struct `ErrorResponseWithNestedDetails`
      info	[Changelog] - New struct `ExportRun`
      info	[Changelog] - New struct `ExportRunProperties`
      info	[Changelog] - New struct `FileDestination`
      info	[Changelog] - New struct `ForecastAggregation`
      info	[Changelog] - New struct `ForecastColumn`
      info	[Changelog] - New struct `ForecastComparisonExpression`
      info	[Changelog] - New struct `ForecastDatasetConfiguration`
      info	[Changelog] - New struct `ForecastFilter`
      info	[Changelog] - New struct `ForecastProperties`
      info	[Changelog] - New struct `ForecastResult`
      info	[Changelog] - New struct `ForecastSpend`
      info	[Changelog] - New struct `ForecastTimePeriod`
      info	[Changelog] - New struct `GenerateCostDetailsReportClient`
      info	[Changelog] - New struct `GenerateCostDetailsReportErrorResponse`
      info	[Changelog] - New struct `GenerateCostDetailsReportRequestDefinition`
      info	[Changelog] - New struct `IncludedQuantityUtilizationSummary`
      info	[Changelog] - New struct `IncludedQuantityUtilizationSummaryProperties`
      info	[Changelog] - New struct `Notification`
      info	[Changelog] - New struct `NotificationProperties`
      info	[Changelog] - New struct `OperationForCostManagement`
      info	[Changelog] - New struct `PriceSheetClient`
      info	[Changelog] - New struct `ProxyResourceForCostManagement`
      info	[Changelog] - New struct `RecommendationUsageDetails`
      info	[Changelog] - New struct `ReportManifest`
      info	[Changelog] - New struct `RequestContext`
      info	[Changelog] - New struct `ResourceForCostManagement`
      info	[Changelog] - New struct `SavingsPlanUtilizationSummary`
      info	[Changelog] - New struct `SavingsPlanUtilizationSummaryProperties`
      info	[Changelog] - New struct `ScheduleProperties`
      info	[Changelog] - New struct `ScheduledAction`
      info	[Changelog] - New struct `ScheduledActionListResult`
      info	[Changelog] - New struct `ScheduledActionProperties`
      info	[Changelog] - New struct `ScheduledActionProxyResource`
      info	[Changelog] - New struct `ScheduledActionsClient`
      info	[Changelog] - New struct `SharedScopeBenefitRecommendationProperties`
      info	[Changelog] - New struct `SingleScopeBenefitRecommendationProperties`
      info	[Changelog] - New struct `SystemData`
      info	[Changelog] - New field `ExpiryTime` in struct `DownloadURL`
      info	[Changelog] - New anonymous field `ForecastResult` in struct `ForecastClientExternalCloudProviderUsageResponse`
      info	[Changelog] - New anonymous field `ForecastResult` in struct `ForecastClientUsageResponse`
      info	[Changelog] - New field `ActionType` in struct `Operation`
      info	[Changelog] - New field `IsDataAction` in struct `Operation`
      info	[Changelog] - New field `Origin` in struct `Operation`
      info	[Changelog]
      info	[Changelog] Total 18 breaking change(s), 290 additive change(s).
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs] Generate from a30d910d5b858648c897133c2336ffcd51f4f571. SDK Automation 14.0.0
      command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
      cmderr	[automation_generate.sh]
      cmderr	[automation_generate.sh] npm notice New major version of npm available! 8.19.3 -> 9.6.1
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.1>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g [email protected]` to update!
      cmderr	[automation_generate.sh] npm notice
    • ️✔️track2_azure-mgmt-costmanagement [View full logs]  [Preview SDK Changes]
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog]   - Added operation group BudgetsOperations
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs] Generate from a30d910d5b858648c897133c2336ffcd51f4f571. Schema Automation 14.0.0
      command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
      cmderr	[initScript.sh] WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      cmderr	[initScript.sh] npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      cmderr	[initScript.sh] npm WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile This is a one-time fix-up, please be patient...
      cmderr	[initScript.sh] npm WARN old lockfile
      warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
      command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    • ️✔️cost-management [View full logs]  [Preview Schema Changes]
    ️❌ azure-powershell failed [Detail]
    • Failed [Logs] Generate from a30d910d5b858648c897133c2336ffcd51f4f571. SDK Automation 14.0.0
      command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
      command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
    • Az.cost-management [View full logs]  [Preview SDK Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Mar 2, 2023

    Generated ApiView

    Language Package Name ApiView Link
    swagger Microsoft.CostManagement https://apiview.dev/Assemblies/Review/5425a73a0c32458d8a5f4851a410ca3f
    Go sdk/resourcemanager/costmanagement/armcostmanagement https://apiview.dev/Assemblies/Review/003301dab2d941d9a887159563548bb1

    @openapi-workflow-bot
    Copy link

    Hi @alprosms, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    @openapi-workflow-bot
    Copy link

    Hi @alprosms, one or multiple validation error/warning suppression(s) is detected in your PR. Please follow the Swagger-Suppression-Process to get approval.

    @alprosms alprosms requested a review from ArcturusZhang as a code owner March 2, 2023 05:45
    @openapi-workflow-bot openapi-workflow-bot bot added ARMReview WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Mar 10, 2023
    @openapi-workflow-bot
    Copy link

    Hi, @alprosms your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board([email protected]).

    @alprosms alprosms removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Mar 10, 2023
    @openapi-workflow-bot openapi-workflow-bot bot added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Mar 10, 2023
    @mentat9 mentat9 added the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Mar 10, 2023
    @openapi-workflow-bot
    Copy link

    Please ensure to respond feedbacks from the ARM API reviewer. When you are ready to continue the ARM API review, please remove ARMChangesRequested

    @openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Mar 10, 2023
    @alprosms alprosms removed the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Mar 10, 2023
    @openapi-workflow-bot openapi-workflow-bot bot added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Mar 10, 2023
    @mentat9 mentat9 added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label Mar 10, 2023
    @openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Mar 10, 2023
    @alprosms alprosms merged commit 09d1231 into dev-cost-management-Microsoft.CostManagement-2023-04-01-preview Mar 14, 2023
    @alprosms alprosms deleted the alprosms-cost-management-Microsoft.CostManagement-2023-04-01-preview branch March 14, 2023 17:38
    ArcturusZhang pushed a commit that referenced this pull request May 4, 2023
    )
    
    * Adds base for updating Microsoft.CostManagement from version stable/2022-10-01 to version 2023-04-01-preview
    
    * Updates readme
    
    * Updates API version in new specs and examples
    
    * Adding Budgets API translated from 2022-10-01 stable version of Micro… (#22866)
    
    * Adding Budgets API translated from 2022-10-01 stable version of Microsoft.Consumption/budgets
    
    * Updating api-version in examples to 2023-04-01-preview
    
    * Adding costmanagement.budgets.json to readme
    
    * Addressing Swagger LintDiff errors
    
    * Updating budget name pattern
    
    * Adding suppression for R4011
    
    * Adding budget name pattern regex for only alphanumeric, underscore, or hyphen characters
    
    * fixing readme.go.md for budgets
    
    * removing "object" type from notifications dictionary keys
    
    * removing tags
    
    * removing mismatching enum values
    
    * updating notifications key type
    
    * Revert "updating notifications key type"
    
    This reverts commit eeb504b.
    
    * Revert "removing mismatching enum values"
    
    This reverts commit cba0132.
    
    * updates to enum name
    
    * Removing incorrect/outdated description info
    
    * fixing BudgetsList example
    
    * Updating example Ids to use Microsoft.CostManagement RP
    
    * updating min & max length of budget name per conversations with PMs
    
    * Adding suppressions for DeleteOperationResponses, TopLevelResourcesListBySubscription, and NoDuplicatePathsForScopeParameter
    
    * fixing indentation in readme
    
    * fixing formatting of suppressions in readme
    
    * Adding paging back in, specifying as null for future use
    
    * Adding support for RU Alerts in new Budgets API version (#23140)
    
    * Updating budgets swagger definition to include modifications from RU Alert category
    
    * Adding new examples for all scenarios of RU Alerts, added new examples for all scopes for Cost Budgets
    
    * Spelling & lintdiff fixes
    
    * prettier-fix
    
    * Added more descriptions, and some light markdown to larger descripitons
    
    * Addressing comments
    
    * prettier-fix
    
    * Updating description for amount property
    
    * addressing Shravan's offline comments
    
    * spell check
    
    * removing aws scopes from scope description
    
    * Addressing comments from internal review, removed legacy tags for EA
    
    * Alexprosak microsoft.cost management 2023 04 01 preview (#23362)
    
    * Updating readme default tag
    
    * specifiying the word "update" in 200 response for budget createorupdate
    
    * updating tags to package-preview-2023-04-01
    
    * readme test
    
    * Revert "readme test"
    
    This reverts commit 566e2e6.
    
    * Revert "updating tags to package-preview-2023-04-01"
    
    This reverts commit f9cf3fe.
    
    * Updating readme with previous apis not included and updated to current version
    
    * Revert "Updating readme with previous apis not included and updated to current version"
    
    This reverts commit bb87946.
    
    * Alexprosak cost management microsoft.cost management 2023 04 01 preview (#23770)
    
    * changing azure-sdk-for-net to azure-sdk-for-net-track2 per ask from comment on main branch PR
    
    * Adding in descriptions + examples for RU Alerts support at the customer scope
    
    * fixing json formatting
    
    * fixing example references
    
    * Updating costmanagementproxyresource to reference ARM common proxy resource. Minor formatting change on scope parameter
    
    * Updating common-types with updates to common-types from 2022-10-01 version
    
    * prettier-fix
    
    * Alprosms cost management microsoft.cost management 2023 04 01 preview (#23795)
    
    * updating costdetailreport swaggers from recent changes to 2022-10-01 version
    
    * suppressing invalid LintDiff errors
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-BreakingChange-Go CI-FixRequiredOnFailure resource-manager SuppressionReviewRequired
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    5 participants