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

[SRP] Support file share soft delete (restoreShare API) #7988

Closed
wants to merge 6 commits into from

Conversation

zfchen95
Copy link
Contributor

Latest improvements:

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

Contribution checklist:

  • I have reviewed the documentation for the workflow.
  • Validation tools were run on swagger spec(s) and have all been fixed in this PR.
  • The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

  • Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
  • adding/removing APIs.
  • adding/removing properties.
  • adding/removing API-version.
  • adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

  • If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
    Please follow the link to find more details on API review process.

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@zfchen95
Copy link
Contributor Author

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Dec 16, 2019

azure-sdk-for-java

failed [Logs] [Expand Details]
  • Generate from ace3f34 with merge commit 4234c5808272ca67a64de55af4981c71ea1118cc. SDK Automation 13.0.17.20200326.3
    [AutoRest] ERROR: Schema violation: Expected type array but found type boolean
    [AutoRest]     - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:550:10 ($.definitions.DeletedShare.properties.deletedShareVersion.required)
    [AutoRest] ERROR: Schema violation: Expected type array but found type boolean
    [AutoRest]     - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:545:10 ($.definitions.DeletedShare.properties.deletedShareName.required)
    [AutoRest] FATAL: swagger-document/individual/schema-validator - FAILED
    [AutoRest] FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
    [AutoRest] Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
    [AutoRest] Failure during batch task - {"tag":"package-2019-06"} -- false.
    Failed to run autorest.
    Error: /z/node_modules/.bin/autorest --version=2.0.4413 --java --verbose --multiapi --use=@microsoft.azure/autorest.java@2.1.95 --azure-libraries-for-java-folder=/z/work/azure-sdk-for-java /z/work/azure-rest-api-specs/specification/storage/resource-manager/readme.md ERROR: Schema violation: Expected type array but found type boolean
        - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:550:10 ($.definitions.DeletedShare.properties.deletedShareVersion.required)
    ERROR: Schema violation: Expected type array but found type boolean
        - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:545:10 ($.definitions.DeletedShare.properties.deletedShareName.required)
    FATAL: swagger-document/individual/schema-validator - FAILED
    FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
    Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
    Failure during batch task - {"tag":"package-2019-06"} -- false.
    , {} 

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Dec 16, 2019

azure-sdk-for-python

failed [Logs] [Expand Details]
  • Generate from ace3f34 with merge commit 4234c5808272ca67a64de55af4981c71ea1118cc. SDK Automation 13.0.17.20200326.3
    [AutoRest] ERROR: Schema violation: Expected type array but found type boolean
    [AutoRest]     - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:550:10 ($.definitions.DeletedShare.properties.deletedShareVersion.required)
    [AutoRest] ERROR: Schema violation: Expected type array but found type boolean
    [AutoRest]     - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:545:10 ($.definitions.DeletedShare.properties.deletedShareName.required)
    [AutoRest] FATAL: swagger-document/individual/schema-validator - FAILED
    [AutoRest] FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
    [AutoRest] Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
    [AutoRest] Failure during batch task - {"tag":"package-2019-06"} -- false.
    Failed to run autorest.
    Error: /z/node_modules/.bin/autorest --version=2.0.4413 --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/storage/resource-manager/readme.md ERROR: Schema violation: Expected type array but found type boolean
        - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:550:10 ($.definitions.DeletedShare.properties.deletedShareVersion.required)
    ERROR: Schema violation: Expected type array but found type boolean
        - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:545:10 ($.definitions.DeletedShare.properties.deletedShareName.required)
    FATAL: swagger-document/individual/schema-validator - FAILED
    FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
    Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
    Failure during batch task - {"tag":"package-2019-06"} -- false.
    , {} 

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Dec 16, 2019

azure-sdk-for-go

failed [Logs] [Expand Details]
  • Generate from ace3f34 with merge commit 4234c5808272ca67a64de55af4981c71ea1118cc. SDK Automation 13.0.17.20200326.3
    [AutoRest] ERROR: Schema violation: Expected type array but found type boolean
    [AutoRest]     - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:550:10 ($.definitions.DeletedShare.properties.deletedShareVersion.required)
    [AutoRest] ERROR: Schema violation: Expected type array but found type boolean
    [AutoRest]     - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:545:10 ($.definitions.DeletedShare.properties.deletedShareName.required)
    [AutoRest] FATAL: swagger-document/individual/schema-validator - FAILED
    [AutoRest] FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
    [AutoRest] Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
    [AutoRest] Failure during batch task - {"tag":"package-2019-06"} -- false.
    Failed to run autorest.
    Error: /z/node_modules/.bin/autorest --use=@microsoft.azure/autorest.go@~2.1.142 --go --verbose --multiapi --use-onever --preview-chk --version=2.0.4413 --go-sdk-folder=/z/work/src/github.com/Azure/azure-sdk-for-go /z/work/azure-rest-api-specs/specification/storage/resource-manager/readme.md ERROR: Schema violation: Expected type array but found type boolean
        - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:550:10 ($.definitions.DeletedShare.properties.deletedShareVersion.required)
    ERROR: Schema violation: Expected type array but found type boolean
        - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:545:10 ($.definitions.DeletedShare.properties.deletedShareName.required)
    FATAL: swagger-document/individual/schema-validator - FAILED
    FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
    Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
    Failure during batch task - {"tag":"package-2019-06"} -- false.
    , {} 

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Dec 16, 2019

