-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Authorization to add ver…
…sion preview/2021-11-16-preview (#17200) * Adds base for updating Microsoft.Authorization from version preview/2021-07-01-preview to version 2021-11-16-preview * Updates readme * Updates API version in new specs and examples * Adding access review history definition models and methods * Semantic validation fixes * Fix linting issues * Uneeded pagable * More linter fixes * More linter issue fixes * Ran prettier * Ran prettier * Lint and model validation fixes * Adding nextlink * Fix broken SDK * Revert "Fix broken SDK" This reverts commit 040d220. * Make generating a downloadable uri a post instead of patch * Making generateDownloadUri it's own api * Adding delete history definition by Id * Added post per instance and added body to Put * Fixing validation errors * downloadUri readonly and only returned by POST
- Loading branch information
Showing
32 changed files
with
3,895 additions
and
1 deletion.
There are no files selected for viewing
2,725 changes: 2,725 additions & 0 deletions
2,725
...r/Microsoft.Authorization/preview/2021-11-16-preview/authorization-AccessReviewCalls.json
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...zation/preview/2021-11-16-preview/examples/AccessReviewInstanceAcceptRecommendations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"scheduleDefinitionId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"id": "d9b9e056-7004-470b-bf21-1635e98487da" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...Authorization/preview/2021-11-16-preview/examples/AccessReviewInstanceApplyDecisions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"id": "d9b9e056-7004-470b-bf21-1635e98487da" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...Authorization/preview/2021-11-16-preview/examples/AccessReviewInstanceResetDecisions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"id": "d9b9e056-7004-470b-bf21-1635e98487da" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
....Authorization/preview/2021-11-16-preview/examples/AccessReviewInstanceSendReminders.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"id": "d9b9e056-7004-470b-bf21-1635e98487da" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...uthorization/preview/2021-11-16-preview/examples/DeleteAccessReviewHistoryDefinition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"historyDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...thorization/preview/2021-11-16-preview/examples/DeleteAccessReviewScheduleDefinition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...oft.Authorization/preview/2021-11-16-preview/examples/GetAccessReviewDefaultSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewSettings/default", | ||
"type": "Microsoft.Authorization/accessReviewSettings", | ||
"name": "default", | ||
"properties": { | ||
"mailNotificationsEnabled": true, | ||
"reminderNotificationsEnabled": true, | ||
"justificationRequiredOnApproval": true, | ||
"recommendationsEnabled": true, | ||
"instanceDurationInDays": 30, | ||
"recurrence": { | ||
"range": { | ||
"type": "endDate", | ||
"numberOfOccurrences": 1, | ||
"startDate": "2018-08-03T21:02:30.667Z", | ||
"endDate": "2018-08-03T21:17:30.513Z" | ||
} | ||
}, | ||
"defaultDecisionEnabled": true, | ||
"defaultDecision": "Approve", | ||
"autoApplyDecisionsEnabled": true | ||
} | ||
} | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...t.Authorization/preview/2021-11-16-preview/examples/GetAccessReviewHistoryDefinition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "129a304b-4aea-4b86-a9f7-ba7e2b23737a", | ||
"historyDefinitionId": "44724910-d7a5-4c29-b28f-db73e717165a" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/44724910-d7a5-4c29-b28f-db73e717165a", | ||
"name": "44724910-d7a5-4c29-b28f-db73e717165a", | ||
"type": "Microsoft.Authorization/accessReviewHistoryDefinition", | ||
"properties": { | ||
"displayName": "Hello world name", | ||
"reviewHistoryPeriodStartDateTime": "2021-10-01T00:00:00-07:00", | ||
"reviewHistoryPeriodEndDateTime": "2021-12-01T00:00:00-08:00", | ||
"decisions": [ | ||
"Approve", | ||
"Deny", | ||
"NotReviewed", | ||
"DontKnow", | ||
"NotNotified" | ||
], | ||
"status": "Done", | ||
"createdDateTime": "2021-12-23T00:27:33.6905189+00:00", | ||
"createdBy": { | ||
"principalId": "673ad0d8-7b0e-4201-aaeb-74cdcbf22af9", | ||
"principalType": null, | ||
"principalName": "levi", | ||
"userPrincipalName": "levi" | ||
}, | ||
"scopes": [ | ||
{ | ||
"resourceId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a", | ||
"roleDefinitionId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/roleDefinitions", | ||
"principalType": "user", | ||
"assignmentState": null, | ||
"inactiveDuration": null, | ||
"expandNestedMemberships": true | ||
}, | ||
{ | ||
"resourceId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a", | ||
"roleDefinitionId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/roleDefinitions/1562cf42-00b9-457c-86ef-5702d4132904", | ||
"principalType": "user", | ||
"assignmentState": null, | ||
"inactiveDuration": null, | ||
"expandNestedMemberships": false | ||
} | ||
], | ||
"settings": { | ||
"range": { | ||
"type": "endDate", | ||
"numberOfOccurrences": 1, | ||
"startDate": "2021-12-01T00:00:00-08:00", | ||
"endDate": "2023-12-01T00:00:00-08:00" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...zation/preview/2021-11-16-preview/examples/GetAccessReviewHistoryDefinitionInstances.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "129a304b-4aea-4b86-a9f7-ba7e2b23737a", | ||
"historyDefinitionId": "44724910-d7a5-4c29-b28f-db73e717165a" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "44724910-d7a5-4c29-b28f-db73e717165a", | ||
"name": "44724910-d7a5-4c29-b28f-db73e717165a", | ||
"type": "Microsoft.Authorization/accessReviewHistoryInstance", | ||
"properties": { | ||
"reviewHistoryPeriodStartDateTime": "2021-10-01T00:00:00-07:00", | ||
"reviewHistoryPeriodEndDateTime": "2021-12-01T00:00:00-08:00", | ||
"displayName": "Hello world name", | ||
"status": "Requested", | ||
"runDateTime": "2021-12-23T00:27:33.6905189+00:00", | ||
"fulfilledDateTime": "2021-12-23T00:28:33.6905189+00:00", | ||
"expiration": "2022-01-22T00:28:33.6905189+00:00" | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
....Authorization/preview/2021-11-16-preview/examples/GetAccessReviewHistoryDefinitions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "129a304b-4aea-4b86-a9f7-ba7e2b23737a" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/44724910-d7a5-4c29-b28f-db73e717165a", | ||
"name": "44724910-d7a5-4c29-b28f-db73e717165a", | ||
"type": "Microsoft.Authorization/accessReviewHistoryDefinition", | ||
"properties": { | ||
"displayName": "Hello world name", | ||
"reviewHistoryPeriodStartDateTime": "2021-10-01T00:00:00-07:00", | ||
"reviewHistoryPeriodEndDateTime": "2021-12-01T00:00:00-08:00", | ||
"decisions": [ | ||
"Approve", | ||
"Deny", | ||
"NotReviewed", | ||
"DontKnow", | ||
"NotNotified" | ||
], | ||
"status": "Done", | ||
"createdDateTime": "2021-12-23T00:27:33.6905189+00:00", | ||
"createdBy": { | ||
"principalId": "673ad0d8-7b0e-4201-aaeb-74cdcbf22af9", | ||
"principalType": null, | ||
"principalName": "levi", | ||
"userPrincipalName": "levi" | ||
}, | ||
"scopes": [ | ||
{ | ||
"resourceId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a", | ||
"roleDefinitionId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/roleDefinitions", | ||
"principalType": "user", | ||
"assignmentState": null, | ||
"inactiveDuration": null, | ||
"expandNestedMemberships": true | ||
}, | ||
{ | ||
"resourceId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a", | ||
"roleDefinitionId": "/subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a/providers/Microsoft.Authorization/roleDefinitions/1562cf42-00b9-457c-86ef-5702d4132904", | ||
"principalType": "user", | ||
"assignmentState": null, | ||
"inactiveDuration": null, | ||
"expandNestedMemberships": false | ||
} | ||
], | ||
"settings": { | ||
"range": { | ||
"type": "endDate", | ||
"numberOfOccurrences": 1, | ||
"startDate": "2021-12-01T00:00:00-08:00", | ||
"endDate": "2023-12-01T00:00:00-08:00" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
.../Microsoft.Authorization/preview/2021-11-16-preview/examples/GetAccessReviewInstance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"id": "4135f961-be78-4005-8101-c72a5af307a2" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances", | ||
"name": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": { | ||
"status": "Applied", | ||
"startDateTime": "2018-08-03T21:02:30.667Z", | ||
"endDateTime": "2018-08-03T21:17:30.513Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ion/preview/2021-11-16-preview/examples/GetAccessReviewInstanceAssignedForMyApproval.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"scheduleDefinitionId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", | ||
"id": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"$filter": "assignedToMeToReview()" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/488a6d0e-0a63-4946-86e3-1f5bbc934661/instances/4135f961-be78-4005-8101-c72a5af307a2", | ||
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances", | ||
"name": "4135f961-be78-4005-8101-c72a5af307a2", | ||
"properties": { | ||
"status": "Applied", | ||
"startDateTime": "2018-08-03T21:02:30.667Z", | ||
"endDateTime": "2018-08-03T21:17:30.513Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...zation/preview/2021-11-16-preview/examples/GetAccessReviewInstanceContactedReviewers.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"scheduleDefinitionId": "265785a7-a81f-4201-8a18-bb0db95982b7", | ||
"id": "f25ed880-9c31-4101-bc57-825d8df3b58c" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/f8882fec-7d56-4e97-ad6d-5e3f4557971d/contactedReviewers/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances/contactedReviewers", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"userDisplayName": "Bob", | ||
"userPrincipalName": "bob@contoso.com", | ||
"createdDateTime": "2018-08-03T21:02:30.667Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...t.Authorization/preview/2021-11-16-preview/examples/GetAccessReviewInstanceDecisions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-16-preview", | ||
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"scheduleDefinitionId": "265785a7-a81f-4201-8a18-bb0db95982b7", | ||
"id": "f25ed880-9c31-4101-bc57-825d8df3b58c" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/f8882fec-7d56-4e97-ad6d-5e3f4557971d/decisions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances/decisions", | ||
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", | ||
"properties": { | ||
"reviewedBy": { | ||
"principalType": "user", | ||
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"principalName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
}, | ||
"reviewedDateTime": "2018-08-03T21:02:30.667Z", | ||
"decision": "Deny", | ||
"justification": "This person has left this team", | ||
"appliedBy": { | ||
"principalType": "user", | ||
"principalId": "36777fc8-4ec2-49ea-a56c-cec0bd47d83a", | ||
"principalName": "Amit Ghosh", | ||
"userPrincipalName": "amitgho@microsoft.com" | ||
}, | ||
"appliedDateTime": "2018-10-03T21:02:30.667Z", | ||
"applyResult": "Success", | ||
"recommendation": "Deny", | ||
"principal": { | ||
"type": "user", | ||
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"displayName": "Shubham Gupta", | ||
"userPrincipalName": "shugup@microsoft.com" | ||
}, | ||
"resource": { | ||
"type": "azureRole", | ||
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", | ||
"displayName": "Owner" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.