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

Creating new API version for Alerts API #17877

Merged
merged 32 commits into from
Aug 3, 2022
Merged

Creating new API version for Alerts API #17877

merged 32 commits into from
Aug 3, 2022

Conversation

yibirnba
Copy link
Contributor

@yibirnba yibirnba commented Feb 16, 2022

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

Changelog

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

  1. What's the purpose of the update?
    • new API version
  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:
    April
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month:
    April
  4. If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • No refresh required for updates in this PR

Contribution checklist:

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 label "WaitForARMFeedback" will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. 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 any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in a stable version
  • Removing properties in a stable version
  • Removing API version(s) in a stable version
  • Updating API in a stable or public preview version with Breaking Change Validation errors
  • Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

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

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

@yibirnba yibirnba requested review from nitsi and orparnes February 16, 2022 09:07
@openapi-workflow-bot
Copy link

Hi, @yibirnba 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

    Swagger pipeline can not start as the pull request has merge conflicts.

    @openapi-workflow-bot
    Copy link

    [Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks.

    @openapi-pipeline-app
    Copy link

    Swagger pipeline can not start as the pull request has merge conflicts.

    @openapi-pipeline-app
    Copy link

    Swagger pipeline can not start as the pull request has merge conflicts.

    1 similar comment
    @openapi-pipeline-app
    Copy link

    Swagger pipeline can not start as the pull request has merge conflicts.

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 16, 2022

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️🔄LintDiff inProgress [Detail]
    ️⚠️Avocado: 1 Warnings warning [Detail]
    Rule Message
    ⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
    readme: specification/security/resource-manager/readme.md
    tag: specification/security/resource-manager/readme.md#tag-package-composite-v3
    ️🔄~[Staging] ApiReadinessCheck inProgress [Detail]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️❌Cross-Version Breaking Changes: 8 Errors, 40 Warnings failed [Detail]
    The following breaking changes are detected by comparison with the latest stable version:
    Rule Message
    1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss' removed or restructured?
    Old: Microsoft.Security/stable/2021-01-01/alerts.json#L292:5
    1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve' removed or restructured?
    Old: Microsoft.Security/stable/2021-01-01/alerts.json#L331:5
    1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate' removed or restructured?
    Old: Microsoft.Security/stable/2021-01-01/alerts.json#L370:5
    1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve' removed or restructured?
    Old: Microsoft.Security/stable/2021-01-01/alerts.json#L409:5
    1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss' removed or restructured?
    Old: Microsoft.Security/stable/2021-01-01/alerts.json#L451:5
    1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate' removed or restructured?
    Old: Microsoft.Security/stable/2021-01-01/alerts.json#L493:5
    1011 - AddingResponseCode The new version adds a response code '204'.
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L566:11
    1019 - RemovedEnumValue The new version is removing enum value(s) 'Resolved, Dismissed' from the old version.
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L832:9
    Old: Microsoft.Security/stable/2021-01-01/alerts.json#L831:9


    The following breaking changes are detected by comparison with latest preview version:

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    ⚠️ 1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss' removed or restructured?
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L328:5
    ⚠️ 1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/reactivate' removed or restructured?
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L367:5
    ⚠️ 1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss' removed or restructured?
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L406:5
    ⚠️ 1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/reactivate' removed or restructured?
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L448:5
    ⚠️ 1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'ODataExpand' removed or renamed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L1139:3
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L710:3
    ⚠️ 1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'ODataSelect' removed or renamed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L1139:3
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L710:3
    ⚠️ 1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'ODataFilter' removed or renamed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L1139:3
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L710:3
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'Alerts_ListSubscriptionLevelAlertsByRegion' to 'Alerts_ListSubscriptionLevelByRegion'. This will impact generated code.
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L119:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L137:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'Alerts_ListResourceGroupLevelAlertsByRegion' to 'Alerts_ListResourceGroupLevelByRegion'. This will impact generated code.
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L161:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L188:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'Alerts_GetSubscriptionLevelAlert' to 'Alerts_GetSubscriptionLevel'. This will impact generated code.
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L206:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L242:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'Alerts_GetResourceGroupLevelAlerts' to 'Alerts_GetResourceGroupLevel'. This will impact generated code.
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L248:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L284:7
    ⚠️ 1026 - TypeChanged The new version has a different type 'array' than the previous one 'string'.
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L818:9
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L565:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'string' than the previous one 'object'.
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L619:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L706:7
    ⚠️ 1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L891:9
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L632:9
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'state' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'reportedTimeUtc' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'alertName' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'detectedTimeUtc' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'actionTaken' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'reportedSeverity' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'associatedResource' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'systemSource' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'canBeInvestigated' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'confidenceScore' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'confidenceReasons' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'subscriptionId' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'instanceId' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'workspaceArmId' renamed or removed?
    New: Microsoft.Security/stable/2022-01-01/alerts.json#L645:7
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L527:7
    ⚠️ 1046 - RemovedOptionalParameter The optional parameter '$filter' was removed in the new version.
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L49:9
    ⚠️ 1046 - RemovedOptionalParameter The optional parameter '$select' was removed in the new version.
    Old: Microsoft.Security/preview/2015-06-01-preview/alerts.json#L49:9
    ️⌛CredScan pending [Detail]
    ️🔄SDK Track2 Validation inProgress [Detail]
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 16, 2022

    Swagger Generation Artifacts

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

    Breaking Changes Tracking

    azure-sdk-for-go-track2 - armsecurity - 0.5.0
    +	Const `AlertStatusDismissed` has been removed
    +	Const `AlertStatusResolved` has been removed
    +	Function `*AlertsClient.UpdateResourceGroupLevelStateToActivate` has been removed
    +	Function `*AlertsClient.UpdateResourceGroupLevelStateToDismiss` has been removed
    +	Function `*AlertsClient.UpdateResourceGroupLevelStateToResolve` has been removed
    +	Function `*AlertsClient.UpdateSubscriptionLevelStateToActivate` has been removed
    +	Function `*AlertsClient.UpdateSubscriptionLevelStateToDismiss` has been removed
    +	Function `*AlertsClient.UpdateSubscriptionLevelStateToResolve` has been removed
    +	Struct `AlertsClientUpdateResourceGroupLevelStateToActivateOptions` has been removed
    +	Struct `AlertsClientUpdateResourceGroupLevelStateToActivateResponse` has been removed
    +	Struct `AlertsClientUpdateResourceGroupLevelStateToDismissOptions` has been removed
    +	Struct `AlertsClientUpdateResourceGroupLevelStateToDismissResponse` has been removed
    +	Struct `AlertsClientUpdateResourceGroupLevelStateToResolveOptions` has been removed
    +	Struct `AlertsClientUpdateResourceGroupLevelStateToResolveResponse` has been removed
    +	Struct `AlertsClientUpdateSubscriptionLevelStateToActivateOptions` has been removed
    +	Struct `AlertsClientUpdateSubscriptionLevelStateToActivateResponse` has been removed
    +	Struct `AlertsClientUpdateSubscriptionLevelStateToDismissOptions` has been removed
    +	Struct `AlertsClientUpdateSubscriptionLevelStateToDismissResponse` has been removed
    +	Struct `AlertsClientUpdateSubscriptionLevelStateToResolveOptions` has been removed
    +	Struct `AlertsClientUpdateSubscriptionLevelStateToResolveResponse` has been removed
    azure-sdk-for-python-track2 - track2_azure-mgmt-security - 2.0.0b1
    +	Operation AlertsOperations.get_resource_group_level has a new signature
    +	Operation AlertsOperations.get_resource_group_level has a new signature
    +	Removed operation AlertsOperations.update_resource_group_level_state_to_activate
    +	Removed operation AlertsOperations.update_resource_group_level_state_to_dismiss
    +	Removed operation AlertsOperations.update_resource_group_level_state_to_resolve
    +	Removed operation AlertsOperations.update_subscription_level_state_to_activate
    +	Removed operation AlertsOperations.update_subscription_level_state_to_dismiss
    +	Removed operation AlertsOperations.update_subscription_level_state_to_resolve
    azure-sdk-for-go - preview/security/mgmt/v3.0/security - v61.6.0
    +	Const `Active` has been removed
    +	Const `Dismissed` has been removed
    +	Const `Resolved` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToActivatePreparer` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToActivateResponder` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToActivateSender` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToActivate` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToDismissPreparer` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToDismissResponder` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToDismissSender` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToDismiss` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToResolvePreparer` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToResolveResponder` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToResolveSender` has been removed
    +	Function `AlertsClient.UpdateResourceGroupLevelStateToResolve` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToActivatePreparer` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToActivateResponder` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToActivateSender` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToActivate` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToDismissPreparer` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToDismissResponder` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToDismissSender` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToDismiss` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToResolvePreparer` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToResolveResponder` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToResolveSender` has been removed
    +	Function `AlertsClient.UpdateSubscriptionLevelStateToResolve` has been removed
    -	Function `InformationProtectionPoliciesClient.CreateOrUpdatePreparer` parameter(s) have been changed from `(context.Context, string, string, InformationProtectionPolicy)` to `(context.Context, string, InformationProtectionPolicyName, InformationProtectionPolicy)`
    -	Function `InformationProtectionPoliciesClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, InformationProtectionPolicy)` to `(context.Context, string, InformationProtectionPolicyName, InformationProtectionPolicy)`
    -	Function `InformationProtectionPoliciesClient.GetPreparer` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, InformationProtectionPolicyName)`
    -	Function `InformationProtectionPoliciesClient.Get` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, InformationProtectionPolicyName)`
    -	Function `SettingsClient.GetPreparer` parameter(s) have been changed from `(context.Context, string)` to `(context.Context, SettingName4)`
    -	Function `SettingsClient.Get` parameter(s) have been changed from `(context.Context, string)` to `(context.Context, SettingName4)`
    -	Function `SettingsClient.UpdatePreparer` parameter(s) have been changed from `(context.Context, string, BasicSetting)` to `(context.Context, SettingName5, BasicSetting)`
    -	Function `SettingsClient.Update` parameter(s) have been changed from `(context.Context, string, BasicSetting)` to `(context.Context, SettingName5, BasicSetting)`
    -	Function `TasksClient.UpdateResourceGroupLevelTaskStatePreparer` parameter(s) have been changed from `(context.Context, string, string, string)` to `(context.Context, string, string, TaskUpdateActionType)`
    -	Function `TasksClient.UpdateResourceGroupLevelTaskState` parameter(s) have been changed from `(context.Context, string, string, string)` to `(context.Context, string, string, TaskUpdateActionType)`
    -	Function `TasksClient.UpdateSubscriptionLevelTaskStatePreparer` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, TaskUpdateActionType)`
    -	Function `TasksClient.UpdateSubscriptionLevelTaskState` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, TaskUpdateActionType)`
    azure-sdk-for-go - preview/security/mgmt/v2.0/security - v61.6.0
    -	Function `InformationProtectionPoliciesClient.CreateOrUpdatePreparer` parameter(s) have been changed from `(context.Context, string, string, InformationProtectionPolicy)` to `(context.Context, string, InformationProtectionPolicyName, InformationProtectionPolicy)`
    -	Function `InformationProtectionPoliciesClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, InformationProtectionPolicy)` to `(context.Context, string, InformationProtectionPolicyName, InformationProtectionPolicy)`
    -	Function `InformationProtectionPoliciesClient.GetPreparer` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, InformationProtectionPolicyName)`
    -	Function `InformationProtectionPoliciesClient.Get` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, InformationProtectionPolicyName)`
    -	Function `TasksClient.UpdateResourceGroupLevelTaskStatePreparer` parameter(s) have been changed from `(context.Context, string, string, string)` to `(context.Context, string, string, TaskUpdateActionType)`
    -	Function `TasksClient.UpdateResourceGroupLevelTaskState` parameter(s) have been changed from `(context.Context, string, string, string)` to `(context.Context, string, string, TaskUpdateActionType)`
    -	Function `TasksClient.UpdateSubscriptionLevelTaskStatePreparer` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, TaskUpdateActionType)`
    -	Function `TasksClient.UpdateSubscriptionLevelTaskState` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, TaskUpdateActionType)`
    azure-sdk-for-go - preview/security/mgmt/v1.0/security - v61.6.0
    -	Function `InformationProtectionPoliciesClient.CreateOrUpdatePreparer` parameter(s) have been changed from `(context.Context, string, string, InformationProtectionPolicy)` to `(context.Context, string, InformationProtectionPolicyName, InformationProtectionPolicy)`
    -	Function `InformationProtectionPoliciesClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, InformationProtectionPolicy)` to `(context.Context, string, InformationProtectionPolicyName, InformationProtectionPolicy)`
    -	Function `InformationProtectionPoliciesClient.GetPreparer` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, InformationProtectionPolicyName)`
    -	Function `InformationProtectionPoliciesClient.Get` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, InformationProtectionPolicyName)`
    -	Function `TasksClient.UpdateResourceGroupLevelTaskStatePreparer` parameter(s) have been changed from `(context.Context, string, string, string)` to `(context.Context, string, string, TaskUpdateActionType)`
    -	Function `TasksClient.UpdateResourceGroupLevelTaskState` parameter(s) have been changed from `(context.Context, string, string, string)` to `(context.Context, string, string, TaskUpdateActionType)`
    -	Function `TasksClient.UpdateSubscriptionLevelTaskStatePreparer` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, TaskUpdateActionType)`
    -	Function `TasksClient.UpdateSubscriptionLevelTaskState` parameter(s) have been changed from `(context.Context, string, string)` to `(context.Context, string, TaskUpdateActionType)`
    azure-sdk-for-js - track2_@azure/arm-security - 5.0.0-beta.1
    -	Operation InformationProtectionPolicies.createOrUpdate has a new signature
    -	Operation InformationProtectionPolicies.get has a new signature
    -	Operation Settings.get has a new signature
    -	Operation Settings.update has a new signature
    -	Operation Tasks.updateResourceGroupLevelTaskState has a new signature
    -	Operation Tasks.updateSubscriptionLevelTaskState has a new signature
    -	Removed Enum KnownEnum15
    -	Removed Enum KnownEnum17
    -	Removed Enum KnownEnum73
    +	Enum KnownAlertStatus no longer has value Active
    +	Enum KnownAlertStatus no longer has value Dismissed
    +	Enum KnownAlertStatus no longer has value Resolved
    +	Removed operation Alerts.updateResourceGroupLevelStateToActivate
    +	Removed operation Alerts.updateResourceGroupLevelStateToDismiss
    +	Removed operation Alerts.updateResourceGroupLevelStateToResolve
    +	Removed operation Alerts.updateSubscriptionLevelStateToActivate
    +	Removed operation Alerts.updateSubscriptionLevelStateToDismiss
    +	Removed operation Alerts.updateSubscriptionLevelStateToResolve
    ️🔄 azure-sdk-for-net inProgress [Detail]
    ️🔄 azure-sdk-for-go inProgress [Detail]
    ️️✔️ azure-sdk-for-go-track2 succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from 27656d45a23f3a1afa14931d16ad4e5cdb497fd5. 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
    • ️✔️armsecurity [View full logs]  [Preview SDK Changes] Breaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Const `AlertStatusResolved` has been removed
      info	[Changelog] - Const `AlertStatusDismissed` has been removed
      info	[Changelog] - Function `*AlertsClient.UpdateSubscriptionLevelStateToDismiss` has been removed
      info	[Changelog] - Function `*AlertsClient.UpdateResourceGroupLevelStateToActivate` has been removed
      info	[Changelog] - Function `*AlertsClient.UpdateResourceGroupLevelStateToDismiss` has been removed
      info	[Changelog] - Function `*AlertsClient.UpdateResourceGroupLevelStateToResolve` has been removed
      info	[Changelog] - Function `*AlertsClient.UpdateSubscriptionLevelStateToActivate` has been removed
      info	[Changelog] - Function `*AlertsClient.UpdateSubscriptionLevelStateToResolve` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateResourceGroupLevelStateToActivateOptions` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateResourceGroupLevelStateToActivateResponse` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateResourceGroupLevelStateToDismissOptions` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateResourceGroupLevelStateToDismissResponse` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateResourceGroupLevelStateToResolveOptions` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateResourceGroupLevelStateToResolveResponse` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateSubscriptionLevelStateToActivateOptions` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateSubscriptionLevelStateToActivateResponse` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateSubscriptionLevelStateToDismissOptions` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateSubscriptionLevelStateToDismissResponse` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateSubscriptionLevelStateToResolveOptions` has been removed
      info	[Changelog] - Struct `AlertsClientUpdateSubscriptionLevelStateToResolveResponse` has been removed
      info	[Changelog]
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog] - New const `AlertStatusClosed`
      info	[Changelog] - New const `AlertStatusNew`
      info	[Changelog] - New const `BundleTypeCosmosDbs`
      info	[Changelog] - New function `*AlertsClient.UpdateSubscriptionLevelStatusToActive(context.Context, string, *AlertsClientUpdateSubscriptionLevelStatusToActiveOptions) (AlertsClientUpdateSubscriptionLevelStatusToActiveResponse, error)`
      info	[Changelog] - New function `*AlertPropertiesSupportingEvidence.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `*AlertsClient.UpdateResourceGroupLevelStatusToActive(context.Context, string, string, *AlertsClientUpdateResourceGroupLevelStatusToActiveOptions) (AlertsClientUpdateResourceGroupLevelStatusToActiveResponse, error)`
      info	[Changelog] - New function `*AlertsClient.UpdateSubscriptionLevelStatusToClosed(context.Context, string, *AlertsClientUpdateSubscriptionLevelStatusToClosedOptions) (AlertsClientUpdateSubscriptionLevelStatusToClosedResponse, error)`
      info	[Changelog] - New function `*AlertsClient.UpdateResourceGroupLevelStatusToNew(context.Context, string, string, *AlertsClientUpdateResourceGroupLevelStatusToNewOptions) (AlertsClientUpdateResourceGroupLevelStatusToNewResponse, error)`
      info	[Changelog] - New function `*AlertsClient.UpdateSubscriptionLevelStatusToNew(context.Context, string, *AlertsClientUpdateSubscriptionLevelStatusToNewOptions) (AlertsClientUpdateSubscriptionLevelStatusToNewResponse, error)`
      info	[Changelog] - New function `AlertPropertiesSupportingEvidence.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*AlertsClient.UpdateResourceGroupLevelStatusToClosed(context.Context, string, string, *AlertsClientUpdateResourceGroupLevelStatusToClosedOptions) (AlertsClientUpdateResourceGroupLevelStatusToClosedResponse, error)`
      info	[Changelog] - New struct `AlertPropertiesSupportingEvidence`
      info	[Changelog] - New struct `AlertsClientUpdateResourceGroupLevelStatusToActiveOptions`
      info	[Changelog] - New struct `AlertsClientUpdateResourceGroupLevelStatusToActiveResponse`
      info	[Changelog] - New struct `AlertsClientUpdateResourceGroupLevelStatusToClosedOptions`
      info	[Changelog] - New struct `AlertsClientUpdateResourceGroupLevelStatusToClosedResponse`
      info	[Changelog] - New struct `AlertsClientUpdateResourceGroupLevelStatusToNewOptions`
      info	[Changelog] - New struct `AlertsClientUpdateResourceGroupLevelStatusToNewResponse`
      info	[Changelog] - New struct `AlertsClientUpdateSubscriptionLevelStatusToActiveOptions`
      info	[Changelog] - New struct `AlertsClientUpdateSubscriptionLevelStatusToActiveResponse`
      info	[Changelog] - New struct `AlertsClientUpdateSubscriptionLevelStatusToClosedOptions`
      info	[Changelog] - New struct `AlertsClientUpdateSubscriptionLevelStatusToClosedResponse`
      info	[Changelog] - New struct `AlertsClientUpdateSubscriptionLevelStatusToNewOptions`
      info	[Changelog] - New struct `AlertsClientUpdateSubscriptionLevelStatusToNewResponse`
      info	[Changelog] - New field `SupportingEvidence` in struct `AlertProperties`
      info	[Changelog] - New field `Techniques` in struct `AlertProperties`
      info	[Changelog] - New field `SubTechniques` in struct `AlertProperties`
      info	[Changelog]
      info	[Changelog] Total 32 breaking change(s), 38 additive change(s).
    ️🔄 azure-sdk-for-python-track2 inProgress [Detail]
    ️🔄 azure-sdk-for-js inProgress [Detail]
    ️🔄 azure-sdk-for-java inProgress [Detail]
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs] Generate from 27656d45a23f3a1afa14931d16ad4e5cdb497fd5. 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
      warn	No file changes detected after generation
    • ️✔️security [View full logs
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

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

    @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 Feb 16, 2022
    @openapi-workflow-bot
    Copy link

    Hi @yibirnba, 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.

    @nitsi
    Copy link
    Contributor

    nitsi commented Feb 16, 2022

    Hi @ruowan ,
    In regard to the following Cross-Version Breaking Changes -> 1011 - AddingResponseCode | The new version adds a response code '204'.New: Microsoft.Security/stable/2022-01-01/alerts.json#L566:11

    This changes and fix the swagger to what we implemented from the start, currently the SDK throws an exception when using this method.

    How can we get an exemption for this specific validation?

    @ruowan
    Copy link
    Member

    ruowan commented Feb 17, 2022

    Pls fix semantic error first.

    @yibirnba
    Copy link
    Contributor Author

    yibirnba commented Feb 17, 2022 via email

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-BreakingChange-Go CI-BreakingChange-JavaScript resource-manager
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    8 participants