Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Adding Vulnerability Assessment APIs on managed instance #3075

Closed
wants to merge 4 commits into from
Closed

Adding Vulnerability Assessment APIs on managed instance #3075

wants to merge 4 commits into from

Conversation

yaakoviyun
Copy link
Member

@yaakoviyun yaakoviyun commented May 15, 2018

Adding Vulnerability Assessment APIs on managed instance
@azuresdkci azuresdkci requested a review from jhendrixMSFT May 15, 2018 06:19
@yaakoviyun yaakoviyun changed the title Adding Vulnerability Assessment APIs on managed instance [DO NOT MERGE] Adding Vulnerability Assessment APIs on managed instance May 15, 2018
@azuresdkciprbot
Copy link

AutoRest linter results for SDK Related Validation Errors/Warnings

These errors are reported by the SDK team's validation tools, reachout to ADX Swagger Reviewers directly for any questions or concerns.

File: specification/sql/resource-manager/readme.md

⚠️0 new Warnings.(0 total)
0 new Errors.(0 total)

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@azuresdkciprbot
Copy link

AutoRest linter results for ARM Related Validation Errors/Warnings

These errors are reported by the ARM team's validation tools, reachout to ARM RP API Review directly for any questions or concerns.

File: specification/sql/resource-manager/readme.md

⚠️0 new Warnings.(0 total)
0 new Errors.(0 total)

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@jaredmoo
Copy link
Contributor

The linter validation failed with a few errors.

https://travis-ci.org/Azure/azure-rest-api-specs/jobs/379065871#L761

{
  "Channel": "fatal",
  "Text": "Error: '$.definitions.DatabaseVulnerabilityAssessmentScanExportProperties.description' has incompatible values (---\nProperties of the export operation’s result.\n, ---\nProperties of the export operation's result.\n)."
}
(node:6908) UnhandledPromiseRejectionWarning: Error: '$.definitions.DatabaseVulnerabilityAssessmentScanExportProperties.description' has incompatible values (---
Properties of the export operation’s result.
, ---
Properties of the export operation's result.
).

Very subtle difference but the first description has a character, second has ' character.

@AutorestCI
Copy link

AutorestCI commented May 20, 2018

Automation for azure-sdk-for-go

A PR has been created for you based on this PR content.

Once this PR will be merged, content will be added to your service PR:
Azure/azure-sdk-for-go#2049

@AutorestCI
Copy link

AutorestCI commented May 20, 2018

Automation for azure-sdk-for-node

A PR has been created for you based on this PR content.

Once this PR will be merged, content will be added to your service PR:
Azure/azure-sdk-for-node#2715

@AutorestCI
Copy link

AutorestCI commented May 20, 2018

Automation for azure-libraries-for-java

A PR has been created for you based on this PR content.

Once this PR will be merged, content will be added to your service PR:
AutorestCI/azure-libraries-for-java#9

@AutorestCI
Copy link

AutorestCI commented May 20, 2018

Automation for azure-sdk-for-python

Encountered a Subprocess error: (azure-sdk-for-python)

Command: ['/usr/local/bin/autorest', '/tmp/tmplhnevnnm/rest/specification/sql/resource-manager/readme.md', '--multiapi', '--python', '--python-mode=update', '--python-sdks-folder=/tmp/tmplhnevnnm/sdk', '--use=@microsoft.azure/autorest.python@~3.0', '--version=preview']
Finished with return code 1
and output:

AutoRest code generation utility [version: 2.0.4262; node: v7.10.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest

There is a new version of AutoRest available (2.0.4280).
 > You can install the newer version with with npm install -g autorest@latest

   Loading AutoRest core      '/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4280)
   Loading AutoRest extension '@microsoft.azure/autorest.python' (~3.0->3.0.51)
   Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.44->2.3.44)

ERROR (Fatal/DuplicateModelCollsion): Duplicated model name with non-identical definitions
    - file:///tmp/tmplhnevnnm/rest/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/managedDatabaseVulnerabilityAssessments.json:224:4 ($.definitions.DatabaseVulnerabilityAssessmentProperties)
    - file:///tmp/tmplhnevnnm/rest/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/databaseVulnerabilityAssessmentScans.json:280:4 ($.definitions.DatabaseVulnerabilityAssessmentProperties)
    - file:///tmp/tmplhnevnnm/rest/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/databaseVulnerabilityAssessments.json:212:4 ($.definitions.DatabaseVulnerabilityAssessmentProperties)
Process() cancelled due to exception : Cancellation requested.
  Cancellation requested.

@jaredmoo
Copy link
Contributor

Linter looks good now but there are also example validation errors in https://travis-ci.org/Azure/azure-rest-api-specs/jobs/381382464 , can you fix? :)

@jaredmoo
Copy link
Contributor

One last model warning: https://travis-ci.org/Azure/azure-rest-api-specs/jobs/381535630#L768

I am waiting to approve until the API is ready in production. @ravbhatnagar , please approve design.

@jhendrixMSFT
Copy link
Member

Are we still waiting on ARM review for this?

@yaakoviyun
Copy link
Member Author

@jhendrixMSFT - yes.

And the API is now exposed so we can merge it

@yaakoviyun yaakoviyun changed the title [DO NOT MERGE] Adding Vulnerability Assessment APIs on managed instance Adding Vulnerability Assessment APIs on managed instance Jun 7, 2018
@jhendrixMSFT
Copy link
Member

@yaakoviyun great I'll wrap up my review shortly. There are a few model validation errors, could you have a quick look here.

@jhendrixMSFT
Copy link
Member

Ping @yaakoviyun there is just one model validation failure, it's in an example. Not blocking but would be great to have this clean before merging.

@jaredmoo
Copy link
Contributor

Is there a possibility in the future of adding master baselines? I want to avoid having a similar breaking change in MI like we did in DB when master was added.

@yaakoviyun
Copy link
Member Author

The APIs are not yet ready for exposure.

This got a low priority tag now.
I'm closing the PR and will send a new one once we will fix the APIs.

@yaakoviyun yaakoviyun closed this Jun 17, 2018
@AutorestCI
Copy link

AutorestCI commented Jun 17, 2018

Automation for azure-sdk-for-ruby

Nothing to generate for azure-sdk-for-ruby

mccleanp pushed a commit that referenced this pull request Mar 23, 2022
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.

5 participants