Skip to content

Commit

Permalink
Exposing RoleAssignmentApproval APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamguptacal committed Dec 15, 2020
1 parent 88aae44 commit 46fbc01
Show file tree
Hide file tree
Showing 11 changed files with 950 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2018-05-01-preview",
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
"properties": {
"steps": [
{
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
"properties": {
"displayName": "Vice President Approval Step",
"assignedToMe": true,
"status": "InProgress",
"reviewedBy": null,
"reviewedDateTime": null,
"reviewResult": "NotReviewed",
"justification": ""
}
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2018-05-01-preview",
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
"stepId": "4135f961-be78-4005-8101-c72a5af307a2"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "4135f961-be78-4005-8101-c72a5af307a2",
"properties": {
"displayName": "Vice President Approval Step",
"assignedToMe": true,
"status": "InProgress",
"reviewedBy": null,
"reviewedDateTime": null,
"reviewResult": "NotReviewed",
"justification": ""
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2018-05-01-preview",
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "4135f961-be78-4005-8101-c72a5af307a2",
"properties": {
"displayName": "Vice President Approval Step",
"assignedToMe": true,
"status": "InProgress",
"reviewedBy": null,
"reviewedDateTime": null,
"reviewResult": "NotReviewed",
"justification": ""
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2018-05-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
"properties": {
"steps": [
{
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
"properties": {
"displayName": "Vice President Approval Step",
"assignedToMe": true,
"status": "InProgress",
"reviewedBy": null,
"reviewedDateTime": null,
"reviewResult": "NotReviewed",
"justification": ""
}
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"api-version": "2018-05-01-preview",
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
"stepId": "4135f961-be78-4005-8101-c72a5af307a2",
"properties": {},
"body": {
"properties": {
"reviewResult": "Approve",
"justification": "I trust this person."
}
}
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "4135f961-be78-4005-8101-c72a5af307a2",
"properties": {
"displayName": "Vice President Approval Step",
"status": "Completed",
"assignedToMe": true,
"reviewedBy": {
"principalType": "user",
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
"principalName": "Shubham Gupta",
"userPrincipalName": "shugup@microsoft.com"
},
"reviewedDateTime": "2018-08-03T21:02:30.667Z",
"reviewResult": "Approve",
"justification": "I trust this person"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2018-05-01-preview",
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
"scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
"properties": {
"steps": [
{
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
"properties": {
"displayName": "Vice President Approval Step",
"assignedToMe": true,
"status": "InProgress",
"reviewedBy": null,
"reviewedDateTime": null,
"reviewResult": "NotReviewed",
"justification": ""
}
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2018-05-01-preview",
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
"stepId": "4135f961-be78-4005-8101-c72a5af307a2",
"scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "4135f961-be78-4005-8101-c72a5af307a2",
"properties": {
"displayName": "Vice President Approval Step",
"assignedToMe": true,
"status": "InProgress",
"reviewedBy": null,
"reviewedDateTime": null,
"reviewResult": "NotReviewed",
"justification": ""
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"api-version": "2018-05-01-preview",
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
"scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "4135f961-be78-4005-8101-c72a5af307a2",
"properties": {
"displayName": "Vice President Approval Step",
"assignedToMe": true,
"status": "InProgress",
"reviewedBy": null,
"reviewedDateTime": null,
"reviewResult": "NotReviewed",
"justification": ""
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"api-version": "2018-05-01-preview",
"scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
"properties": {
"steps": [
{
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
"properties": {
"displayName": "Vice President Approval Step",
"assignedToMe": true,
"status": "InProgress",
"reviewedBy": null,
"reviewedDateTime": null,
"reviewResult": "NotReviewed",
"justification": ""
}
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2018-05-01-preview",
"approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661",
"stepId": "4135f961-be78-4005-8101-c72a5af307a2",
"scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea",
"properties": {},
"body": {
"properties": {
"reviewResult": "Approve",
"justification": "I trust this person."
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/steps/4135f961-be78-4005-8101-c72a5af307a2",
"type": "Microsoft.Authorization/roleAssignmentApprovals/steps",
"name": "4135f961-be78-4005-8101-c72a5af307a2",
"properties": {
"displayName": "Vice President Approval Step",
"status": "Completed",
"assignedToMe": true,
"reviewedBy": {
"principalType": "user",
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
"principalName": "Shubham Gupta",
"userPrincipalName": "shugup@microsoft.com"
},
"reviewedDateTime": "2018-08-03T21:02:30.667Z",
"reviewResult": "Approve",
"justification": "I trust this person"
}
}
}
}
}

0 comments on commit 46fbc01

Please sign in to comment.