Skip to content

Commit

Permalink
Add New Api 2021-06-22 (#14956)
Browse files Browse the repository at this point in the history
* Added Base for 2021-06-22

* Changes For New Api-Version

* Updated SystemData

* Updated Swagger Definition

* Address PR Review Comments

* Updated Error Response Format

* Supress Lint Errors

* Fix Breaking Changes

* Add Supression For HRWG Response Body

* Fix LintErrors

* Updated hybridRunbookWorkerGroup.json

* PR Review comments

* Fix LinDiff Warnings

* Fix LintDiff Warnings

* Fix LintDiff Warnings

Co-authored-by: Bhargava Chary Chollaty <bhcholla@microsoft.com>
  • Loading branch information
1 parent c2aceb6 commit 10cdea5
Show file tree
Hide file tree
Showing 26 changed files with 3,606 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "myAutomationAccount9",
"api-version": "2021-06-22",
"parameters": {
"properties": {
"sku": {
"name": "Free"
}
},
"name": "myAutomationAccount9",
"location": "East US 2"
}
},
"responses": {
"201": {
"headers": {},
"body": {
"name": "myAutomationAccount9",
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9",
"type": "Microsoft.Automation/AutomationAccounts",
"location": "East US 2",
"tags": {},
"etag": null,
"properties": {
"sku": {
"name": "Free",
"family": null,
"capacity": null
},
"state": "Ok",
"creationTime": "2017-03-26T01:13:43.267+00:00",
"lastModifiedBy": "myEmailId@microsoft.com",
"lastModifiedTime": "2017-03-26T01:13:43.267+00:00"
}
}
},
"200": {
"headers": {},
"body": {
"name": "ContoseAutomationAccount",
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9",
"type": "Microsoft.Automation/AutomationAccounts",
"location": "East US 2",
"tags": {},
"etag": null,
"properties": {
"sku": {
"name": "Free",
"family": null,
"capacity": null
},
"state": "Ok",
"creationTime": "2017-03-28T18:21:15.187+00:00",
"lastModifiedBy": "myEmaild@microsoft.com",
"lastModifiedTime": "2017-03-28T18:21:15.187+00:00"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "myAutomationAccount9",
"api-version": "2021-06-22"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "myAutomationAccount20",
"hybridRunbookWorkerGroupName": "myGroup",
"hybridRunbookWorkerId": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
"api-version": "2021-06-22"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "myAutomationAccount20",
"hybridRunbookWorkerGroupName": "myGroup",
"api-version": "2021-06-22"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "MyAutomationAccount",
"api-version": "2021-06-22",
"parameters": {
"rawContent": {
"schemaVersion": "1.10",
"runbookDefinition": "AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR....",
"runbookType": "GraphPowerShell"
}
}
},
"responses": {
"200": {
"headers": {},
"body": {
"rawContent": {
"schemaVersion": "1.10",
"runbookDefinition": "AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR....",
"runbookType": "GraphPowerShell"
},
"graphRunbookJson": "<GraphRunbookJSON>"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "myAutomationAccount9",
"api-version": "2021-06-22"
},
"responses": {
"200": {
"headers": {},
"body": {
"name": "myAutomationAccount9",
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9",
"type": "Microsoft.Automation/AutomationAccounts",
"location": "East US 2",
"tags": {},
"etag": null,
"properties": {
"sku": {
"name": "Free",
"family": null,
"capacity": null
},
"state": "Ok",
"creationTime": "2017-03-26T01:13:43.267+00:00",
"lastModifiedBy": "myEmailId@microsoft.com",
"lastModifiedTime": "2017-03-26T01:13:43.267+00:00"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "testaccount",
"hybridRunbookWorkerGroupName": "TestHybridGroup",
"hybridRunbookWorkerId": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
"api-version": "2021-06-22"
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup/hybridRunbookWorkers/c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
"name": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
"type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups/HybridRunbookWorkers",
"properties": {
"ip": "10.0.0.0",
"registeredDateTime": "2018-04-24T16:30:55+00:00",
"lastSeenDateTime": "2018-04-24T16:30:55+00:00",
"vmResourceId": "/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname",
"workerName": "vmname",
"workerType": "HybridV2"
},
"systemData": {
"createdBy": "foo@contoso.com",
"createdByType": "User",
"createdAt": "2018-04-24T16:30:55+00:00",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "testaccount",
"hybridRunbookWorkerGroupName": "TestHybridGroup",
"api-version": "2021-06-22"
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup",
"name": "TestHybridGroup",
"type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups",
"credential": {
"name": "myRunAsCredentialName"
},
"groupType": "User",
"systemData": {
"createdBy": "foo@contoso.com",
"createdByType": "User",
"createdAt": "2018-04-24T16:30:55+00:00",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "myAutomationAccount11",
"api-version": "2021-06-22"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/New",
"counterProperty": "New",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Activating",
"counterProperty": "Activating",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Running",
"counterProperty": "Running",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Completed",
"counterProperty": "Completed",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Failed",
"counterProperty": "Failed",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Stopped",
"counterProperty": "Stopped",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Blocked",
"counterProperty": "Blocked",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Suspended",
"counterProperty": "Suspended",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Disconnected",
"counterProperty": "Disconnected",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Suspending",
"counterProperty": "Suspending",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Stopping",
"counterProperty": "Stopping",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Resuming",
"counterProperty": "Resuming",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
},
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Removing",
"counterProperty": "Removing",
"counterValue": 0,
"startTime": "2017-03-19T02:11:49.9879197+00:00",
"endTime": "2017-03-26T02:11:49.9879197+00:00"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "myAutomationAccount11",
"api-version": "2021-06-22"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"name": {
"value": "AccountUsage",
"localizedValue": "AccountUsage"
},
"unit": "Minute",
"currentValue": 0.0,
"limit": 500,
"throttleStatus": "NotThrottled"
},
{
"name": {
"value": "SubscriptionUsage",
"localizedValue": "SubscriptionUsage"
},
"unit": "Minute",
"currentValue": 429.0,
"limit": 500,
"throttleStatus": "NotThrottled"
},
{
"name": {
"value": "DscSubscriptionUsage",
"localizedValue": "DscSubscriptionUsage"
},
"unit": "Count",
"currentValue": 8.0,
"limit": 5,
"throttleStatus": "ThrottledAtSubscriptionLevel"
}
]
}
}
}
}
Loading

0 comments on commit 10cdea5

Please sign in to comment.