Skip to content

Commit

Permalink
chore: jsonfmt automation (#5884)
Browse files Browse the repository at this point in the history
Ran `jsonfmt -w "specification/automation/**/*.json"`
  • Loading branch information
nschonni authored and veronicagg committed May 7, 2019
1 parent 1b90713 commit 2b6274e
Show file tree
Hide file tree
Showing 250 changed files with 5,773 additions and 5,776 deletions.
Original file line number Diff line number Diff line change
@@ -1,148 +1,148 @@
{
"swagger": "2.0",
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
"swagger": "2.0",
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"info": {
"version": "2018-06-10",
"title": "Common types"
},
"paths": {},
"definitions": {
"ErrorResponse": {
"type": "object",
"properties": {
"code": {
"description": "Error code",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
}
},
"description": "Error response of an operation failure"
},
"info": {
"version": "2018-06-10",
"title": "Common types"
},
"paths": {},
"definitions": {
"ErrorResponse": {
"type": "object",
"properties": {
"code": {
"description": "Error code",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
}
},
"description": "Error response of an operation failure"
},
"Resource": {
"description": "The core properties of ARM resources",
"type": "object",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Fully qualified resource Id for the resource"
},
"name": {
"readOnly": true,
"type": "string",
"description": "The name of the resource"
},
"type": {
"readOnly": true,
"type": "string",
"description": "The type of the resource."
}
},
"x-ms-azure-resource": true
"Resource": {
"description": "The core properties of ARM resources",
"type": "object",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Fully qualified resource Id for the resource"
},
"TrackedResource": {
"description": "The resource model definition for a ARM tracked top level resource",
"type": "object",
"properties": {
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"x-ms-mutability": [
"read",
"create",
"update"
],
"description": "Resource tags."
},
"location": {
"type": "string",
"x-ms-mutability": [
"read",
"create"
],
"description": "The Azure Region where the resource lives"
}
},
"allOf": [
{
"$ref": "#/definitions/Resource"
}
]
"name": {
"readOnly": true,
"type": "string",
"description": "The name of the resource"
},
"ProxyResource": {
"description": "ARM proxy resource.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"properties": {}
"type": {
"readOnly": true,
"type": "string",
"description": "The type of the resource."
}
},
"x-ms-azure-resource": true
},
"parameters": {
"SubscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string",
"description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call."
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client Api Version."
},
"ResourceGroupNameParameter": {
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._]+$",
"minLength": 1,
"maxLength": 90,
"x-ms-parameter-location": "method",
"description": "Name of an Azure Resource group."
},
"AutomationAccountNameParameter": {
"name": "automationAccountName",
"description": "The name of the automation account.",
"type": "string",
"required": true,
"in": "path",
"x-ms-parameter-location": "method"
"TrackedResource": {
"description": "The resource model definition for a ARM tracked top level resource",
"type": "object",
"properties": {
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"x-ms-mutability": [
"read",
"create",
"update"
],
"description": "Resource tags."
},
"clientRequestId": {
"name": "clientRequestId",
"description": "Identifies this specific client request.",
"type": "string",
"required": false,
"in": "header",
"x-ms-parameter-location": "method"
"location": {
"type": "string",
"x-ms-mutability": [
"read",
"create"
],
"description": "The Azure Region where the resource lives"
}
},
"allOf": [
{
"$ref": "#/definitions/Resource"
}
]
},
"ProxyResource": {
"description": "ARM proxy resource.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"properties": {}
}
},
"parameters": {
"SubscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string",
"description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call."
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client Api Version."
},
"ResourceGroupNameParameter": {
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._]+$",
"minLength": 1,
"maxLength": 90,
"x-ms-parameter-location": "method",
"description": "Name of an Azure Resource group."
},
"AutomationAccountNameParameter": {
"name": "automationAccountName",
"description": "The name of the automation account.",
"type": "string",
"required": true,
"in": "path",
"x-ms-parameter-location": "method"
},
"clientRequestId": {
"name": "clientRequestId",
"description": "Identifies this specific client request.",
"type": "string",
"required": false,
"in": "header",
"x-ms-parameter-location": "method"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
{
"parameters": {
"subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab",
"resourceGroupName": "mygroup",
"automationAccountName": "ContoseAutomationAccount",
"jobName": "foo",
"api-version": "2017-05-15-preview",
"parameters": {
"subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab",
"resourceGroupName": "mygroup",
"automationAccountName": "ContoseAutomationAccount",
"jobName": "foo",
"api-version": "2017-05-15-preview",
"properties": {
"runbook": {
"name": "TestRunbook"
},
"parameters": {
"properties": {
"runbook": {
"name": "TestRunbook"
},
"parameters": {
"key01": "value01",
"key02": "value02"
},
"runOn": ""
}
}
},
"responses": {
"201": {
"headers": {},
"body": {
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName",
"name": "foo",
"type": "Microsoft.Automation/AutomationAccounts/Jobs",
"properties": {
"jobId": "5b8a3960-e8ab-45f6-bec6-567df8467d1a",
"runbook": {
"name": "TestRunbook"
},
"provisioningState": "Processing",
"creationTime": "2018-02-01T05:53:30.243+00:00",
"endTime": null,
"exception": null,
"lastModifiedTime": "2018-02-01T05:53:30.243+00:00",
"lastStatusModifiedTime": "2018-02-01T05:53:30.243+00:00",
"startTime": null,
"status": "New",
"statusDetails": "None",
"parameters": {
"tag01": "value01",
"tag02": "value02"
},
"runOn": ""
}
}
"key01": "value01",
"key02": "value02"
},
"runOn": ""
}
}
},
"responses": {
"201": {
"headers": {},
"body": {
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName",
"name": "foo",
"type": "Microsoft.Automation/AutomationAccounts/Jobs",
"properties": {
"jobId": "5b8a3960-e8ab-45f6-bec6-567df8467d1a",
"runbook": {
"name": "TestRunbook"
},
"provisioningState": "Processing",
"creationTime": "2018-02-01T05:53:30.243+00:00",
"endTime": null,
"exception": null,
"lastModifiedTime": "2018-02-01T05:53:30.243+00:00",
"lastStatusModifiedTime": "2018-02-01T05:53:30.243+00:00",
"startTime": null,
"status": "New",
"statusDetails": "None",
"parameters": {
"tag01": "value01",
"tag02": "value02"
},
"runOn": ""
}
}
}
}
}
}
Loading

0 comments on commit 2b6274e

Please sign in to comment.