-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
fixing NRP networking resource properties #12570
Changes from 2 commits
e901671
2fb47de
1066717
3a82fbf
ef99f5a
646a144
a8c902d
46e3cf9
60d155c
ae320ea
f2dd616
9d0aa02
3a6b722
89dc38a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -437,6 +437,10 @@ | |
"readOnly": true, | ||
"$ref": "./network.json#/definitions/ProvisioningState", | ||
"description": "The provisioning state of the public IP prefix resource." | ||
}, | ||
"natGateway": { | ||
"$ref": "./network.json#/definitions/NatGateway", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the NatGateway is defined in netGateway.json not in network.json There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. resolved |
||
"description": "NatGateway of Public IP Prefix." | ||
} | ||
}, | ||
"description": "Public IP prefix properties." | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -444,6 +444,18 @@ | |
"readOnly": true, | ||
"$ref": "./network.json#/definitions/ProvisioningState", | ||
"description": "The provisioning state of the public IP address resource." | ||
}, | ||
"servicePublicIPAddress": { | ||
"$ref": "#/definitions/PublicIPAddress", | ||
"description": "The service public IP address of the public IP address resource." | ||
}, | ||
"natGateway": { | ||
"$ref": "./network.json#/definitions/NatGateway", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This reference model doesn't exist. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @raych1 Could you guide how can I mention the reference to NatGateway model here? what should be the correct syntax? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The syntax is correct and the issue is NatGateway doesn't exist in network.json under 2020-08-01 folder. |
||
"description": "The NatGateway for the Public IP address." | ||
}, | ||
"migrationPhase": { | ||
"type": "string", | ||
"description": "Migration phase of Public IP Address." | ||
} | ||
}, | ||
"description": "Public IP address properties." | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -437,6 +437,10 @@ | |
"readOnly": true, | ||
"$ref": "./network.json#/definitions/ProvisioningState", | ||
"description": "The provisioning state of the public IP prefix resource." | ||
}, | ||
"natGateway": { | ||
"$ref": "./network.json#/definitions/NatGateway", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the NatGateway is defined in netGateway.json not in network.json There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. resolved |
||
"description": "NatGateway of Public IP Prefix." | ||
} | ||
}, | ||
"description": "Public IP prefix properties." | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msyyc @jsntcy Please review this change. Will it impact CLI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guptas14, Could you share the background why you need change
error
toError
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
I need to make these changes to fix the Swagger incorrectness identified by S360 automation.
There are several resource properties being returned by Networking RP service, which were missing in Swagger, or which did not tell default values.
For Error property, the Swagger definition has 'e' where all api's return error with 'E' in json object. This CloudError is a generic object for all error properties being returned.
S360 identified issues link:
https://msazure.visualstudio.com/Swagger%20KPIs/_workitems/edit/8187877
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check this report, for instance, generated by S360:
https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=136094B8-8B18-40F7-A370-07AC2CCA81B0
Additional properties not allowed: Error
Json path: $.Error
#/definitions/CloudError
network.json#L83
@shenglol Could you please confirm here, regarding these Swagger incorrectness fixes required by NRP.