Skip to content

Commit

Permalink
chore: jsonfmt azureactivedirectory (#6301)
Browse files Browse the repository at this point in the history
Ran `jsonfmt -w "specification/azureactivedirectory/**/*.json"`
  • Loading branch information
nschonni authored and jhendrixMSFT committed Jun 17, 2019
1 parent c9b3010 commit 56bd1de
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 112 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@
}
},
"host": "management.azure.com",
"schemes": ["https"],
"consumes": ["application/json"],
"produces": ["application/json"],
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": ["user_impersonation"]
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
Expand All @@ -31,10 +39,14 @@
"paths": {
"/providers/microsoft.aadiam/operations": {
"get": {
"tags": ["Operations"],
"tags": [
"Operations"
],
"operationId": "Operations_List",
"x-ms-examples": {
"Gets the operations": { "$ref": "./examples/listOperations.json" }
"Gets the operations": {
"$ref": "./examples/listOperations.json"
}
},
"description": "Operation to return the list of available operations.",
"parameters": [
Expand All @@ -60,7 +72,9 @@
},
"/providers/microsoft.aadiam/diagnosticSettings": {
"get": {
"tags": ["DiagnosticSettings"],
"tags": [
"DiagnosticSettings"
],
"operationId": "DiagnosticSettings_List",
"description": "Gets the active diagnostic settings list for AadIam.",
"parameters": [
Expand All @@ -86,12 +100,14 @@
"Gets the diagnostic settings": {
"$ref": "./examples/listDiagnosticSettings.json"
}
}
}
}
},
"/providers/microsoft.aadiam/diagnosticSettings/{name}": {
"get": {
"tags": ["DiagnosticSettings"],
"tags": [
"DiagnosticSettings"
],
"operationId": "DiagnosticSettings_Get",
"description": "Gets the active diagnostic setting for AadIam.",
"parameters": [
Expand Down Expand Up @@ -120,13 +136,17 @@
"Gets the diagnostic setting": {
"$ref": "./examples/getDiagnosticSetting.json"
}
}
}
},
"put": {
"tags": ["DiagnosticSettings"],
"tags": [
"DiagnosticSettings"
],
"operationId": "DiagnosticSettings_CreateOrUpdate",
"x-ms-examples": {
"BatchAccountDelete": { "$ref": "./examples/createOrUpdateDiagnosticSetting.json" }
"BatchAccountDelete": {
"$ref": "./examples/createOrUpdateDiagnosticSetting.json"
}
},
"description": "Creates or updates diagnostic settings for AadIam.",
"parameters": [
Expand Down Expand Up @@ -162,7 +182,9 @@
}
},
"delete": {
"tags": ["DiagnosticSettings"],
"tags": [
"DiagnosticSettings"
],
"operationId": "DiagnosticSettings_Delete",
"description": "Deletes existing diagnostic setting for AadIam.",
"parameters": [
Expand Down Expand Up @@ -191,12 +213,14 @@
"Deletes the diagnostic setting": {
"$ref": "./examples/deleteDiagnosticSetting.json"
}
}
}
}
},
"/providers/microsoft.aadiam/diagnosticSettingsCategories": {
"get": {
"tags": ["DiagnosticSettingsCategories"],
"tags": [
"DiagnosticSettingsCategories"
],
"operationId": "DiagnosticSettingsCategory_List",
"description": "Lists the diagnostic settings categories for AadIam.",
"parameters": [
Expand All @@ -222,7 +246,7 @@
"Gets the diagnostic setting categories": {
"$ref": "./examples/listDiagnosticSettingsCategories.json"
}
}
}
}
}
},
Expand Down Expand Up @@ -261,18 +285,24 @@
"description": "The number of days for the retention in days. A value of 0 will retain the events indefinitely."
}
},
"required": [ "enabled", "days" ],
"required": [
"enabled",
"days"
],
"description": "Specifies the retention policy for the log."
},
"LogSettings": {
"properties": {
"category": {
"enum": ["AuditLogs", "SignInLogs"],
"enum": [
"AuditLogs",
"SignInLogs"
],
"type": "string",
"x-ms-enum": {
"name": "category",
"modelAsString": true
},
},
"description": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation."
},
"enabled": {
Expand All @@ -284,14 +314,16 @@
"description": "The retention policy for this log."
}
},
"required": [ "enabled" ],
"required": [
"enabled"
],
"description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log."
},
"DiagnosticSettings": {
"properties": {
"storageAccountId": {
"type": "string",
"description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
"description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
},
"serviceBusRuleId": {
"type": "string",
Expand Down Expand Up @@ -448,7 +480,9 @@
"DiagnosticSettingsCategory": {
"properties": {
"categoryType": {
"enum": ["Logs"],
"enum": [
"Logs"
],
"type": "string",
"x-ms-enum": {
"name": "categoryType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
"name": "mysetting",
"api-version": "2017-04-01",
"parameters": {
"id":"providers/microsoft.aadiam/diagnosticSettings/mysetting",
"name":"mysetting",
"type":"",
"id": "providers/microsoft.aadiam/diagnosticSettings/mysetting",
"name": "mysetting",
"type": "",
"properties": {
"storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
"workspaceId":"",
"eventHubAuthorizationRuleId":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
"storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
"workspaceId": "",
"eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
"eventHubName": "myeventhub",
"logs": [
{
"category":"AuditLogs",
"enabled":true,
"category": "AuditLogs",
"enabled": true,
"retentionPolicy": {
"enabled":false,
"days":0
"enabled": false,
"days": 0
}
}
]
Expand All @@ -28,26 +28,26 @@
"200": {
"headers": {},
"body": {
"id":"providers/microsoft.aadiam/diagnosticSettings/mysetting",
"type":"",
"name":"mysetting",
"id": "providers/microsoft.aadiam/diagnosticSettings/mysetting",
"type": "",
"name": "mysetting",
"properties": {
"storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
"workspaceId":"",
"eventHubAuthorizationRuleId":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
"storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
"workspaceId": "",
"eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
"eventHubName": "myeventhub",
"logs": [
{
"category":"AuditLogs",
"enabled":true,
"category": "AuditLogs",
"enabled": true,
"retentionPolicy": {
"enabled":false,
"days":0
"enabled": false,
"days": 0
}
}
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"parameters" : {
"parameters": {
"name": "mysetting",
"api-version" : "2017-04-01"
"api-version": "2017-04-01"
},
"responses": {
"200": {
"headers": {},
"body": null
},
"204": {
"headers": {},
"body": null
}
"responses": {
"200": {
"headers": {},
"body": null
},
"204": {
"headers": {},
"body": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
{
"parameters" : {
"parameters": {
"name": "mysetting",
"api-version" : "2017-04-01"
"api-version": "2017-04-01"
},
"responses" : {
"200" : {
"headers" : {},
"body" : {
"id" : "providers/microsoft.aadiam/diagnosticSettings/mysetting",
"type" : "",
"name" : "mysetting",
"properties" : {
"storageAccountId" : "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
"workspaceId" : "",
"eventHubAuthorizationRuleId" : "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
"logs" : [{
"category" : "SignInLogs",
"enabled" : true,
"retentionPolicy" : {
"enabled" : false,
"days" : 0
"responses": {
"200": {
"headers": {},
"body": {
"id": "providers/microsoft.aadiam/diagnosticSettings/mysetting",
"type": "",
"name": "mysetting",
"properties": {
"storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
"workspaceId": "",
"eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
"logs": [
{
"category": "SignInLogs",
"enabled": true,
"retentionPolicy": {
"enabled": false,
"days": 0
}
}
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
{
"parameters" : {
"api-version" : "2017-04-01-preview"
"parameters": {
"api-version": "2017-04-01-preview"
},
"responses" : {
"200" : {
"headers" : {},
"body" : {
"value": [{
"id" : "providers/Microsoft.Aadiam/diagnosticSettings/mysetting",
"type" : "",
"name" : "mysetting",
"properties" : {
"storageAccountId" : "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
"workspaceId" : "",
"eventHubAuthorizationRuleId" : "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
"logs" : [{
"category" : "SignInLogs",
"enabled" : true,
"retentionPolicy" : {
"enabled" : false,
"days" : 0
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"id": "providers/Microsoft.Aadiam/diagnosticSettings/mysetting",
"type": "",
"name": "mysetting",
"properties": {
"storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
"workspaceId": "",
"eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule",
"logs": [
{
"category": "SignInLogs",
"enabled": true,
"retentionPolicy": {
"enabled": false,
"days": 0
}
}
}
]
]
}
}
}]
]
}
}
}
}
}
Loading

0 comments on commit 56bd1de

Please sign in to comment.