Skip to content

swagger change for application gateway waf global config and exclusio…#3962

Closed
azhao155 wants to merge 2 commits intoAzure:masterfrom
azhao155:yzhao/ExclusionGlobalConfig
Closed

swagger change for application gateway waf global config and exclusio…#3962
azhao155 wants to merge 2 commits intoAzure:masterfrom
azhao155:yzhao/ExclusionGlobalConfig

Conversation

@azhao155
Copy link
Contributor

@azhao155 azhao155 commented Sep 20, 2018

…n list

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 Sep 20, 2018

Automation for azure-sdk-for-js

Nothing to generate for azure-sdk-for-js

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Sep 20, 2018

Automation for azure-sdk-for-ruby

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-ruby#1673

@AutorestCI
Copy link

AutorestCI commented Sep 20, 2018

Automation for azure-sdk-for-python

A PR has been created for you:
Azure/azure-sdk-for-python#3388

@AutorestCI
Copy link

AutorestCI commented Sep 20, 2018

Automation for azure-sdk-for-java

Nothing to generate for azure-sdk-for-java

@AutorestCI
Copy link

AutorestCI commented Sep 20, 2018

Automation for azure-sdk-for-go

A PR has been created for you:
Azure/azure-sdk-for-go#2770

@AutorestCI
Copy link

AutorestCI commented Sep 20, 2018

Automation for azure-sdk-for-node

A PR has been created for you:
Azure/azure-sdk-for-node#3649

@MikhailTryakhov
Copy link
Contributor

@azhao155 why do you push it to master?

@azhao155
Copy link
Contributor Author

@MikhailTryakhov the change is already in nrp api version 2018-08-01, so we want to add to the same version here, also, what branch do you think i need to push? This is for the ignite.

@asridharan
Copy link

@allanbomsft could you take a look at this as well?

Choose a reason for hiding this comment

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

This is hard to understand and not very helpful. Perhaps more something like this: "When matchVariable is a collection, serlector is used to specify which elements in the collection this exclusion applies to"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will change

Choose a reason for hiding this comment

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

This is hard to understand and not very helpful. Perhaps more something like this: "Operator used to control how matchVariable matches this exclusion entry". I don't fully remember the options here, so maybe I'm mistaking.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will change

"description": "The variable to be excluded."
},
"selectorMatchOperator": {
"type": "string",

Choose a reason for hiding this comment

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

How far down in the stack are these strings vs. enums? If they were enums here, I think the auto generated API's will have built in validation and auto-completion, so we should consider the tradeoffs of enums vs strings here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we have string defination on the nrp and also have validation there, so don't want to make the transfer in the nrp code. It will be too long for us.

"format": "int32",
"maximum": 128,
"exclusiveMaximum": false,
"minimum": 8,

Choose a reason for hiding this comment

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

Isn't minimum value of the maxRequeustBodySizeInKb supposed to 1KB?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it should be 8kb

"fileUploadLimitInMb": {
"type": "integer",
"format": "int32",
"maximum": 500,

Choose a reason for hiding this comment

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

For the fileUploadLimitInMb there seem to be two different values:
MaxFileUploadSizeInMbForMediumGw and MaxFileUploadSizeInMbForLargeGw, shouldn't we have these as different limits in the swagger as well?

@azhao155
Copy link
Contributor Author

@MikhailTryakhov should it be network-october-release

@sergey-shandar sergey-shandar added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Sep 20, 2018
"description": "Allows to disable rules within a rule group or an entire rule group."
},
"ApplicationGatewayFirewallExclusion": {
"properties": {

Choose a reason for hiding this comment

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

when i tested i noticed it was like this
"exclusions": [
{
"matchVariable": "RequestCookieNames",
"selectorMatchOperator": "Contains",
"selector": "hello"
}
]
There was no "properties" : {}. So is this correct?

@azhao155 azhao155 closed this Sep 21, 2018
@asridharan
Copy link

@azhao155 @sergey-shandar is this PR abandoned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Comments