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

[Synapse] - Add missing API version parameter #11751

Merged
merged 10 commits into from
Dec 1, 2020
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 @@ -22,7 +22,7 @@
"tags": [
"CheckPrincipalAccess"
],
"operationId": "CheckPrincipalAccess",
"operationId": "RoleAssignments_CheckPrincipalAccess",
"description": "Check if the given principalId has access to perform list of actions at a given scope.",
"x-ms-examples": {
"Check access": {
Expand Down Expand Up @@ -141,7 +141,7 @@
"description": "List of actions.",
"type": "array",
"items": {
"$ref": "#/definitions/Action"
"$ref": "#/definitions/RequiredAction"
}
},
"scope": {
Expand All @@ -150,7 +150,7 @@
}
}
},
"Action": {
"RequiredAction": {
"description": "Action Info",
"type": "object",
"required": [
Expand All @@ -170,9 +170,15 @@
},
"CheckPrincipalAccessResponse": {
"description": "Check access response details",
"type": "array",
"items": {
"$ref": "#/definitions/CheckAccessDecision"
"type": "object",
"properties": {
"AccessDecisions": {
"description": "Check access response details",

Choose a reason for hiding this comment

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

Are we duplicating the description here with line 172? Seems like they are two different things.

"type": "array",
"items": {
"$ref": "#/definitions/CheckAccessDecision"
}
}
}
},
"SubjectInfo": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,32 @@
},
"responses": {
"200": {
"body": [
{
"accessDecision": "Allowed || NotAllowed",
"actionId": "Action 1",
"roleAssignment": {
"id": "00000000-0000-0000-0000-000000000000",
"roleDefinitionId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000",
"scope": "workspaces/exampleWorkspace",
"principalType": "User || Group || ServicePrincipal"
}
},
{
"accessDecision": "Allowed || NotAllowed",
"actionId": "Action 1",
"roleAssignment": {
"id": "00000000-0000-0000-0000-000000000000",
"roleDefinitionId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000",
"scope": "workspaces/exampleWorkspace",
"principalType": "User || Group || ServicePrincipal"
"body": {
"accessDecisions": [
{
"accessDecision": "Allowed || NotAllowed",
"actionId": "Action 1",
"roleAssignment": {
"id": "00000000-0000-0000-0000-000000000000",
"roleDefinitionId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000",
"scope": "workspaces/exampleWorkspace",
"principalType": "User || Group || ServicePrincipal"
}
},
{
"accessDecision": "Allowed || NotAllowed",
"actionId": "Action 1",
"roleAssignment": {
"id": "00000000-0000-0000-0000-000000000000",
"roleDefinitionId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000",
"scope": "workspaces/exampleWorkspace",
"principalType": "User || Group || ServicePrincipal"
}
}
}
]
]
}
},
"default": {
"body": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@
},
{
"$ref": "#/parameters/RoleAssignmentIdParameter"
},
{
"$ref": "#/parameters/ScopeParameter"
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
"text/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/RoleDefinitionIdParameter"
}
Expand Down