-
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
added restore deleted apps and get list of deleted apps #3696
Changes from all commits
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 |
---|---|---|
|
@@ -148,6 +148,104 @@ | |
} | ||
} | ||
}, | ||
"/{tenantID}/deletedApplications/{objectId}/restore": { | ||
"post": { | ||
"tags": [ | ||
"deletedApplications" | ||
], | ||
"operationId": "DeletedApplications_Restore", | ||
"description": "Restores the deleted application in the directory.", | ||
"parameters": [ | ||
{ | ||
"name": "objectId", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "Application object ID." | ||
}, | ||
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. Missing the api version to get apiversion=1.6
|
||
{ | ||
"$ref": "#/parameters/tenantIDInPath" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "The application was restored successfully.", | ||
"schema": { | ||
"$ref": "#/definitions/Application" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "#/definitions/GraphError" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/{tenantID}/deletedApplications": { | ||
"get": { | ||
"tags": [ | ||
"deletedApplications" | ||
], | ||
"operationId": "DeletedApplications_Get", | ||
"description": "Gets a list of deleted applications in the directory.", | ||
"parameters": [ | ||
{ | ||
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. Missing the api version to get apiversion=1.6
|
||
"$ref": "#/parameters/tenantIDInPath" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "The applications were retrieved successfully.", | ||
"schema": { | ||
"$ref": "#/definitions/ApplicationListResult" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "#/definitions/GraphError" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/{tenantID}/deletedApplications/{applicationObjectId}": { | ||
"delete": { | ||
"tags": [ | ||
"Application" | ||
], | ||
"operationId": "Applications_HardDelete", | ||
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. If I understand correctly the purpose of this operation, the idea is to "purge" deletedApplications and remove for real the application without waiting 30 days. This means the app has to have been deleted before. |
||
"description": "Hard-delete an application.", | ||
"parameters": [ | ||
{ | ||
"name": "applicationObjectId", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "Application object ID." | ||
}, | ||
{ | ||
"$ref": "#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/tenantIDInPath" | ||
} | ||
], | ||
"responses": { | ||
"204": { | ||
"description": "No Content" | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "#/definitions/GraphError" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/{tenantID}/applications/{applicationObjectId}": { | ||
"delete": { | ||
"tags": [ | ||
|
@@ -346,7 +444,7 @@ | |
} | ||
} | ||
} | ||
}, | ||
}, | ||
"/{tenantID}/applications/{applicationObjectId}/keyCredentials": { | ||
"get": { | ||
"tags": [ | ||
|
@@ -831,7 +929,7 @@ | |
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/{tenantID}/groups/{objectId}/getMemberGroups": { | ||
"post": { | ||
|
@@ -2155,7 +2253,7 @@ | |
{ | ||
"$ref": "#/definitions/DirectoryObject" | ||
} | ||
], | ||
], | ||
"properties": { | ||
"appId": { | ||
"type": "string", | ||
|
@@ -2233,7 +2331,7 @@ | |
"type": "object" | ||
}, | ||
"description": "Request parameters for adding a owner to an application." | ||
}, | ||
}, | ||
"KeyCredentialListResult": { | ||
"type": "object", | ||
"properties": { | ||
|
@@ -2478,7 +2576,7 @@ | |
{ | ||
"$ref": "#/definitions/DirectoryObject" | ||
} | ||
], | ||
], | ||
"properties": { | ||
"displayName": { | ||
"type": "string", | ||
|
@@ -2617,7 +2715,7 @@ | |
"$ref": "#/definitions/DirectoryObject" | ||
} | ||
], | ||
"type": "object", | ||
"type": "object", | ||
"properties": { | ||
"displayName": { | ||
"type": "string", | ||
|
@@ -2818,7 +2916,7 @@ | |
"name": "UserType", | ||
"modelAsString": true | ||
} | ||
}, | ||
}, | ||
"accountEnabled": { | ||
"type": "boolean", | ||
"description": "Whether the account is enabled." | ||
|
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.
Looks like both of these operations are missing "parameters" definitions and causing semantic failure as seen here: https://travis-ci.org/Azure/azure-rest-api-specs/jobs/418930889#L586