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

Update resource association swagger #18432

Merged
merged 25 commits into from
Apr 19, 2022
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"responses": {
"200": {},
"202": {},
Copy link
Member

Choose a reason for hiding this comment

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

It has to return Location header for long running 202 response.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added location header

"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"profile": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}"
},
"accessMode": "EnforceMode"
"accessMode": "Enforced",
"hasProvisioningIssues": "no"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"profile": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}"
},
"accessMode": "EnforceMode"
"accessMode": "Enforced",
"hasProvisioningIssues": "no"
}
},
{
Expand All @@ -37,7 +38,8 @@
"profile": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}"
},
"accessMode": "DryRunMode"
"accessMode": "Audit",
"hasProvisioningIssues": "no"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"profile": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}"
},
"accessMode": "EnforceMode"
"accessMode": "Enforced"
}
}
},
Expand All @@ -32,7 +32,8 @@
"profile": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}"
},
"accessMode": "EnforceMode"
"accessMode": "Enforced",
"hasProvisioningIssues": "no"
}
}
},
Expand All @@ -49,7 +50,8 @@
"profile": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}"
},
"accessMode": "EnforceMode"
"accessMode": "Enforced",
"hasProvisioningIssues": "no"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,9 @@
"200": {
"description": "Delete Succeed."
},
"202": {
"description": "Delete in progress."
},
"204": {
"description": "Request successful. The resource does not exist."
},
Expand Down Expand Up @@ -1094,16 +1097,19 @@
"accessMode": {
"type": "string",
"enum": [
"Unspecified",
"EnforceMode",
"LearningMode",
"DryRunMode"
"Learning",
"Enforced",
"Audit"
],
"x-ms-enum": {
"name": "AssociationAccessMode",
"modelAsString": true
},
"description": "Access mode on the association."
},
"hasProvisioningIssues": {
"type": "string",
"description": "Has provisioning issues"
}
}
},
Expand Down