azure-sdk-for-net

failed [Logs] [Expand Details]
  • Generate from ace3f34 with merge commit 4234c5808272ca67a64de55af4981c71ea1118cc. SDK Automation 13.0.17.20200326.3
    [AutoRest] ERROR: Schema violation: Expected type array but found type boolean
    [AutoRest]     - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:550:10 ($.definitions.DeletedShare.properties.deletedShareVersion.required)
    [AutoRest] ERROR: Schema violation: Expected type array but found type boolean
    [AutoRest]     - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:545:10 ($.definitions.DeletedShare.properties.deletedShareName.required)
    [AutoRest] FATAL: swagger-document/individual/schema-validator - FAILED
    [AutoRest] FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
    [AutoRest] Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
    Failed to run autorest.
    Error: /z/node_modules/.bin/autorest --version=2.0.4413 --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/storage/resource-manager/readme.md ERROR: Schema violation: Expected type array but found type boolean
        - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:550:10 ($.definitions.DeletedShare.properties.deletedShareVersion.required)
    ERROR: Schema violation: Expected type array but found type boolean
        - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:545:10 ($.definitions.DeletedShare.properties.deletedShareName.required)
    FATAL: swagger-document/individual/schema-validator - FAILED
    FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
    Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
    , {} 

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Dec 16, 2019

azure-sdk-for-js

failed [Logs] [Expand Details]
  • Generate from ace3f34 with merge commit 4234c5808272ca67a64de55af4981c71ea1118cc. SDK Automation 13.0.17.20200326.3
    [AutoRest] ERROR: Schema violation: Expected type array but found type boolean
    [AutoRest]     - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:550:10 ($.definitions.DeletedShare.properties.deletedShareVersion.required)
    [AutoRest] ERROR: Schema violation: Expected type array but found type boolean
    [AutoRest]     - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:545:10 ($.definitions.DeletedShare.properties.deletedShareName.required)
    [AutoRest] FATAL: swagger-document/individual/schema-validator - FAILED
    [AutoRest] FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
    [AutoRest] Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
    Failed to run autorest.
    Error: /z/node_modules/.bin/autorest --version=2.0.4413 --typescript --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.typescript@4.2.2 --typescript-sdks-folder=/z/work/azure-sdk-for-js /z/work/azure-rest-api-specs/specification/storage/resource-manager/readme.md ERROR: Schema violation: Expected type array but found type boolean
        - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:550:10 ($.definitions.DeletedShare.properties.deletedShareVersion.required)
    ERROR: Schema violation: Expected type array but found type boolean
        - file:///z/work/azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json:545:10 ($.definitions.DeletedShare.properties.deletedShareName.required)
    FATAL: swagger-document/individual/schema-validator - FAILED
    FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
    Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
    , {} 

This was referenced Dec 16, 2019
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jsntcy jsntcy requested review from Juliehzl and jsntcy December 17, 2019 01:38
@PhoenixHe-NV
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zfchen95 zfchen95 changed the title [SRP][Draft][DoNotMerge] Support file share soft delete (restoreShare API) [SRP][DoNotMerge] Support file share soft delete (restoreShare API) Jan 28, 2020
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -471,6 +538,19 @@
],
"description": "Properties of the file share, including Id, resource name, resource type, Etag."
},
"DeletedShare":{
"properties": {
"deletedShareName": {
Copy link
Member

Choose a reason for hiding this comment

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

Need to set deletedShareName and deletedShareVersion as required in "DeletedShare", or the current generated SDK from swagger will have the 2 parameters as optional when restore share, but they are actually required on server.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree with Wei. Currently the generated SDK doesn't make deletedShareName and deletedShareVersion required, which are not as expected.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done~

@zfchen95 zfchen95 changed the title [SRP][DoNotMerge] Support file share soft delete (restoreShare API) [SRP] Support file share soft delete (restoreShare API) Mar 31, 2020
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zfchen95 zfchen95 requested a review from blueww March 31, 2020 16:59
@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Mar 31, 2020

azure-cli-extensions

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

@zfchen95 zfchen95 mentioned this pull request Mar 31, 2020
5 tasks
@zfchen95 zfchen95 closed this Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants