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

Fix minor issues for AFDX public preview #12798

Merged
merged 11 commits into from
Feb 9, 2021

Conversation

ShirleyJ27
Copy link
Contributor

@ShirleyJ27 ShirleyJ27 commented Feb 2, 2021

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

Changelog

Please ensure to add changelog with 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 you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
  3. When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
  4. If it's an update to existing version, please select SDKs of specific language and CLIs that require refresh after 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, no need to refresh 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

  • Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

    • Adding new API(s)
    • Adding a new API version
    • Adding a new service
  • Please 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 there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in stable version
  • Removing properties in stable version
  • Removing API version(s) in stable version
  • Updating API in stable version with Breaking Change Validation errors
  • Updating API(s) in preview over 1 year

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.

@openapi-workflow-bot
Copy link

Hi, @ShirleyJ27 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 Feb 2, 2021

    Swagger Validation Report

    ️❌BreakingChange: 21 Errors, 0 Warnings failed [Detail] Only 10 items are listed, please refer to log for more details.

    Rule Message
    1009 - RemovedRequiredParameter The required parameter 'ruleSet' was removed in the new version.
    Old: Microsoft.Cdn/stable/2020-09-01/afdx.json#L2168:11
    1019 - RemovedEnumValue The new version is removing enum value(s) 'clientRequestBandwidth, originRequestTraffic, originRequestBandwidth' from the old version.
    New: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3530:13
    Old: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3515:13
    1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
    New: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3437:11
    Old: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3430:11
    1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
    New: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3447:11
    Old: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3439:11
    1028 - ArrayCollectionFormatChanged The new version has a different array collection format than the previous one.
    New: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3345:11
    Old: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3354:11
    1028 - ArrayCollectionFormatChanged The new version has a different array collection format than the previous one.
    New: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3396:11
    Old: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3396:11
    1028 - ArrayCollectionFormatChanged The new version has a different array collection format than the previous one.
    New: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3417:11
    Old: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3412:11
    1028 - ArrayCollectionFormatChanged The new version has a different array collection format than the previous one.
    New: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3427:11
    Old: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3421:11
    1028 - ArrayCollectionFormatChanged The new version has a different array collection format than the previous one.
    New: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3437:11
    Old: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3430:11
    1028 - ArrayCollectionFormatChanged The new version has a different array collection format than the previous one.
    New: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3447:11
    Old: Microsoft.Cdn/stable/2020-09-01/afdx.json#L3439:11
    ️⚠️LintDiff: 1 Warnings warning [Detail]

    Rule Message
    ⚠️ R4021 - DescriptionAndTitleMissing 'systemData' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.Cdn/stable/2020-09-01/cdn.json#L5449
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️[Staging] Cross Version BreakingChange (Base on preview version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️[Staging] Cross Version BreakingChange (Base on stable version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️❌[Staging] SDK Track2 Validation: 2 Errors, 131 Warnings failed [Detail] Only 10 items are listed, please refer to log for more details.

    Rule Message
    PreCheck/DuplicateSchema "readme":"cdn/resource-manager/readme.md",
    "tag":"package-2020-09",
    "details":"Duplicate Schema named DeliveryRuleAction -- discriminator: "propertyName":"name" =>,
    properties: "name":"description":"The name of the action for the delivery rule.",
    "$ref":"#/components/schemas/DeliveryRuleAction" =>,
    required: ["name"] =>,
    type: undefined => "string",
    enum: undefined => ["CacheExpiration",
    "CacheKeyQueryString",
    "ModifyRequestHeader",
    "ModifyResponseHeader",
    "UrlRedirect",
    "UrlRewrite",
    "UrlSigning",
    "OriginGroupOverride"],
    x-ms-enum: undefined => "name":"DeliveryRuleAction",
    "modelAsString":true ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    AutorestCore/Exception "readme":"cdn/resource-manager/readme.md",
    "tag":"package-2020-09",
    "details":"Error: Plugin prechecker reported failure."
    ⚠️ PreCheck/SchemaMissingType "readme":"cdn/resource-manager/readme.md",
    "tag":"package-2020-09",
    "details":"The schema 'ProfileProperties' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"cdn/resource-manager/readme.md",
    "tag":"package-2020-09",
    "details":"The schema 'ProfileListResult' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"cdn/resource-manager/readme.md",
    "tag":"package-2020-09",
    "details":"The schema 'EndpointProperties' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"cdn/resource-manager/readme.md",
    "tag":"package-2020-09",
    "details":"The schema 'EndpointListResult' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"cdn/resource-manager/readme.md",
    "tag":"package-2020-09",
    "details":"The schema 'EndpointPropertiesUpdateParameters' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"cdn/resource-manager/readme.md",
    "tag":"package-2020-09",
    "details":"The schema 'DeliveryRuleCondition' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"cdn/resource-manager/readme.md",
    "tag":"package-2020-09",
    "details":"The schema 'DeliveryRuleRemoteAddressCondition' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"cdn/resource-manager/readme.md",
    "tag":"package-2020-09",
    "details":"The schema 'DeliveryRuleRequestMethodCondition' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 2, 2021

    Swagger Generation Artifacts

    ️⚠️ azure-sdk-for-java warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 7d69475. SDK Automation 14.0.0
      command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
      command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
      cmderr	[generate.py] 2021-02-09 00:43:23 INFO [VERSION][Not Found] cannot find version for "com.azure.resourcemanager:azure-resourcemanager-cdn-generated"
      cmderr	[generate.py] 2021-02-09 00:43:23 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.1"
      cmderr	[generate.py] 2021-02-09 00:43:23 INFO autorest --version=3.0.6350 --use=@autorest/[email protected] --java.azure-libraries-for-java-folder=/home/vsts/work/1/s/azure-sdk-for-java --java.output-folder=/home/vsts/work/1/s/azure-sdk-for-java/sdk/cdn/azure-resourcemanager-cdn-generated --java.namespace=com.azure.resourcemanager.cdn.generated   --java --pipeline.modelerfour.additional-checks=false --pipeline.modelerfour.lenient-model-deduplication=true --azure-arm --verbose --sdk-integration --fluent=lite --java.fluent=lite --java.license-header=MICROSOFT_MIT_SMALL ../azure-rest-api-specs/specification/cdn/resource-manager/readme.md
      cmderr	[generate.py] 2021-02-09 00:44:27 INFO [CI][Success] Write to ci.yml
      cmderr	[generate.py] 2021-02-09 00:44:27 INFO [POM][Process] dealing with pom.xml
      cmderr	[generate.py] 2021-02-09 00:44:27 INFO [POM][Skip] pom already has module azure-resourcemanager-cdn-generated
      cmderr	[generate.py] 2021-02-09 00:44:27 INFO [POM][Success] Write to pom.xml
      cmderr	[generate.py] 2021-02-09 00:44:27 INFO [POM][Process] dealing with root pom
      cmderr	[generate.py] 2021-02-09 00:44:27 INFO [POM][Success] Write to root pom
      cmderr	[generate.py] WARNING: An illegal reflective access operation has occurred
      cmderr	[generate.py] WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/home/vsts/.m2/repository/org/codehaus/groovy/groovy/3.0.0-beta-2/groovy-3.0.0-beta-2-indy.jar) to method java.util.Collections$UnmodifiableCollection.toString()
      cmderr	[generate.py] WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.ReflectionUtils
      cmderr	[generate.py] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      cmderr	[generate.py] WARNING: All illegal access operations will be denied in a future release
    • ️✔️azure-resourcemanager-cdn-generated [View full logs]  [Release SDK Changes]
      cmderr	[Inst] 2021-02-09 00:48:48 DEBUG Got artifact_id: azure-resourcemanager-cdn-generated
      cmderr	[Inst] 2021-02-09 00:48:48 DEBUG Got artifact: pom.xml
      cmderr	[Inst] 2021-02-09 00:48:48 DEBUG Got artifact: azure-resourcemanager-cdn-generated-1.0.0-beta.1.jar
      cmderr	[Inst] 2021-02-09 00:48:48 DEBUG Match jar package: azure-resourcemanager-cdn-generated-1.0.0-beta.1.jar
      cmderr	[Inst] 2021-02-09 00:48:48 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/12798/azure-sdk-for-java/azure-resourcemanager-cdn-generated/azure-resourcemanager-cdn-generated-1.0.0-beta.1.jar\" -o azure-resourcemanager-cdn-generated-1.0.0-beta.1.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-cdn-generated -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-cdn-generated-1.0.0-beta.1.jar -Dpackaging=jar -DgeneratePom=true
      ```"}
    ️⚠️ azure-sdk-for-python warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 7d69475. 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
    • ️✔️azure-mgmt-cdn [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Model ManagedRuleSetDefinition has a new parameter system_data
      info	[Changelog]   - Model Resource has a new parameter system_data
      info	[Changelog]
      info	[Changelog] **Breaking changes**
      info	[Changelog]
      info	[Changelog]   - Operation LogAnalyticsOperations.get_log_analytics_metrics has a new signature
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 7d69475. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION [email protected]/[email protected] --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/cdn/resource-manager/readme.md
    • ️✔️@azure/arm-cdn [View full logs]  [Release SDK Changes]
      cmderr	[npmPack] loaded rollup.config.js with warnings
      cmderr	[npmPack] (!) Unused external imports
      cmderr	[npmPack] default imported from external module 'rollup' but never used
      cmderr	[npmPack] ./esm/cdnManagementClient.js → ./dist/arm-cdn.js...
      cmderr	[npmPack] created ./dist/arm-cdn.js in 996ms
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 7d69475. SDK Automation 14.0.0
      command	sh ./initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	go run ./tools/generator/main.go ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️cdn/mgmt/2020-09-01/cdn [View full logs]  [Release SDK Changes] Breaking Change Detected
      Only show 14 items here, please refer to log for details.
      info	[Changelog] - New function `PossibleLogMetricValues() []LogMetric`
      info	[Changelog] - New function `PossibleWafRankingTypeValues() []WafRankingType`
      info	[Changelog] - New function `PossibleWafRuleTypeValues() []WafRuleType`
      info	[Changelog] - New function `PossibleWafMetricValues() []WafMetric`
      info	[Changelog] - New function `PossibleLogMetricsGroupByValues() []LogMetricsGroupBy`
      info	[Changelog] - New function `PossibleWafGranularityValues() []WafGranularity`
      info	[Changelog] - New function `PossibleLogMetricsGranularityValues() []LogMetricsGranularity`
      info	[Changelog] - New function `PossibleLogRankingMetricValues() []LogRankingMetric`
      info	[Changelog] - New function `PossibleWafActionValues() []WafAction`
      info	[Changelog] - New field `SystemData` in struct `Resource`
      info	[Changelog] - New field `SystemData` in struct `ManagedRuleSetDefinition`
      info	[Changelog]
      info	[Changelog] Total 10 breaking change(s), 59 additive change(s).
      info	[Changelog]
    • ️✔️cdn/mgmt/2020-04-15/cdn [View full logs]  [Release SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️cdn/mgmt/2019-06-15/cdn [View full logs]  [Release SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️cdn/mgmt/2019-04-15/cdn [View full logs]  [Release SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️cdn/mgmt/2017-10-12/cdn [View full logs]  [Release SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️cdn/mgmt/2017-04-02/cdn [View full logs]  [Release SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️cdn/mgmt/2016-10-02/cdn [View full logs]  [Release SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️cdn/mgmt/2016-04-02/cdn [View full logs]  [Release SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️cdn/mgmt/2015-06-01/cdn [View full logs]  [Release SDK Changes]
      info	[Changelog] No exported changes
    ️️✔️ azure-resource-manager-schemas succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 7d69475. Schema Automation 14.0.0
      warn	Skip initScript due to not configured
      command	npx n 12
      command	autorest --use=@autorest/[email protected] --version=3.0.6369 --azureresourceschema --multiapi --title=none --pass-thru:subset-reducer --azureresourceschema-folder=/home/vsts/work/1/s/azure-resource-manager-schemas/azure-resource-manager-schemas ../../azure-rest-api-specs/specification/cdn/resource-manager/readme.md
    • cmderr	[resource-manager] node-pre-gyp
      cmderr	[resource-manager] WARN Using request for node-pre-gyp https download
      cmderr	[resource-manager]  WARN [email protected] No repository field.
      cmderr	[resource-manager]  optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
      cmderr	[resource-manager] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    ️❌ azure-sdk-for-net failed [Detail]
    • Failed [Logs]Release - Generate from 7d69475. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	sudo apt-get install -y dotnet-sdk-5.0
      command	autorest --version=V2 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION [email protected]/[email protected] --csharp-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/cdn/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.Cdn [View full logs]  [Release SDK Changes]
      cmdout	[msbuild]      3>/home/vsts/work/1/s/azure-sdk-for-net/sdk/cdn/Microsoft.Azure.Management.Cdn/tests/ScenarioTests/AFDLogAnalyticsTest.cs(69,75): error CS7036: There is no argument given that corresponds to the required formal parameter 'customDomains' of 'LogAnalyticsOperationsExtensions.GetLogAnalyticsMetrics(ILogAnalyticsOperations, string, string, IList<string>, DateTime, DateTime, string, IList<string>, IList<string>, IList<string>, IList<string>, IList<string>)' [/home/vsts/work/1/s/azure-sdk-for-net/sdk/cdn/Microsoft.Azure.Management.Cdn/tests/Microsoft.Azure.Management.Cdn.Tests.csproj]
      cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/cdn/Microsoft.Azure.Management.Cdn/tests/ScenarioTests/AFDLogAnalyticsTest.cs(69,75): error CS7036: There is no argument given that corresponds to the required formal parameter 'customDomains' of 'LogAnalyticsOperationsExtensions.GetLogAnalyticsMetrics(ILogAnalyticsOperations, string, string, IList<string>, DateTime, DateTime, string, IList<string>, IList<string>, IList<string>, IList<string>, IList<string>)' [/home/vsts/work/1/s/azure-sdk-for-net/sdk/cdn/Microsoft.Azure.Management.Cdn/tests/Microsoft.Azure.Management.Cdn.Tests.csproj]
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-net]: dotnet
    ️🔄[Staging] ApiDocPreview inProgress [Detail]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    Hi @ShirleyJ27, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff.

    TaskHow to fixPrioritySupport (Microsoft alias)
    AvocadoFix-AvocadoHighruowan
    Semantic validationFix-SemanticValidation-ErrorHighraychen, jianyxi
    Model validationFix-ModelValidation-ErrorHighraychen,jianyxi
    LintDiffFix-LintDiffhighjianyxi, ruoxuan
    If you need further help, please feedback via swagger feedback."

    @openapi-workflow-bot
    Copy link

    Hi @ShirleyJ27, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review.
    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.
    If you want to know the production traffic statistic, please see ARM Traffic statistic.
    If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ms/swaggerfeedback.

    @ShirleyJ27 ShirleyJ27 changed the title move systemdata to the end Fix minor issues for AFDX public preview Feb 4, 2021
    @openapi-workflow-bot
    Copy link

    In the Window Period to fix mismatches between swagger and service, when PR is labelled with “FixS360”, breaking change can be approved by PR assignee; the Azure Breaking Change Board is no longer required to approve the PR. Please ensure to clarify what s360 action items to be solved, and @ mention PR assignee for awareness. Please check this wiki [Window to Fix Broken]( Window to Fix Broken - Overview (azure.com)) for more details.

    @@ -2165,15 +2165,6 @@
    "required": true,
    "type": "string"
    },
    {
    "name": "ruleSet",
    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    "name": "ruleSet" [](start = 12, length = 17)

    Is this intentional? a put call without a body? where are the properties being set now?

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Yes. There are no real properties on the rule set. It's just a container / parent for the rules.

    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    What's the api adding the rules?


    In reply to: 569876409 [](ancestors = 569876409)

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    It's right below it and it adds it to the rulesets, which looks like profiles/rulesets/rules

    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Just having a placeholder doesn't seem ok, what happens if the endpoint /rulesets/rules gets invoked first instead of this placeholder? Is better to model your endpoint in such a way that one call creates your rule set and inner rules. @chiragg4u for more insight.

    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    @ShirleyJ27 please find the RPC requirement @ https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md#put-resource
    Since you've confirmed in the checklist looks like you've missed this part from the documentation.
    Please note there are many other products assumes ARM Resource structure and generically process the resources. In case you don't follow any of the common property many such scenario will break.

    In this specific case it will also break the contract and will be impacting the SDK's.

    Can you provide the reasoning on why you are trying to remove this?

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    I'm not sure which part of it breaks the contract, unless a payload is required for PUT calls.
    The reasoning behind removing the PUT calls is because there are not actual properties on rulesets. Having it there would just require an empty payload from the customer, in the form of an empty bracket ("{}"), and that seems like a bad customer experience.

    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    You've only changed the object in PUT but you are still returning the object in GET; not sure how will you be able to return the object.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    We are returning the provisioning state so that signifies whether the call went through. It doesn't have other info on it because the object doesn't have any "real" attributes on it.

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    in your manifest you have logging rules setup on this type to log the request and response body. I don't know if that will break if you remove the requirement for a request body. So unless there is a S360 kpi requirement that requires this change I would recommend not making this change, and have the user specify an empty content "{}" explicitly


    In reply to: 571176681 [](ancestors = 571176681)

    @JeffreyRichter JeffreyRichter added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label Feb 8, 2021
    @chunyu3 chunyu3 merged commit 7d69475 into Azure:master Feb 9, 2021
    This was referenced Feb 9, 2021
    mkarmark pushed a commit to mkarmark/azure-rest-api-specs that referenced this pull request Jul 21, 2021
    * move systemdata to the end
    
    * update
    
    * revert unwanted change
    
    * ruleset & loganalytics changes
    
    * "collectionFormat": "multi"
    
    * fix model valiation
    
    * fix validation errors
    
    * Update readme.python.md
    
    * take 2
    
    * take 3
    
    * remove the  lenient-model-deduplication fix as it didnt help
    
    Co-authored-by: Shirley Jiang <[email protected]>
    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 CI-BreakingChange-Go CI-BreakingChange-Python FixS360
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    7 participants