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

[Hub Generated] Review request for Microsoft.ResourceGraph to add version preview/2020-04-01-preview #11070

Conversation

Yobretaw
Copy link
Member

@Yobretaw Yobretaw commented Oct 7, 2020

This PR

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.

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
  • 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

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

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Oct 7, 2020

Swagger Validation Report

️❌BreakingChange: 12 Errors, 0 Warnings failed [Detail] Only 10 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 '/providers/Microsoft.ResourceGraph/resourceChanges' removed or restructured?
New: azure-rest-api-specs/blob/3deaa2802fb8de4a74328fcd7db0cb7c41fce3e5/
Old: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json#L113:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/providers/Microsoft.ResourceGraph/resourceChangeDetails' removed or restructured?
New: azure-rest-api-specs/blob/3deaa2802fb8de4a74328fcd7db0cb7c41fce3e5/
Old: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json#L161:5
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'ResourceChangesRequestParameters' removed or renamed?
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json#L150:3
Old: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json#L234:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'ResourceChangeDetailsRequestParameters' removed or renamed?
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json#L150:3
Old: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json#L234:3
1011 - AddingResponseCode The new version adds a response code 'default'.
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json#L137:11
1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
New: Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json#L319:7
Old: Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json#L319:7
1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
New: Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json#L362:7
Old: Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json#L362:7
1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
New: Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json#L259:7
Old: Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json#L259:7
1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/graphquery.json#L308:7
Old: Microsoft.ResourceGraph/preview/2020-04-01-preview/graphquery.json#L308:7
1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/graphquery.json#L366:7
Old: Microsoft.ResourceGraph/preview/2020-04-01-preview/graphquery.json#L366:7
️⚠️LintDiff: 15 Warnings warning [Detail] Only 10 items are listed, please refer to log for more details.

Rule Message
⚠️ R1003 - ListInOperationName Since operation 'ResourceChanges' response has model definition 'array', it should be of the form '_list'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcechanges.json#L40
⚠️ R2018 - XmsEnumValidation The enum types should have x-ms-enum type extension set with appropriate options. Property name: resultFormat
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourceshistory.json#L118
⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: fetchPropertyChanges
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcechanges.json#L157
⚠️ R4000 - ParameterDescriptionRequired 'request' parameter lacks 'description' property. Consider adding a 'description' element. Accurate description is essential for maintaining reference documentation.
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourceshistory.json#L45
⚠️ R4021 - DescriptionAndTitleMissing 'ResourcesHistoryRequest' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourceshistory.json#L80
⚠️ R4021 - DescriptionAndTitleMissing 'subscriptions' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourceshistory.json#L83
⚠️ R4021 - DescriptionAndTitleMissing 'query' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourceshistory.json#L90
⚠️ R4021 - DescriptionAndTitleMissing 'options' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourceshistory.json#L93
⚠️ R4021 - DescriptionAndTitleMissing 'managementGroupId' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourceshistory.json#L96
⚠️ R4021 - DescriptionAndTitleMissing 'ResourcesHistoryRequestOptions' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
New: Microsoft.ResourceGraph/preview/2020-04-01-preview/resourceshistory.json#L101
️️✔️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.
Posted by Swagger Pipeline | How to fix these errors?

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Yobretaw Yobretaw requested a review from alexaloni October 7, 2020 21:10
@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 7, 2020

azure-sdk-for-go

⚠️ warning [Logs] [Expand Details]

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 7, 2020

azure-sdk-for-js

failed [Logs] [Expand Details]
  • Generate from cc35b3d with merge commit a458e0e1c1d48c40d2b16c17a69325c84b9783ac. SDK Automation 13.0.17.20200918.2
    [AutoRest] FATAL: swagger-document/compose - FAILED
    [AutoRest] FATAL: Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    [AutoRest] An error response from the API.
    [AutoRest] , ---
    [AutoRest] The resource management error response.
    [AutoRest] ).
    [AutoRest]   Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    [AutoRest] An error response from the API.
    [AutoRest] , ---
    [AutoRest] The resource management error response.
    [AutoRest] ).
    Failed to run autorest.
    Error: /z/node_modules/.bin/autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.typescript@4.4.1 --typescript-sdks-folder=/z/work/azure-sdk-for-js /z/work/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md FATAL: swagger-document/compose - FAILED
    FATAL: Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    An error response from the API.
    , ---
    The resource management error response.
    ).
      Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    An error response from the API.
    , ---
    The resource management error response.
    ).
    , {} 
    Failed to find any diff after autorest so no changed packages was found.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 7, 2020

Azure CLI Extension Generation

No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 7, 2020

azure-sdk-for-java

️✔️ succeeded [Logs] [Expand Details]

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 7, 2020

azure-sdk-for-python

failed [Logs] [Expand Details]
  • Generate from cc35b3d with merge commit a458e0e1c1d48c40d2b16c17a69325c84b9783ac. SDK Automation 13.0.17.20200918.2
    [AutoRest] FATAL: swagger-document/compose - FAILED
    [AutoRest] FATAL: Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    [AutoRest] An error response from the API.
    [AutoRest] , ---
    [AutoRest] The resource management error response.
    [AutoRest] ).
    [AutoRest]   Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    [AutoRest] An error response from the API.
    [AutoRest] , ---
    [AutoRest] The resource management error response.
    [AutoRest] ).
    Failed to run autorest.
    Error: /z/node_modules/.bin/autorest --version=V2 --use=@microsoft.azure/autorest.python@~4.0.71 --python --python-mode=update --multiapi --keep-version-file --no-async --python-sdks-folder=/z/work/azure-sdk-for-python/sdk /z/work/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md FATAL: swagger-document/compose - FAILED
    FATAL: Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    An error response from the API.
    , ---
    The resource management error response.
    ).
      Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    An error response from the API.
    , ---
    The resource management error response.
    ).
    , {} 
    Failed to find any diff after autorest so no changed packages was found.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 7, 2020

azure-sdk-for-python-track2

No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 7, 2020

azure-sdk-for-net

failed [Logs] [Expand Details]
  • Generate from cc35b3d with merge commit a458e0e1c1d48c40d2b16c17a69325c84b9783ac. SDK Automation 13.0.17.20200918.2
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] FATAL: swagger-document/compose - FAILED
    [AutoRest] FATAL: Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    [AutoRest] An error response from the API.
    [AutoRest] , ---
    [AutoRest] The resource management error response.
    [AutoRest] ).
    [AutoRest]   Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    [AutoRest] An error response from the API.
    [AutoRest] , ---
    [AutoRest] The resource management error response.
    [AutoRest] ).
    Failed to run autorest.
    Error: /z/node_modules/.bin/autorest --version=V2 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.csharp@2.3.82 --csharp-sdks-folder=/z/work/azure-sdk-for-net/sdk /z/work/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md realpath(): Permission denied
    realpath(): Permission denied
    realpath(): Permission denied
    realpath(): Permission denied
    realpath(): Permission denied
    realpath(): Permission denied
    FATAL: swagger-document/compose - FAILED
    FATAL: Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    An error response from the API.
    , ---
    The resource management error response.
    ).
      Error: '$.definitions.ErrorResponse.description' has incompatible values (---
    An error response from the API.
    , ---
    The resource management error response.
    ).
    , {} 
    Failed to find any diff after autorest so no changed packages was found.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 7, 2020

azure-resource-manager-schemas

failed [Logs] [Expand Details]
  • Generate from cc35b3d with merge commit a458e0e1c1d48c40d2b16c17a69325c84b9783ac. Schema Automation 13.0.17.20200918.2
    [resourcegraph][after_scripts|node] configure: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend
    [resourcegraph][after_scripts|node] configure: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend
    [resourcegraph][after_scripts|node] configure: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend
  • resourcegraph [View full logs
      [after_scripts|node] PostProcessor finished successfully.
      [after_scripts|node]   5775 passing (1m)
      AzureResourceSchema has no registered package commands.
      Fail to push branch sdkAutomation/resourcegraph to integration/master
      SDK Repository Package Error: Error: git push --set-upstream generation sdkAutomation/resourcegraph@11070 --force To https://github.com/AzureSDKAutomation/azure-resource-manager-schemas
       ! [remote rejected]   sdkAutomation/resourcegraph@11070 -> sdkAutomation/resourcegraph@11070 (refusing to allow a GitHub App to create or update workflow `.github/workflows/main.yml` without `workflows` permission)
      error: failed to push some refs to 'https://x-access-token:v1.761083d10921e6145a5c3e64e031896636e56c3a@github.com/AzureSDKAutomation/azure-resource-manager-schemas'
      , {}

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Oct 7, 2020

    Trenton Generation

    failed [Logs] [Expand Details]
    • Generate from cc35b3d with merge commit a458e0e1c1d48c40d2b16c17a69325c84b9783ac. Trenton Automation 13.0.17.20200918.2
      [AutoRest] WARNING (PreCheck/AllOfWhenYouMeantRef): Schema 'ResourceChangesRequestParameters-interval' is using an 'allOf' instead of a $ref. This creates a wasteful anonymous type when generating code.
      [AutoRest] WARNING (PreCheck/AllOfWhenYouMeantRef): Schema 'ResourceChangeData-beforeSnapshot' is using an 'allOf' instead of a $ref. This creates a wasteful anonymous type when generating code.
      [AutoRest] WARNING (PreCheck/AllOfWhenYouMeantRef): Schema 'ResourceChangeData-afterSnapshot' is using an 'allOf' instead of a $ref. This creates a wasteful anonymous type when generating code.
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'QueryRequestOptions' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'FacetRequestOptions' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'OperationListResult' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'Operation' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'Operation-display' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'ResourceChangeData-beforeSnapshot' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'ResourceChangeData-afterSnapshot' with an undefined type and 'allOf'/'anyOf'/'oneOf' is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'ErrorResponse' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'ErrorAdditionalInfo' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/CheckDuplicateSchemas): Checking for duplicate schemas, this could take a (long) while.  Run with --verbose for more detail.
      [AutoRest] WARNING (PreCheck/DuplicateSchema): Duplicate Schema named ErrorResponse -- title: "Error response." =>,properties.error.description: undefined => "The error object.",properties.error.$ref: undefined => "#/components/schemas/schemas:84",required: ["error"] => 
      [AutoRest] WARNING (Modeler/MissingType): The schema 'ResourceChangeList-$skipToken' has no type or format information whatsoever. Location:
      [AutoRest] WARNING (): 'cli.flatten.cli-flatten-set-enabled' is not set to true, skip flattenSetter
      [AutoRest] WARNING (PreNamer/DeduplicateName): Deduplicating schema name: 'error_response' -> 'error_responseAutoGenerated'
      [AutoRest] WARNING (): cli.auto-parameter-hidden is not true, skip visibility cleaner
      [AutoRest] ERROR: trenton metadata is not defined, please add readme.md file to the specification.
      Failed to run autorest.
      Error: /z/node_modules/.bin/autorest --trenton --use=https://trenton.blob.core.windows.net/trenton/autorest-trenton-latest.tgz --version=3.0.6198 --clear-output-folder=true --trenton-output-folder=/z/work/azure-sdk-for-trenton/azurerm/internal/services /z/work/azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md ERROR: trenton metadata is not defined, please add readme.md file to the specification.
      , {} 
      Failed to find any changed packages. Please check the changed file list.
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/client.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/enums.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/graphquery.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/models.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/operations.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/resourcegraphapi/interfaces.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/version.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/resourcegraph/mgmt/2019-04-01/resourcegraph/client.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/resourcegraph/mgmt/2019-04-01/resourcegraph/enums.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/resourcegraph/mgmt/2019-04-01/resourcegraph/models.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/resourcegraph/mgmt/2019-04-01/resourcegraph/operations.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/resourcegraph/mgmt/2019-04-01/resourcegraph/resourcegraphapi/interfaces.go
      /z/work/azure-sdk-for-trenton/vendor/github.com/Azure/azure-sdk-for-go/services/services/resourcegraph/mgmt/2019-04-01/resourcegraph/version.go

    @Yobretaw
    Copy link
    Member Author

    Yobretaw commented Oct 8, 2020

    @allenjzhang There are no new API added in this PR. We are just separating them into separate files.
    In the latest iteration I introduced a API that we have been exposing from our services but was not in the swagger. I've updated the PR descriptions to reflect this change as well. This is for meeting the Swagger Completeness KPIs.

    @allenjzhang allenjzhang added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Oct 11, 2020
    @@ -267,6 +267,16 @@
    "readOnly": true,
    "description": "Azure resource name. This is GUID value. The display name should be assigned within properties field."
    },
    "subscriptionId": {
    Copy link
    Member

    Choose a reason for hiding this comment

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

    I do not understand the change here. This "Resource" definition was more or less aligned with standard "TrackedResource" definition. But now you are adding subscription ID and resource group here, it is messing up this base definition. I would suggest this to go on to the specific query definition.

    Also in terms of the name GraphQueryResource, if feels more like XXXQuery rather a XXXResource. Anyway, I guess that boat has sailed.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Actually you are correct.. We are returning extra fields in the RP. Let me revert this change and fix our RP side.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Reverted changes for subscriptionId/resourceGroup. Also fixed a casing issue for etag field.

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    Copy link
    Member

    @allenjzhang allenjzhang left a comment

    Choose a reason for hiding this comment

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

    Can you indicate whether there are changes to resourcechanges.json OR a simple restructure of the swagger with no changes?

    I understand this is not new. So please treat the following comment as guidelines as we don't want to introduce breaking changes. But nevertheless, these guidelines should be aware of and strive to fix. Let's evaluate the impact on SDK breaking changes to see if we can make these changes. @akning-ms and @markcowl for FYI.

    "/providers/Microsoft.ResourceGraph/resourceChanges": {
    "post": {
    "description": "List changes to a resource for a given time interval.",
    "operationId": "ResourceChanges",
    Copy link
    Member

    Choose a reason for hiding this comment

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

    OperationId should be in Noun_Verb format. Suggest ResourceChanges_List. If you have/plan additional List at different scope either now or later, you could add a ByXXX suffix here. Such as ResourceChanges_ListByTenant as this is across all subs.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Thanks for the suggestions. For now we'd like to keep it as-is, but we'll definitely consider revisiting the operationId in future releases.

    },
    "paths": {
    "/providers/Microsoft.ResourceGraph/resourceChanges": {
    "post": {
    Copy link
    Member

    Choose a reason for hiding this comment

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

    Feels this can be supported with GET particularly you have $top, $skip which is typical of query string parameters. But I will leave ARM reviewer to chime in here.

    Copy link
    Member

    Choose a reason for hiding this comment

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

    Unfortunately no because GET doesn't allow a request body. (There's a "body" parameter below.)


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

    Copy link
    Member

    Choose a reason for hiding this comment

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

    Well technically speaking some of the parameters in the request body could probably be moved to query string, but I'm not going to insist on that given that the rest of the RP is modeled using POST.


    In reply to: 552319239 [](ancestors = 552319239,508220282)

    @Yobretaw
    Copy link
    Member Author

    Yobretaw commented Oct 26, 2020

    Can you indicate whether there are changes to resourcechanges.json OR a simple restructure of the swagger with no changes?

    This PR simply restructures the swagger without adding/removing/modifying any APIs or models (other than fixing the etag casing issue).
    In the latest iteration I introduced a API that we have been exposing from our services but was not in the swagger. I've updated the PR descriptions to reflect this change as well. This is for meeting the Swagger Completeness KPIs.

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Nov 18, 2020

    Swagger Generation Artifacts

    ️️✔️ azure-sdk-for-net succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 2032fd0. 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 --use=@microsoft.azure/autorest.csharp@2.3.82 --csharp-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/resourcegraph/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.ResourceGraph [View full logs]  [Release SDK Changes]
    ️️✔️ azure-sdk-for-python succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 2032fd0. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	npx n 12
      command	python3 -m venv venv
      command	pip install --upgrade setuptools wheel pip
      command	pip install pathlib jinja2 msrestazure
      command	autorest --version=V2 --use=@microsoft.azure/autorest.python@~4.0.71 --python --python-mode=update --multiapi --keep-version-file --no-async --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk ../azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md
    • ️✔️azure-mgmt-resourcegraph [View full logs]  [Release SDK Changes]
      cmderr	[buildConf] INFO:packaging_tools:Building template azure-mgmt-resourcegraph
      cmderr	[buildConf] INFO:packaging_tools.conf:Skipping default conf since the file exists
      cmderr	[buildConf] INFO:packaging_tools:Skipping CHANGELOG.md template, since a previous one was found
      cmderr	[buildConf] INFO:packaging_tools:Template done azure-mgmt-resourcegraph
      cmderr	[changelogSetup] WARNING: Skipping azure-nspkg as it is not installed.
      cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.resourcegraph
      cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.resourcegraph
      cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.resourcegraph
      cmderr	[changelogReport] INFO:__main__:Report written to sdk/resources/azure-mgmt-resourcegraph/code_reports/latest/report.json
      cmderr	[changelogReportLatest] INFO:__main__:Download versions of azure-mgmt-resourcegraph on PyPI
      cmderr	[changelogReportLatest] INFO:__main__:Got ['0.1.0', '1.0.0', '1.1.0', '2.0.0', '7.0.0b1', '7.0.0']
      cmderr	[changelogReportLatest] INFO:__main__:Only keep last PyPI version
      cmderr	[changelogReportLatest] INFO:__main__:Installing version 2.0.0 of azure-mgmt-resourcegraph in a venv
      cmderr	[changelogReportLatest] Cache entry deserialization failed, entry ignored
      cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.resourcegraph
      cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.resourcegraph
      cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.resourcegraph
      cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/resources/azure-mgmt-resourcegraph/code_reports/2.0.0/report.json
      cmdout	[Changelog] Size of delta 53.682% size of original (original: 13146 chars, delta: 7057 chars)
      cmdout	[Changelog] **Features**
      cmdout	[Changelog]   - Model QueryRequest has a new parameter management_group_id
      cmdout	[Changelog]   - Added operation ResourceGraphClientOperationsMixin.resources_history
      cmdout	[Changelog]   - Added operation ResourceGraphClientOperationsMixin.resource_change_details
      cmdout	[Changelog]   - Added operation ResourceGraphClientOperationsMixin.resource_changes
    ️️✔️ azure-resource-manager-schemas succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 2032fd0. Schema Automation 14.0.0
      warn	Skip initScript due to not configured
      command	npx n 12
      command	autorest --use=@autorest/azureresourceschema@3.0.92 --version=3.0.6351 --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/resourcegraph/resource-manager/readme.md
    • ️✔️resourcegraph [View full logs]  [Release Schema Changes]
      cmderr	[resource-manager] node-pre-gyp
      cmderr	[resource-manager] WARN Using request for node-pre-gyp https download
      cmderr	[resource-manager] npm WARN template-schema-validation-tools@1.0.0 No repository field.
      cmderr	[resource-manager] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
      cmderr	[resource-manager] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    ️⚠️ azure-sdk-for-java warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 2032fd0. 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-01-24 22:22:02 INFO [VERSION][Not Found] cannot find version for "com.azure.resourcemanager:azure-resourcemanager-resourcegraph"
      cmderr	[generate.py] 2021-01-24 22:22:02 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.1"
      cmderr	[generate.py] 2021-01-24 22:22:02 INFO autorest --version=3.0.6350 --use=@autorest/java@4.0.11 --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/resourcegraph/azure-resourcemanager-resourcegraph --java.namespace=com.azure.resourcemanager.resourcegraph   --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/resourcegraph/resource-manager/readme.md
      cmderr	[generate.py] 2021-01-24 22:22:45 INFO [CI][Success] Write to ci.yml
      cmderr	[generate.py] 2021-01-24 22:22:45 INFO [POM][Process] dealing with pom.xml
      cmderr	[generate.py] 2021-01-24 22:22:45 INFO [POM][Skip] pom already has module azure-resourcemanager-resourcegraph
      cmderr	[generate.py] 2021-01-24 22:22:45 INFO [POM][Success] Write to pom.xml
      cmderr	[generate.py] 2021-01-24 22:22:45 INFO [POM][Process] dealing with root pom
      cmderr	[generate.py] 2021-01-24 22:22:45 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-resourcegraph [View full logs]  [Release SDK Changes]
      cmderr	[Inst] 2021-01-24 22:25:38 DEBUG Got artifact_id: azure-resourcemanager-resourcegraph
      cmderr	[Inst] 2021-01-24 22:25:38 DEBUG Got artifact: pom.xml
      cmderr	[Inst] 2021-01-24 22:25:38 DEBUG Got artifact: azure-resourcemanager-resourcegraph-1.0.0-beta.1.jar
      cmderr	[Inst] 2021-01-24 22:25:38 DEBUG Match jar package: azure-resourcemanager-resourcegraph-1.0.0-beta.1.jar
      cmderr	[Inst] 2021-01-24 22:25:38 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/11070/azure-sdk-for-java/azure-resourcemanager-resourcegraph/azure-resourcemanager-resourcegraph-1.0.0-beta.1.jar\" -o azure-resourcemanager-resourcegraph-1.0.0-beta.1.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-resourcegraph -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-resourcegraph-1.0.0-beta.1.jar -Dpackaging=jar -DgeneratePom=true
      ```"}
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 2032fd0. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.typescript@4.4.4 --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md
    • ️✔️@azure/arm-resourcegraph [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/resourceGraphClient.js → ./dist/arm-resourcegraph.js...
      cmderr	[npmPack] created ./dist/arm-resourcegraph.js in 240ms
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 2032fd0. 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
    • ️✔️resourcegraph/mgmt/2019-04-01/resourcegraph [View full logs]  [Release SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️preview/resourcegraph/mgmt/2018-09-01/resourcegraph [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Field `ETag` of struct `GraphQueryUpdateParameters` has been removed
      info	[Changelog] - Field `ETag` of struct `GraphQueryResource` has been removed
      info	[Changelog] - Field `ETag` of struct `Resource` has been removed
      info	[Changelog]
      info	[Changelog] ### New Content
      info	[Changelog]
      info	[Changelog] - New field `Etag` in struct `Resource`
      info	[Changelog] - New field `Etag` in struct `GraphQueryResource`
      info	[Changelog] - New field `Etag` in struct `GraphQueryUpdateParameters`
      info	[Changelog]
      info	[Changelog] Total 3 breaking change(s), 3 additive change(s).
      info	[Changelog]
    ️️✔️[Staging] ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    Hi @Yobretaw, 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 think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ma/swaggerfeedback.

    @openapi-workflow-bot
    Copy link

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

    @openapi-workflow-bot
    Copy link

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

    Copy link
    Member

    @majastrz majastrz left a comment

    Choose a reason for hiding this comment

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

    Signed off from ARM side.

    @majastrz majastrz added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Jan 6, 2021
    @Yobretaw
    Copy link
    Member Author

    Yobretaw commented Jan 6, 2021

    @allenjzhang Both BreakingChange and ARM API Reviewer have signed off. I took a look into LintDiff but errors there are expected. Could you please take a look?

    @allenjzhang allenjzhang merged commit 2032fd0 into Azure:master Jan 24, 2021
    mkarmark pushed a commit to mkarmark/azure-rest-api-specs that referenced this pull request Jul 21, 2021
    …sion preview/2020-04-01-preview (Azure#11070)
    
    * Add missing subscriptionId and resourceGroup
    
    * Update 2020-04-01-preview
    
    * Split 2020-04-01-preview
    
    * Reverting changes for subscriptionId/resourceGroup; Fix casing for etag field.
    
    * Adding missing ResourcesHistory API to swagger
    
    * Fix API definition; Add an example
    
    * Fix multiple issues
    
    1) Rename PropertyChangeType to ChangeType; 2) Add resourceId ResourceChangeData; 3) Add snapshotId to ResourceSnapshotData; 4) Fix model name in resourceshistory.json
    
    * Fix linter/model issues
    
    * Fix etag casing more places
    
    * Fix ErrorResponse modeling in resourcechanges.json and resourcehistory.json
    
    * Add default response for Operations API
    
    * Revert renaming of PropertyChangeType
    
    * Add changeType to swagger
    
    * Revert "Add changeType to swagger"
    
    This reverts commit 5bfd7fb.
    
    * Fix swagger for resourcesHistory
    
    Co-authored-by: Youke Shen <yoshen@microsoft.com>
    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
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    5 participants