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 errors in ddosCustomPolicy.json #5008

Merged
merged 1 commit into from
Jan 9, 2019

Conversation

anton-evseev
Copy link
Contributor

@anton-evseev anton-evseev commented Jan 9, 2019

When ddosCustomPolicy.json was added to Network's 2018-11-01 it wasn't included in readme.md. Because of that CI didn't catch that those specs contain errors and break Autorest generation.
This PR:

  • Adds ddosCustomPolicy.json to readme.md
  • Renames enums that used description as name
  • Removes duplicate parameters (they are already inherited from allOf and duplicate "tags" break Autorest generation).
  • Fixes examples

It seems that location was missing from specs. If you try to PUT resource using ARMClient without location you would get an error LocationRequired

 C:\Users\v-anevse> ARMClient.exe put "/subscriptions/xxx/resourceGroups/test-evg/providers/Microsoft.Network/ddosCustomPolicies/policyTest?api-version=2018-11-01"  '{\"properties\":{\"protocolCustomSettings\":[{\"protocol\":\"Tcp\"}]}}'
{
  "error": {
    "code": "LocationRequired",
    "message": "The location property is required for this definition."
  }
}

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.

@openapi-portal-comment
Copy link

If you're a MSFT employee, click this link
to view this PR's validation status on our new OpenAPI Hub spec management tool.

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Jan 9, 2019

Automation for azure-sdk-for-js

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

@AutorestCI
Copy link

AutorestCI commented Jan 9, 2019

Automation for azure-sdk-for-ruby

Nothing to generate for azure-sdk-for-ruby

@AutorestCI
Copy link

AutorestCI commented Jan 9, 2019

Automation for azure-sdk-for-python

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

@AutorestCI
Copy link

AutorestCI commented Jan 9, 2019

Automation for azure-sdk-for-go

Nothing to generate for azure-sdk-for-go

@AutorestCI
Copy link

AutorestCI commented Jan 9, 2019

Automation for azure-sdk-for-node

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

@AutorestCI
Copy link

AutorestCI commented Jan 9, 2019

Automation for azure-sdk-for-java

Nothing to generate for azure-sdk-for-java

@anton-evseev
Copy link
Contributor Author

I also found throught ARMClient that this resource is available when using API version 2018-10-01. @MikhailTryakhov could you please take a look? I think we need to copy those specs to 2018-10-01

@anton-evseev anton-evseev changed the title Fix errors with ddosCustomPolicy.json Fix errors in ddosCustomPolicy.json Jan 9, 2019
@MikhailTryakhov
Copy link
Contributor

@jianghaolu please review, it's important fix

Copy link
Contributor

@MikhailTryakhov MikhailTryakhov left a comment

Choose a reason for hiding this comment

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

LGTM. very urgent

@jianghaolu jianghaolu merged commit c9269db into Azure:master Jan 9, 2019
@anton-evseev anton-evseev deleted the ddos-custom-policy branch January 10, 2019 05:30
anton-evseev added a commit to anton-evseev/azure-rest-api-specs that referenced this pull request Jan 10, 2019
sergey-shandar pushed a commit that referenced this pull request Jan 18, 2019
* Add ddosCustomPolicy.json to readme.md and fix spec errors (#5008)

* Update ddosCustomPolicy.json in 2018-12-01
TalluriAnusha pushed a commit to AsrOneSdk/azure-rest-api-specs that referenced this pull request Feb 6, 2019
sergey-shandar pushed a commit that referenced this pull request Feb 13, 2019
* Adds base for updating Microsoft.Network from version stable/2018-11-01 to version 2018-12-01

* Updates readme

* Updates API version in new specs and examples

* fixing invalid paths in frontdoor (#4991)

* add max bound for application gateway autoscale config (#4996)

* fixing location in network samples (#4992)

* Fix duplicate path in old Network API versions (#5003)

* missing location in route tables (#5024)

* removed confusing readonly parameters from example (#5022)

* Fix errors in ddosCustomPolicy.json (#5013)

* Add ddosCustomPolicy.json to readme.md and fix spec errors (#5008)

* Update ddosCustomPolicy.json in 2018-12-01

* Pick AppGw changes from 2018-11-01 (#5044)

* Adding the structure of ruleSequence and conditions in rewriteRuleSets under applicationGatewayProperties (#5009)

* Added Prepare action for subnet (#5058)

* Added Prepare action documentation

* Took carte of the errors from the validation tool

* Error fixes from validation tool

* Adding a typo and a missing property

* updated the destination address description to also include service tags (#5112)

* Update for Get Application Gateway Server Variables APIs (#5113)

* Changes in the existing APIs result format.

* adding proxyresource to server variables APIs result

* Updating applicationgateway.json

* Update applicationGateway.json

* add Go SDK build for 2018-12-01

* changes to pythonand ruby readme files

* Update readme.ruby.md

* adding jave readme changes

* Minor Fix in spacing

* Creating a new tag for 2018-12 version

* Update readme.python.md

* Update applicationGateway.json

* fixing examples

* examples

* Fixed issue: #4721 (#5087)

* Fixed issue: #4721

* Reverted fixes in networkWatcher in previous versions. Left only fix in 2018-12-01

* Threat Intel changes for Azure Firewall (#5143)

* Threat Intel changes for Azure Firewall

* Move the property to the end of the list

* Fix typos in Network 2018-12-01
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