diff --git a/src/SDKs/Automation/Automation.Tests/ScenarioTests/AutomationTests.cs b/src/SDKs/Automation/Automation.Tests/ScenarioTests/AutomationTests.cs index 14816b686c06e..3b19358b3aee9 100644 --- a/src/SDKs/Automation/Automation.Tests/ScenarioTests/AutomationTests.cs +++ b/src/SDKs/Automation/Automation.Tests/ScenarioTests/AutomationTests.cs @@ -59,7 +59,7 @@ public void CanCreateUpdateDeleteRunbook() } } - [Fact(Skip = "Waiting on webservice deployment")] + [Fact] public void CanCreateUpdateDeleteSchedule() { using (var context = MockContext.Start(GetType().FullName)) diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.AutomationTest/CanCreateUpdateDeleteSchedule.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.AutomationTest/CanCreateUpdateDeleteSchedule.json index fd7297fa670bb..52be5671e9f8a 100644 --- a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.AutomationTest/CanCreateUpdateDeleteSchedule.json +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.AutomationTest/CanCreateUpdateDeleteSchedule.json @@ -13,7 +13,7 @@ "31" ], "x-ms-client-request-id": [ - "2820aa1c-4f69-4bbc-b369-a2a5ff4b5885" + "ef736054-c85d-474b-8d79-00fb2a7d5b9d" ], "accept-language": [ "en-US" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:17 GMT" + "Mon, 02 Jul 2018 18:38:49 GMT" ], "Pragma": [ "no-cache" @@ -47,16 +47,19 @@ "1199" ], "x-ms-request-id": [ - "28230d6c-91ba-4703-80d6-5ce2d2b8b43a" + "fc079687-67e4-42a6-b432-fad2fb77b1ee" ], "x-ms-correlation-request-id": [ - "28230d6c-91ba-4703-80d6-5ce2d2b8b43a" + "fc079687-67e4-42a6-b432-fad2fb77b1ee" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072817Z:28230d6c-91ba-4703-80d6-5ce2d2b8b43a" + "WESTUS2:20180702T183849Z:fc079687-67e4-42a6-b432-fad2fb77b1ee" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 @@ -74,20 +77,20 @@ "188" ], "x-ms-client-request-id": [ - "fd063432-e56f-4864-92f9-b544c2860421" + "7c8690a1-406a-48ad-baab-62001935d52b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"automation-sdk-test-account\",\r\n \"id\": \"/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/66f31e70-cba1-4e99-aff8-80ab1e48d848\",\r\n \"creationTime\": \"2017-11-19T23:28:21.013-08:00\",\r\n \"lastModifiedBy\": \"\",\r\n \"lastModifiedTime\": \"2017-11-19T23:28:21.013-08:00\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"automation-sdk-test-account\",\r\n \"id\": \"/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/394c62db-3762-4b73-8234-e25fc4f82b6b\",\r\n \"creationTime\": \"2018-07-02T11:38:51.137-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-07-02T11:38:51.137-07:00\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "623" + "625" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,7 +102,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:19 GMT" + "Mon, 02 Jul 2018 18:38:50 GMT" ], "Pragma": [ "no-cache" @@ -111,7 +114,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "fd063432-e56f-4864-92f9-b544c2860421" + "7c8690a1-406a-48ad-baab-62001935d52b" ], "x-ms-location": [ "https://management.azure.com/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account?api-version=2015-10-31" @@ -132,10 +135,13 @@ "1198" ], "x-ms-correlation-request-id": [ - "34edd242-c6fa-4a93-93ef-7418a4505aae" + "89886b8e-a7ab-4bab-94a6-f4d11260e781" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072820Z:34edd242-c6fa-4a93-93ef-7418a4505aae" + "WESTUS2:20180702T183851Z:89886b8e-a7ab-4bab-94a6-f4d11260e781" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 @@ -147,14 +153,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7f15c134-db7e-4b50-afd1-87ccf6ee44ed" + "d73d915e-57c1-4874-95eb-9adbb889af00" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, "ResponseBody": "{\r\n \"value\": []\r\n}", @@ -169,7 +175,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:20 GMT" + "Mon, 02 Jul 2018 18:38:50 GMT" ], "Pragma": [ "no-cache" @@ -184,7 +190,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7f15c134-db7e-4b50-afd1-87ccf6ee44ed" + "d73d915e-57c1-4874-95eb-9adbb889af00" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -196,13 +202,16 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14846" + "14999" ], "x-ms-correlation-request-id": [ - "57cb4b77-c127-4902-bcb8-ba14334bf2d0" + "a7159d92-ce33-47e8-b857-6eec1dc4a5ac" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072820Z:57cb4b77-c127-4902-bcb8-ba14334bf2d0" + "WESTUS2:20180702T183851Z:a7159d92-ce33-47e8-b857-6eec1dc4a5ac" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 @@ -214,14 +223,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ca00bdd0-6d0e-4fb7-ab60-0efc25edecb1" + "fb1a0460-80a3-47e0-8eae-313cd1927a8a" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, "ResponseBody": "{\r\n \"value\": []\r\n}", @@ -236,7 +245,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:20 GMT" + "Mon, 02 Jul 2018 18:38:51 GMT" ], "Pragma": [ "no-cache" @@ -251,7 +260,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ca00bdd0-6d0e-4fb7-ab60-0efc25edecb1" + "fb1a0460-80a3-47e0-8eae-313cd1927a8a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,13 +272,16 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14845" + "14998" ], "x-ms-correlation-request-id": [ - "2d45c86b-7a73-4a3c-8109-0a92217e7997" + "b9dcef0f-b326-4f00-b9c1-b4f4ab64579d" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072820Z:2d45c86b-7a73-4a3c-8109-0a92217e7997" + "WESTUS2:20180702T183852Z:b9dcef0f-b326-4f00-b9c1-b4f4ab64579d" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 @@ -281,14 +293,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e534cc4e-b38f-44d5-a38d-f3286e5fa9af" + "41f983d8-21b7-453d-b61a-293ccb7d92ba" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, "ResponseBody": "{\r\n \"value\": []\r\n}", @@ -303,7 +315,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:20 GMT" + "Mon, 02 Jul 2018 18:38:51 GMT" ], "Pragma": [ "no-cache" @@ -318,7 +330,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e534cc4e-b38f-44d5-a38d-f3286e5fa9af" + "41f983d8-21b7-453d-b61a-293ccb7d92ba" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -330,13 +342,16 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14844" + "14997" ], "x-ms-correlation-request-id": [ - "2fa1625f-d791-4ba7-9081-baf99f2c8653" + "04859b57-bca0-45c1-8542-bb6f7e8c079f" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072820Z:2fa1625f-d791-4ba7-9081-baf99f2c8653" + "WESTUS2:20180702T183852Z:04859b57-bca0-45c1-8542-bb6f7e8c079f" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 @@ -348,14 +363,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3c921816-bf6c-4715-84fd-7ac5f24149ff" + "d23f6947-dd33-44cd-9ef2-4f2d8b5a7de8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, "ResponseBody": "{\r\n \"value\": []\r\n}", @@ -370,7 +385,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:21 GMT" + "Mon, 02 Jul 2018 18:38:51 GMT" ], "Pragma": [ "no-cache" @@ -385,7 +400,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3c921816-bf6c-4715-84fd-7ac5f24149ff" + "d23f6947-dd33-44cd-9ef2-4f2d8b5a7de8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -397,13 +412,16 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14843" + "14996" ], "x-ms-correlation-request-id": [ - "7c640e5a-f8a1-4949-85c0-ce1b6629e6e6" + "85d4e094-ece8-4feb-ad5f-39641da54908" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072821Z:7c640e5a-f8a1-4949-85c0-ce1b6629e6e6" + "WESTUS2:20180702T183852Z:85d4e094-ece8-4feb-ad5f-39641da54908" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 @@ -415,14 +433,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0f3190ce-e9c4-4107-9bd8-48d783ef818d" + "887d2ca4-eeb2-40d9-8180-be13d24b1020" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, "ResponseBody": "{\r\n \"value\": []\r\n}", @@ -437,7 +455,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:22 GMT" + "Mon, 02 Jul 2018 18:38:52 GMT" ], "Pragma": [ "no-cache" @@ -452,53 +470,56 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0f3190ce-e9c4-4107-9bd8-48d783ef818d" + "887d2ca4-eeb2-40d9-8180-be13d24b1020" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14842" + "14995" ], "x-ms-correlation-request-id": [ - "4e18a059-78dd-446e-9ad6-c01ba0b82028" + "df522355-5072-4c1b-808d-5cbb0f6c3d32" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072822Z:4e18a059-78dd-446e-9ad6-c01ba0b82028" + "WESTUS2:20180702T183853Z:df522355-5072-4c1b-808d-5cbb0f6c3d32" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGUzMTI3P2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGU4MTQwP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"name\": \"hourlySche3127\",\r\n \"properties\": {\r\n \"startTime\": \"2017-11-20T23:28:22.3178996Z\",\r\n \"expiryTime\": \"2017-11-25T23:28:22.3178996Z\",\r\n \"interval\": 1,\r\n \"frequency\": \"Hour\"\r\n }\r\n}", + "RequestBody": "{\r\n \"name\": \"hourlySche8140\",\r\n \"properties\": {\r\n \"startTime\": \"2018-07-03T11:38:53.1142695-07:00\",\r\n \"expiryTime\": \"2018-07-08T11:38:53.1142695-07:00\",\r\n \"interval\": 1,\r\n \"frequency\": \"Hour\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "203" + "213" ], "x-ms-client-request-id": [ - "f987ac6c-8bc4-4f9a-820a-32c71cb8e877" + "cb9e777f-0af6-4875-9e8c-7d8d398473b0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"hourlySche3127\",\r\n \"id\": \"/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127\",\r\n \"properties\": {\r\n \"description\": null,\r\n \"startTime\": \"2017-11-20T15:28:00-08:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2017-11-25T15:28:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2017-11-20T15:28:00-08:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Hour\",\r\n \"creationTime\": \"2017-11-19T23:28:24.263-08:00\",\r\n \"lastModifiedTime\": \"2017-11-19T23:28:24.263-08:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140\",\r\n \"name\": \"hourlySche8140\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Schedules\",\r\n \"properties\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-07-03T11:38:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-07-08T11:38:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-07-03T11:38:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Hour\",\r\n \"creationTime\": \"2018-07-02T11:38:53.667-07:00\",\r\n \"lastModifiedTime\": \"2018-07-02T11:38:53.667-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "649" + "708" ], "Content-Type": [ "application/json; charset=utf-8" @@ -510,25 +531,25 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:22 GMT" + "Mon, 02 Jul 2018 18:38:52 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127?api-version=2015-10-31" + "https://management.azure.com/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140?api-version=2015-10-31" ], "Server": [ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "f987ac6c-8bc4-4f9a-820a-32c71cb8e877" + "cb9e777f-0af6-4875-9e8c-7d8d398473b0" ], "x-ms-location": [ - "https://management.azure.com/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127?api-version=2015-10-31" + "https://management.azure.com/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140?api-version=2015-10-31" ], "ocp-location": [ - "https://management.azure.com/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127?api-version=2015-10-31" + "https://management.azure.com/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140?api-version=2015-10-31" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -543,32 +564,35 @@ "1197" ], "x-ms-correlation-request-id": [ - "32bbcd7e-d1e0-4a48-bcec-a6547ab26294" + "f0c1c54c-7953-45fa-b97a-972f44c3d0f9" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072822Z:32bbcd7e-d1e0-4a48-bcec-a6547ab26294" + "WESTUS2:20180702T183853Z:f0c1c54c-7953-45fa-b97a-972f44c3d0f9" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGUzMTI3P2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGU4MTQwP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "76179686-7869-4764-a3b3-f54eb248bd8d" + "5ead48ce-4575-4256-afa9-b00609f6f955" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"hourlySche3127\",\r\n \"id\": \"/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127\",\r\n \"properties\": {\r\n \"description\": null,\r\n \"startTime\": \"2017-11-20T15:28:00-08:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2017-11-25T15:28:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2017-11-20T15:28:00-08:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Hour\",\r\n \"creationTime\": \"2017-11-19T23:28:24.263-08:00\",\r\n \"lastModifiedTime\": \"2017-11-19T23:28:24.263-08:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140\",\r\n \"name\": \"hourlySche8140\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Schedules\",\r\n \"properties\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-07-03T11:38:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-07-08T11:38:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-07-03T11:38:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Hour\",\r\n \"creationTime\": \"2018-07-02T11:38:53.667-07:00\",\r\n \"lastModifiedTime\": \"2018-07-02T11:38:53.667-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -580,7 +604,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:22 GMT" + "Mon, 02 Jul 2018 18:38:52 GMT" ], "Pragma": [ "no-cache" @@ -595,7 +619,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "76179686-7869-4764-a3b3-f54eb248bd8d" + "5ead48ce-4575-4256-afa9-b00609f6f955" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -607,35 +631,38 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14841" + "14994" ], "x-ms-correlation-request-id": [ - "93dc3a36-9d0e-4df1-99e2-f5fef8ba6db9" + "3cf700ce-c25b-45bd-97b9-85c38697644f" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072823Z:93dc3a36-9d0e-4df1-99e2-f5fef8ba6db9" + "WESTUS2:20180702T183853Z:3cf700ce-c25b-45bd-97b9-85c38697644f" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGUzMTI3P2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGU4MTQwP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9589f4ba-1f76-41d6-968d-7196ede173be" + "4bef7f1e-7fa8-4ad9-97af-802d68c5e3e1" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127\",\r\n \"name\": \"hourlySche3127\",\r\n \"properties\": {\r\n \"description\": \"hourly schedule\",\r\n \"startTime\": \"2017-11-20T15:28:00-08:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2017-11-25T15:28:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRun\": \"2017-11-20T15:28:00-08:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Hour\",\r\n \"creationTime\": \"2017-11-19T23:28:24.263-08:00\",\r\n \"lastModifiedTime\": \"2017-11-19T23:28:24.907-08:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140\",\r\n \"name\": \"hourlySche8140\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Schedules\",\r\n \"properties\": {\r\n \"description\": \"hourly schedule\",\r\n \"startTime\": \"2018-07-03T11:38:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-07-08T11:38:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRun\": \"2018-07-03T11:38:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Hour\",\r\n \"creationTime\": \"2018-07-02T11:38:53.667-07:00\",\r\n \"lastModifiedTime\": \"2018-07-02T11:38:54.103-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -647,7 +674,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:23 GMT" + "Mon, 02 Jul 2018 18:38:53 GMT" ], "Pragma": [ "no-cache" @@ -662,7 +689,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9589f4ba-1f76-41d6-968d-7196ede173be" + "4bef7f1e-7fa8-4ad9-97af-802d68c5e3e1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -674,32 +701,35 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14840" + "14993" ], "x-ms-correlation-request-id": [ - "221d1835-3c51-4935-887e-5b916d2a989d" + "6ca6799e-d3c1-4b22-9a26-278938f43a18" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072823Z:221d1835-3c51-4935-887e-5b916d2a989d" + "WESTUS2:20180702T183854Z:6ca6799e-d3c1-4b22-9a26-278938f43a18" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGUzMTI3P2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGU4MTQwP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e65f4f14-3509-4467-97ea-8249137eb56b" + "c80c47d5-54f9-4a78-974a-defa3aab54ae" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"\"\r\n}", @@ -717,7 +747,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:23 GMT" + "Mon, 02 Jul 2018 18:38:53 GMT" ], "Pragma": [ "no-cache" @@ -726,7 +756,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "e65f4f14-3509-4467-97ea-8249137eb56b" + "c80c47d5-54f9-4a78-974a-defa3aab54ae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -738,22 +768,25 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14839" + "14992" ], "x-ms-correlation-request-id": [ - "f58a10d9-2305-4b82-84fe-e7253ec5cee5" + "b166d1d8-ffe7-4f5a-9f39-1d14b42af1f9" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072823Z:f58a10d9-2305-4b82-84fe-e7253ec5cee5" + "WESTUS2:20180702T183854Z:b166d1d8-ffe7-4f5a-9f39-1d14b42af1f9" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 404 }, { - "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGUzMTI3P2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGU4MTQwP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"name\": \"hourlySche3127\",\r\n \"properties\": {\r\n \"description\": \"hourly schedule\",\r\n \"isEnabled\": false\r\n }\r\n}", + "RequestBody": "{\r\n \"name\": \"hourlySche8140\",\r\n \"properties\": {\r\n \"description\": \"hourly schedule\",\r\n \"isEnabled\": false\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -762,17 +795,17 @@ "120" ], "x-ms-client-request-id": [ - "c12d00e9-4598-4136-b177-526c0916344a" + "89b6511c-80e9-4ba0-9e76-13d1e113a640" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"hourlySche3127\",\r\n \"id\": \"/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127\",\r\n \"properties\": {\r\n \"description\": \"hourly schedule\",\r\n \"startTime\": \"2017-11-20T15:28:00-08:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2017-11-25T15:28:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRun\": \"2017-11-20T15:28:00-08:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Hour\",\r\n \"creationTime\": \"2017-11-19T23:28:24.263-08:00\",\r\n \"lastModifiedTime\": \"2017-11-19T23:28:24.263-08:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140\",\r\n \"name\": \"hourlySche8140\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Schedules\",\r\n \"properties\": {\r\n \"description\": \"hourly schedule\",\r\n \"startTime\": \"2018-07-03T11:38:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-07-08T11:38:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRun\": \"2018-07-03T11:38:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Hour\",\r\n \"creationTime\": \"2018-07-02T11:38:53.667-07:00\",\r\n \"lastModifiedTime\": \"2018-07-02T11:38:53.667-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -784,7 +817,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:23 GMT" + "Mon, 02 Jul 2018 18:38:53 GMT" ], "Pragma": [ "no-cache" @@ -799,7 +832,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c12d00e9-4598-4136-b177-526c0916344a" + "89b6511c-80e9-4ba0-9e76-13d1e113a640" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -814,29 +847,32 @@ "1196" ], "x-ms-correlation-request-id": [ - "88022064-e2ca-433f-8abe-b97bbfdc27f4" + "7ac9c842-2cd6-404e-840c-e9e8a7fa0032" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072823Z:88022064-e2ca-433f-8abe-b97bbfdc27f4" + "WESTUS2:20180702T183854Z:7ac9c842-2cd6-404e-840c-e9e8a7fa0032" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche3127?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGUzMTI3P2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestUri": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourceGroups/automation-sdk-test/providers/Microsoft.Automation/automationAccounts/automation-sdk-test-account/schedules/hourlySche8140?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjVlNDc0OGMtZjY5YS00NjdjLTg3NDktZTJmOWM4Y2QzZGIwL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24tc2RrLXRlc3QvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9hdXRvbWF0aW9uLXNkay10ZXN0LWFjY291bnQvc2NoZWR1bGVzL2hvdXJseVNjaGU4MTQwP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "36ec4c70-da8c-4689-be3f-6c23d1af82fa" + "75ede5e2-624a-4dec-a625-d48e496e9d1f" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + "Microsoft.Azure.Management.Automation.AutomationClient/3.1.0.0" ] }, "ResponseBody": "", @@ -851,7 +887,7 @@ "no-cache" ], "Date": [ - "Mon, 20 Nov 2017 07:28:23 GMT" + "Mon, 02 Jul 2018 18:38:53 GMT" ], "Pragma": [ "no-cache" @@ -860,7 +896,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "36ec4c70-da8c-4689-be3f-6c23d1af82fa" + "75ede5e2-624a-4dec-a625-d48e496e9d1f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -871,14 +907,17 @@ "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" ], "x-ms-correlation-request-id": [ - "8f88d42d-ac8c-44ab-8f5d-c568a74eb9ff" + "ce268530-4599-40d0-a32a-0aa6d9ef7782" ], "x-ms-routing-request-id": [ - "WESTUS2:20171120T072823Z:8f88d42d-ac8c-44ab-8f5d-c568a74eb9ff" + "WESTUS2:20180702T183854Z:ce268530-4599-40d0-a32a-0aa6d9ef7782" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 @@ -886,7 +925,7 @@ ], "Names": { "CanCreateUpdateDeleteSchedule": [ - "hourlySche3127" + "hourlySche8140" ] }, "Variables": { diff --git a/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs index 37bdc5b36a76c..c2787a67c3252 100644 --- a/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs @@ -142,9 +142,6 @@ public static async Task ListBy /// /// The operations group for this extension method. /// - /// - /// The computer osType targeted by this machine run - /// /// /// number of entries you skip before returning results /// @@ -200,9 +197,6 @@ public static async Task ListBy /// /// The operations group for this extension method. /// - /// - /// The computer osType targeted by this machine run - /// /// /// number of entries you skip before returning results /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs b/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs index 46bba4ac89f25..02a4e90a3d85e 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs @@ -53,6 +53,12 @@ public partial class AutomationClient : ServiceClient, IAutoma /// public string SubscriptionId { get; set; } + /// + /// The type of counts to retrieve. Possible values include: 'status', + /// 'nodeconfiguration' + /// + public string CountType1 { get; set; } + /// /// Gets or sets the preferred language for the response. /// @@ -190,6 +196,11 @@ public partial class AutomationClient : ServiceClient, IAutoma /// public virtual IWebhookOperations Webhook { get; private set; } + /// + /// Gets the IWatcherOperations. + /// + public virtual IWatcherOperations Watcher { get; private set; } + /// /// Gets the ISoftwareUpdateConfigurationsOperations. /// @@ -261,9 +272,9 @@ public partial class AutomationClient : ServiceClient, IAutoma public virtual IDscNodeConfigurationOperations DscNodeConfiguration { get; private set; } /// - /// Gets the IWatcherOperations. + /// Gets the INodeCountInformationOperations. /// - public virtual IWatcherOperations Watcher { get; private set; } + public virtual INodeCountInformationOperations NodeCountInformation { get; private set; } /// /// Initializes a new instance of the AutomationClient class. @@ -490,6 +501,7 @@ private void Initialize() Schedule = new ScheduleOperations(this); Variable = new VariableOperations(this); Webhook = new WebhookOperations(this); + Watcher = new WatcherOperations(this); SoftwareUpdateConfigurations = new SoftwareUpdateConfigurationsOperations(this); SoftwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsOperations(this); SoftwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsOperations(this); @@ -504,7 +516,7 @@ private void Initialize() DscCompilationJob = new DscCompilationJobOperations(this); DscCompilationJobStream = new DscCompilationJobStreamOperations(this); DscNodeConfiguration = new DscNodeConfigurationOperations(this); - Watcher = new WatcherOperations(this); + NodeCountInformation = new NodeCountInformationOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; diff --git a/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs b/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs index 7b364cc4ce183..6a41f39f74080 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs @@ -47,6 +47,12 @@ public partial interface IAutomationClient : System.IDisposable /// string SubscriptionId { get; set; } + /// + /// The type of counts to retrieve. Possible values include: 'status', + /// 'nodeconfiguration' + /// + string CountType1 { get; set; } + /// /// Gets or sets the preferred language for the response. /// @@ -185,6 +191,11 @@ public partial interface IAutomationClient : System.IDisposable /// IWebhookOperations Webhook { get; } + /// + /// Gets the IWatcherOperations. + /// + IWatcherOperations Watcher { get; } + /// /// Gets the ISoftwareUpdateConfigurationsOperations. /// @@ -256,9 +267,9 @@ public partial interface IAutomationClient : System.IDisposable IDscNodeConfigurationOperations DscNodeConfiguration { get; } /// - /// Gets the IWatcherOperations. + /// Gets the INodeCountInformationOperations. /// - IWatcherOperations Watcher { get; } + INodeCountInformationOperations NodeCountInformation { get; } } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/INodeCountInformationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/INodeCountInformationOperations.cs new file mode 100644 index 0000000000000..96c0c5a3a5d6f --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/INodeCountInformationOperations.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automation +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// NodeCountInformationOperations operations. + /// + public partial interface INodeCountInformationOperations + { + /// + /// Retrieve counts for Dsc Nodes. + /// + /// + /// + /// Name of an Azure Resource group. + /// + /// + /// The name of the automation account. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameter.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameter.cs index 9c72c8737644e..d523ed46486f1 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameter.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameter.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.Management.Automation.Models { using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -56,7 +58,11 @@ public ActivityParameter() /// remaining command-line arguments that are associated with this /// parameter in the form of an array. false if the cmdlet parameter /// does not accept all the remaining argument values. - public ActivityParameter(string name = default(string), string type = default(string), bool? isMandatory = default(bool?), bool? isDynamic = default(bool?), long? position = default(long?), bool? valueFromPipeline = default(bool?), bool? valueFromPipelineByPropertyName = default(bool?), bool? valueFromRemainingArguments = default(bool?)) + /// Gets or sets the description of the + /// activity parameter. + /// Gets or sets the validation set of + /// activity parameter. + public ActivityParameter(string name = default(string), string type = default(string), bool? isMandatory = default(bool?), bool? isDynamic = default(bool?), long? position = default(long?), bool? valueFromPipeline = default(bool?), bool? valueFromPipelineByPropertyName = default(bool?), bool? valueFromRemainingArguments = default(bool?), string description = default(string), IList validationSet = default(IList)) { Name = name; Type = type; @@ -66,6 +72,8 @@ public ActivityParameter() ValueFromPipeline = valueFromPipeline; ValueFromPipelineByPropertyName = valueFromPipelineByPropertyName; ValueFromRemainingArguments = valueFromRemainingArguments; + Description = description; + ValidationSet = validationSet; CustomInit(); } @@ -136,5 +144,17 @@ public ActivityParameter() [JsonProperty(PropertyName = "valueFromRemainingArguments")] public bool? ValueFromRemainingArguments { get; set; } + /// + /// Gets or sets the description of the activity parameter. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets the validation set of activity parameter. + /// + [JsonProperty(PropertyName = "validationSet")] + public IList ValidationSet { get; set; } + } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameterValidationSet.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameterValidationSet.cs new file mode 100644 index 0000000000000..c654c3b121f34 --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameterValidationSet.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automation.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Definition of the activity parameter validation set. + /// + public partial class ActivityParameterValidationSet + { + /// + /// Initializes a new instance of the ActivityParameterValidationSet + /// class. + /// + public ActivityParameterValidationSet() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ActivityParameterValidationSet + /// class. + /// + /// Gets or sets the name of the activity + /// parameter validation set member. + public ActivityParameterValidationSet(string memberValue = default(string)) + { + MemberValue = memberValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the activity parameter validation set + /// member. + /// + [JsonProperty(PropertyName = "memberValue")] + public string MemberValue { get; set; } + + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/CountType.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/CountType.cs new file mode 100644 index 0000000000000..618a695b2d4ec --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/CountType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automation.Models +{ + + /// + /// Defines values for CountType. + /// + public static class CountType + { + public const string Status = "status"; + public const string Nodeconfiguration = "nodeconfiguration"; + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Module.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Module.cs index 820b7e665d7aa..f098003da3fc7 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Module.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Module.cs @@ -64,8 +64,10 @@ public Module() /// Gets or sets the last modified /// time. /// Gets or sets the description. + /// Gets or sets type of module, if its + /// composite or not. /// Gets or sets the etag of the resource. - public Module(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), bool? isGlobal = default(bool?), string version = default(string), long? sizeInBytes = default(long?), int? activityCount = default(int?), ModuleProvisioningState? provisioningState = default(ModuleProvisioningState?), ContentLink contentLink = default(ContentLink), ModuleErrorInfo error = default(ModuleErrorInfo), System.DateTimeOffset creationTime = default(System.DateTimeOffset), System.DateTimeOffset lastModifiedTime = default(System.DateTimeOffset), string description = default(string), string etag = default(string)) + public Module(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), bool? isGlobal = default(bool?), string version = default(string), long? sizeInBytes = default(long?), int? activityCount = default(int?), ModuleProvisioningState? provisioningState = default(ModuleProvisioningState?), ContentLink contentLink = default(ContentLink), ModuleErrorInfo error = default(ModuleErrorInfo), System.DateTimeOffset creationTime = default(System.DateTimeOffset), System.DateTimeOffset lastModifiedTime = default(System.DateTimeOffset), string description = default(string), bool? isComposite = default(bool?), string etag = default(string)) : base(id, name, type, tags, location) { IsGlobal = isGlobal; @@ -78,6 +80,7 @@ public Module() CreationTime = creationTime; LastModifiedTime = lastModifiedTime; Description = description; + IsComposite = isComposite; Etag = etag; CustomInit(); } @@ -153,6 +156,12 @@ public Module() [JsonProperty(PropertyName = "properties.description")] public string Description { get; set; } + /// + /// Gets or sets type of module, if its composite or not. + /// + [JsonProperty(PropertyName = "properties.isComposite")] + public bool? IsComposite { get; set; } + /// /// Gets or sets the etag of the resource. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/NodeCount.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/NodeCount.cs new file mode 100644 index 0000000000000..71158b587d408 --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/NodeCount.cs @@ -0,0 +1,57 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automation.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Number of nodes based on the Filter + /// + public partial class NodeCount + { + /// + /// Initializes a new instance of the NodeCount class. + /// + public NodeCount() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NodeCount class. + /// + /// Gets the name of a count type + public NodeCount(string name = default(string), NodeCountProperties properties = default(NodeCountProperties)) + { + Name = name; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the name of a count type + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "properties")] + public NodeCountProperties Properties { get; set; } + + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/NodeCountProperties.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/NodeCountProperties.cs new file mode 100644 index 0000000000000..00044b0bd0aae --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/NodeCountProperties.cs @@ -0,0 +1,48 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automation.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class NodeCountProperties + { + /// + /// Initializes a new instance of the NodeCountProperties class. + /// + public NodeCountProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NodeCountProperties class. + /// + /// Gets the count for the name + public NodeCountProperties(int? count = default(int?)) + { + Count = count; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the count for the name + /// + [JsonProperty(PropertyName = "count")] + public int? Count { get; set; } + + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/NodeCounts.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/NodeCounts.cs new file mode 100644 index 0000000000000..2c5693f56b98e --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/NodeCounts.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automation.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Gets the count of nodes by count type + /// + public partial class NodeCounts + { + /// + /// Initializes a new instance of the NodeCounts class. + /// + public NodeCounts() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NodeCounts class. + /// + /// Gets an array of counts + /// Gets the total number of records matching + /// countType criteria. + public NodeCounts(IList value = default(IList), int? totalCount = default(int?)) + { + Value = value; + TotalCount = totalCount; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets an array of counts + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + /// + /// Gets the total number of records matching countType criteria. + /// + [JsonProperty(PropertyName = "totalCount")] + public int? TotalCount { get; set; } + + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/NodeCountInformationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/NodeCountInformationOperations.cs new file mode 100644 index 0000000000000..9564158341510 --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/NodeCountInformationOperations.cs @@ -0,0 +1,264 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automation +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// NodeCountInformationOperations operations. + /// + internal partial class NodeCountInformationOperations : IServiceOperations, INodeCountInformationOperations + { + /// + /// Initializes a new instance of the NodeCountInformationOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal NodeCountInformationOperations(AutomationClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AutomationClient + /// + public AutomationClient Client { get; private set; } + + /// + /// Retrieve counts for Dsc Nodes. + /// + /// + /// + /// Name of an Azure Resource group. + /// + /// + /// The name of the automation account. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + } + } + if (automationAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "automationAccountName"); + } + if (Client.CountType1 == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.CountType1"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2018-01-15"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("automationAccountName", automationAccountName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); + _url = _url.Replace("{countType}", System.Uri.EscapeDataString(Client.CountType1)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/NodeCountInformationOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/NodeCountInformationOperationsExtensions.cs new file mode 100644 index 0000000000000..5adccde459487 --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/NodeCountInformationOperationsExtensions.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automation +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for NodeCountInformationOperations. + /// + public static partial class NodeCountInformationOperationsExtensions + { + /// + /// Retrieve counts for Dsc Nodes. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of an Azure Resource group. + /// + /// + /// The name of the automation account. + /// + public static NodeCounts Get(this INodeCountInformationOperations operations, string resourceGroupName, string automationAccountName) + { + return operations.GetAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + } + + /// + /// Retrieve counts for Dsc Nodes. + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of an Azure Resource group. + /// + /// + /// The name of the automation account. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this INodeCountInformationOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperations.cs index a997813e4ab9f..31761cf1744c8 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperations.cs @@ -220,7 +220,7 @@ internal ScheduleOperations(AutomationClient client) System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 409) + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 409) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -275,6 +275,24 @@ internal ScheduleOperations(AutomationClient client) throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); diff --git a/src/SDKs/Automation/Management.Automation/Generated/SdkInfo_AutomationClient.cs b/src/SDKs/Automation/Management.Automation/Generated/SdkInfo_AutomationClient.cs index 90cd46ecb36bd..4aad1f6404bc6 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/SdkInfo_AutomationClient.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/SdkInfo_AutomationClient.cs @@ -39,6 +39,7 @@ public static IEnumerable> ApiInfo_AutomationClien new Tuple("Automation", "Keys", "2015-10-31"), new Tuple("Automation", "LinkedWorkspace", "2015-10-31"), new Tuple("Automation", "Module", "2015-10-31"), + new Tuple("Automation", "NodeCountInformation", "2018-01-15"), new Tuple("Automation", "NodeReports", "2018-01-15"), new Tuple("Automation", "ObjectDataTypes", "2015-10-31"), new Tuple("Automation", "Operations", "2015-10-31"), diff --git a/src/SDKs/Automation/Management.Automation/Microsoft.Azure.Management.Automation.csproj b/src/SDKs/Automation/Management.Automation/Microsoft.Azure.Management.Automation.csproj index 8b807c089225b..5f758f7722152 100644 --- a/src/SDKs/Automation/Management.Automation/Microsoft.Azure.Management.Automation.csproj +++ b/src/SDKs/Automation/Management.Automation/Microsoft.Azure.Management.Automation.csproj @@ -6,12 +6,12 @@ Microsoft.Azure.Management.Automation Provides Microsoft Azure Automation management operations including the ability to create, update and delete runbooks and schedules. - 3.1.0-preview + 3.1.1-preview Microsoft Azure Automation Management Library Microsoft.Azure.Management.Automation Automation;Runbook; - Minor Bug Fixes and adding new resource: Watchers + Minor Bug Fixes diff --git a/src/SDKs/Automation/Management.Automation/Properties/AssemblyInfo.cs b/src/SDKs/Automation/Management.Automation/Properties/AssemblyInfo.cs index 4af2346580ab0..617aa350dcc45 100644 --- a/src/SDKs/Automation/Management.Automation/Properties/AssemblyInfo.cs +++ b/src/SDKs/Automation/Management.Automation/Properties/AssemblyInfo.cs @@ -8,7 +8,7 @@ [assembly: AssemblyDescription("Provides Microsoft Azure Automation management operations including the ability to create, update and delete runbooks and schedules.")] [assembly: AssemblyVersion("3.0.1.0")] -[assembly: AssemblyFileVersion("3.1.0.0")] +[assembly: AssemblyFileVersion("3.1.1.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] diff --git a/src/SDKs/_metadata/automation_resource-manager.txt b/src/SDKs/_metadata/automation_resource-manager.txt index 4c08a9b5df620..0203f1e2f70df 100644 --- a/src/SDKs/_metadata/automation_resource-manager.txt +++ b/src/SDKs/_metadata/automation_resource-manager.txt @@ -1,33 +1,18 @@ Installing AutoRest version: latest - -> autorest@2.0.4280 preinstall C:\Program Files\nodejs\node_modules\autorest -> node ./preinstall-check - -C:\Program Files\nodejs\autorest -> C:\Program Files\nodejs\node_modules\autorest\dist\app.js -+ autorest@2.0.4280 -updated 1 package in 4.571s - AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/automation/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\azure\sdk\src\SDKs\Automation\Management.Automation -AutoRest code generation utility [version: 2.0.4280; node: v8.9.1] -(C) 2018 Microsoft Corporation. -https://aka.ms/autorest - Loading AutoRest core 'C:\Users\vameru\.autorest\@microsoft.azure_autorest-core@2.0.4280\node_modules\@microsoft.azure\autorest-core\dist' (2.0.4280) - Loading AutoRest extension '@microsoft.azure/autorest.csharp' (~2.2.51->2.2.51) - Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.43->2.3.43) - -2018-06-26 00:10:27 UTC +2018-07-02 18:30:25 UTC 1) azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 5a702f17ac0989db40df4b42186cfbe4a0996bbd +Commit: 52394c4bb531e53cb88ab334d4ce9d738943a1be 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Program Files\nodejs `-- autorest@2.0.4280 +Bootstrapper version: autorest@2.0.4280 Latest installed version: