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

New APIs for sensetivity lables managment in managed instance #3627

Merged
merged 8 commits into from
Aug 16, 2018
Merged

New APIs for sensetivity lables managment in managed instance #3627

merged 8 commits into from
Aug 16, 2018

Conversation

igsiroti
Copy link
Contributor

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@AutorestCI
Copy link

AutorestCI commented Aug 13, 2018

Automation for azure-sdk-for-python

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-python#2671

@AutorestCI
Copy link

AutorestCI commented Aug 13, 2018

Automation for azure-sdk-for-ruby

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-ruby#1562

@AutorestCI
Copy link

AutorestCI commented Aug 13, 2018

Automation for azure-sdk-for-java

Nothing to generate for azure-sdk-for-java

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Aug 13, 2018

Automation for azure-sdk-for-go

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-go#2470

@igsiroti
Copy link
Contributor Author

That PR includes management service APIs for sensitivity labels in managed instance.
Also it adds API to existing version (2017-03-01-preview) for listing recommended labels or current labels (not necessarily both)

@AutorestCI
Copy link

AutorestCI commented Aug 13, 2018

Automation for azure-sdk-for-node

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-node#3293

@igsiroti igsiroti changed the title [DO NOT MERGE] [DoNotMerge] New APIs for sensetivity lables managment in managed instance Aug 13, 2018
@hovsepm hovsepm changed the title [DoNotMerge] New APIs for sensetivity lables managment in managed instance New APIs for sensetivity lables managment in managed instance Aug 13, 2018
@hovsepm hovsepm added the DoNotMerge <valid label in PR review process> use to hold merge after approval label Aug 13, 2018
@hovsepm
Copy link
Contributor

hovsepm commented Aug 13, 2018

@igsiroti please ping me directly when this PR will be ready to review/merge.

@hovsepm hovsepm removed the DoNotMerge <valid label in PR review process> use to hold merge after approval label Aug 13, 2018
@hovsepm
Copy link
Contributor

hovsepm commented Aug 13, 2018

Please fix Model Validator error:

Validating "examples" and "x-ms-examples" in  specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/sensitivityLabels.json:
Validating "examples" and "x-ms-examples" in  specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/sensitivityLabels.json:
 error: 
operationId: SensitivityLabels_ListByDatabase
scenario: >-
  Gets the current and recommended sensitivity labels of a given database in a
  managed instance
source: request
responseCode: ALL
severity: 0
errorCode: REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND
errorDetails:
  code: REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND
  id: OAV105
  message: >-
    In operation "SensitivityLabels_ListByDatabase", parameter
    sensitivityLabelSource is required in the swagger spec but is not present in
    the provided example parameter values.
  innerErrors: !<tag:yaml.org,2002:js/undefined> ''

"type": "string",
"x-ms-parameter-location": "method"
},
"ServerNameParameter": {
Copy link
Contributor

Choose a reason for hiding this comment

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

ServerNameParameter [](start = 5, length = 19)

this parameter everywhere was changed to managedInstanceName. There is nor reason to have it here anymore. I'd advice to move ManagedInstanceName definition here and then reference it everywhere in the swagger instead of defining it again and again in each operation parameter list.

Copy link
Contributor

@hovsepm hovsepm left a comment

Choose a reason for hiding this comment

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

Please address review comments.

@hovsepm hovsepm merged commit 8bc0d9f into Azure:master Aug 16, 2018
@jaredmoo
Copy link
Contributor

Why was I not included on this review?

Was ManagedDatabaseSensitivityLabels considered for operation name?

@igsiroti
Copy link
Contributor Author

Hi, sorry my bad. Just saw your OneNote (I'm new to the team)
I followed the way it was done in ManagedInstanceVulnerabilityAssessments - wanted to be consistent. Want me to rename?

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