diff --git a/$(SdkTargetFx) b/$(SdkTargetFx) new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/src/SDKs/EdgeGateway/AzSdk.RP.props b/src/SDKs/EdgeGateway/AzSdk.RP.props new file mode 100644 index 000000000000..3ea3758e8d50 --- /dev/null +++ b/src/SDKs/EdgeGateway/AzSdk.RP.props @@ -0,0 +1,7 @@ + + + + DataBoxEdge_2019-03-01; + $(PackageTags);$(CommonTags);$(AzureApiTag); + + \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/EdgeGateway.Tests.csproj b/src/SDKs/EdgeGateway/EdgeGateway.Tests/EdgeGateway.Tests.csproj new file mode 100644 index 000000000000..066c814ba320 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/EdgeGateway.Tests.csproj @@ -0,0 +1,28 @@ + + + + + + EdgeGateway.Tests + 1.0.0 + EdgeGateway.Tests + EdgeGateway.Tests; + + + netcoreapp2.0 + true + + + + + + + + + + + + PreserveNewest + + + \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/AlertHelper.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/AlertHelper.cs new file mode 100644 index 000000000000..c6b51455d51c --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/AlertHelper.cs @@ -0,0 +1,51 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Microsoft.Rest.Azure; +using System.Collections.Generic; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the test helper methods + /// + public static partial class TestUtilities + { + /// + /// Gets alerts int the device + /// + /// + /// + /// + /// + /// + public static IEnumerable ListAlerts( + DataBoxEdgeManagementClient client, + string deviceName, + string resourceGroupName, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage alertList = client.Alerts.ListByDataBoxEdgeDevice(deviceName, resourceGroupName); + continuationToken = alertList.NextPageLink; + return alertList; + } + + /// + /// Gets next page of alerts in device + /// + /// + /// + /// + /// + public static IEnumerable ListAlertsNext( + DataBoxEdgeManagementClient client, + string nextLink, + out string continuationToken) + { + // Gets the alert list + IPage alertList = client.Alerts.ListByDataBoxEdgeDeviceNext(nextLink); + continuationToken = alertList.NextPageLink; + return alertList; + } + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/BandwidthScheduleHelper.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/BandwidthScheduleHelper.cs new file mode 100644 index 000000000000..dd24e6bbf02d --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/BandwidthScheduleHelper.cs @@ -0,0 +1,67 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Microsoft.Rest.Azure; +using System; +using System.Collections.Generic; +using System.Text; + +namespace EdgeGateway.Tests +{ + public static partial class TestUtilities + { + + /// + /// Gets a bandwidth schedule object + /// + /// BandwidthSchedule + public static BandwidthSchedule GetBWSObject() + { + + string start = string.Format("{0}:{1}:{2}", 0, 0, 0); + string stopTime = string.Format("{0}:{1}:{2}", 13, 59, 0); + List days = new List { "Sunday", "Monday" }; + + BandwidthSchedule bws = new BandwidthSchedule(start, stopTime, 100, days); + return bws; + } + + /// + /// Gets the bandwidth schedules in device + /// + /// + /// + /// + /// + /// + public static IEnumerable ListBandwidthSchedules( + DataBoxEdgeManagementClient client, + string deviceName, + string resourceGroupName, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage scheduleList = client.BandwidthSchedules.ListByDataBoxEdgeDevice(deviceName, resourceGroupName); + continuationToken = scheduleList.NextPageLink; + return scheduleList; + } + + /// + /// Gets next page of bandwidth schedules in device + /// + /// + /// + /// + /// + public static IEnumerable ListBandwidthSchedulesNext( + DataBoxEdgeManagementClient client, + string nextLink, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage scheduleList = client.BandwidthSchedules.ListByDataBoxEdgeDeviceNext(nextLink); + continuationToken = scheduleList.NextPageLink; + return scheduleList; + } + } +} + diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/DeviceHelper.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/DeviceHelper.cs new file mode 100644 index 000000000000..45fe236ead39 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/DeviceHelper.cs @@ -0,0 +1,134 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Microsoft.Rest.Azure; +using System.Collections.Generic; + +namespace EdgeGateway.Tests +{ + public static partial class TestUtilities + { + + /// + /// Creates or updates given edge resource + /// + /// + /// + /// + /// + /// + public static DataBoxEdgeDevice CreateOrUpdate( + this DataBoxEdgeDevice device, + string deviceName, + DataBoxEdgeManagementClient client, + string resourceGroupName) + { + //Create a databox edge/gateway device + client.Devices.CreateOrUpdate(deviceName, + device, + resourceGroupName + ); + + //Returns a databox edge/gateway device + return client.Devices.Get(deviceName, resourceGroupName); + } + + /// + /// Populates the values of a gateway device + /// + /// + /// + public static void PopulateGatewayDeviceProperties(this DataBoxEdgeDevice device) + { + device.Location = TestConstants.DefaultResourceLocation; + device.Sku = new Sku("Gateway", "standard"); + device.Tags = new Dictionary(); + device.Tags.Add("tag1", "value1"); + device.Tags.Add("tag2", "value2"); + } + + /// + /// Populates the values of a edge device + /// + /// + /// + public static void PopulateEdgeDeviceProperties(this DataBoxEdgeDevice device) + { + device.Location = TestConstants.DefaultResourceLocation; + device.Sku = new Sku("Edge", "standard"); + device.Tags = new Dictionary(); + device.Tags.Add("tag1", "value1"); + device.Tags.Add("tag2", "value2"); + } + + + /// + /// Gets resources by resource group + /// + /// + /// + /// + /// + public static IEnumerable GetResourcesByResourceGroup( + DataBoxEdgeManagementClient client, + string resourceGroupName, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage resourceList = client.Devices.ListByResourceGroup(resourceGroupName); + continuationToken = resourceList.NextPageLink; + return resourceList; + } + + /// + /// Gets next page in resource group + /// + /// + /// + /// + /// + public static IEnumerable GetResourcesByResourceGroupNext( + DataBoxEdgeManagementClient client, + string nextLink, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage resourceList = client.Devices.ListByResourceGroupNext(nextLink); + continuationToken = resourceList.NextPageLink; + return resourceList; + } + + /// + /// Gets resources by subscription + /// + /// + /// + /// + public static IEnumerable GetResourcesBySubscription( + DataBoxEdgeManagementClient client, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage resourceList = client.Devices.ListBySubscription(); + continuationToken = resourceList.NextPageLink; + return resourceList; + } + + /// + /// Gets next page of resources in subscription + /// + /// + /// + /// + /// + public static IEnumerable GetResourcesBySubscriptionNext( + DataBoxEdgeManagementClient client, + string nextLink, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage resourceList = client.Devices.ListBySubscriptionNext(nextLink); + continuationToken = resourceList.NextPageLink; + return resourceList; + } + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/DevicePatchHelper.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/DevicePatchHelper.cs new file mode 100644 index 000000000000..61736f784d69 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/DevicePatchHelper.cs @@ -0,0 +1,28 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using System.Collections.Generic; +using System.Linq; + +namespace EdgeGateway.Tests +{ + public static partial class TestUtilities + { + /// + /// Gets the tags. + /// + /// + /// + public static Dictionary GetTags(this DataBoxEdgeDevice device) + { + var Tags = new Dictionary(); + if (device.Tags != null) + { + Tags = device.Tags.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + } + Tags.Add("tag3", "value3"); + Tags.Add("tag4", "value4"); + + return Tags; + } + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/OrderHelper.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/OrderHelper.cs new file mode 100644 index 000000000000..d688cae14095 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/OrderHelper.cs @@ -0,0 +1,46 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Microsoft.Rest.Azure; +using System; +using System.Collections.Generic; +using System.Text; + +namespace EdgeGateway.Tests +{ + public static partial class TestUtilities + { + /// + /// Gets an order object + /// + /// Order + public static Order GetOrderObject() + { + ContactDetails contactDetails = new ContactDetails("John Mcclane", "Microsoft", "8004269400", new List() { "john@microsoft.com" }); + + Address shippingAddress = new Address("Microsoft Corporation", "98052", "Redmond", "WA", "USA"); + Order order = new Order(contactDetails, shippingAddress); + return order; + } + + /// + /// Gets storage account credentials in the device + /// + /// + /// + /// + /// + /// List of order + public static IEnumerable ListOrders( + DataBoxEdgeManagementClient client, + string deviceName, + string resourceGroupName, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage orderList = client.Orders.ListByDataBoxEdgeDevice(deviceName, resourceGroupName); + continuationToken = orderList.NextPageLink; + return orderList; + } + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/RoleHelper.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/RoleHelper.cs new file mode 100644 index 000000000000..23a9960dbbd8 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/RoleHelper.cs @@ -0,0 +1,52 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Microsoft.Rest.Azure; +using System; +using System.Collections.Generic; +using System.Text; + +namespace EdgeGateway.Tests +{ + public static partial class TestUtilities + { + /// + /// Gets an iot role object + /// + /// + /// + /// IoTRole + public static IoTRole GetIoTRoleObject(AsymmetricEncryptedSecret iotDeviceSecret, AsymmetricEncryptedSecret iotEdgeDeviceSecret) + { + Authentication authentication = new Authentication() { SymmetricKey = new SymmetricKey(iotDeviceSecret) }; + IoTDeviceInfo ioTDeviceInfo = new IoTDeviceInfo("iotdevice", "iothub.azure-devices.net", authentication); + + Authentication edgeAuthentication = new Authentication() { SymmetricKey = new SymmetricKey(iotEdgeDeviceSecret) }; + IoTDeviceInfo ioTEdgeDeviceInfo = new IoTDeviceInfo("iotdevice", "iothub.azure-devices.net", edgeAuthentication); + + IoTRole ioTRole = new IoTRole("Linux", ioTDeviceInfo, ioTEdgeDeviceInfo, "Enabled"); + return ioTRole; + + } + + /// + /// Gets roles in the device + /// + /// + /// + /// + /// + /// List of roles + public static IEnumerable ListRoles( + DataBoxEdgeManagementClient client, + string deviceName, + string resourceGroupName, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage roles = client.Roles.ListByDataBoxEdgeDevice(deviceName, resourceGroupName); + continuationToken = roles.NextPageLink; + return roles; + } + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/SacHelper.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/SacHelper.cs new file mode 100644 index 000000000000..a9aa7f33eb38 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/SacHelper.cs @@ -0,0 +1,61 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Microsoft.Rest.Azure; +using System.Collections.Generic; + +namespace EdgeGateway.Tests +{ + public static partial class TestUtilities + { + /// + /// Gets a sac object + /// + /// + /// + /// StorageAccountCredential + public static StorageAccountCredential GetSACObject(AsymmetricEncryptedSecret secret,string sacName) + { + StorageAccountCredential sac = new StorageAccountCredential(sacName, "Disabled", "BlobStorage", userName: "databoxedgeutdst", accountKey: secret); + + return sac; + } + + /// + /// Gets storage account credentials in the device + /// + /// + /// + /// + /// + /// List of SACs + public static IEnumerable ListStorageAccountCredentials( + DataBoxEdgeManagementClient client, + string deviceName, + string resourceGroupName, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage sacList = client.StorageAccountCredentials.ListByDataBoxEdgeDevice(deviceName, resourceGroupName); + continuationToken = sacList.NextPageLink; + return sacList; + } + + /// + /// Gets next page of storage account credentials + /// + /// + /// + /// + /// + public static IEnumerable ListStorageAccountCredentialsNext( + DataBoxEdgeManagementClient client, + string nextLink, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage sacList = client.StorageAccountCredentials.ListByDataBoxEdgeDeviceNext(nextLink); + continuationToken = sacList.NextPageLink; + return sacList; + } + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/ShareHelper.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/ShareHelper.cs new file mode 100644 index 000000000000..9049a814b716 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/ShareHelper.cs @@ -0,0 +1,79 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Microsoft.Rest.Azure; +using System.Collections.Generic; + +namespace EdgeGateway.Tests +{ + public static partial class TestUtilities + { + /// + /// Gets an smb share object + /// + /// + /// + /// Share + public static Share GetSMBShareObject(string sacId, string userId) + { + Share share = new Share("Online", "Enabled", "SMB", dataPolicy: "Cloud"); + share.AzureContainerInfo = new AzureContainerInfo(sacId, "testContainersmb", "BlockBlob"); + share.UserAccessRights = new List(); + share.UserAccessRights.Add(new UserAccessRight(userId, "Change")); + return share; + } + + /// + /// Gets an nfs share object + /// + /// + /// + /// Share + public static Share GetNFSShareObject(string sacId, string clientId) + { + Share share = new Share("Online", "Enabled", "NFS", dataPolicy: "Cloud"); + share.AzureContainerInfo = new AzureContainerInfo(sacId, "testContainernfs", "BlockBlob"); + share.ClientAccessRights = new List(); + share.ClientAccessRights.Add(new ClientAccessRight(clientId, "ReadWrite")); + + return share; + } + + /// + /// Gets shares in the device + /// + /// + /// + /// + /// + /// List of shares + public static IEnumerable ListShares( + DataBoxEdgeManagementClient client, + string deviceName, + string resourceGroupName, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage shares = client.Shares.ListByDataBoxEdgeDevice(deviceName, resourceGroupName); + continuationToken = shares.NextPageLink; + return shares; + } + + /// + /// Gets next page of shares + /// + /// + /// + /// + /// List of shares + public static IEnumerable ListSharesNext( + DataBoxEdgeManagementClient client, + string nextLink, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage shares = client.Shares.ListByDataBoxEdgeDeviceNext(nextLink); + continuationToken = shares.NextPageLink; + return shares; + } + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/TriggerHelper.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/TriggerHelper.cs new file mode 100644 index 000000000000..ba0fe3436f5e --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/TriggerHelper.cs @@ -0,0 +1,58 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Microsoft.Rest.Azure; +using System; +using System.Collections.Generic; + +namespace EdgeGateway.Tests +{ + public static partial class TestUtilities + { + /// + /// Gets a file event trigger object + /// + + /// FileEventTrigger + public static FileEventTrigger GetFileTriggerObject() + { + string sourceShareId = "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/demo-resources/providers/microsoft.databoxedge/databoxedgedevices/edge-demo-device/shares/localshare"; + string roleId = "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/edge-demo-device/roles/IotRole"; + FileEventTrigger fileEventTrigger = new FileEventTrigger(new FileSourceInfo(sourceShareId), new RoleSinkInfo(roleId), customContextTag: "fileEventTrigger"); + return fileEventTrigger; + } + + /// + /// Gets a periodic event trigger object + /// + + /// PeriodicTimerEventTrigger + public static PeriodicTimerEventTrigger GetPeriodicTriggerObject() + { + string roleId = "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/edge-demo-device/roles/IotRole"; + + PeriodicTimerSourceInfo sourceInfo = new PeriodicTimerSourceInfo(DateTime.UtcNow.Date, "0.1:0:0", "trigger-periodicTrigger"); + PeriodicTimerEventTrigger periodicTimerEventTrigger = new PeriodicTimerEventTrigger(sourceInfo, new RoleSinkInfo(roleId), customContextTag: "periodicTrigger"); + return periodicTimerEventTrigger; + } + + /// + /// Gets triggers in the device + /// + /// + /// + /// + /// + /// List of roles + public static IEnumerable ListTriggers( + DataBoxEdgeManagementClient client, + string deviceName, + string resourceGroupName, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage triggers = client.Triggers.ListByDataBoxEdgeDevice(deviceName, resourceGroupName); + continuationToken = triggers.NextPageLink; + return triggers; + } + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/UserHelper.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/UserHelper.cs new file mode 100644 index 000000000000..0ea3c63a1f15 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Helpers/UserHelper.cs @@ -0,0 +1,49 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Microsoft.Rest.Azure; +using System.Collections.Generic; + +namespace EdgeGateway.Tests +{ + public static partial class TestUtilities + { + + /// + /// Gets users in the device + /// + /// + /// + /// + /// + /// + public static IEnumerable ListUsers( + DataBoxEdgeManagementClient client, + string deviceName, + string resourceGroupName, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage userList = client.Users.ListByDataBoxEdgeDevice(deviceName, resourceGroupName); + continuationToken = userList.NextPageLink; + return userList; + } + + /// + /// Gets next page of users + /// + /// + /// + /// + /// + public static IEnumerable ListUsersNext( + DataBoxEdgeManagementClient client, + string nextLink, + out string continuationToken) + { + //Create a databox edge/gateway device + IPage userList = client.Users.ListByDataBoxEdgeDeviceNext(nextLink); + continuationToken = userList.NextPageLink; + return userList; + } + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Properties/AssemblyInfo.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..9eda6ee4f524 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Xunit; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("EdgeGateway.Tests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("EdgeGateway.Tests")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("21567887-498f-4e84-95a8-41dec0516598")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.AlertTests/Test_Alerts.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.AlertTests/Test_Alerts.json new file mode 100644 index 000000000000..814fc67a2ba8 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.AlertTests/Test_Alerts.json @@ -0,0 +1,141 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/alerts?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvYWxlcnRzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9d4e7091-eed0-44eb-b0a2-226fe886de4c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:37:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "c654017f-3027-4560-990d-fbd07b08fb96" + ], + "x-ms-client-request-id": [ + "9d4e7091-eed0-44eb-b0a2-226fe886de4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "94e89915-9b9e-4f2c-9766-b2ba96284b7f" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143751Z:94e89915-9b9e-4f2c-9766-b2ba96284b7f" + ], + "Content-Length": [ + "1047" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"title\": \"Device password has changed\",\r\n \"alertType\": \"PasswordChangedEvent\",\r\n \"appearedAtTime\": \"2019-02-20T14:36:15.9967738Z\",\r\n \"appearedAtDateTime\": \"2019-02-20T14:36:15.9967738Z\",\r\n \"recommendation\": \"The device administrator password has changed. This is a required action as part of the first time device setup or regular password reset. No further action is required.\",\r\n \"severity\": \"Informational\",\r\n \"errorDetails\": {\r\n \"errorCode\": \"\",\r\n \"errorMessage\": \"\",\r\n \"occurrences\": 2,\r\n \"occurences\": 2\r\n },\r\n \"detailedInformation\": {}\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/alerts/3e633f97-a626-4514-a302-e55368b52a14\",\r\n \"name\": \"3e633f97-a626-4514-a302-e55368b52a14\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/alerts\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/alerts/3e633f97-a626-4514-a302-e55368b52a14?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvYWxlcnRzLzNlNjMzZjk3LWE2MjYtNDUxNC1hMzAyLWU1NTM2OGI1MmExND9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "704c22d0-8a0f-4193-94b3-acf418f0a894" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:37:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "c2cbcc7f-e0fd-42f0-83d1-c0e260319867" + ], + "x-ms-client-request-id": [ + "704c22d0-8a0f-4193-94b3-acf418f0a894" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "a44b6b8d-a5be-4d1b-a58a-d4e4a6e275e8" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143751Z:a44b6b8d-a5be-4d1b-a58a-d4e4a6e275e8" + ], + "Content-Length": [ + "942" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"title\": \"Device password has changed\",\r\n \"alertType\": \"PasswordChangedEvent\",\r\n \"appearedAtTime\": \"2019-02-20T14:36:15.9967738Z\",\r\n \"appearedAtDateTime\": \"2019-02-20T14:36:15.9967738Z\",\r\n \"recommendation\": \"The device administrator password has changed. This is a required action as part of the first time device setup or regular password reset. No further action is required.\",\r\n \"severity\": \"Informational\",\r\n \"errorDetails\": {\r\n \"errorCode\": \"\",\r\n \"errorMessage\": \"\",\r\n \"occurrences\": 2,\r\n \"occurences\": 2\r\n },\r\n \"detailedInformation\": {}\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/alerts/3e633f97-a626-4514-a302-e55368b52a14\",\r\n \"name\": \"3e633f97-a626-4514-a302-e55368b52a14\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/alerts\"\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.BandwidthScheduleTests/Test_BandwidthSchedule.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.BandwidthScheduleTests/Test_BandwidthSchedule.json new file mode 100644 index 000000000000..7dbf88041e08 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.BandwidthScheduleTests/Test_BandwidthSchedule.json @@ -0,0 +1,513 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvYmFuZHdpZHRoU2NoZWR1bGVzL3NjaGVkdWxlLTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"start\": \"0:0:0\",\r\n \"stop\": \"13:59:0\",\r\n \"rateInMbps\": 100,\r\n \"days\": [\r\n \"Sunday\",\r\n \"Monday\"\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b1135f1-c216-49d1-afbc-862857a1c7aa" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "154" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:38:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1/operationResults/a4ca8655-572d-40ec-8e2e-5719d546045a?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "d8ff5285-278e-40a9-a220-7a948f427864" + ], + "x-ms-client-request-id": [ + "7b1135f1-c216-49d1-afbc-862857a1c7aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "533787aa-7b85-4fa8-9140-44f817da5398" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143820Z:533787aa-7b85-4fa8-9140-44f817da5398" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1/operationResults/a4ca8655-572d-40ec-8e2e-5719d546045a?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvYmFuZHdpZHRoU2NoZWR1bGVzL3NjaGVkdWxlLTEvb3BlcmF0aW9uUmVzdWx0cy9hNGNhODY1NS01NzJkLTQwZWMtOGUyZS01NzE5ZDU0NjA0NWE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:38:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "af834f30-121c-4a98-b4ab-5ecdafc4945b" + ], + "x-ms-client-request-id": [ + "48c6dcc9-6154-45a4-89b4-240f7329bdee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "f7066c80-5b1f-4320-88ac-37641d1e9dc2" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143851Z:f7066c80-5b1f-4320-88ac-37641d1e9dc2" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvYmFuZHdpZHRoU2NoZWR1bGVzL3NjaGVkdWxlLTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:39:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "a418fa0c-efe3-4163-bd6c-883845a4dea0" + ], + "x-ms-client-request-id": [ + "fd410224-f4a6-4db4-900f-51d098885430" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "fef0a289-191a-4073-871e-182762d19bca" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143921Z:fef0a289-191a-4073-871e-182762d19bca" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"start\": \"00:00:00\",\r\n \"stop\": \"13:59:00\",\r\n \"rateInMbps\": 100,\r\n \"days\": [\r\n \"Sunday\",\r\n \"Monday\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1\",\r\n \"name\": \"schedule-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/bandwidthSchedules\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvYmFuZHdpZHRoU2NoZWR1bGVzL3NjaGVkdWxlLTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4d57dda9-1561-45fa-9899-bcd04d645ac2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:39:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "c694d21e-1199-497e-9b6c-ef3698f94984" + ], + "x-ms-client-request-id": [ + "4d57dda9-1561-45fa-9899-bcd04d645ac2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "16b711db-65d8-456c-8727-2528ea594f36" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143923Z:16b711db-65d8-456c-8727-2528ea594f36" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"start\": \"00:00:00\",\r\n \"stop\": \"13:59:00\",\r\n \"rateInMbps\": 100,\r\n \"days\": [\r\n \"Sunday\",\r\n \"Monday\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1\",\r\n \"name\": \"schedule-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/bandwidthSchedules\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvYmFuZHdpZHRoU2NoZWR1bGVzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "80b7488a-1178-4966-ae7b-012bbf7455ed" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:39:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "399e5666-8a09-460a-9086-e111520f7b27" + ], + "x-ms-client-request-id": [ + "80b7488a-1178-4966-ae7b-012bbf7455ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "096617d1-650d-4ea3-8a1f-dead7768311d" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143923Z:096617d1-650d-4ea3-8a1f-dead7768311d" + ], + "Content-Length": [ + "533" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"start\": \"00:00:00\",\r\n \"stop\": \"13:59:00\",\r\n \"rateInMbps\": 100,\r\n \"days\": [\r\n \"Sunday\",\r\n \"Monday\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1\",\r\n \"name\": \"schedule-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/bandwidthSchedules\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvYmFuZHdpZHRoU2NoZWR1bGVzL3NjaGVkdWxlLTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "aa52ad32-8d78-4f73-8d6a-3df5abd6f919" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:39:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1/operationResults/2fa205af-6a11-427a-9c71-f6352369390a?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "888e71dc-3a33-43bc-a949-2ebb9fd7defd" + ], + "x-ms-client-request-id": [ + "aa52ad32-8d78-4f73-8d6a-3df5abd6f919" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "3d7c99dd-4c21-43a6-b5a7-74f220483437" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143924Z:3d7c99dd-4c21-43a6-b5a7-74f220483437" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1/operationResults/2fa205af-6a11-427a-9c71-f6352369390a?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvYmFuZHdpZHRoU2NoZWR1bGVzL3NjaGVkdWxlLTEvb3BlcmF0aW9uUmVzdWx0cy8yZmEyMDVhZi02YTExLTQyN2EtOWM3MS1mNjM1MjM2OTM5MGE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:39:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "15604d86-3e73-4dc4-9da1-bf10f9e1e5f0" + ], + "x-ms-client-request-id": [ + "9b907414-f8e2-4e46-8dbb-eb9dc400a3d6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "aa96a5c5-37b8-42a8-9eaf-243e5c3c4b1c" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143955Z:aa96a5c5-37b8-42a8-9eaf-243e5c3c4b1c" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/bandwidthSchedules/schedule-1/operationResults/2fa205af-6a11-427a-9c71-f6352369390a?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvYmFuZHdpZHRoU2NoZWR1bGVzL3NjaGVkdWxlLTEvb3BlcmF0aW9uUmVzdWx0cy8yZmEyMDVhZi02YTExLTQyN2EtOWM3MS1mNjM1MjM2OTM5MGE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:39:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "2d6870d1-aa06-4e4a-be31-30c226bbd7d3" + ], + "x-ms-client-request-id": [ + "777c7609-7645-4476-8f5f-d628b31d32f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "09214f08-7eec-4d49-997c-563834b0091d" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143955Z:09214f08-7eec-4d49-997c-563834b0091d" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceExtendedInfoTests/Test_GetExtendedInformation.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceExtendedInfoTests/Test_GetExtendedInformation.json new file mode 100644 index 000000000000..a4678bf9abe2 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceExtendedInfoTests/Test_GetExtendedInformation.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/getExtendedInformation?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvZ2V0RXh0ZW5kZWRJbmZvcm1hdGlvbj9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "df61a7b9-b1f0-40ef-8937-7f3255233464" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:40:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "6e667d93-fd45-46e5-a610-c229383dc291" + ], + "x-ms-client-request-id": [ + "df61a7b9-b1f0-40ef-8937-7f3255233464" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "48e81163-23c4-4b21-bf04-9479ac561f00" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144014Z:48e81163-23c4-4b21-bf04-9479ac561f00" + ], + "Content-Length": [ + "1970" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"encryptionKeyThumbprint\": \"EFF34EAE4702FD8BBFEF2EE9F353C9FA49027A86\",\r\n \"encryptionKey\": \"EAAAAP1/8kmc2++GF8Ca04GahH2lymRl4L9UUJGab8G237FZm8Ff47qYPlmkQ7UAE49Thh6/Av5gmw+V5HHLxOoa3BX4fuMqsBzkdJFDEx7mxU33/vuxGo9YZIwLg3iQJj75pojdNqPXn8vnNyM1dpX2VnN4cX5OwKD9xBZs9rKosvNFC1WRTb6rgw2Kjnzp3jCCh6qVm08bf4PZvZ/nOzn1cvnNf697H30RbGr+9JJSPcpdLt4F3k6McbGjCkZK508R7DDeezYIzf+m3UmUHw65ckEVuXIqtRUM3qgAuqsl5PAVrktWdzqohWFtv+8DVxTlNO76ylDwXkuijwto1oFyDe/zif+SUHBRwTaVKbbj6BKZOFAc9nz16cMakZljOCZtbrlSJFufDvYV41akknN3VYY73mO5ZTrBqzt9J48GEVWV6qnqfz326y1AM0G8ffLIgWIFfTdfocl3IfKaEfeYJjT14+EMgeofFJzGKRHYhJAjCd8CZnQe3guQHjkjSxkiPjpCcM2uPlGMIAWUZUOnqYJBqjVxaJGzw0sCiws5tVsD7iVwbK37FC3LSndAViz5isLtPKK3ryfajIpi/nD6M+TEkzJOmk9vAY/TEHkl49CkVQbPDYmwRXeHJgklDrjUe1DQLzbmbawQokao5/c+NBSJPo6PDjD2/Lz1TLCYdOzS+I58oXdc0TlHCrSUH7BjACVaDjgy8L0QlNr/k2YYraX4yLunpKfNL+P4XLBLfzXF9bT9U7f3XNYIVl+ncg2rSWfZNCKW57cVnioSM/z8S17DK3WiU2r1vKgHbP7+yVm52ZQSC+6vjFezhjqFe34eJbKrZFCUf/t1IMUjKZjWmXOTteODUPnh7C3jtwtCcI5rf/CAxozNeVne9vdJHIyE6gmIn8zUmtNAZ21rZSmlFpiU+W5EaZMSum8DlYTbt4Hk/Yl3oEpWY/HWDpGmn/r5czAJQ/CSeyV8DI4/RblFRCKANJt9WBzl3Jf1vVvTHUyP9RC8Vut5ZiCv1h4hABO9Hhc+yq9Q7vNwqkRdHg9FUGluvZcZIxsVxez4BoWp69m66C5jrqVTmhneFuTba1Z73bzFTJJbzar2qjVCaGlxajD0j/XiOpRzcDKHQPxmviLnf+At8JNIqH0a1A2GL/2SCfFd5IQcMn9gV65kC5ufSAbZ8mXr++IgFlGn+PFpsH/vptxRqBSEKAkMSZpCEbn1atd4FjzjI6YRKy10DtXgC58Q1WtArNiFBawdDqyNOTwrD1WCK+VMeSao+rzJI/5zd2tbV2haMGQrRGSZoD7PhLszEGPm+YGZWCx9OLEly8nPgP+1RiD69RRA1tQa6O4pw4Y+HIjiMUWhJQKH95hEflOHK9Xjtb9XF0UOZnHHWjy0klH1JML46wOr4r34q15hx6AJJHbUZHLM3mLVL85gcNAsdcijpJGUkfuHT/giF1n/iZc05OHFfvxFfJsw9+47iWfexbsTxvmqmAf+gq6OXNtlymqJ184/Jffz1b+Z1R6JzMHpQAXjdoKHt39jInZdxQ==\",\r\n \"resourceKey\": \"6674016362648189277\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device\",\r\n \"name\": \"gateway-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceTests/Test_DevicePasswordUpdate.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceTests/Test_DevicePasswordUpdate.json new file mode 100644 index 000000000000..a887fa245054 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceTests/Test_DevicePasswordUpdate.json @@ -0,0 +1,258 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/getExtendedInformation?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvZ2V0RXh0ZW5kZWRJbmZvcm1hdGlvbj9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3a25d082-209b-41f0-87b3-95a61054bb8f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:36:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b0c81755-390c-4abe-9c51-73cbbaa3c385" + ], + "x-ms-client-request-id": [ + "3a25d082-209b-41f0-87b3-95a61054bb8f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "1275ecb5-887a-48a8-b7eb-4b013d1749a5" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143612Z:1275ecb5-887a-48a8-b7eb-4b013d1749a5" + ], + "Content-Length": [ + "1970" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"encryptionKeyThumbprint\": \"EFF34EAE4702FD8BBFEF2EE9F353C9FA49027A86\",\r\n \"encryptionKey\": \"EAAAAP1/8kmc2++GF8Ca04GahH2lymRl4L9UUJGab8G237FZm8Ff47qYPlmkQ7UAE49Thh6/Av5gmw+V5HHLxOoa3BX4fuMqsBzkdJFDEx7mxU33/vuxGo9YZIwLg3iQJj75pojdNqPXn8vnNyM1dpX2VnN4cX5OwKD9xBZs9rKosvNFC1WRTb6rgw2Kjnzp3jCCh6qVm08bf4PZvZ/nOzn1cvnNf697H30RbGr+9JJSPcpdLt4F3k6McbGjCkZK508R7DDeezYIzf+m3UmUHw65ckEVuXIqtRUM3qgAuqsl5PAVrktWdzqohWFtv+8DVxTlNO76ylDwXkuijwto1oFyDe/zif+SUHBRwTaVKbbj6BKZOFAc9nz16cMakZljOCZtbrlSJFufDvYV41akknN3VYY73mO5ZTrBqzt9J48GEVWV6qnqfz326y1AM0G8ffLIgWIFfTdfocl3IfKaEfeYJjT14+EMgeofFJzGKRHYhJAjCd8CZnQe3guQHjkjSxkiPjpCcM2uPlGMIAWUZUOnqYJBqjVxaJGzw0sCiws5tVsD7iVwbK37FC3LSndAViz5isLtPKK3ryfajIpi/nD6M+TEkzJOmk9vAY/TEHkl49CkVQbPDYmwRXeHJgklDrjUe1DQLzbmbawQokao5/c+NBSJPo6PDjD2/Lz1TLCYdOzS+I58oXdc0TlHCrSUH7BjACVaDjgy8L0QlNr/k2YYraX4yLunpKfNL+P4XLBLfzXF9bT9U7f3XNYIVl+ncg2rSWfZNCKW57cVnioSM/z8S17DK3WiU2r1vKgHbP7+yVm52ZQSC+6vjFezhjqFe34eJbKrZFCUf/t1IMUjKZjWmXOTteODUPnh7C3jtwtCcI5rf/CAxozNeVne9vdJHIyE6gmIn8zUmtNAZ21rZSmlFpiU+W5EaZMSum8DlYTbt4Hk/Yl3oEpWY/HWDpGmn/r5czAJQ/CSeyV8DI4/RblFRCKANJt9WBzl3Jf1vVvTHUyP9RC8Vut5ZiCv1h4hABO9Hhc+yq9Q7vNwqkRdHg9FUGluvZcZIxsVxez4BoWp69m66C5jrqVTmhneFuTba1Z73bzFTJJbzar2qjVCaGlxajD0j/XiOpRzcDKHQPxmviLnf+At8JNIqH0a1A2GL/2SCfFd5IQcMn9gV65kC5ufSAbZ8mXr++IgFlGn+PFpsH/vptxRqBSEKAkMSZpCEbn1atd4FjzjI6YRKy10DtXgC58Q1WtArNiFBawdDqyNOTwrD1WCK+VMeSao+rzJI/5zd2tbV2haMGQrRGSZoD7PhLszEGPm+YGZWCx9OLEly8nPgP+1RiD69RRA1tQa6O4pw4Y+HIjiMUWhJQKH95hEflOHK9Xjtb9XF0UOZnHHWjy0klH1JML46wOr4r34q15hx6AJJHbUZHLM3mLVL85gcNAsdcijpJGUkfuHT/giF1n/iZc05OHFfvxFfJsw9+47iWfexbsTxvmqmAf+gq6OXNtlymqJ184/Jffz1b+Z1R6JzMHpQAXjdoKHt39jInZdxQ==\",\r\n \"resourceKey\": \"6674016362648189277\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device\",\r\n \"name\": \"gateway-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/securitySettings/default/update?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2VjdXJpdHlTZXR0aW5ncy9kZWZhdWx0L3VwZGF0ZT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"properties\": {\r\n \"deviceAdminPassword\": {\r\n \"value\": \"pK6ZqZ6VDwIA61ZhajnJKvZ8zxnsGmDIj0eNebG5FdCLP55Dwom9TQWEbximE9GSBqKbCoazhK/S1DnugTvEiPzDrgz9KMtjutEPJ8oR/AOTAMEg7Ep6PA+O9W/Sjs0sgHx/AsByYBy+PWcWEMmaezVlhuvLTDozi1MCCQ20GiF0q07pqipeR9NiuHJqsHd8xTVXq3ywDIGwVc9phxAMKhkJ/0u0QJ515o4zlXDmIB1VdnsCXhM3e2HyTSoYPhKTuDzD264P0S7sx+Nuit53+V/pQVE2TNuyA/2rdhttPHCpRwgBjAxP6HW8Mxm85HViwqXXAKT+C1i7iQyREeMIPQ==\",\r\n \"encryptionCertThumbprint\": \"EFF34EAE4702FD8BBFEF2EE9F353C9FA49027A86\",\r\n \"encryptionAlgorithm\": \"AES256\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "695f02e1-18c9-441a-96ce-ec662361d973" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "547" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:36:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/securitySettings/default/operationResults/4cf7c089-37c4-410e-a3db-7972f36ccd8f?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "863c6b99-be7d-468d-b43b-0a9ee9e29875" + ], + "x-ms-client-request-id": [ + "695f02e1-18c9-441a-96ce-ec662361d973" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "33371377-b042-4773-805d-f7de13d33acf" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143612Z:33371377-b042-4773-805d-f7de13d33acf" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/securitySettings/default/operationResults/4cf7c089-37c4-410e-a3db-7972f36ccd8f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2VjdXJpdHlTZXR0aW5ncy9kZWZhdWx0L29wZXJhdGlvblJlc3VsdHMvNGNmN2MwODktMzdjNC00MTBlLWEzZGItNzk3MmYzNmNjZDhmP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:36:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "e44404fd-eb50-4b8a-a9f0-e6199504af8f" + ], + "x-ms-client-request-id": [ + "386f710f-f32a-4138-baa4-3dbbba34d84d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "aeee6368-f632-465e-b394-593ad32f43ac" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143644Z:aeee6368-f632-465e-b394-593ad32f43ac" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/securitySettings/default/operationResults/4cf7c089-37c4-410e-a3db-7972f36ccd8f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2VjdXJpdHlTZXR0aW5ncy9kZWZhdWx0L29wZXJhdGlvblJlc3VsdHMvNGNmN2MwODktMzdjNC00MTBlLWEzZGItNzk3MmYzNmNjZDhmP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:36:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b52ede66-d87c-4a8c-a2a6-7770ca2ffbac" + ], + "x-ms-client-request-id": [ + "36598b96-a6be-42ca-add3-821b92db5322" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "f0be21fa-7110-42fd-b4ae-4fee46cc4d6d" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T143645Z:f0be21fa-7110-42fd-b4ae-4fee46cc4d6d" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceTests/Test_GatewayDeviceOperations.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceTests/Test_GatewayDeviceOperations.json new file mode 100644 index 000000000000..eafda50c51a6 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceTests/Test_GatewayDeviceOperations.json @@ -0,0 +1,738 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2FucG9ubmV0LXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL3Rlc3QtZ2F0ZXdheS1yZXNvdXJjZT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"standard\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "16c85404-1efb-4766-9d64-180ba20905b8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "165" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:36:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "359cdaa3-58d2-40e9-bfd1-6ca2a2d65b59" + ], + "x-ms-client-request-id": [ + "16c85404-1efb-4766-9d64-180ba20905b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "302815af-0690-4be4-972b-96f70632efc1" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093645Z:302815af-0690-4be4-972b-96f70632efc1" + ], + "Content-Length": [ + "675" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T09%3A36%3A44.3838535Z'\\\"_W/\\\"datetime'2019-02-15T09%3A36%3A44.3903892Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource\",\r\n \"name\": \"test-gateway-resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2FucG9ubmV0LXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL3Rlc3QtZ2F0ZXdheS1yZXNvdXJjZT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a383f0ab-8846-419f-8c70-95086c9047ba" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:36:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "8e884d8d-dff3-4789-bcae-5ec9f419db81" + ], + "x-ms-client-request-id": [ + "a383f0ab-8846-419f-8c70-95086c9047ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "477907e1-58ad-4d9f-a4c7-b274ec65911a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093646Z:477907e1-58ad-4d9f-a4c7-b274ec65911a" + ], + "Content-Length": [ + "675" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T09%3A36%3A44.3838535Z'\\\"_W/\\\"datetime'2019-02-15T09%3A36%3A44.3903892Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource\",\r\n \"name\": \"test-gateway-resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2FucG9ubmV0LXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL3Rlc3QtZ2F0ZXdheS1yZXNvdXJjZT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f706a3c5-ad44-4a85-ad99-11969d76c3ae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:36:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "eb77ef50-e89f-402b-8f67-a8bfc1d322ea" + ], + "x-ms-client-request-id": [ + "f706a3c5-ad44-4a85-ad99-11969d76c3ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "78a08dac-6a69-4581-9ebd-df8913ff9ba8" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093647Z:78a08dac-6a69-4581-9ebd-df8913ff9ba8" + ], + "Content-Length": [ + "675" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T09%3A36%3A44.3838535Z'\\\"_W/\\\"datetime'2019-02-15T09%3A36%3A44.3903892Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource\",\r\n \"name\": \"test-gateway-resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2FucG9ubmV0LXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ad2d0a9a-143b-4a5f-8cda-5c900379abb8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:36:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-original-request-ids": [ + "f60697dd-93ec-4a9d-a739-520193b7bd2e", + "8a4b4a98-3ea5-46fd-a36e-738d82dc15c2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "f43d47e9-c5c5-4808-b673-78f6070e2604" + ], + "x-ms-correlation-request-id": [ + "f43d47e9-c5c5-4808-b673-78f6070e2604" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093649Z:f43d47e9-c5c5-4808-b673-78f6070e2604" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "20172" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A18.7606656Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A18.7656699Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0111-1\",\r\n \"name\": \"anponnet-0111-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A07.556042Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A07.5620473Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0116-1\",\r\n \"name\": \"anponnet-0116-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A03.6143043Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A03.6203096Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0116-3\",\r\n \"name\": \"anponnet-0116-3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A07.3378352Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A07.3428395Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0116-4\",\r\n \"name\": \"anponnet-0116-4\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A04.4531013Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A04.4591074Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0117-5\",\r\n \"name\": \"anponnet-0117-5\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T14%3A49%3A21.7833787Z'\\\"_W/\\\"datetime'2019-01-29T14%3A49%3A21.7873825Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0129-1\",\r\n \"name\": \"anponnet-0129-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T15%3A06%3A11.3296031Z'\\\"_W/\\\"datetime'2019-01-29T15%3A06%3A11.3336069Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0129-2\",\r\n \"name\": \"anponnet-0129-2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-05T07%3A41%3A09.9322632Z'\\\"_W/\\\"datetime'2019-02-05T07%3A41%3A09.936267Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0205-1\",\r\n \"name\": \"anponnet-0205-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A03.8194996Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A03.8245053Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGen2Edge\",\r\n \"name\": \"arramachGen2Edge\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T15%3A08%3A25.558437Z'\\\"_W/\\\"datetime'2019-01-29T15%3A08%3A25.5634421Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGenKey1\",\r\n \"name\": \"arramachGenKey1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T15%3A04%3A04.4849132Z'\\\"_W/\\\"datetime'2019-01-29T15%3A04%3A04.4899184Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGenKeyTestVA\",\r\n \"name\": \"arramachGenKeyTestVA\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A04.7754071Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A04.7804119Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/GATestPass01\",\r\n \"name\": \"GATestPass01\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-24T17%3A34%3A33.4440387Z'\\\"_W/\\\"datetime'2019-01-24T17%3A34%3A33.4620557Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/jkblkj\",\r\n \"name\": \"jkblkj\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T08%3A43%3A46.0592084Z'\\\"_W/\\\"datetime'2019-01-28T08%3A43%3A46.0642136Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestResource\",\r\n \"name\": \"OrderingTestResource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T08%3A47%3A58.2898867Z'\\\"_W/\\\"datetime'2019-01-28T08%3A47%3A58.2938905Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestResource2\",\r\n \"name\": \"OrderingTestResource2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T08%3A55%3A32.1487048Z'\\\"_W/\\\"datetime'2019-01-28T08%3A55%3A32.1527086Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestResource3\",\r\n \"name\": \"OrderingTestResource3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T10%3A06%3A15.4431905Z'\\\"_W/\\\"datetime'2019-01-16T10%3A06%3A15.4471948Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/rajordering2\",\r\n \"name\": \"rajordering2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T06%3A02%3A22.7235215Z'\\\"_W/\\\"datetime'2019-01-29T06%3A02%3A22.7275249Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/rajsinghdevice\",\r\n \"name\": \"rajsinghdevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T11%3A46%3A57.6528686Z'\\\"_W/\\\"datetime'2019-01-16T11%3A46%3A57.6568728Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/rert\",\r\n \"name\": \"rert\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-24T17%3A50%3A02.6587564Z'\\\"_W/\\\"datetime'2019-01-24T17%3A50%3A02.6637611Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/resource\",\r\n \"name\": \"resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T06%3A35%3A58.5499585Z'\\\"_W/\\\"datetime'2019-01-17T06%3A35%3A58.5549632Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test011\",\r\n \"name\": \"test011\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T04%3A28%3A12.6562071Z'\\\"_W/\\\"datetime'2019-01-29T04%3A28%3A12.6612115Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test1\",\r\n \"name\": \"test1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T16%3A10%3A08.9949797Z'\\\"_W/\\\"datetime'2019-01-16T16%3A10%3A08.9989843Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testagain\",\r\n \"name\": \"testagain\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T06%3A31%3A23.1417249Z'\\\"_W/\\\"datetime'2019-01-17T06%3A31%3A23.1457295Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testEdgeWithExistingDevice\",\r\n \"name\": \"testEdgeWithExistingDevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T09%3A34%3A04.8397677Z'\\\"_W/\\\"datetime'2019-01-28T09%3A34%3A04.8437711Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TestGatewayDevice1\",\r\n \"name\": \"TestGatewayDevice1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-05T10%3A29%3A49.0683532Z'\\\"_W/\\\"datetime'2019-02-05T10%3A29%3A49.0743579Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0205-2\",\r\n \"name\": \"anponnet-0205-2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A28.6169988Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A28.6220027Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0205-3\",\r\n \"name\": \"anponnet-0205-3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A30.3892485Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A30.3952527Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0206\",\r\n \"name\": \"anponnet-0206\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A28.7290777Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A28.7340817Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-ga\",\r\n \"name\": \"anponnet-ga\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A29.9189166Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A29.9239197Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-gw-version2\",\r\n \"name\": \"anponnet-gw-version2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"my\": \"justtotest\",\r\n \"Attack\": \"Gum-Gum Bazooka\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A34.5932134Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A34.598217Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass-0206\",\r\n \"name\": \"anponnet-testpass-0206\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A30.3101924Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A30.3212006Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass-mock\",\r\n \"name\": \"anponnet-testpass-mock\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A33.9287419Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A33.9337459Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass2\",\r\n \"name\": \"anponnet-testpass2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A33.1571987Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A33.1632029Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass3\",\r\n \"name\": \"anponnet-testpass3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T09%3A14%3A15.9610913Z'\\\"_W/\\\"datetime'2019-02-11T09%3A14%3A15.9650937Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-version2\",\r\n \"name\": \"anponnet-version2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T09%3A36%3A44.3838535Z'\\\"_W/\\\"datetime'2019-02-15T09%3A36%3A44.3903892Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource\",\r\n \"name\": \"test-gateway-resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01&%24skiptoken=fVLJjptAEP0XK8nNQ4Oxx4w0imyz2MRgGwMN3Gi6h61ZwuZlNP%2betq1Mcogi9aFUr6pe9Xv1PirJudumZd6OXt5HyuJoO0dBcRb70cso6bq6feG4IizDmBSk7J7Ca9%2bQp6gquLZHbdSkdZdWZcthJBLhDaPxDM%2fBWCQzMkbPER4%2fT2ZAmgvPYDYTuYa0Vd9ERGuqvm65sKyrsiTduIm5uqmGFJOm5Yw0aqq2euue5LALl9VZwTHh8J9YJkMakfZ7WKfjgXUw%2flcB8NIYTMaA%2f%2falzdParnJSvu5lSUTwFOPCvUQCHVAGUuMonjbpkqLCHAKN9sEVpNiziq2tCJts%2flVA8qGaHwSpxwzFUAUhlHpXk5oAig803shnGQlThkx537NqFjtI6CjKRHOVLuLNajF3PznFyzZbzLd8QKPSZLWfU1aLeK9a00hz2FxXU1OkOazud4btcZsU75UpJWvr4Hs6CB9s28DLWY9xVM6GHCcwx7qh1s6x4EMLUGAXvGUqvGzIy9BV69ZWGc7nF8ezdiQHF9uxGob%2f9Cd4F9L8BNf1Kih0D2l1hmw68zM9NJRz5xRJboGg9jOzQmq9DrSzT3K9YHyaoVLvWAbU4oMGZjoM%2bdqH5TIwaDDbr6Rd4CXA0dQLU%2fGu4FFwp%2fsY%2fLj9iOn3wAtpcs9nSmJmh8QXeEiKzdUt6W0OgG6ywoLqmXB652V4HuS8toNJinJd8AvAI82SDY%2bGhp1MoGwekWZcnXKZImg1kEZnnJ0Gu3BFrOoDBh0l9l8esf0CwQW2JmUPH2%2feOGu9RlC9EPs0MFf%2bUXF3Rj4N%2f72S%2bRaYAyrZdZRuwlQYELWGUHD7ffx1gtkbfXz8Ag%3d%3d\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01&%24skiptoken=fVLJjptAEP0XK8nNQ4Oxx4w0imyz2MRgGwMN3Gi6h61ZwuZlNP%2betq1Mcogi9aFUr6pe9Xv1PirJudumZd6OXt5HyuJoO0dBcRb70cso6bq6feG4IizDmBSk7J7Ca9%2bQp6gquLZHbdSkdZdWZcthJBLhDaPxDM%2fBWCQzMkbPER4%2fT2ZAmgvPYDYTuYa0Vd9ERGuqvm65sKyrsiTduIm5uqmGFJOm5Yw0aqq2euue5LALl9VZwTHh8J9YJkMakfZ7WKfjgXUw%2flcB8NIYTMaA%2f%2falzdParnJSvu5lSUTwFOPCvUQCHVAGUuMonjbpkqLCHAKN9sEVpNiziq2tCJts%2flVA8qGaHwSpxwzFUAUhlHpXk5oAig803shnGQlThkx537NqFjtI6CjKRHOVLuLNajF3PznFyzZbzLd8QKPSZLWfU1aLeK9a00hz2FxXU1OkOazud4btcZsU75UpJWvr4Hs6CB9s28DLWY9xVM6GHCcwx7qh1s6x4EMLUGAXvGUqvGzIy9BV69ZWGc7nF8ezdiQHF9uxGob%2f9Cd4F9L8BNf1Kih0D2l1hmw68zM9NJRz5xRJboGg9jOzQmq9DrSzT3K9YHyaoVLvWAbU4oMGZjoM%2bdqH5TIwaDDbr6Rd4CXA0dQLU%2fGu4FFwp%2fsY%2fLj9iOn3wAtpcs9nSmJmh8QXeEiKzdUt6W0OgG6ywoLqmXB652V4HuS8toNJinJd8AvAI82SDY%2bGhp1MoGwekWZcnXKZImg1kEZnnJ0Gu3BFrOoDBh0l9l8esf0CwQW2JmUPH2%2feOGu9RlC9EPs0MFf%2bUXF3Rj4N%2f72S%2bRaYAyrZdZRuwlQYELWGUHD7ffx1gtkbfXz8Ag%3d%3d", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2FucG9ubmV0LXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDEmJTI0c2tpcHRva2VuPWZWTEpqcHRBRVAwWEs4bk5RNE94eDR3MGlteXoyTVJnR3dNTjNHaTZoNjFad3VabE5QJTJiZXRxMU1jb2dpOWFGVXI2cGU5WHYxUGlySnVkdW1aZDZPWHQ1SHl1Sm9PMGRCY1JiNzBjc282YnE2ZmVHNElpekRtQlNrN0o3Q2E5JTJiUXA2Z3F1TFpIYmRTa2RaZFdaY3RoSkJMaERhUHhETSUyZkJXQ1F6TWtiUEVSNCUyZlQyWkFtZ3ZQWURZVHVZYTBWZDlFUkd1cXZtNjVzS3lyc2lUZHVJbTV1cW1HRkpPbTVZdzBhcXEyZXV1ZTVMQUxsOVZad1RIaDhKOVlKa01ha2ZaN1dLZmpnWFV3JTJmbGNCOE5JWVRNYUElMmYlMmZhbHpkUGFybkpTdnU1bFNVVHdGT1BDdlVRQ0hWQUdVdU1vbmpicGtxTENIQUtOOXNFVnBOaXppcTJ0Q0p0cyUyZmxWQThxR2FId1NweHd6RlVBVWhsSHBYazVvQWlnODAzc2huR1FsVGhreDUzN05xRmp0STZDaktSSE9WTHVMTmFqRjNQem5GeXpaYnpMZDhRS1BTWkxXZlUxYUxlSzlhMDBoejJGeFhVMU9rT2F6dWQ0YnRjWnNVNzVVcEpXdnI0SHM2Q0I5czI4RExXWTl4Vk02R0hDY3d4N3FoMXM2eDRFTUxVR0FYdkdVcXZHekl5OUJWNjlaV0djN25GOGV6ZGlRSEY5dXhHb2IlMmY5Q2Q0RjlMOEJOZjFLaWgwRDJsMWhtdzY4ek05TkpSejV4Ukpib0dnOWpPelFtcTlEclN6VDNLOVlIeWFvVkx2V0FiVTRvTUdaam9NJTJiZHFINVRJd2FERGJyNlJkNENYQTBkUUxVJTJmR3U0RkZ3cCUyZnNZJTJmTGo5aU9uM3dBdHBjczluU21KbWg4UVhlRWlLemRVdDZXME9nRzZ5d29McW1YQjY1MlY0SHVTOHRvTkppbkpkOEF2QUk4MlNEWSUyYkdocDFNb0d3ZWtXWmNuWEtaSW1nMWtFWm5uSjBHdTNCRnJPb0RCaDBsOWw4ZXNmMEN3UVcySm1VUEgyJTJmZU9HdTlSbEM5RVBzME1GZiUyYlVYRjNSajROJTJmNzJTJTJiUmFZQXlyWmRaUnV3bFFZRUxXR1VIRDdmZngxZ3RrYmZYejhBZyUzZCUzZA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4ecea72e-a8ce-48d1-ab1a-a9e7b0389e39" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:36:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-original-request-ids": [ + "534cdfa9-8e8b-477b-9d36-b26e9fdf146e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "151a2678-2b0c-4ce7-86fe-82d651b85768" + ], + "x-ms-correlation-request-id": [ + "151a2678-2b0c-4ce7-86fe-82d651b85768" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093650Z:151a2678-2b0c-4ce7-86fe-82d651b85768" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "3096" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T11%3A10%3A12.6817931Z'\\\"_W/\\\"datetime'2019-01-17T11%3A10%3A12.6857965Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testingDemo\",\r\n \"name\": \"testingDemo\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T11%3A22%3A12.5874055Z'\\\"_W/\\\"datetime'2019-01-17T11%3A22%3A12.5914089Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/tete\",\r\n \"name\": \"tete\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-24T06%3A02%3A05.863724Z'\\\"_W/\\\"datetime'2019-01-24T06%3A02%3A05.8677278Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TriggerTestPA\",\r\n \"name\": \"TriggerTestPA\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T16%3A23%3A04.2566915Z'\\\"_W/\\\"datetime'2019-01-16T16%3A23%3A04.2596948Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/tweeg\",\r\n \"name\": \"tweeg\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T12%3A14%3A52.3685917Z'\\\"_W/\\\"datetime'2019-01-16T12%3A14%3A52.372596Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/twete\",\r\n \"name\": \"twete\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A05.4080062Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A05.4130113Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/VaishnaviTestPA1\",\r\n \"name\": \"VaishnaviTestPA1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c5edd2d7-52cb-4167-aa12-56ddb2ca8967" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:36:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-original-request-ids": [ + "319df8f1-1d39-4405-90b2-b0f1f7269c5f", + "2d688c96-3808-4df8-b3a8-08b767812d41" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "2309c669-06d8-4cf8-ab6f-ab3c69f5207a" + ], + "x-ms-correlation-request-id": [ + "2309c669-06d8-4cf8-ab6f-ab3c69f5207a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093651Z:2309c669-06d8-4cf8-ab6f-ab3c69f5207a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "28122" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-06T05%3A40%3A26.884201Z'\\\"_W/\\\"datetime'2019-02-06T05%3A40%3A26.8892058Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/12-12\",\r\n \"name\": \"12-12\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A09.498883Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A09.5028868Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/amrawatMock\",\r\n \"name\": \"amrawatMock\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A18.7606656Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A18.7656699Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0111-1\",\r\n \"name\": \"anponnet-0111-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A07.556042Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A07.5620473Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0116-1\",\r\n \"name\": \"anponnet-0116-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A03.6143043Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A03.6203096Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0116-3\",\r\n \"name\": \"anponnet-0116-3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A07.3378352Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A07.3428395Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0116-4\",\r\n \"name\": \"anponnet-0116-4\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A04.4531013Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A04.4591074Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0117-5\",\r\n \"name\": \"anponnet-0117-5\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T14%3A49%3A21.7833787Z'\\\"_W/\\\"datetime'2019-01-29T14%3A49%3A21.7873825Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0129-1\",\r\n \"name\": \"anponnet-0129-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T15%3A06%3A11.3296031Z'\\\"_W/\\\"datetime'2019-01-29T15%3A06%3A11.3336069Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0129-2\",\r\n \"name\": \"anponnet-0129-2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-05T07%3A41%3A09.9322632Z'\\\"_W/\\\"datetime'2019-02-05T07%3A41%3A09.936267Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0205-1\",\r\n \"name\": \"anponnet-0205-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A03.8194996Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A03.8245053Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGen2Edge\",\r\n \"name\": \"arramachGen2Edge\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T15%3A08%3A25.558437Z'\\\"_W/\\\"datetime'2019-01-29T15%3A08%3A25.5634421Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGenKey1\",\r\n \"name\": \"arramachGenKey1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T15%3A04%3A04.4849132Z'\\\"_W/\\\"datetime'2019-01-29T15%3A04%3A04.4899184Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGenKeyTestVA\",\r\n \"name\": \"arramachGenKeyTestVA\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A04.7754071Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A04.7804119Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/GATestPass01\",\r\n \"name\": \"GATestPass01\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-24T17%3A34%3A33.4440387Z'\\\"_W/\\\"datetime'2019-01-24T17%3A34%3A33.4620557Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/jkblkj\",\r\n \"name\": \"jkblkj\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T08%3A43%3A46.0592084Z'\\\"_W/\\\"datetime'2019-01-28T08%3A43%3A46.0642136Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestResource\",\r\n \"name\": \"OrderingTestResource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T08%3A47%3A58.2898867Z'\\\"_W/\\\"datetime'2019-01-28T08%3A47%3A58.2938905Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestResource2\",\r\n \"name\": \"OrderingTestResource2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T08%3A55%3A32.1487048Z'\\\"_W/\\\"datetime'2019-01-28T08%3A55%3A32.1527086Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestResource3\",\r\n \"name\": \"OrderingTestResource3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T10%3A06%3A15.4431905Z'\\\"_W/\\\"datetime'2019-01-16T10%3A06%3A15.4471948Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/rajordering2\",\r\n \"name\": \"rajordering2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T06%3A02%3A22.7235215Z'\\\"_W/\\\"datetime'2019-01-29T06%3A02%3A22.7275249Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/rajsinghdevice\",\r\n \"name\": \"rajsinghdevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T11%3A46%3A57.6528686Z'\\\"_W/\\\"datetime'2019-01-16T11%3A46%3A57.6568728Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/rert\",\r\n \"name\": \"rert\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-24T17%3A50%3A02.6587564Z'\\\"_W/\\\"datetime'2019-01-24T17%3A50%3A02.6637611Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/resource\",\r\n \"name\": \"resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T06%3A35%3A58.5499585Z'\\\"_W/\\\"datetime'2019-01-17T06%3A35%3A58.5549632Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test011\",\r\n \"name\": \"test011\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T04%3A28%3A12.6562071Z'\\\"_W/\\\"datetime'2019-01-29T04%3A28%3A12.6612115Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test1\",\r\n \"name\": \"test1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T16%3A10%3A08.9949797Z'\\\"_W/\\\"datetime'2019-01-16T16%3A10%3A08.9989843Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testagain\",\r\n \"name\": \"testagain\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A29.8448645Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A29.8508687Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/abbharTestres\",\r\n \"name\": \"abbharTestres\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"displayName\": \"testpassresource\",\r\n \"applicationType\": \"DBE\",\r\n \"owner\": \"abhishek bharadwaj *(*\",\r\n \"tag1\": \"testpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresource\",\r\n \"CreatedBy\": \"testpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresource\",\r\n \"key\": \"testpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresource\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A39.5437052Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A39.5487088Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/abtp\",\r\n \"name\": \"abtp\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A39.2635078Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A39.2685113Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/abtp-1\",\r\n \"name\": \"abtp-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-12T13%3A25%3A27.0273486Z'\\\"_W/\\\"datetime'2019-02-12T13%3A25%3A27.0563692Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/abtp-2\",\r\n \"name\": \"abtp-2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T15%3A34%3A15.3678269Z'\\\"_W/\\\"datetime'2019-02-11T15%3A34%3A15.3878405Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachOrderTestPass\",\r\n \"name\": \"arramachOrderTestPass\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A35.5618992Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A35.5679035Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/benedemon123Gateway\",\r\n \"name\": \"benedemon123Gateway\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-08T09%3A48%3A04.033153Z'\\\"_W/\\\"datetime'2019-02-08T09%3A48%3A04.0411587Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/feb8-testpass-ordering\",\r\n \"name\": \"feb8-testpass-ordering\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-08T10%3A06%3A02.2284408Z'\\\"_W/\\\"datetime'2019-02-08T10%3A06%3A02.2394486Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/feb8-testpass-ordering2\",\r\n \"name\": \"feb8-testpass-ordering2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A32.6448376Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A32.6508418Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/fleetmock3\",\r\n \"name\": \"fleetmock3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A39.36658Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A39.3735853Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/fleetmock4\",\r\n \"name\": \"fleetmock4\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-13T09%3A25%3A28.6256138Z'\\\"_W/\\\"datetime'2019-02-13T09%3A25%3A28.6306173Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/oldportalnewserviceresource02\",\r\n \"name\": \"oldportalnewserviceresource02\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A34.4330992Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A34.4391035Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderignTestOrderDoesNotExist\",\r\n \"name\": \"OrderignTestOrderDoesNotExist\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T04%3A44%3A57.8982208Z'\\\"_W/\\\"datetime'2019-02-11T04%3A44%3A57.9022237Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestRamya\",\r\n \"name\": \"OrderingTestRamya\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T08%3A45%3A11.6132317Z'\\\"_W/\\\"datetime'2019-02-11T08%3A45%3A11.6322459Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderTestPassResource\",\r\n \"name\": \"OrderTestPassResource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T09%3A20%3A35.1952769Z'\\\"_W/\\\"datetime'2019-02-11T09%3A20%3A35.2152911Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/ordertestpassresource02\",\r\n \"name\": \"ordertestpassresource02\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T05%3A35%3A23.0989162Z'\\\"_W/\\\"datetime'2019-02-11T05%3A35%3A23.1049208Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderTestRamya1\",\r\n \"name\": \"OrderTestRamya1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T08%3A54%3A12.1292495Z'\\\"_W/\\\"datetime'2019-02-11T08%3A54%3A12.1332524Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/sdfdfgdfg\",\r\n \"name\": \"sdfdfgdfg\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A31.7351966Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A31.7412008Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/amrawat-ga-tp3\",\r\n \"name\": \"amrawat-ga-tp3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T05%3A24%3A30.8070944Z'\\\"_W/\\\"datetime'2019-02-11T05%3A24%3A30.8120979Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/amrawatCIKTest\",\r\n \"name\": \"amrawatCIKTest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T09%3A28%3A13.7776688Z'\\\"_W/\\\"datetime'2019-02-15T09%3A28%3A13.7826724Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/amrawatgatp3back\",\r\n \"name\": \"amrawatgatp3back\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-06T04%3A11%3A14.7569649Z'\\\"_W/\\\"datetime'2019-02-06T04%3A11%3A14.7619684Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/dummy\",\r\n \"name\": \"dummy\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A40.3993082Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A40.405312Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/GATestPassDisconnectedTest\",\r\n \"name\": \"GATestPassDisconnectedTest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-05T10%3A29%3A49.0683532Z'\\\"_W/\\\"datetime'2019-02-05T10%3A29%3A49.0743579Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0205-2\",\r\n \"name\": \"anponnet-0205-2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A28.6169988Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A28.6220027Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0205-3\",\r\n \"name\": \"anponnet-0205-3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A30.3892485Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A30.3952527Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0206\",\r\n \"name\": \"anponnet-0206\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01&%24skiptoken=7VTLctowFP0Xpu2qBFnYBGem0yH4AS424Le9kyzVL%2flRbAyk03%2bvCJOki2bXZWe8kO%2b5L13dc36OanruN3lddqOHnyN14bieA1VvsRs9jLK%2bb7uHyaRCNUppRev%2bDj0dD%2fQuaapJd8RdcsjbPm%2fqbkKwSOF3gsczMgdjkc7oGN8nZHw%2fnQF5Du%2fBbCZO2kMz5IQeuomZJ4ema773dwrq0WNzVklKJ%2bTtrNAhT2j3FbX5eOARvMgXCAR5DKZjIHz60JV56zYlrb%2fsFFnEwSkllX9JIBtwAXLTEU%2fr%2fJHhyhpinR3jJ5CT0K42rgrXxfwjxMq%2bme%2bhfCQcJYEGUCAffV0%2bxIF4Q9O1clYwlDgiCVFot%2fzsYdgzXIjWMl%2bk6%2bVi7r%2fWFC%2bbYjHfCDFLaov7vmZZLtKdZkuJ7vG8vq7lWPe434uF93HNlO5UidGVvY9CA6BbtU0cljzGdNSzqaRZUBLD1FrPqQRkAwbcSrAtVVBM5RH5Wtu5GseF8uKF9paW4OJ69oHjP6Ip2SJWnoJVu4wrI8R6W2CXzaLCQKZ67r0qK20Qt1FhNVhrV7F%2bjmhpVLyebmosdOqY2UJ8CAojQEIbBfVjbLJ4tlvK2zjMgKdrFz7F5wk60Jd2Kfh2vRGf3w2v5OmzvVCzrbLPIigEtFo%2f%2bTW75gGBny0J1EIrkJ7rcryMS0HfBlmOSwNGFRCwbitmyJDpZtNAsRysm09edUY2tLtYMTpT11Z%2bYWeBKp4iPxEwa%2fm%2fkflA6l77fOnjrT%2bPT7uOQ9vE0Mr4HfjuSPukYj23SzzuL%2fjt7Tn2%2fm4Up%2bH9zRp9Hi1Vy7UXG8%2f5zzK%2b%2b%2f9Z9s9ZZhX%2fgmWGTgJrtQ39HPvRiatLiZTT4Fa%2bSDRjIKBn1P1DCbkKxNAHri4XN7W8KqC3MlocaBfqngaufX%2fxeNY%2fnvd9xlyVegOsAddcg2v%2fxlNmDwj6x136cUr4N%2fr16zc%3d\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01&%24skiptoken=7VTLctowFP0Xpu2qBFnYBGem0yH4AS424Le9kyzVL%2flRbAyk03%2bvCJOki2bXZWe8kO%2b5L13dc36OanruN3lddqOHnyN14bieA1VvsRs9jLK%2bb7uHyaRCNUppRev%2bDj0dD%2fQuaapJd8RdcsjbPm%2fqbkKwSOF3gsczMgdjkc7oGN8nZHw%2fnQF5Du%2fBbCZO2kMz5IQeuomZJ4ema773dwrq0WNzVklKJ%2bTtrNAhT2j3FbX5eOARvMgXCAR5DKZjIHz60JV56zYlrb%2fsFFnEwSkllX9JIBtwAXLTEU%2fr%2fJHhyhpinR3jJ5CT0K42rgrXxfwjxMq%2bme%2bhfCQcJYEGUCAffV0%2bxIF4Q9O1clYwlDgiCVFot%2fzsYdgzXIjWMl%2bk6%2bVi7r%2fWFC%2bbYjHfCDFLaov7vmZZLtKdZkuJ7vG8vq7lWPe434uF93HNlO5UidGVvY9CA6BbtU0cljzGdNSzqaRZUBLD1FrPqQRkAwbcSrAtVVBM5RH5Wtu5GseF8uKF9paW4OJ69oHjP6Ip2SJWnoJVu4wrI8R6W2CXzaLCQKZ67r0qK20Qt1FhNVhrV7F%2bjmhpVLyebmosdOqY2UJ8CAojQEIbBfVjbLJ4tlvK2zjMgKdrFz7F5wk60Jd2Kfh2vRGf3w2v5OmzvVCzrbLPIigEtFo%2f%2bTW75gGBny0J1EIrkJ7rcryMS0HfBlmOSwNGFRCwbitmyJDpZtNAsRysm09edUY2tLtYMTpT11Z%2bYWeBKp4iPxEwa%2fm%2fkflA6l77fOnjrT%2bPT7uOQ9vE0Mr4HfjuSPukYj23SzzuL%2fjt7Tn2%2fm4Up%2bH9zRp9Hi1Vy7UXG8%2f5zzK%2b%2b%2f9Z9s9ZZhX%2fgmWGTgJrtQ39HPvRiatLiZTT4Fa%2bSDRjIKBn1P1DCbkKxNAHri4XN7W8KqC3MlocaBfqngaufX%2fxeNY%2fnvd9xlyVegOsAddcg2v%2fxlNmDwj6x136cUr4N%2fr16zc%3d", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDEmJTI0c2tpcHRva2VuPTdWVExjdG93RlAwWHB1MnFCRm5ZQkdlbTB5SDRBUzQyNExlOWt5elZMJTJmbFJiQXlrMDMlMmJ2Q0pPa2kyYlhaV2U4a08lMmI1TDEzZGMzNk9hbnJ1TjNsZGRxT0hueU4xNGJpZUExVnZzUnM5akxLJTJiYjd1SHlhUkNOVXBwUmV2JTJiRGowZEQlMmZRdWFhcEpkOFJkY3NqYlBtJTJmcWJrS3dTT0YzZ3Njek1nZGprYzdvR044blpIdyUyZm5RRjVEdSUyZkJiQ1pPMmtNejVJUWV1b21aSjRlbWE3NzNkd3JxMFdOelZrbEtKJTJiVHRyTkFoVDJqM0ZiWDVlT0FSdk1nWENBUjVES1pqSUh6NjBKVjU2ellscmIlMmZzRkZuRXdTa2xsWDlKSUJ0d0FYTFRFVSUyZnIlMmZKSGh5aHBpblIzako1Q1QwSzQycmdyWHhmd2p4TXElMmJtZSUyYmhmQ1FjSllFR1VDQWZmVjAlMmJ4SUY0UTlPMWNsWXdsRGdpQ1ZGb3QlMmZ6c1lkZ3pYSWpXTWwlMmJrNiUyYlZpN3IlMmZXRkMlMmJiWWpIZkNERkxhb3Y3dm1aWkx0S2Raa3VKN3ZHOHZxN2xXUGU0MzR1RjkzSE5sTzVVaWRHVnZZOUNBNkJidFUwY2xqekdkTlN6cWFSWlVCTEQxRnJQcVFSa0F3YmNTckF0VlZCTTVSSDVXdHU1R3NlRjh1S0Y5cGFXNE9KNjlvSGpQNklwMlNKV25vSlZ1NHdySThSNlcyQ1h6YUxDUUtaNjdyMHFLMjBRdDFGaE5WaHJWN0YlMmJqbWhwVkx5ZWJtb3NkT3FZMlVKOENBb2pRRUliQmZWamJMSjR0bHZLMnpqTWdLZHJGejdGNXdrNjBKZDJLZmgydlJHZjN3MnY1T216dlZDenJiTFBJaWdFdEZvJTJmJTJiVFc3NWdHQm55MEoxRUlya0o3cmNyeU1TMEhmQmxtT1N3TkdGUkN3Yml0bXlKRHBadE5Bc1J5c20wOWVkVVkydEx0WU1UcFQxMVolMmJZV2VCS3A0aVB4RXdhJTJmbSUyZmtmbEE2bDc3Zk9uanJUJTJiUFQ3dU9ROXZFME1yNEhmanVTUHVrWWoyM1N6enVMJTJmanQ3VG4yJTJmbTRVcCUyYkg5elJwOUhpMVZ5N1VYRzglMmY1enpLJTJiJTJiJTJmOVo5czlaWmhYJTJmZ21XR1RnSnJ0UTM5SFB2UmlhdExpWlRUNEZhJTJiU0RSaklLQm4xUDFEQ2JrS3hOQUhyaTRYTjdXOEtxQzNNbG9jYUJmcW5nYXVmWCUyZnhlTlklMmZudmQ5eGx5VmVnT3NBZGRjZzJ2JTJmeGxObUR3ajZ4MTM2Y1VyNE4lMmZyMTZ6YyUzZA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fa70a4a1-cfa4-42bd-af15-8713186d7496" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:36:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-original-request-ids": [ + "03833db4-21b9-4163-951e-cbffaefd35fe", + "1e3f9607-e327-4623-9140-1684e5e60847" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "8f8a1b36-6036-4655-a617-72f13b5867a6" + ], + "x-ms-correlation-request-id": [ + "8f8a1b36-6036-4655-a617-72f13b5867a6" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093652Z:8f8a1b36-6036-4655-a617-72f13b5867a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "27698" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T06%3A31%3A23.1417249Z'\\\"_W/\\\"datetime'2019-01-17T06%3A31%3A23.1457295Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testEdgeWithExistingDevice\",\r\n \"name\": \"testEdgeWithExistingDevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T09%3A34%3A04.8397677Z'\\\"_W/\\\"datetime'2019-01-28T09%3A34%3A04.8437711Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TestGatewayDevice1\",\r\n \"name\": \"TestGatewayDevice1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T11%3A10%3A12.6817931Z'\\\"_W/\\\"datetime'2019-01-17T11%3A10%3A12.6857965Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testingDemo\",\r\n \"name\": \"testingDemo\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T11%3A22%3A12.5874055Z'\\\"_W/\\\"datetime'2019-01-17T11%3A22%3A12.5914089Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/tete\",\r\n \"name\": \"tete\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-24T06%3A02%3A05.863724Z'\\\"_W/\\\"datetime'2019-01-24T06%3A02%3A05.8677278Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TriggerTestPA\",\r\n \"name\": \"TriggerTestPA\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T16%3A23%3A04.2566915Z'\\\"_W/\\\"datetime'2019-01-16T16%3A23%3A04.2596948Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/tweeg\",\r\n \"name\": \"tweeg\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T12%3A14%3A52.3685917Z'\\\"_W/\\\"datetime'2019-01-16T12%3A14%3A52.372596Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/twete\",\r\n \"name\": \"twete\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A05.4080062Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A05.4130113Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/VaishnaviTestPA1\",\r\n \"name\": \"VaishnaviTestPA1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A02.3370898Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A02.343096Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachEdgeGA\",\r\n \"name\": \"arramachEdgeGA\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T14%3A31%3A42.2264284Z'\\\"_W/\\\"datetime'2019-01-29T14%3A31%3A42.2314327Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachTriggerApp\",\r\n \"name\": \"arramachTriggerApp\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-08T09%3A44%3A02.3598848Z'\\\"_W/\\\"datetime'2019-02-08T09%3A44%3A02.3638886Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/wshert54ptop6yp5iuyp-hwehr4h35h-43767676876\",\r\n \"name\": \"wshert54ptop6yp5iuyp-hwehr4h35h-43767676876\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A10.003361Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A10.0093667Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-ecy-1012\",\r\n \"name\": \"anponnet-ecy-1012\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A16.9029056Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A16.9079099Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-ecy-1012-mock\",\r\n \"name\": \"anponnet-ecy-1012-mock\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2018-08-30T07%3A23%3A22.1165507Z'\\\"_W/\\\"datetime'2018-08-30T07%3A23%3A22.1215554Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/ChethanEdgeGateway\",\r\n \"name\": \"ChethanEdgeGateway\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2018-12-27T11%3A34%3A32.0946903Z'\\\"_W/\\\"datetime'2018-12-27T11%3A34%3A32.1147094Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/janoopuredgetest02\",\r\n \"name\": \"janoopuredgetest02\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A08.7031285Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A08.7081333Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/janoopuredgetesting02\",\r\n \"name\": \"janoopuredgetesting02\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T07%3A14%3A03.9115879Z'\\\"_W/\\\"datetime'2019-02-15T07%3A14%3A03.9165923Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/GATestPassamrawatrajsing\",\r\n \"name\": \"GATestPassamrawatrajsing\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2018-12-27T12%3A03%3A21.8567133Z'\\\"_W/\\\"datetime'2018-12-27T12%3A03%3A21.8607171Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/IntegrationTestECY\",\r\n \"name\": \"IntegrationTestECY\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-03T17%3A37%3A58.268985Z'\\\"_W/\\\"datetime'2019-01-03T17%3A37%3A58.2819977Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderIntegrationTesting\",\r\n \"name\": \"OrderIntegrationTesting\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-03T17%3A46%3A11.5692022Z'\\\"_W/\\\"datetime'2019-01-03T17%3A46%3A11.5882207Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderIntegrationTesting2\",\r\n \"name\": \"OrderIntegrationTesting2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T14%3A00%3A57.4285925Z'\\\"_W/\\\"datetime'2019-01-17T14%3A00%3A57.4325963Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/apiTest\",\r\n \"name\": \"apiTest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T11%3A05%3A08.9601552Z'\\\"_W/\\\"datetime'2019-01-17T11%3A05%3A08.9641586Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/demoTesting\",\r\n \"name\": \"demoTesting\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T11%3A20%3A43.8353081Z'\\\"_W/\\\"datetime'2019-01-17T11%3A20%3A43.8393119Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/demoTets\",\r\n \"name\": \"demoTets\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"East US 2 EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-10T09%3A07%3A23.6738161Z'\\\"_W/\\\"datetime'2019-01-10T09%3A07%3A23.6778199Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edede\",\r\n \"name\": \"edede\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T09%3A54%3A40.6831032Z'\\\"_W/\\\"datetime'2019-01-16T09%3A54%3A40.688108Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgeTesting\",\r\n \"name\": \"edgeTesting\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A28.7290777Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A28.7340817Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-ga\",\r\n \"name\": \"anponnet-ga\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A29.9189166Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A29.9239197Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-gw-version2\",\r\n \"name\": \"anponnet-gw-version2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"my\": \"justtotest\",\r\n \"Attack\": \"Gum-Gum Bazooka\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A34.5932134Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A34.598217Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass-0206\",\r\n \"name\": \"anponnet-testpass-0206\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A30.3101924Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A30.3212006Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass-mock\",\r\n \"name\": \"anponnet-testpass-mock\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A33.9287419Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A33.9337459Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass2\",\r\n \"name\": \"anponnet-testpass2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A33.1571987Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A33.1632029Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass3\",\r\n \"name\": \"anponnet-testpass3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T09%3A14%3A15.9610913Z'\\\"_W/\\\"datetime'2019-02-11T09%3A14%3A15.9650937Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-version2\",\r\n \"name\": \"anponnet-version2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T09%3A36%3A44.3838535Z'\\\"_W/\\\"datetime'2019-02-15T09%3A36%3A44.3903892Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource\",\r\n \"name\": \"test-gateway-resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A35.2286644Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A35.2346686Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramach132TestPass\",\r\n \"name\": \"arramach132TestPass\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A29.0523059Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A29.0583106Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGAFinalSignOff\",\r\n \"name\": \"arramachGAFinalSignOff\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T03%3A26%3A03.1059253Z'\\\"_W/\\\"datetime'2019-02-11T03%3A26%3A03.1309432Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/ArramachTestOrdering\",\r\n \"name\": \"ArramachTestOrdering\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A32.2195379Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A32.329615Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/janoopuredgetest\",\r\n \"name\": \"janoopuredgetest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-09T09%3A02%3A27.2601085Z'\\\"_W/\\\"datetime'2019-01-09T09%3A02%3A27.2671117Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/tes\",\r\n \"name\": \"tes\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-09T09%3A01%3A34.5307172Z'\\\"_W/\\\"datetime'2019-01-09T09%3A01%3A34.537723Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/tesing\",\r\n \"name\": \"tesing\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2018-12-02T14%3A01%3A51.5260008Z'\\\"_W/\\\"datetime'2018-12-02T14%3A01%3A51.5310043Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testest\",\r\n \"name\": \"testest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-09T08%3A55%3A01.454392Z'\\\"_W/\\\"datetime'2019-01-09T08%3A55%3A01.4613974Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testing\",\r\n \"name\": \"testing\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2018-12-02T13%3A57%3A51.0730228Z'\\\"_W/\\\"datetime'2018-12-02T13%3A57%3A51.0775259Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testResourceCCY\",\r\n \"name\": \"testResourceCCY\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A28.7981268Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A28.8031299Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdrEdgeRes3\",\r\n \"name\": \"bcdrEdgeRes3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A30.5943931Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A30.5993962Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdrtestres1\",\r\n \"name\": \"bcdrtestres1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A32.8009485Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A32.807953Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdrtestres2\",\r\n \"name\": \"bcdrtestres2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-18T15%3A19%3A20.6108274Z'\\\"_W/\\\"datetime'2019-01-18T15%3A19%3A20.6608633Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/respostBCDR\",\r\n \"name\": \"respostBCDR\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A39.0943886Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A39.0993926Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testpassABBhar\",\r\n \"name\": \"testpassABBhar\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A30.9006084Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A30.9066127Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/benedemonGateway123\",\r\n \"name\": \"benedemonGateway123\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T08%3A58%3A31.8993122Z'\\\"_W/\\\"datetime'2019-02-15T08%3A58%3A31.9073179Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/benedemonOrdering\",\r\n \"name\": \"benedemonOrdering\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T15%3A46%3A12.50727Z'\\\"_W/\\\"datetime'2019-02-11T15%3A46%3A12.5332887Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/benedemonOrderingTest123\",\r\n \"name\": \"benedemonOrderingTest123\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01&%24skiptoken=7VTZkqM2FP0XVyZPcVtg7DZdNZWyzWLTgN0sYnlDiGGTgDEYg6fm3yPbM51UJZnKQx7nTaVzF91zdc6XSZUMnZ5XZTt5%2bTKR17bj2rzsro%2bTl0nWdU37MpvRqIrShCZV9xRdz6fkKa7prD2jNj7lTZfXVTvDSEj4TxhNl3gFpkKyTKboOcbT5%2fkSiCv%2bGSyXwqw51X2Ok1M7M%2fL4VLf1p%2b5JirpoUw8yTpMZ%2fvMsJX0eJ%2b3vUZNPe5bBmnzkASdOwXwKuF9%2facu8ceoyqT4eJVFA3iXFFI4xT3pUgNywhcs%2b3xBEzT5UyTm8ghz7FtUdmd8Xqw88kt7q1RsvnjFDsaeAyBPPUBVPoSc80HQvDRLiFwxZcIFvNezsIr4jqBDMbb5O99v1Cr73FEa9WK90LiRxZbLY9yrbdXpUrEWsuqwuVJUcqS6L%2b37D3nGrlB7lBUl21lvgayB6dNNDv2Q5hi0PhpRmXok1Q2lcm3KRBQhwKGeZMicZ0iaCStM6CsO5cnR965CUYHRc68Twz8EcHyJSXrxdsw2p5iO1KZBDlkGhRYY8dC7NSguETVCYNVKaXagOQVJqlPVTDYX4dhUSiwtPXqF5EdcEXrUJDRIuj1vxEPoZcFVlZCzeGbR5uDim4PU2EePvgVNxfr8v5Mx0gizgOS%2bh%2byusyK0O8GC2xbzim97i3pfhZVhy6sFbRJALLh4MBMylI6ysEPLDNZQxy7c2ug1WOrizZqM5%2fsbWO5%2bKlcUUEywPfcA%2f9nskmzHyuCyuytsG%2fo4%2fXs6qmj2q2MYrmLHJekSsPuLh%2bTYZm%2frffsWHOZ78NtnKpmOtddf%2bqSH2s39q6H%2fX0IF5wX%2fXEIngFbZMyx5W96Ppk8hwsrknaa9I1TpIO4YrfEAXr0ipR7RrSltuaqaxFlPt7NKhMDjtElCu0J1L71AoYEXrMehI4vzFB5kHhDwEjioWD6%2b8%2bZ%2b70xrkKWPCMpnz%2fUPEXa3Spf%2bhE%2f9Aj0xyN9V9%2ffoH\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2FucG9ubmV0LXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL3Rlc3QtZ2F0ZXdheS1yZXNvdXJjZT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\",\r\n \"tag4\": \"value4\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "616fb221-812c-49f7-bfa9-a58cffb9094b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "113" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:36:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ae07a0f6-ddd2-4869-aa11-8218b3998700" + ], + "x-ms-client-request-id": [ + "616fb221-812c-49f7-bfa9-a58cffb9094b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "a3caec28-870a-4942-80ea-f8c4d585c424" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093654Z:a3caec28-870a-4942-80ea-f8c4d585c424" + ], + "Content-Length": [ + "721" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\",\r\n \"tag4\": \"value4\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T09%3A36%3A53.7574643Z'\\\"_W/\\\"datetime'2019-02-15T09%3A36%3A53.7624674Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource\",\r\n \"name\": \"test-gateway-resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-gateway-resource?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2FucG9ubmV0LXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL3Rlc3QtZ2F0ZXdheS1yZXNvdXJjZT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bb6f846e-d33a-4002-bf06-61b9eb747702" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:36:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "6fbfce03-27ab-4d8b-8960-6e5b7a036a99" + ], + "x-ms-client-request-id": [ + "bb6f846e-d33a-4002-bf06-61b9eb747702" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "4e6d59a0-dda3-4363-ac18-bcd1fd8e99e7" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093659Z:4e6d59a0-dda3-4363-ac18-bcd1fd8e99e7" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-edge-resource?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2FucG9ubmV0LXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL3Rlc3QtZWRnZS1yZXNvdXJjZT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"standard\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71ee6d2e-9b13-4606-80f3-ae3d69718ef1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "162" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:37:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "56db7898-456b-4781-b93d-49ffb2030375" + ], + "x-ms-client-request-id": [ + "71ee6d2e-9b13-4606-80f3-ae3d69718ef1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "e8b262b1-8225-4f87-8e26-2135a59139cb" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093702Z:e8b262b1-8225-4f87-8e26-2135a59139cb" + ], + "Content-Length": [ + "666" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T09%3A37%3A01.1917092Z'\\\"_W/\\\"datetime'2019-02-15T09%3A37%3A01.1980222Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-edge-resource\",\r\n \"name\": \"test-edge-resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-edge-resource?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2FucG9ubmV0LXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL3Rlc3QtZWRnZS1yZXNvdXJjZT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a9e1d48-cae0-459e-8d1a-6d4ff583ab5b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 15 Feb 2019 09:37:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "e2d5e271-cf20-41e5-9d2d-adb6ff77cadc" + ], + "x-ms-client-request-id": [ + "6a9e1d48-cae0-459e-8d1a-6d4ff583ab5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "532207f7-6cf4-47af-b216-0a1e95c1d8bf" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190215T093704Z:532207f7-6cf4-47af-b216-0a1e95c1d8bf" + ], + "Content-Length": [ + "666" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-15T09%3A37%3A01.1917092Z'\\\"_W/\\\"datetime'2019-02-15T09%3A37%3A01.1980222Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-edge-resource\",\r\n \"name\": \"test-edge-resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceTests/Test_ManageDeviceOperations.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceTests/Test_ManageDeviceOperations.json new file mode 100644 index 000000000000..96d87c996206 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceTests/Test_ManageDeviceOperations.json @@ -0,0 +1,677 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2U/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"standard\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9c54abdb-db0c-4de4-aeff-9de28daf72a8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "165" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:25:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "f7f34497-1cfa-4302-b1da-a40872814fc5" + ], + "x-ms-client-request-id": [ + "9c54abdb-db0c-4de4-aeff-9de28daf72a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "f8939f5a-6dac-4cbb-9fa7-5bff8bbc78d1" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T142551Z:f8939f5a-6dac-4cbb-9fa7-5bff8bbc78d1" + ], + "Content-Length": [ + "674" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T14%3A25%3A49.5823131Z'\\\"_W/\\\"datetime'2019-02-20T14%3A25%3A49.5873162Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device\",\r\n \"name\": \"gateway-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2U/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bef1de28-b59d-47ce-ae66-3fac44771db3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:25:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "d0235529-3bbd-4da4-a2d1-c97b21066f1a" + ], + "x-ms-client-request-id": [ + "bef1de28-b59d-47ce-ae66-3fac44771db3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "837d3774-a0f2-4a80-ba6b-794e73ed5f29" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T142551Z:837d3774-a0f2-4a80-ba6b-794e73ed5f29" + ], + "Content-Length": [ + "674" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T14%3A25%3A49.5823131Z'\\\"_W/\\\"datetime'2019-02-20T14%3A25%3A49.5873162Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device\",\r\n \"name\": \"gateway-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2U/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cfdb6b80-5de2-415d-b691-e3950d5e6730" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:25:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "526d284c-b4c4-4e4b-ba39-1eb8140ebfd0" + ], + "x-ms-client-request-id": [ + "cfdb6b80-5de2-415d-b691-e3950d5e6730" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "ee2f2ef1-336f-45b9-9edc-5ebb1d7d667b" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T142552Z:ee2f2ef1-336f-45b9-9edc-5ebb1d7d667b" + ], + "Content-Length": [ + "674" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T14%3A25%3A49.5823131Z'\\\"_W/\\\"datetime'2019-02-20T14%3A25%3A49.5873162Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device\",\r\n \"name\": \"gateway-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9aa0a120-a7e7-48e5-8c40-3dba91132e02" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:25:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "7318c337-c512-4de5-87f4-687496ea6231" + ], + "x-ms-client-request-id": [ + "9aa0a120-a7e7-48e5-8c40-3dba91132e02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "ff034e2f-6027-4b50-9398-1295d6930421" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T142553Z:ff034e2f-6027-4b50-9398-1295d6930421" + ], + "Content-Length": [ + "1462" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T14%3A15%3A51.1279651Z'\\\"_W/\\\"datetime'2019-02-20T14%3A15%3A51.132969Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/demo-resource\",\r\n \"name\": \"demo-resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T14%3A25%3A49.5823131Z'\\\"_W/\\\"datetime'2019-02-20T14%3A25%3A49.5873162Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device\",\r\n \"name\": \"gateway-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0f59bb26-2b90-4f83-b5d4-6f53ba622d2c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:25:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-original-request-ids": [ + "75b5dad4-f3ca-46c1-b309-5bf03b944ca2", + "69fd328b-7feb-4c34-b4e1-5472bbadadec" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "fdd5d3eb-4780-41ca-9927-831877cb3745" + ], + "x-ms-correlation-request-id": [ + "fdd5d3eb-4780-41ca-9927-831877cb3745" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T142555Z:fdd5d3eb-4780-41ca-9927-831877cb3745" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "28084" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-06T05%3A40%3A26.884201Z'\\\"_W/\\\"datetime'2019-02-06T05%3A40%3A26.8892058Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/12-12\",\r\n \"name\": \"12-12\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T06%3A10%3A49.7417413Z'\\\"_W/\\\"datetime'2019-02-20T06%3A10%3A49.7517508Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/amrawatMock\",\r\n \"name\": \"amrawatMock\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T15%3A06%3A11.3296031Z'\\\"_W/\\\"datetime'2019-01-29T15%3A06%3A11.3336069Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-0129-2\",\r\n \"name\": \"anponnet-0129-2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T06%3A10%3A46.913065Z'\\\"_W/\\\"datetime'2019-02-20T06%3A10%3A46.9170688Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGen2Edge\",\r\n \"name\": \"arramachGen2Edge\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T15%3A08%3A25.558437Z'\\\"_W/\\\"datetime'2019-01-29T15%3A08%3A25.5634421Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGenKey1\",\r\n \"name\": \"arramachGenKey1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T15%3A04%3A04.4849132Z'\\\"_W/\\\"datetime'2019-01-29T15%3A04%3A04.4899184Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGenKeyTestVA\",\r\n \"name\": \"arramachGenKeyTestVA\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T06%3A10%3A47.4155405Z'\\\"_W/\\\"datetime'2019-02-20T06%3A10%3A47.4195443Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/GATestPass01\",\r\n \"name\": \"GATestPass01\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-24T17%3A34%3A33.4440387Z'\\\"_W/\\\"datetime'2019-01-24T17%3A34%3A33.4620557Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/jkblkj\",\r\n \"name\": \"jkblkj\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T08%3A43%3A46.0592084Z'\\\"_W/\\\"datetime'2019-01-28T08%3A43%3A46.0642136Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestResource\",\r\n \"name\": \"OrderingTestResource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T08%3A47%3A58.2898867Z'\\\"_W/\\\"datetime'2019-01-28T08%3A47%3A58.2938905Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestResource2\",\r\n \"name\": \"OrderingTestResource2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T08%3A55%3A32.1487048Z'\\\"_W/\\\"datetime'2019-01-28T08%3A55%3A32.1527086Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestResource3\",\r\n \"name\": \"OrderingTestResource3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T10%3A06%3A15.4431905Z'\\\"_W/\\\"datetime'2019-01-16T10%3A06%3A15.4471948Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/rajordering2\",\r\n \"name\": \"rajordering2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T06%3A02%3A22.7235215Z'\\\"_W/\\\"datetime'2019-01-29T06%3A02%3A22.7275249Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/rajsinghdevice\",\r\n \"name\": \"rajsinghdevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T11%3A46%3A57.6528686Z'\\\"_W/\\\"datetime'2019-01-16T11%3A46%3A57.6568728Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/rert\",\r\n \"name\": \"rert\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-24T17%3A50%3A02.6587564Z'\\\"_W/\\\"datetime'2019-01-24T17%3A50%3A02.6637611Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/resource\",\r\n \"name\": \"resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T06%3A35%3A58.5499585Z'\\\"_W/\\\"datetime'2019-01-17T06%3A35%3A58.5549632Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test011\",\r\n \"name\": \"test011\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T04%3A28%3A12.6562071Z'\\\"_W/\\\"datetime'2019-01-29T04%3A28%3A12.6612115Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test1\",\r\n \"name\": \"test1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T16%3A10%3A08.9949797Z'\\\"_W/\\\"datetime'2019-01-16T16%3A10%3A08.9989843Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testagain\",\r\n \"name\": \"testagain\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T06%3A31%3A23.1417249Z'\\\"_W/\\\"datetime'2019-01-17T06%3A31%3A23.1457295Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testEdgeWithExistingDevice\",\r\n \"name\": \"testEdgeWithExistingDevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-28T09%3A34%3A04.8397677Z'\\\"_W/\\\"datetime'2019-01-28T09%3A34%3A04.8437711Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TestGatewayDevice1\",\r\n \"name\": \"TestGatewayDevice1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T11%3A10%3A12.6817931Z'\\\"_W/\\\"datetime'2019-01-17T11%3A10%3A12.6857965Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testingDemo\",\r\n \"name\": \"testingDemo\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T11%3A22%3A12.5874055Z'\\\"_W/\\\"datetime'2019-01-17T11%3A22%3A12.5914089Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/tete\",\r\n \"name\": \"tete\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-24T06%3A02%3A05.863724Z'\\\"_W/\\\"datetime'2019-01-24T06%3A02%3A05.8677278Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TriggerTestPA\",\r\n \"name\": \"TriggerTestPA\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T16%3A23%3A04.2566915Z'\\\"_W/\\\"datetime'2019-01-16T16%3A23%3A04.2596948Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/tweeg\",\r\n \"name\": \"tweeg\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T12%3A14%3A52.3685917Z'\\\"_W/\\\"datetime'2019-01-16T12%3A14%3A52.372596Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/twete\",\r\n \"name\": \"twete\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A04.6903232Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A04.6963271Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/abbharTestres\",\r\n \"name\": \"abbharTestres\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"displayName\": \"testpassresource\",\r\n \"applicationType\": \"DBE\",\r\n \"owner\": \"abhishek bharadwaj *(*\",\r\n \"tag1\": \"testpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresource\",\r\n \"CreatedBy\": \"testpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresource\",\r\n \"key\": \"testpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresourcetestpassresource\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A16.5588401Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A16.5638441Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/abtp\",\r\n \"name\": \"abtp\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A16.1785674Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A16.2005836Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/abtp-1\",\r\n \"name\": \"abtp-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-12T13%3A25%3A27.0273486Z'\\\"_W/\\\"datetime'2019-02-12T13%3A25%3A27.0563692Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/abtp-2\",\r\n \"name\": \"abtp-2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T15%3A34%3A15.3678269Z'\\\"_W/\\\"datetime'2019-02-11T15%3A34%3A15.3878405Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachOrderTestPass\",\r\n \"name\": \"arramachOrderTestPass\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A13.1954282Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A13.1994315Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/benedemon123Gateway\",\r\n \"name\": \"benedemon123Gateway\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-08T09%3A48%3A04.033153Z'\\\"_W/\\\"datetime'2019-02-08T09%3A48%3A04.0411587Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/feb8-testpass-ordering\",\r\n \"name\": \"feb8-testpass-ordering\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-08T10%3A06%3A02.2284408Z'\\\"_W/\\\"datetime'2019-02-08T10%3A06%3A02.2394486Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/feb8-testpass-ordering2\",\r\n \"name\": \"feb8-testpass-ordering2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A08.7352302Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A08.7412345Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/fleetmock3\",\r\n \"name\": \"fleetmock3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A16.3316772Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A16.3366807Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/fleetmock4\",\r\n \"name\": \"fleetmock4\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-13T09%3A25%3A28.6256138Z'\\\"_W/\\\"datetime'2019-02-13T09%3A25%3A28.6306173Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/oldportalnewserviceresource02\",\r\n \"name\": \"oldportalnewserviceresource02\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A11.3791261Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A11.3881326Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderignTestOrderDoesNotExist\",\r\n \"name\": \"OrderignTestOrderDoesNotExist\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T04%3A44%3A57.8982208Z'\\\"_W/\\\"datetime'2019-02-11T04%3A44%3A57.9022237Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderingTestRamya\",\r\n \"name\": \"OrderingTestRamya\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T08%3A45%3A11.6132317Z'\\\"_W/\\\"datetime'2019-02-11T08%3A45%3A11.6322459Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderTestPassResource\",\r\n \"name\": \"OrderTestPassResource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T09%3A20%3A35.1952769Z'\\\"_W/\\\"datetime'2019-02-11T09%3A20%3A35.2152911Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/ordertestpassresource02\",\r\n \"name\": \"ordertestpassresource02\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T05%3A35%3A23.0989162Z'\\\"_W/\\\"datetime'2019-02-11T05%3A35%3A23.1049208Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderTestRamya1\",\r\n \"name\": \"OrderTestRamya1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T08%3A54%3A12.1292495Z'\\\"_W/\\\"datetime'2019-02-11T08%3A54%3A12.1332524Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/sdfdfgdfg\",\r\n \"name\": \"sdfdfgdfg\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T14%3A03%3A59.3197101Z'\\\"_W/\\\"datetime'2019-02-20T14%3A03%3A59.3247141Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/abbharGATestPass/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testRegisterRP\",\r\n \"name\": \"testRegisterRP\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A01.5880986Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A01.5941025Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/amrawat-alert-mock\",\r\n \"name\": \"amrawat-alert-mock\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A07.4152828Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A07.4212876Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/amrawat-ga-tp3\",\r\n \"name\": \"amrawat-ga-tp3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T05%3A24%3A30.8070944Z'\\\"_W/\\\"datetime'2019-02-11T05%3A24%3A30.8120979Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/amrawatCIKTest\",\r\n \"name\": \"amrawatCIKTest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A02.1995367Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A02.205541Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/amrawatgatp3back\",\r\n \"name\": \"amrawatgatp3back\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-06T04%3A11%3A14.7569649Z'\\\"_W/\\\"datetime'2019-02-06T04%3A11%3A14.7619684Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/dummy\",\r\n \"name\": \"dummy\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A17.9028038Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A17.9068067Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/amrawatRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/GATestPassDisconnectedTest\",\r\n \"name\": \"GATestPassDisconnectedTest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A02.9470732Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A02.9520763Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-ga\",\r\n \"name\": \"anponnet-ga\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01&%24skiptoken=7VTJkpswEP0XV5JTPBYYPGaqUimPWWxisIcd3RBS2CQgBuNlKv8eeVyZ5JDklNxSxUGl192v1fR7z6OanPpNUVfd6OF5pC1cz3dFzV%2fsRg%2bjvO%2fb7mEyYUmdZISRur9LLoc9uUsbNukOqEv3RdsXTd1NMJKI%2bBmj8QzPwVgiMzJG9yke309nQJmL92A2kybtvhkKTPbdxCrSfdM1n%2fs7NemTx%2bak4YxM8I%2bzSoYiJd3HpC3GA8%2fgJB9EIChjMB0D4d2bripar6lI%2fWGnKhIKjxlmwTkV6YBKUFiudFwXjxQxe4AGPcALKHDksI2niety%2flZE6lMzfxKVA%2bYoDnWQhMohMJQ9DKUbmq3Vk4pEmSOyEEdOy88%2bEnuKSsleFotsvVzMg1dO6bwpF%2fONAGla2zz2tcpyke10R04Nn9cNDL1Ahs%2fjvt%2fwPq6Vsp0mU7JynuLIBMmNbQOjiudYrnay1CwPK2xaeuu7TEgcQIHHBMfWBNVSH5NAbztP57hQnf3I2ZIKnD3f2XP8SzzF24RWx3DVLiEzI2S0JfLoLC7NxNJOvc%2fyygGwjUu7QXq7gsYpJpXJOJ9h6TRya0gdAe7D0gwToY3D%2bhFaFM52S2ULoxz4hn7mU3yZoCsG8i4Dn64v4vO74UyZvtyXWm5f1nksCiFh60tQ02sdEAb5Eot6ZIfyCy%2fHK1gJxjbMC1SZYsyAgAxHtSKaWF4%2bDVU7SQw99phSID8%2bx0HuIsO6%2bDWGgeb3r3195%2f3Rj8%2bnW8PIsZBo57xnvivyU8poz%2b9lnvcL%2fPavOfb7XSiPw%2b83afR%2btNRsz1lsfPe%2fqviu%2f1fVP1BV%2fBdUZRo4tFfbKChQEB%2b5m1QWOMUhO5Woko9xuQbEOw4eCySsmwMGPSXeT07IXQCKAfAMpby55dUB%2fZXZolA%2fXzO59%2f0i4sX%2f1D8p6OrUG2APqOYeXAc33VJnSMTgsMveTjH%2fRl%2b%2ffgM%3d\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01&%24skiptoken=7VTJkpswEP0XV5JTPBYYPGaqUimPWWxisIcd3RBS2CQgBuNlKv8eeVyZ5JDklNxSxUGl192v1fR7z6OanPpNUVfd6OF5pC1cz3dFzV%2fsRg%2bjvO%2fb7mEyYUmdZISRur9LLoc9uUsbNukOqEv3RdsXTd1NMJKI%2bBmj8QzPwVgiMzJG9yke309nQJmL92A2kybtvhkKTPbdxCrSfdM1n%2fs7NemTx%2bak4YxM8I%2bzSoYiJd3HpC3GA8%2fgJB9EIChjMB0D4d2bripar6lI%2fWGnKhIKjxlmwTkV6YBKUFiudFwXjxQxe4AGPcALKHDksI2niety%2flZE6lMzfxKVA%2bYoDnWQhMohMJQ9DKUbmq3Vk4pEmSOyEEdOy88%2bEnuKSsleFotsvVzMg1dO6bwpF%2fONAGla2zz2tcpyke10R04Nn9cNDL1Ahs%2fjvt%2fwPq6Vsp0mU7JynuLIBMmNbQOjiudYrnay1CwPK2xaeuu7TEgcQIHHBMfWBNVSH5NAbztP57hQnf3I2ZIKnD3f2XP8SzzF24RWx3DVLiEzI2S0JfLoLC7NxNJOvc%2fyygGwjUu7QXq7gsYpJpXJOJ9h6TRya0gdAe7D0gwToY3D%2bhFaFM52S2ULoxz4hn7mU3yZoCsG8i4Dn64v4vO74UyZvtyXWm5f1nksCiFh60tQ02sdEAb5Eot6ZIfyCy%2fHK1gJxjbMC1SZYsyAgAxHtSKaWF4%2bDVU7SQw99phSID8%2bx0HuIsO6%2bDWGgeb3r3195%2f3Rj8%2bnW8PIsZBo57xnvivyU8poz%2b9lnvcL%2fPavOfb7XSiPw%2b83afR%2btNRsz1lsfPe%2fqviu%2f1fVP1BV%2fBdUZRo4tFfbKChQEB%2b5m1QWOMUhO5Woko9xuQbEOw4eCySsmwMGPSXeT07IXQCKAfAMpby55dUB%2fZXZolA%2fXzO59%2f0i4sX%2f1D8p6OrUG2APqOYeXAc33VJnSMTgsMveTjH%2fRl%2b%2ffgM%3d", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDEmJTI0c2tpcHRva2VuPTdWVEprcHN3RVAwWFY1SlRQQllZUEdhcVVpbVBXV3hpc0ljZDNSQlMyQ1FnQnVObEt2OGVlVnlaNUpEa2xOeFN4VUdsMTkydjFmUjd6Nk9hblBwTlVWZmQ2T0Y1cEMxY3ozZEZ6ViUyZnNSZyUyYmp2TyUyZmI3bUV5WVVtZFpJU1J1cjlMTG9jOXVVc2JOdWtPcUV2M1Jkc1hUZDFOTUpLSSUyYkJtajhRelB3VmdpTXpKRzl5a2UzMDluUUptTDkyQTJreWJ0dmhrS1RQYmR4Q3JTZmRNMW4lMmZzN05lbVR4JTJiYWs0WXhNOEklMmJ6U29ZaUpkM0hwQzNHQTglMmZnSkI5RUlDaGpNQjBENGQyYnJpcGFyNmxJJTJmV0duS2hJS2p4bG13VGtWNllCS1VGaXVkRndYanhReGU0QUdQY0FMS0hEa3NJMm5pZXR5JTJmbFpFNmxNemZ4S1ZBJTJiWW9EbldRaE1vaE1KUTlES1VibXEzVms0cEVtU095RUVkT3k4OCUyYkVudUtTc2xlRm90c3ZWek1nMWRPNmJ3cEYlMmZPTkFHbGEyenoydGNweWtlMTBSMDRObjljTkRMMUFocyUyZmp2dCUyZndQcTZWc3AwbVU3SnludUxJQk1tTmJRT2ppdWRZcm5heTFDd1BLMnhhZXV1N1RFZ2NRSUhIQk1mV0JOVlNINU5BYnp0UDU3aFFuZjNJMlpJS25EM2YyWFA4U3p6RjI0Uld4M0RWTGlFekkyUzBKZkxvTEM3TnhOSk92YyUyZnl5Z0d3alV1N1FYcTdnc1lwSnBYSk9KOWg2VFJ5YTBnZEFlN0QwZ3dUb1kzRCUyYmhGYUZNNTJTMlVMb3h6NGhuN21VM3lab0NzRzhpNERuNjR2NHZPNzRVeVp2dHlYV201ZjFua3NDaUZoNjB0UTAyc2RFQWI1RW90NlpJZnlDeSUyZkhLMWdKeGpiTUMxU1pZc3lBZ0F4SHRTS2FXRjQlMmJEVlU3U1F3OTlwaFNJRDglMmJ4MEh1SXNPNiUyYkRXR2dlYjNyMzE5NSUyZjNSajglMmJuVzhQSXNaQm81N3hudml2eVU4cG96JTJiOWxudmNMJTJmUGF2T2ZiN1hTaVB3JTJiODNhZlIlMmJ0TlJzejFsc2ZQZSUyZnF2aXUlMmYxZlZQMUJWJTJmQmRVWlJvNHRGZmJLQ2hRRUIlMmI1bTFRV09NVWhPNVdva285eHVRYkVPdzRlQ3lTc213TUdQU1hlVDA3SVhRQ0tBZkFNcGJ5NTVkVUIlMmZaWFpvbEElMmZYek81OSUyZjBpNHNYJTJmMUQ4cDZPclVHMkFQcU9ZZVhBYzMzVkpuU01UZ3NNdmVUakglMmZSbCUyYiUyZmZnTSUzZA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b741946-0d32-419b-ab89-61bd7c390315" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:25:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-original-request-ids": [ + "bb46127a-a821-46a4-8db0-77b1810ffb1a", + "b60cd0be-1ac7-4680-9ff8-a698414df9d1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "32ab2f15-49b1-4650-85df-89d8bcab91b7" + ], + "x-ms-correlation-request-id": [ + "32ab2f15-49b1-4650-85df-89d8bcab91b7" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T142556Z:32ab2f15-49b1-4650-85df-89d8bcab91b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "27620" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T06%3A10%3A47.7438512Z'\\\"_W/\\\"datetime'2019-02-20T06%3A10%3A47.7528593Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/VaishnaviTestPA1\",\r\n \"name\": \"VaishnaviTestPA1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T06%3A10%3A46.2554423Z'\\\"_W/\\\"datetime'2019-02-20T06%3A10%3A46.2594461Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachEdgeGA\",\r\n \"name\": \"arramachEdgeGA\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T14%3A31%3A42.2264284Z'\\\"_W/\\\"datetime'2019-01-29T14%3A31%3A42.2314327Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachTriggerApp\",\r\n \"name\": \"arramachTriggerApp\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-08T09%3A44%3A02.3598848Z'\\\"_W/\\\"datetime'2019-02-08T09%3A44%3A02.3638886Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/wshert54ptop6yp5iuyp-hwehr4h35h-43767676876\",\r\n \"name\": \"wshert54ptop6yp5iuyp-hwehr4h35h-43767676876\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T06%3A10%3A49.8558493Z'\\\"_W/\\\"datetime'2019-02-20T06%3A10%3A49.8648583Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-ecy-1012\",\r\n \"name\": \"anponnet-ecy-1012\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T06%3A10%3A52.9177532Z'\\\"_W/\\\"datetime'2019-02-20T06%3A10%3A52.9297645Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-ecy-1012-mock\",\r\n \"name\": \"anponnet-ecy-1012-mock\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2018-08-30T07%3A23%3A22.1165507Z'\\\"_W/\\\"datetime'2018-08-30T07%3A23%3A22.1215554Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/ChethanEdgeGateway\",\r\n \"name\": \"ChethanEdgeGateway\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2018-12-27T11%3A34%3A32.0946903Z'\\\"_W/\\\"datetime'2018-12-27T11%3A34%3A32.1147094Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/janoopuredgetest02\",\r\n \"name\": \"janoopuredgetest02\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T06%3A10%3A49.3453662Z'\\\"_W/\\\"datetime'2019-02-20T06%3A10%3A49.34937Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/janoopuredgetesting02\",\r\n \"name\": \"janoopuredgetesting02\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T06%3A10%3A46.9781261Z'\\\"_W/\\\"datetime'2019-02-20T06%3A10%3A46.9831309Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/GATestPassamrawatrajsing\",\r\n \"name\": \"GATestPassamrawatrajsing\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2018-12-27T12%3A03%3A21.8567133Z'\\\"_W/\\\"datetime'2018-12-27T12%3A03%3A21.8607171Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/IntegrationTestECY\",\r\n \"name\": \"IntegrationTestECY\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-03T17%3A37%3A58.268985Z'\\\"_W/\\\"datetime'2019-01-03T17%3A37%3A58.2819977Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderIntegrationTesting\",\r\n \"name\": \"OrderIntegrationTesting\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-03T17%3A46%3A11.5692022Z'\\\"_W/\\\"datetime'2019-01-03T17%3A46%3A11.5882207Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/benedemonRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/OrderIntegrationTesting2\",\r\n \"name\": \"OrderIntegrationTesting2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T14%3A00%3A57.4285925Z'\\\"_W/\\\"datetime'2019-01-17T14%3A00%3A57.4325963Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/apiTest\",\r\n \"name\": \"apiTest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T11%3A05%3A08.9601552Z'\\\"_W/\\\"datetime'2019-01-17T11%3A05%3A08.9641586Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/demoTesting\",\r\n \"name\": \"demoTesting\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-17T11%3A20%3A43.8353081Z'\\\"_W/\\\"datetime'2019-01-17T11%3A20%3A43.8393119Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/demoTets\",\r\n \"name\": \"demoTets\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"East US 2 EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-10T09%3A07%3A23.6738161Z'\\\"_W/\\\"datetime'2019-01-10T09%3A07%3A23.6778199Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edede\",\r\n \"name\": \"edede\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T09%3A54%3A40.6831032Z'\\\"_W/\\\"datetime'2019-01-16T09%3A54%3A40.688108Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgeTesting\",\r\n \"name\": \"edgeTesting\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-29T08%3A48%3A53.5615929Z'\\\"_W/\\\"datetime'2019-01-29T08%3A48%3A53.5655963Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/emailTest\",\r\n \"name\": \"emailTest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"East US 2 EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-11T09%3A23%3A54.3561441Z'\\\"_W/\\\"datetime'2019-01-11T09%3A23%3A54.3601483Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/emailValidationTesting\",\r\n \"name\": \"emailValidationTesting\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-26T14%3A17%3A32.2737472Z'\\\"_W/\\\"datetime'2019-01-26T14%3A17%3A32.2787515Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/GATestPass1\",\r\n \"name\": \"GATestPass1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-26T14%3A18%3A38.0214129Z'\\\"_W/\\\"datetime'2019-01-26T14%3A18%3A38.0254167Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/GATestPass2\",\r\n \"name\": \"GATestPass2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-16T09%3A59%3A11.9685862Z'\\\"_W/\\\"datetime'2019-01-16T09%3A59%3A11.9715886Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gatewayTesting\",\r\n \"name\": \"gatewayTesting\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"East US 2 EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-08T06%3A44%3A42.8670213Z'\\\"_W/\\\"datetime'2019-01-08T06%3A44%3A42.8870402Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/geeta01\",\r\n \"name\": \"geeta01\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"East US 2 EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-08T15%3A42%3A23.0640803Z'\\\"_W/\\\"datetime'2019-01-08T15%3A42%3A23.0680841Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/geeta/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/keepTesting\",\r\n \"name\": \"keepTesting\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A04.8024032Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A04.8084075Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-gw-version2\",\r\n \"name\": \"anponnet-gw-version2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"my\": \"justtotest\",\r\n \"Attack\": \"Gum-Gum Bazooka\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A11.6503202Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A11.6543231Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass-0206\",\r\n \"name\": \"anponnet-testpass-0206\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A10.5805531Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A10.5875581Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass2\",\r\n \"name\": \"anponnet-testpass2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A09.4347314Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A09.4427371Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass3\",\r\n \"name\": \"anponnet-testpass3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A11.1679743Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A11.1729779Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-testpass4\",\r\n \"name\": \"anponnet-testpass4\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T09%3A14%3A15.9610913Z'\\\"_W/\\\"datetime'2019-02-11T09%3A14%3A15.9650937Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/anponnet-version2\",\r\n \"name\": \"anponnet-version2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A02.4887445Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A02.4937476Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/test-edge-resource\",\r\n \"name\": \"test-edge-resource\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-18T05%3A16%3A41.4159222Z'\\\"_W/\\\"datetime'2019-02-18T05%3A16%3A41.4209258Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/anponnet-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testgatewaysku\",\r\n \"name\": \"testgatewaysku\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A12.7751268Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A12.7901375Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramach132TestPass\",\r\n \"name\": \"arramach132TestPass\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A03.4414276Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A03.4454301Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/arramachGAFinalSignOff\",\r\n \"name\": \"arramachGAFinalSignOff\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-11T03%3A26%3A03.1059253Z'\\\"_W/\\\"datetime'2019-02-11T03%3A26%3A03.1309432Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/arramachRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/ArramachTestOrdering\",\r\n \"name\": \"ArramachTestOrdering\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A08.1307964Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A08.14981Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/janoopuredgetest\",\r\n \"name\": \"janoopuredgetest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-09T09%3A02%3A27.2601085Z'\\\"_W/\\\"datetime'2019-01-09T09%3A02%3A27.2671117Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/tes\",\r\n \"name\": \"tes\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-09T09%3A01%3A34.5307172Z'\\\"_W/\\\"datetime'2019-01-09T09%3A01%3A34.537723Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/tesing\",\r\n \"name\": \"tesing\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2018-12-02T14%3A01%3A51.5260008Z'\\\"_W/\\\"datetime'2018-12-02T14%3A01%3A51.5310043Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testest\",\r\n \"name\": \"testest\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-01-09T08%3A55%3A01.454392Z'\\\"_W/\\\"datetime'2019-01-09T08%3A55%3A01.4613974Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testing\",\r\n \"name\": \"testing\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2018-12-02T13%3A57%3A51.0730228Z'\\\"_W/\\\"datetime'2018-12-02T13%3A57%3A51.0775259Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/AzureVM/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testResourceCCY\",\r\n \"name\": \"testResourceCCY\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A06.9179266Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A06.9229302Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdr-gateway-feb19-1\",\r\n \"name\": \"bcdr-gateway-feb19-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A12.1576844Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A12.1626876Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdr-gateway-feb19-2\",\r\n \"name\": \"bcdr-gateway-feb19-2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A12.6350263Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A12.6480356Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdr-gateway-feb19-3\",\r\n \"name\": \"bcdr-gateway-feb19-3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A13.5556865Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A13.5616912Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdr-gateway-feb19-4\",\r\n \"name\": \"bcdr-gateway-feb19-4\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-19T11%3A49%3A43.3314846Z'\\\"_W/\\\"datetime'2019-02-19T11%3A49%3A43.3875244Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdr-gateway-feb19-5\",\r\n \"name\": \"bcdr-gateway-feb19-5\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A03.0601547Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A03.0661581Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdrEdgeRes3\",\r\n \"name\": \"bcdrEdgeRes3\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A05.5909735Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A05.596977Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdrtestres1\",\r\n \"name\": \"bcdrtestres1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n },\r\n {\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T12%3A24%3A09.01443Z'\\\"_W/\\\"datetime'2019-02-20T12%3A24%3A09.0224362Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/bcdrTestPassRG/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/bcdrtestres2\",\r\n \"name\": \"bcdrtestres2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-03-01&%24skiptoken=7VTLctowFP0Xpu2qBFnYBDKT6QB%2bBIodsPFLO8ly%2fZJsFxvzyOTfK0KbbpLOdKbL7qR7dO%2bRru45T70yPrarrCya3t1TT5s6W9eBmjtd9%2b56advWzd1gwHGJk5jHZXuDz%2ftdfBNVfNDsSRPtsrrNqrIZUCLH8Bsl%2fREdg74cj%2bI%2buY1o%2f3Y4ApMxvAWjkTyod1WX0XjXDMws2lVN9a29UXGLZ9VRo0k8oL%2fXatxlUdx8wXXW70SGILmHQJr0wbAPpE8fmiKrt1URl%2fdrdSIT%2f5BQ7p0iyDqSg8x05MMimzHCrQ4ZbI%2fOIKOBzVdbDS7y8UdI1E013sDJngqU%2bjrA%2fmTvGZMd8uUrmizUo0qgIhBFCgO7FmuXwJaRXLbm2TRZzKdj75VTPq3y6XglIRaVljj7WmU%2bTda6rUSGK%2bp6hp4RwxXnfkXEPS6VkrWmsPjB3oTBEuAr2woFhcgxHe1oqknqF3Rp6rXrcAnbgIEtl2xLk1RTnWFPr5utLnCpOLmB%2fRgX4LR17Z3Av4dD%2bohZcfAf6jniy4AYdU62bBTmS2xqx9blaWEDVIe5VRG9fkDGMYyLJRd8hqmzwCkRsyW08%2fOlj6U69MsZMhkareeTRxSkwDX0k%2bjiSwcd6CnrBHy9vEj074rzyfAlnmupJd4RQsmP%2beLslexSB%2fheOqdQDyxfeeEVeIEKyXj0FexJ4cH3QplKyckKUEY8t33l%2fVX3N58ruleiwDYJtFJxJzELyibirBVxReS9gV%2f%2fUmDv%2f3V%2b6N6flN7n3lyztvZ05Tr%2fVSNm%2bb9q%2fr1q8r9RzUVVSwVpVKjMXmx4mptAUfxcu6jo7PCj2C9heLYc7Am3KIvxCrx4j0OG9KfnvLqSbqcRp4xqxy6EV5dcs9kJ%2b1IaXTKlN%2fCrHkVVqyOl8M3Su2qR2R2G3v7iD3%2fQ28ch7T0%2f%2fwA%3d\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2U/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\",\r\n \"tag4\": \"value4\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f61ff687-5f29-4ebf-9bcc-85b2b5cc55e8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "113" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:26:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "78c77f42-7e1e-44b8-97c6-269c5210d023" + ], + "x-ms-client-request-id": [ + "f61ff687-5f29-4ebf-9bcc-85b2b5cc55e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "ee8a68ba-c6f5-48b2-8c94-a1d07bd42aca" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T142600Z:ee8a68ba-c6f5-48b2-8c94-a1d07bd42aca" + ], + "Content-Length": [ + "720" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\",\r\n \"tag3\": \"value3\",\r\n \"tag4\": \"value4\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T14%3A25%3A59.1932306Z'\\\"_W/\\\"datetime'2019-02-20T14%3A25%3A59.2002351Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device\",\r\n \"name\": \"gateway-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2U/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e1f7ebc1-1a06-4081-8161-b2926a7138df" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:26:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "0e90a109-02fa-4c4c-86ee-a550bdb3f728" + ], + "x-ms-client-request-id": [ + "e1f7ebc1-1a06-4081-8161-b2926a7138df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "45f0e03e-d052-44fa-af48-1bfd14086931" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T142604Z:45f0e03e-d052-44fa-af48-1bfd14086931" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2U/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"standard\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2026adc9-4567-4d9b-a2bf-251021efd10e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "162" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:26:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "f74f53f2-0942-4d14-9769-c5905f8fda45" + ], + "x-ms-client-request-id": [ + "2026adc9-4567-4d9b-a2bf-251021efd10e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "741e3849-4f88-40bb-b9a0-f36cb2200c99" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T142607Z:741e3849-4f88-40bb-b9a0-f36cb2200c99" + ], + "Content-Length": [ + "665" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T14%3A26%3A06.4922547Z'\\\"_W/\\\"datetime'2019-02-20T14%3A26%3A06.4972582Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device\",\r\n \"name\": \"edge-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2U/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9084dc4-e8b9-4d3a-87f6-7901c8851ea2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:26:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "85a93a11-4aea-4435-97a6-c5746b60e974" + ], + "x-ms-client-request-id": [ + "d9084dc4-e8b9-4d3a-87f6-7901c8851ea2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "775967c8-dfc1-408b-afed-dc0a808aa209" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T142608Z:775967c8-dfc1-408b-afed-dc0a808aa209" + ], + "Content-Length": [ + "665" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2019-02-20T14%3A26%3A06.4922547Z'\\\"_W/\\\"datetime'2019-02-20T14%3A26%3A06.4972582Z'\\\"\",\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device\",\r\n \"name\": \"edge-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceUpdatesTests/Test_GetAndDownloadUpdates.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceUpdatesTests/Test_GetAndDownloadUpdates.json new file mode 100644 index 000000000000..b5bd8d61c301 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceUpdatesTests/Test_GetAndDownloadUpdates.json @@ -0,0 +1,2916 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/updateSummary/default?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXBkYXRlU3VtbWFyeS9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2cddbc1e-a395-400b-b8bf-539ed968c98b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:30:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "04a92250-4f6a-4898-a2bf-9b825c1eb863" + ], + "x-ms-client-request-id": [ + "2cddbc1e-a395-400b-b8bf-539ed968c98b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-correlation-request-id": [ + "11101705-5673-4f58-b075-8c45a0f49807" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153032Z:11101705-5673-4f58-b075-8c45a0f49807" + ], + "Content-Length": [ + "710" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"deviceVersionNumber\": \"1.3.683.119\",\r\n \"friendlyDeviceVersionName\": \"Data Box Gateway Preview Version 2.0\",\r\n \"totalNumberOfUpdatesAvailable\": 0,\r\n \"totalNumberOfUpdatesPendingDownload\": 0,\r\n \"totalNumberOfUpdatesPendingInstall\": 0,\r\n \"rebootRequiredForInstall\": false,\r\n \"rebootBehavior\": \"NeverReboots\",\r\n \"ongoingUpdateOperation\": \"None\",\r\n \"totalUpdateSizeInBytes\": 0.0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/updateSummary/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/updateSummary\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/updateSummary/default?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXBkYXRlU3VtbWFyeS9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3d72eeae-4967-4d83-a8ba-01c6c0722f20" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:38:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "1f51d3a7-ab76-480a-bce2-13a974f45955" + ], + "x-ms-client-request-id": [ + "3d72eeae-4967-4d83-a8ba-01c6c0722f20" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11920" + ], + "x-ms-correlation-request-id": [ + "8bc324ea-697c-4037-9f45-84304acebfa1" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153858Z:8bc324ea-697c-4037-9f45-84304acebfa1" + ], + "Content-Length": [ + "1222" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"deviceVersionNumber\": \"1.3.683.119\",\r\n \"friendlyDeviceVersionName\": \"Data Box Gateway Preview Version 2.0\",\r\n \"deviceLastScannedTimeInUTC\": \"2019-02-20T15:38:48.0839821Z\",\r\n \"deviceLastScannedDateTime\": \"2019-02-20T15:38:48.0839821Z\",\r\n \"lastCompletedScanJobTime\": \"2019-02-20T15:30:54.126353Z\",\r\n \"lastCompletedScanJobDateTime\": \"2019-02-20T15:30:54.126353Z\",\r\n \"lastCompletedDownloadJobTime\": \"2019-02-20T15:38:51.583568Z\",\r\n \"lastCompletedDownloadJobDateTime\": \"2019-02-20T15:38:51.583568Z\",\r\n \"totalNumberOfUpdatesAvailable\": 1,\r\n \"totalNumberOfUpdatesPendingDownload\": 0,\r\n \"totalNumberOfUpdatesPendingInstall\": 1,\r\n \"rebootRequiredForInstall\": true,\r\n \"rebootBehavior\": \"RequiresReboot\",\r\n \"ongoingUpdateOperation\": \"None\",\r\n \"updateTitles\": [\r\n \"December 2018 Update for Data Box Gateway Public Preview\"\r\n ],\r\n \"totalUpdateSizeInBytes\": 3109617320.0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/updateSummary/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/updateSummary\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/scanForUpdates?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2NhbkZvclVwZGF0ZXM/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "23feb6aa-3f52-491c-8014-5dbc8a06fe83" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:30:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/d729c0df-0d68-4f4c-9ecc-f46c3be607b4?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "650c39ee-8a9a-4a4c-8895-0bb359a4a5ad" + ], + "x-ms-client-request-id": [ + "23feb6aa-3f52-491c-8014-5dbc8a06fe83" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "aeecaadb-cf4c-4f14-a880-9f0e09d0fbba" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153033Z:aeecaadb-cf4c-4f14-a880-9f0e09d0fbba" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/d729c0df-0d68-4f4c-9ecc-f46c3be607b4?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uUmVzdWx0cy9kNzI5YzBkZi0wZDY4LTRmNGMtOWVjYy1mNDZjM2JlNjA3YjQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:31:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/d729c0df-0d68-4f4c-9ecc-f46c3be607b4?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "1712be1a-1714-4eaa-83d9-7369c51125d4" + ], + "x-ms-client-request-id": [ + "1236fe9d-9306-47b5-b43b-588b8339713d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-correlation-request-id": [ + "c742c38a-16c2-46ef-8434-0ec157025202" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153105Z:c742c38a-16c2-46ef-8434-0ec157025202" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/d729c0df-0d68-4f4c-9ecc-f46c3be607b4?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uUmVzdWx0cy9kNzI5YzBkZi0wZDY4LTRmNGMtOWVjYy1mNDZjM2JlNjA3YjQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:31:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/d729c0df-0d68-4f4c-9ecc-f46c3be607b4?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "c58bfd58-b8a4-451a-a56b-ca104ba54e90" + ], + "x-ms-client-request-id": [ + "1dfa12ba-f8c6-4021-88a6-8a7b8bac7d77" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-correlation-request-id": [ + "59ef2372-7248-4e4d-befa-14e46dae9b04" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153106Z:59ef2372-7248-4e4d-befa-14e46dae9b04" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/downloadUpdates?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvZG93bmxvYWRVcGRhdGVzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8edd54af-9842-447c-913d-35db01c34e46" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:31:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "0c1cfba1-4b8a-49ca-beef-a1c26daee0a7" + ], + "x-ms-client-request-id": [ + "8edd54af-9842-447c-913d-35db01c34e46" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "f9ff61f8-8d77-4f0f-ac60-dc46dc23c071" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153106Z:f9ff61f8-8d77-4f0f-ac60-dc46dc23c071" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uUmVzdWx0cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:31:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "93549cbe-2725-4cd1-870a-65dc578f020d" + ], + "x-ms-client-request-id": [ + "2da5e1fe-5978-4fa9-a326-485eb2e8ccf9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-correlation-request-id": [ + "a426616b-c89a-40e9-804c-e6bcbc2f60ea" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153138Z:a426616b-c89a-40e9-804c-e6bcbc2f60ea" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uUmVzdWx0cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:38:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "0ac0c133-a608-4be5-a9b5-2f37035db09c" + ], + "x-ms-client-request-id": [ + "55ffc300-c0cf-4cc7-b346-0eeb547f8448" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11921" + ], + "x-ms-correlation-request-id": [ + "1625efa4-93d8-415a-91a8-7cda0a7099d3" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153857Z:1625efa4-93d8-415a-91a8-7cda0a7099d3" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:31:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "82e7a0f9-7f5b-4947-a4d2-fe05b705acfc" + ], + "x-ms-client-request-id": [ + "573fefe5-9961-4fed-b55f-387ac57d5790" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-correlation-request-id": [ + "2ef7b841-24c6-4773-b06f-5c565adbd5c8" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153148Z:2ef7b841-24c6-4773-b06f-5c565adbd5c8" + ], + "Content-Length": [ + "898" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 0,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 0,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 0.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:31:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "a910ba85-d824-4072-a5e5-c558d49713f9" + ], + "x-ms-client-request-id": [ + "10a44aa0-4eec-46fd-a78b-f12b27ef7cf3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-correlation-request-id": [ + "09421f07-d47f-4bfd-8699-3ae64caee86a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153159Z:09421f07-d47f-4bfd-8699-3ae64caee86a" + ], + "Content-Length": [ + "898" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 0,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 0,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 0.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:32:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "fb0ecca8-9abe-4634-b0a7-d2e7a3f5be76" + ], + "x-ms-client-request-id": [ + "f2a27cd8-dbeb-43d1-9e99-02d41eedf073" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-correlation-request-id": [ + "3d4740e5-06ab-48e9-a03a-a3b7a74dc085" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153211Z:3d4740e5-06ab-48e9-a03a-a3b7a74dc085" + ], + "Content-Length": [ + "906" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 6,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 6,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 188743680.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:32:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "6e31d99a-8d5b-4521-8a1a-985448a6b1f3" + ], + "x-ms-client-request-id": [ + "45edc89d-33d9-4498-829e-c3a26740f7e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-correlation-request-id": [ + "b413aa07-9cfa-4789-b70b-c2c7afed6cc4" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153222Z:b413aa07-9cfa-4789-b70b-c2c7afed6cc4" + ], + "Content-Length": [ + "908" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 10,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 10,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 329252864.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:32:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "2df8bef7-3975-4e78-abd5-0cdc02ffa26d" + ], + "x-ms-client-request-id": [ + "487893b5-2386-48c4-a2f8-e9a9841cde94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-correlation-request-id": [ + "e94d719a-e87e-40e8-83c9-eb8e6ff1e1ae" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153233Z:e94d719a-e87e-40e8-83c9-eb8e6ff1e1ae" + ], + "Content-Length": [ + "908" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 15,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 15,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 473956352.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:32:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "eafb5a6a-5476-4b70-8077-66c1fd6ee9c6" + ], + "x-ms-client-request-id": [ + "eba9b82e-ccd9-42c9-a44c-c40a2d1557b3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-correlation-request-id": [ + "c84e76fa-c4aa-4361-b992-d49e4e90d896" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153243Z:c84e76fa-c4aa-4361-b992-d49e4e90d896" + ], + "Content-Length": [ + "908" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 20,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 20,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 640679936.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:32:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "d9a89a18-ed73-4b08-bab3-734846d91d66" + ], + "x-ms-client-request-id": [ + "599f28b8-63ba-47b7-bee6-988666a7a260" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-correlation-request-id": [ + "7c2964ec-e69c-4450-a590-eff67ffbae8a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153254Z:7c2964ec-e69c-4450-a590-eff67ffbae8a" + ], + "Content-Length": [ + "908" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 25,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 25,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 790626304.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:33:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "f28895cc-a6e6-407a-bc45-9004cec47d81" + ], + "x-ms-client-request-id": [ + "ebef8158-618b-4edc-8cd3-ac96802cf5da" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-correlation-request-id": [ + "4733e7d7-300b-4a85-af14-f74b2148f257" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153304Z:4733e7d7-300b-4a85-af14-f74b2148f257" + ], + "Content-Length": [ + "908" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 29,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 29,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 927989760.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:33:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ff85beb0-950d-47dc-98c0-fb439b1a2445" + ], + "x-ms-client-request-id": [ + "f9ec954b-2a30-4ef5-82d2-8850f04be023" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-correlation-request-id": [ + "31c241a5-1578-47a1-bc0c-dc95168ed466" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153316Z:31c241a5-1578-47a1-bc0c-dc95168ed466" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 34,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 34,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 1069547520.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:33:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "3b6117ce-b7c7-4637-aa74-156489ef51de" + ], + "x-ms-client-request-id": [ + "a91b3c1d-547d-4647-a073-f64a6cbf78bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-correlation-request-id": [ + "d82b270a-c2d5-4c14-90ce-350fb62ccc16" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153327Z:d82b270a-c2d5-4c14-90ce-350fb62ccc16" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 40,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 40,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 1266679808.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:33:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "1db46124-fee6-4db1-9352-4a0d7c8bb714" + ], + "x-ms-client-request-id": [ + "89ecea24-acd7-452f-945b-335dac6f6cad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-correlation-request-id": [ + "805a1cbb-f982-468d-8b03-b24270bade93" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153338Z:805a1cbb-f982-468d-8b03-b24270bade93" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 45,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 45,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 1423966208.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:33:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "33953d0f-8849-457d-bb76-05a5a99b9f3c" + ], + "x-ms-client-request-id": [ + "258416c0-8515-4b09-9f3a-71251c463644" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "x-ms-correlation-request-id": [ + "070af646-88e6-4cdc-879e-a8233d43c24f" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153348Z:070af646-88e6-4cdc-879e-a8233d43c24f" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 50,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 50,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 1570766848.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:33:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "f024c99f-df7d-40f7-9ce2-5f9ff4e6ecf7" + ], + "x-ms-client-request-id": [ + "0688fc46-af20-4bbb-9e0a-67111f6ba873" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11949" + ], + "x-ms-correlation-request-id": [ + "ccdc11c9-b9e6-4a36-88de-3a8beac48faf" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153359Z:ccdc11c9-b9e6-4a36-88de-3a8beac48faf" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 55,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 55,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 1739587584.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:34:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ed8ed2e8-c5c7-42c7-b658-73f4ef14e00d" + ], + "x-ms-client-request-id": [ + "1d138773-e5e9-4ee6-932f-86839e916585" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11948" + ], + "x-ms-correlation-request-id": [ + "3286431f-b592-4a74-93fd-7d2ce142f95f" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153409Z:3286431f-b592-4a74-93fd-7d2ce142f95f" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 61,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 61,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 1917845504.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:34:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "7abdefad-e2bf-4f13-9b29-4adffa920b63" + ], + "x-ms-client-request-id": [ + "6ad61713-d583-4679-b4d8-ed8d4e4660b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-correlation-request-id": [ + "683ca8b1-d5dc-42f1-b46b-43faed05a0f4" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153421Z:683ca8b1-d5dc-42f1-b46b-43faed05a0f4" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 68,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 68,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 2125463552.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:34:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "753dc357-671c-440f-8768-ab1107785f70" + ], + "x-ms-client-request-id": [ + "7942ea10-2da8-4d3a-bd73-eda68d2e4b7c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-correlation-request-id": [ + "2be46d1c-c469-4d0e-8c19-9922f939f911" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153433Z:2be46d1c-c469-4d0e-8c19-9922f939f911" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 74,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 74,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 2319450112.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:34:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "d303b357-48e2-4b87-9734-4a66c1dcb652" + ], + "x-ms-client-request-id": [ + "f9d9c5ff-83b8-4909-a4ac-4cb8b42cbd42" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11945" + ], + "x-ms-correlation-request-id": [ + "a0ca7be3-06d5-4b87-aefb-1ac78cf8fd46" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153443Z:a0ca7be3-06d5-4b87-aefb-1ac78cf8fd46" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 80,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 80,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 2494103208.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:34:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "421c8ea8-b86d-41d0-9eec-a79838daeefb" + ], + "x-ms-client-request-id": [ + "f01a1997-1417-4c25-a6be-89e2da69d320" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11944" + ], + "x-ms-correlation-request-id": [ + "feeb9ae0-68f1-4d1b-8c92-6c6642169135" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153454Z:feeb9ae0-68f1-4d1b-8c92-6c6642169135" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 87,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 87,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 2722692776.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:35:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "e6eec660-21c6-46d1-b285-8f797ed70080" + ], + "x-ms-client-request-id": [ + "bb90c754-fb8c-4e1c-9ec5-4c325d858c5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11943" + ], + "x-ms-correlation-request-id": [ + "0ababd46-322b-4614-a584-e5f891d8c90b" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153504Z:0ababd46-322b-4614-a584-e5f891d8c90b" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 94,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 94,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 2939748008.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:35:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "1c87acc2-54d9-4587-a9b4-2fac9b84d3ff" + ], + "x-ms-client-request-id": [ + "6af793d9-6ff0-447b-82d6-b75d9e758efc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11942" + ], + "x-ms-correlation-request-id": [ + "73c719dd-71c7-4951-9344-ca88e47a64a8" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153515Z:73c719dd-71c7-4951-9344-ca88e47a64a8" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:35:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "efa9e1f0-9d45-4bc0-a5d9-488d26dc03dd" + ], + "x-ms-client-request-id": [ + "f15972aa-2ef7-4a8f-b385-0073bac0ed22" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11941" + ], + "x-ms-correlation-request-id": [ + "09ba50b6-5e69-4848-b748-8385c88a9348" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153527Z:09ba50b6-5e69-4848-b748-8385c88a9348" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:35:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b6125475-f189-4b91-b0fc-bd70fe2e7cd6" + ], + "x-ms-client-request-id": [ + "7c55ca95-819e-48a4-9b4a-356e8de19054" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11940" + ], + "x-ms-correlation-request-id": [ + "39dc33ab-207c-4609-8922-1f4faaaf6628" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153538Z:39dc33ab-207c-4609-8922-1f4faaaf6628" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:35:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "f3627f7e-eaf1-4374-b3f4-1fa7ac371991" + ], + "x-ms-client-request-id": [ + "0b657b93-ca4e-4ddc-98be-6eae4abee278" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11939" + ], + "x-ms-correlation-request-id": [ + "634f57b8-69d9-4fcc-9cd9-0b12381081ee" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153549Z:634f57b8-69d9-4fcc-9cd9-0b12381081ee" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:35:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ad32af9d-d281-427e-972c-2d81ab38cc4a" + ], + "x-ms-client-request-id": [ + "34f9ccd5-3c1d-4b03-83c8-10127276c5b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11938" + ], + "x-ms-correlation-request-id": [ + "279a8d3d-13b0-42b4-aaf6-5175bfbf578e" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153600Z:279a8d3d-13b0-42b4-aaf6-5175bfbf578e" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:36:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "c684289b-65a7-4bcc-ac8e-b22762f96170" + ], + "x-ms-client-request-id": [ + "ff49873d-bdc1-4eba-a06c-3a5ac4d8295b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11937" + ], + "x-ms-correlation-request-id": [ + "b4c49a8a-f818-40b2-9a02-9d600463b08c" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153610Z:b4c49a8a-f818-40b2-9a02-9d600463b08c" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:36:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "df668de8-9b6b-4ea7-8efd-c1fcc9a99e31" + ], + "x-ms-client-request-id": [ + "1f0df051-3d32-4fa0-9f6b-796a01a97964" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11936" + ], + "x-ms-correlation-request-id": [ + "a0e325a5-abe5-4ef1-a949-d3835bcc0e99" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153621Z:a0e325a5-abe5-4ef1-a949-d3835bcc0e99" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:36:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "884dc8c4-cf0b-4102-af5a-c0acfb236c86" + ], + "x-ms-client-request-id": [ + "8512be81-58a7-4728-86fb-4663a150a026" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11935" + ], + "x-ms-correlation-request-id": [ + "2eeeef25-ca2e-42a1-b5a8-b1800ef4837e" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153632Z:2eeeef25-ca2e-42a1-b5a8-b1800ef4837e" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:36:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "9dca11a7-b3df-459f-a569-fc427b74832e" + ], + "x-ms-client-request-id": [ + "deb07211-844e-41f9-8ae1-15fd81829c6f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11934" + ], + "x-ms-correlation-request-id": [ + "ac641f72-43c1-455e-89c1-bb5fd2265fa0" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153644Z:ac641f72-43c1-455e-89c1-bb5fd2265fa0" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:36:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "9c7342ba-1bad-4eb3-95eb-434c319036ec" + ], + "x-ms-client-request-id": [ + "0e313dfe-18d0-4337-864e-0c2126340671" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11933" + ], + "x-ms-correlation-request-id": [ + "6202a80d-66dd-43af-bf12-2e41c38eb501" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153656Z:6202a80d-66dd-43af-bf12-2e41c38eb501" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:37:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "44e879a4-4867-4e32-b633-b1986857371e" + ], + "x-ms-client-request-id": [ + "e1237cc9-a65b-44ad-83ca-1b8a25724338" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11932" + ], + "x-ms-correlation-request-id": [ + "c2e45f7c-7202-4b5b-9f26-645f7cc80c4f" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153706Z:c2e45f7c-7202-4b5b-9f26-645f7cc80c4f" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:37:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "870e4d6a-0629-4144-be32-cd3ed1784954" + ], + "x-ms-client-request-id": [ + "880ea90d-45a8-4894-985d-d74292e28506" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11931" + ], + "x-ms-correlation-request-id": [ + "760a194d-5604-4e7a-afee-0eceb0fbf31e" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153717Z:760a194d-5604-4e7a-afee-0eceb0fbf31e" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:37:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "555b7559-2589-4d0a-9ab7-a8ec64372a87" + ], + "x-ms-client-request-id": [ + "7dceb145-da90-4d95-8e0d-856a11df46ea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11930" + ], + "x-ms-correlation-request-id": [ + "a56b3a73-71bf-42f7-bf35-2b680eaec842" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153727Z:a56b3a73-71bf-42f7-bf35-2b680eaec842" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:37:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "3f81e7cd-90c0-4efa-a47f-6be4c4ea1f77" + ], + "x-ms-client-request-id": [ + "8707eb11-e89e-4e67-8039-75e2e9ee0902" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11929" + ], + "x-ms-correlation-request-id": [ + "3841177f-ac72-44d0-b6fa-44a236353d3c" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153739Z:3841177f-ac72-44d0-b6fa-44a236353d3c" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:37:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "19469d21-be87-491d-937c-b73ed9d121aa" + ], + "x-ms-client-request-id": [ + "15b5c549-76b2-4112-aa29-d4ad55502621" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11928" + ], + "x-ms-correlation-request-id": [ + "ddbff55d-1d89-462a-bc93-d656881f44ef" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153751Z:ddbff55d-1d89-462a-bc93-d656881f44ef" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:38:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "d261e385-d2f8-49b6-83f0-3c9750ef2f3e" + ], + "x-ms-client-request-id": [ + "61899bd6-7784-428c-8e2b-84da2b1d21a4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11927" + ], + "x-ms-correlation-request-id": [ + "226ce789-57b6-43e8-bd1b-82b42f79a04e" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153802Z:226ce789-57b6-43e8-bd1b-82b42f79a04e" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:38:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "874af885-6677-4d70-9255-6e938facdeb2" + ], + "x-ms-client-request-id": [ + "9641e33d-877c-488a-bd28-4f1edb32e282" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11926" + ], + "x-ms-correlation-request-id": [ + "610d5626-34c2-4cc7-b520-807864b4a04d" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153812Z:610d5626-34c2-4cc7-b520-807864b4a04d" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:38:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b91a0d70-5f19-4393-a120-7571dd952865" + ], + "x-ms-client-request-id": [ + "000ad038-cd24-4e3c-aa31-07e29df1f9c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11925" + ], + "x-ms-correlation-request-id": [ + "fbe18236-a51a-47d2-a695-98cd33a183ae" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153823Z:fbe18236-a51a-47d2-a695-98cd33a183ae" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:38:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "75128128-5c87-4e77-896e-05e7403a1bb2" + ], + "x-ms-client-request-id": [ + "9be82eaa-a316-44b3-a955-f40cf492398e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11924" + ], + "x-ms-correlation-request-id": [ + "39a649be-6f6a-4e4d-84cb-aa1232e9889d" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153833Z:39a649be-6f6a-4e4d-84cb-aa1232e9889d" + ], + "Content-Length": [ + "909" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"DownloadStarted\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:38:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "7719f00e-8591-4cf1-8e6c-7d2333fba958" + ], + "x-ms-client-request-id": [ + "1d8534bc-370d-4a33-b02a-a3f0d25a9fed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11923" + ], + "x-ms-correlation-request-id": [ + "1c199a6d-8f80-4777-9977-02649475f4c4" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153845Z:1c199a6d-8f80-4777-9977-02649475f4c4" + ], + "Content-Length": [ + "901" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"percentComplete\": 99,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"Success\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy9kYzlmOTg2NS1jZDVjLTRiYzItOTJlNS0wMGRkZjM4MTFiOWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:38:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "3f007e9d-bf08-4cad-89a8-e169fb0dbfbc" + ], + "x-ms-client-request-id": [ + "708538ef-10cf-4b9e-97c0-006d97f5b475" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11922" + ], + "x-ms-correlation-request-id": [ + "8aa93d02-e425-4d30-bfff-947ba3842253" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T153856Z:8aa93d02-e425-4d30-bfff-947ba3842253" + ], + "Content-Length": [ + "949" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"name\": \"dc9f9865-cd5c-4bc2-92e5-00ddf3811b9f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-02-20T15:31:09.4745091Z\",\r\n \"endTime\": \"2019-02-20T15:38:51.583568Z\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"Success\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3082354344.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceUpdatesTests/Test_InstallUpdates.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceUpdatesTests/Test_InstallUpdates.json new file mode 100644 index 000000000000..0ea425bfa50c --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.DeviceUpdatesTests/Test_InstallUpdates.json @@ -0,0 +1,150 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/installUpdates?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvaW5zdGFsbFVwZGF0ZXM/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ "7ac22b03-39f8-4820-a898-5cf95350d52f" ], + "accept-language": [ "en-US" ], + "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.17763.", "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" ] + }, + "ResponseHeaders": { + "Cache-Control": [ "no-cache" ], + "Date": [ "Tue, 19 Feb 2019 09:06:51 GMT" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/7e2be80e-91dc-49df-8722-4f26d40a0a1b?api-version=2019-03-01" ], + "Retry-After": [ "30" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "45f99af6-fcb8-4dda-b62b-a3ed25b6f61e" ], + "x-ms-client-request-id": [ "7ac22b03-39f8-4820-a898-5cf95350d52f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "c7cca0d1-8d2f-4dc3-825c-c28d3bccfb9c" ], + "x-ms-routing-request-id": [ "SOUTHINDIA:20190219T090651Z:c7cca0d1-8d2f-4dc3-825c-c28d3bccfb9c" ], + "Content-Length": [ "0" ], + "Expires": [ "-1" ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/7e2be80e-91dc-49df-8722-4f26d40a0a1b?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uUmVzdWx0cy83ZTJiZTgwZS05MWRjLTQ5ZGYtODcyMi00ZjI2ZDQwYTBhMWI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.17763.", "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" ] + }, + "ResponseHeaders": { + "Cache-Control": [ "no-cache" ], + "Date": [ "Tue, 19 Feb 2019 09:07:21 GMT" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/7e2be80e-91dc-49df-8722-4f26d40a0a1b?api-version=2019-03-01" ], + "Retry-After": [ "10" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/7e2be80e-91dc-49df-8722-4f26d40a0a1b?api-version=2019-03-01" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a549af08-3342-4c47-810e-d230d0a448da" ], + "x-ms-client-request-id": [ "75482e91-18d9-4ae4-b170-28f6443641d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "273c8aae-f9b8-4ef6-aa8a-afb230ef81bf" ], + "x-ms-routing-request-id": [ "SOUTHINDIA:20190219T090722Z:273c8aae-f9b8-4ef6-aa8a-afb230ef81bf" ], + "Content-Length": [ "0" ], + "Expires": [ "-1" ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationResults/7e2be80e-91dc-49df-8722-4f26d40a0a1b?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uUmVzdWx0cy83ZTJiZTgwZS05MWRjLTQ5ZGYtODcyMi00ZjI2ZDQwYTBhMWI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.17763.", "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" ] + }, + "ResponseHeaders": { + "Cache-Control": [ "no-cache" ], + "Date": [ "Tue, 19 Feb 2019 09:07:33 GMT" ], + "Pragma": [ "no-cache" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/7e2be80e-91dc-49df-8722-4f26d40a0a1b?api-version=2019-03-01" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "70e3a99e-805e-403b-a3a6-6d98e9a090ef" ], + "x-ms-client-request-id": [ "3ff79982-5d4f-4ceb-9dd0-e9a4f9a37807" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "ead8a827-c6cd-4a28-9e52-8f80841046de" ], + "x-ms-routing-request-id": [ "SOUTHINDIA:20190219T090733Z:ead8a827-c6cd-4a28-9e52-8f80841046de" ], + "Expires": [ "-1" ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/7e2be80e-91dc-49df-8722-4f26d40a0a1b?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvb3BlcmF0aW9uc1N0YXR1cy83ZTJiZTgwZS05MWRjLTQ5ZGYtODcyMi00ZjI2ZDQwYTBhMWI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.17763.", "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" ] + }, + "ResponseHeaders": { + "Cache-Control": [ "no-cache" ], + "Date": [ "Tue, 19 Feb 2019 09:07:32 GMT" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "10e308f3-1f8d-40e3-b404-974dbe58f86c" ], + "x-ms-client-request-id": [ "223d3de0-d7d5-4bb9-b12b-c63c42709f35" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "9e6787cb-4cc2-4c93-a610-7fb950a4ecf0" ], + "x-ms-routing-request-id": [ "SOUTHINDIA:20190219T090732Z:9e6787cb-4cc2-4c93-a610-7fb950a4ecf0" ], + "Content-Length": [ "925" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/7e2be80e-91dc-49df-8722-4f26d40a0a1b\",\r\n \"name\": \"7e2be80e-91dc-49df-8722-4f26d40a0a1b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-02-19T09:06:54.3278634Z\",\r\n \"endTime\": \"2019-02-19T09:07:19.7495451Z\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"jobType\": \"InstallUpdates\",\r\n \"currentStage\": \"Success\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Unknown\",\r\n \"percentComplete\": 0,\r\n \"totalBytesToDownload\": 0.0,\r\n \"totalBytesDownloaded\": 0.0,\r\n \"numberOfUpdatesToDownload\": 0,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/updateSummary/default?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXBkYXRlU3VtbWFyeS9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ "798069f6-c52a-489b-8971-7123ebb1e82a" ], + "accept-language": [ "en-US" ], + "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.17763.", "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" ] + }, + "ResponseHeaders": { + "Cache-Control": [ "no-cache" ], + "Date": [ "Tue, 19 Feb 2019 09:07:33 GMT" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2c20d1dd-8b57-4c22-9d23-3b6e6ceb5f27" ], + "x-ms-client-request-id": [ "798069f6-c52a-489b-8971-7123ebb1e82a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "21124c51-aad6-4284-ac5e-1d70a7316a14" ], + "x-ms-routing-request-id": [ "SOUTHINDIA:20190219T090733Z:21124c51-aad6-4284-ac5e-1d70a7316a14" ], + "Content-Length": [ "983" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"deviceVersionNumber\": \"1.3.734.1450\",\r\n \"friendlyDeviceVersionName\": \"Data Box Gateway Preview Version 2.2\",\r\n \"deviceLastScannedTimeInUTC\": \"2019-02-19T09:07:17.9370717Z\",\r\n \"deviceLastScannedDateTime\": \"2019-02-19T09:07:17.9370717Z\",\r\n \"lastCompletedInstallJobTime\": \"2019-02-19T09:07:19.7495451Z\",\r\n \"lastCompletedInstallJobDateTime\": \"2019-02-19T09:07:19.7495451Z\",\r\n \"totalNumberOfUpdatesAvailable\": 0,\r\n \"totalNumberOfUpdatesPendingDownload\": 0,\r\n \"totalNumberOfUpdatesPendingInstall\": 0,\r\n \"rebootRequiredForInstall\": false,\r\n \"rebootBehavior\": \"NeverReboots\",\r\n \"ongoingUpdateOperation\": \"None\",\r\n \"totalUpdateSizeInBytes\": 0.0\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/updateSummary/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/updateSummary\"\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.JobsTests/Test_Jobs.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.JobsTests/Test_Jobs.json new file mode 100644 index 000000000000..bf6fd209d4a8 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.JobsTests/Test_Jobs.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/jobs/d27da901-5e8c-4e53-880a-e6f6fd4af560?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvam9icy9kMjdkYTkwMS01ZThjLTRlNTMtODgwYS1lNmY2ZmQ0YWY1NjA/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e8f8fcdc-7884-40ac-9262-52fb6804e079" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 14 Feb 2019 09:55:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "24349980-47ae-437b-991a-f4389355fe55" + ], + "x-ms-client-request-id": [ + "e8f8fcdc-7884-40ac-9262-52fb6804e079" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "5a358a69-01cc-4925-9498-579baa9c0b9c" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190214T095556Z:5a358a69-01cc-4925-9498-579baa9c0b9c" + ], + "Content-Length": [ + "969" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/jobs/d27da901-5e8c-4e53-880a-e6f6fd4af560\",\r\n \"name\": \"Download\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/jobs\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-02-14T09:34:06.3187747Z\",\r\n \"endTime\": \"2019-02-14T09:50:11.5874739Z\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"jobType\": \"DownloadUpdates\",\r\n \"currentStage\": \"Success\",\r\n \"downloadProgress\": {\r\n \"downloadPhase\": \"Downloading\",\r\n \"percentComplete\": 99,\r\n \"totalBytesToDownload\": 3109617320.0,\r\n \"totalBytesDownloaded\": 3103325864.0,\r\n \"numberOfUpdatesToDownload\": 1,\r\n \"numberOfUpdatesDownloaded\": 0\r\n },\r\n \"installProgress\": {\r\n \"percentComplete\": 0,\r\n \"numberOfUpdatesToInstall\": 0,\r\n \"numberOfUpdatesInstalled\": 0\r\n },\r\n \"totalRefreshErrors\": 0\r\n }\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.NetworkSettingsTest/Test_GetNetworkSettings.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.NetworkSettingsTest/Test_GetNetworkSettings.json new file mode 100644 index 000000000000..56bad917a6e3 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.NetworkSettingsTest/Test_GetNetworkSettings.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/networkSettings/default?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvbmV0d29ya1NldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4d7ec6b6-07be-4824-802c-f2822ba0f5cf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:40:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "1b921511-f3b4-48d0-8c25-493de1da3a6f" + ], + "x-ms-client-request-id": [ + "4d7ec6b6-07be-4824-802c-f2822ba0f5cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "22f36c99-7393-4ec6-8ca5-b87056950e37" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144034Z:22f36c99-7393-4ec6-8ca5-b87056950e37" + ], + "Content-Length": [ + "1293" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"networkAdapters\": [\r\n {\r\n \"adapterId\": \"{2881A023-766A-4001-9860-075FAEE4E765}\",\r\n \"index\": 1,\r\n \"nodeId\": \"86e799ec-02e7-4836-a310-3a6e8695ee86\",\r\n \"networkAdapterName\": \"Ethernet\",\r\n \"label\": \"Ethernet (00-15-5D-4E-26-83)\",\r\n \"macAddress\": \"00155D4E2683\",\r\n \"linkSpeed\": 10000000000,\r\n \"isActive\": true,\r\n \"status\": \"Active\",\r\n \"rdmaCapable\": true,\r\n \"rdmaStatus\": \"Capable\",\r\n \"dhcpEnabled\": true,\r\n \"dhcpStatus\": \"Enabled\",\r\n \"ipv4Configuration\": {\r\n \"ipAddress\": \"10.150.76.81\",\r\n \"subnet\": \"255.255.252.0\",\r\n \"gateway\": \"10.150.76.1\"\r\n },\r\n \"ipv6Configuration\": {\r\n \"ipAddress\": \"2404:f801:4800:1e:5550:a8e3:df90:719a\",\r\n \"prefixLength\": 64,\r\n \"gateway\": \"fe80::12f3:11ff:fe36:994b%4\"\r\n },\r\n \"dnsServers\": [\r\n \"10.50.50.50\",\r\n \"10.50.10.50\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/networkSettings/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/networkSettings\"\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.OrderTests/Test_DeviceOrders.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.OrderTests/Test_DeviceOrders.json new file mode 100644 index 000000000000..f2c77e5d637c --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.OrderTests/Test_DeviceOrders.json @@ -0,0 +1,513 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvb3JkZXJzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"contactInformation\": {\r\n \"contactPerson\": \"John Mcclane\",\r\n \"companyName\": \"Microsoft\",\r\n \"phone\": \"8004269400\",\r\n \"emailList\": [\r\n \"john@microsoft.com\"\r\n ]\r\n },\r\n \"shippingAddress\": {\r\n \"addressLine1\": \"Microsoft Corporation\",\r\n \"postalCode\": \"98052\",\r\n \"city\": \"Redmond\",\r\n \"state\": \"WA\",\r\n \"country\": \"USA\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "871f8d27-7a7f-43b4-afea-4418f5d7d7e9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "414" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:58:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default/operationResults/e907d45c-ce14-4ac1-8403-4220611c141f?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "54266058-4948-4b09-bc2d-0f89322016fc" + ], + "x-ms-client-request-id": [ + "871f8d27-7a7f-43b4-afea-4418f5d7d7e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "4456ad9e-7b0e-4c58-a012-75913180e08f" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145839Z:4456ad9e-7b0e-4c58-a012-75913180e08f" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default/operationResults/e907d45c-ce14-4ac1-8403-4220611c141f?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvb3JkZXJzL2RlZmF1bHQvb3BlcmF0aW9uUmVzdWx0cy9lOTA3ZDQ1Yy1jZTE0LTRhYzEtODQwMy00MjIwNjExYzE0MWY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:59:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "c10cc527-da00-47a8-b18f-5566b1293d27" + ], + "x-ms-client-request-id": [ + "0f6aea93-03a5-47ac-b0af-207eb78e92de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "6014ff12-5ea4-4d7d-bf3f-a78899e9eab0" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145909Z:6014ff12-5ea4-4d7d-bf3f-a78899e9eab0" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvb3JkZXJzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:59:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "4d706bc2-ad63-46c8-9015-7b80ac69d667" + ], + "x-ms-client-request-id": [ + "03ad7e65-e0ee-4946-b531-6b1327007845" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "8211d6f7-c85c-4098-aa52-369fa6f7d003" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145946Z:8211d6f7-c85c-4098-aa52-369fa6f7d003" + ], + "Content-Length": [ + "1124" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"contactInformation\": {\r\n \"contactPerson\": \"John Mcclane\",\r\n \"companyName\": \"Microsoft\",\r\n \"phone\": \"8004269400\",\r\n \"emailList\": [\r\n \"john@microsoft.com\"\r\n ]\r\n },\r\n \"shippingAddress\": {\r\n \"addressLine1\": \"Microsoft Corporation\",\r\n \"postalCode\": \"98052\",\r\n \"city\": \"Redmond\",\r\n \"state\": \"WA\",\r\n \"country\": \"USA\"\r\n },\r\n \"currentStatus\": {\r\n \"status\": \"Untracked\",\r\n \"updateDateTime\": \"2019-02-20T14:58:38.6848802Z\",\r\n \"comments\": \"Initialising Order with Untracked status\"\r\n },\r\n \"orderHistory\": [\r\n {\r\n \"status\": \"Untracked\",\r\n \"updateDateTime\": \"2019-02-20T14:58:38.6848802Z\",\r\n \"comments\": \"Initialising Order with Untracked status\"\r\n }\r\n ],\r\n \"deliveryTrackingInfo\": [],\r\n \"returnTrackingInfo\": []\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/orders\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvb3JkZXJzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a96610f4-15ac-4396-ac08-2670ab6b4f63" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:59:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "83b179e6-1b1c-498e-b08d-db95ba9741db" + ], + "x-ms-client-request-id": [ + "a96610f4-15ac-4396-ac08-2670ab6b4f63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "1f4a4692-3fcb-446a-8538-6146f911b25a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145954Z:1f4a4692-3fcb-446a-8538-6146f911b25a" + ], + "Content-Length": [ + "1124" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"contactInformation\": {\r\n \"contactPerson\": \"John Mcclane\",\r\n \"companyName\": \"Microsoft\",\r\n \"phone\": \"8004269400\",\r\n \"emailList\": [\r\n \"john@microsoft.com\"\r\n ]\r\n },\r\n \"shippingAddress\": {\r\n \"addressLine1\": \"Microsoft Corporation\",\r\n \"postalCode\": \"98052\",\r\n \"city\": \"Redmond\",\r\n \"state\": \"WA\",\r\n \"country\": \"USA\"\r\n },\r\n \"currentStatus\": {\r\n \"status\": \"Untracked\",\r\n \"updateDateTime\": \"2019-02-20T14:58:38.6848802Z\",\r\n \"comments\": \"Initialising Order with Untracked status\"\r\n },\r\n \"orderHistory\": [\r\n {\r\n \"status\": \"Untracked\",\r\n \"updateDateTime\": \"2019-02-20T14:58:38.6848802Z\",\r\n \"comments\": \"Initialising Order with Untracked status\"\r\n }\r\n ],\r\n \"deliveryTrackingInfo\": [],\r\n \"returnTrackingInfo\": []\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/orders\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvb3JkZXJzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d356184d-7d62-47f0-8bcf-f5e9fe09c4c7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:59:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "d1976693-9732-4ad2-83bc-82a728625065" + ], + "x-ms-client-request-id": [ + "d356184d-7d62-47f0-8bcf-f5e9fe09c4c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "add7d7f9-5fb1-4097-82e9-5e9b7ecabe7b" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145954Z:add7d7f9-5fb1-4097-82e9-5e9b7ecabe7b" + ], + "Content-Length": [ + "1293" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"contactInformation\": {\r\n \"contactPerson\": \"John Mcclane\",\r\n \"companyName\": \"Microsoft\",\r\n \"phone\": \"8004269400\",\r\n \"emailList\": [\r\n \"john@microsoft.com\"\r\n ]\r\n },\r\n \"shippingAddress\": {\r\n \"addressLine1\": \"Microsoft Corporation\",\r\n \"postalCode\": \"98052\",\r\n \"city\": \"Redmond\",\r\n \"state\": \"WA\",\r\n \"country\": \"USA\"\r\n },\r\n \"currentStatus\": {\r\n \"status\": \"Untracked\",\r\n \"updateDateTime\": \"2019-02-20T14:58:38.6848802Z\",\r\n \"comments\": \"Initialising Order with Untracked status\"\r\n },\r\n \"orderHistory\": [\r\n {\r\n \"status\": \"Untracked\",\r\n \"updateDateTime\": \"2019-02-20T14:58:38.6848802Z\",\r\n \"comments\": \"Initialising Order with Untracked status\"\r\n }\r\n ],\r\n \"deliveryTrackingInfo\": [],\r\n \"returnTrackingInfo\": []\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/orders\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvb3JkZXJzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3f526236-86b8-4221-a445-7f8e28ff1d48" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:59:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default/operationResults/c6d3a770-b95c-46f1-84be-b599b9672dc9?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "0e09c789-67ba-4904-a100-08a43e197d80" + ], + "x-ms-client-request-id": [ + "3f526236-86b8-4221-a445-7f8e28ff1d48" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "6ef6fda3-a22c-4222-9d1c-9263358c7801" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145955Z:6ef6fda3-a22c-4222-9d1c-9263358c7801" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default/operationResults/c6d3a770-b95c-46f1-84be-b599b9672dc9?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvb3JkZXJzL2RlZmF1bHQvb3BlcmF0aW9uUmVzdWx0cy9jNmQzYTc3MC1iOTVjLTQ2ZjEtODRiZS1iNTk5Yjk2NzJkYzk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:00:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "5dedd6bf-1239-45d7-bd96-af4b8a573f39" + ], + "x-ms-client-request-id": [ + "a9909ac8-ff96-4405-a384-5d56891d478c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "9fbfb247-98ff-491c-9408-8883581ca4a0" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150026Z:9fbfb247-98ff-491c-9408-8883581ca4a0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/orders/default/operationResults/c6d3a770-b95c-46f1-84be-b599b9672dc9?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvb3JkZXJzL2RlZmF1bHQvb3BlcmF0aW9uUmVzdWx0cy9jNmQzYTc3MC1iOTVjLTQ2ZjEtODRiZS1iNTk5Yjk2NzJkYzk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:00:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "72db1657-613c-4815-a942-1ca1246cb453" + ], + "x-ms-client-request-id": [ + "55982eb4-2bd1-43b5-a25b-43d09be144f3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "3fc8160d-2ad9-4665-acaa-5380f5cd6dc1" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150026Z:3fc8160d-2ad9-4665-acaa-5380f5cd6dc1" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.RoleTests/Test_IoTRoles.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.RoleTests/Test_IoTRoles.json new file mode 100644 index 000000000000..a08351ba0f9e --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.RoleTests/Test_IoTRoles.json @@ -0,0 +1,1464 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/getExtendedInformation?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvZ2V0RXh0ZW5kZWRJbmZvcm1hdGlvbj9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "13dd1565-29eb-4d90-b60b-0d7c25736947" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:01:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "cfef8bd5-9706-4ce0-9677-34e69766ffe7" + ], + "x-ms-client-request-id": [ + "13dd1565-29eb-4d90-b60b-0d7c25736947" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "4d27607e-3aed-4c95-89ac-35c5c69ef798" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150106Z:4d27607e-3aed-4c95-89ac-35c5c69ef798" + ], + "Content-Length": [ + "1964" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"encryptionKeyThumbprint\": \"6BBC5F26CED36A5946F0B010B7AD0C77571F86A8\",\r\n \"encryptionKey\": \"EAAAAGSo0oVVuTKZT+V8ag8m/99oKZa4LCn/jvgRkdHtrhjq6R2QpcyE81sVhmC8WwHJx+HenJHGwqX8TehRXIHLgYQiPIqjkQLJFw86YjgNlVnCao7cMgvUW+fSIHkw3rvdev+VAHBv7Kg3k3ICoNiu9Ri17AKOsHTTn5jKSJYhl0DGlHtkUiwL/xZv+t8fG6DYOGgzxdxwyvXZC2ijG5ieWw6gBjOHO2MOPpfZuiMmIDfpQ8usLvsQsR7srkd3QDFoZZ/2TJeMetiYrM0mAExleWExz/XlvuE77mk+lT1t1Kbyd58me4mZYHcM5eR441glWBZJdkp5UXfSTLn8kKNhpfiOfzxpbUOyg/2Gxd02WBiNkytdn289CIJb7jOtczJd0N2z//fMoNMlBNE49e7He7U2KyuQa2ANCdbwcpnhurMkKu/5la5TZnHZw2e8hQGrYrzz+W+XizgkeW//453FkUHS5djuIs1lhfB2Da6jTHjC+1fFyB5Y2fwDDc9iTypQ95xgCkrLc+WFn5xxYAtAUuEZ4a70xIsY9sCj1a2V5+bnLf0IAclVMaLJQxeecOR0hrQC2e/7l1zUtKO5EQNF0x/M16I9CwpDjYZV8+eSPvXlSdtsmqbTXNYj6elj6QnwBTL7YRe8cDLxTQlo7Bjo6W6qrS9N275zj6utrRfC2k4w2BsfLfGKoXvnu8zLu1Cijy/WDH1gZWGhNfh/hJw9e/MMcCfZ6PQ4RGbWrfzhn2qXD3RWi4roGcKr5uuNyy17NFJX8P/6vJ9TtKyTM9CR2EnS3RqKKbKMNXwdEmnFx+zaOObecuf97eVJ6SKFxWanujmkfHWWY6W1m8it7Y4SeKygYRz3oIkoUm/ytP5/rcxs4UZwrOhHeweJhAcHue/h4GS6N9Gw7yJkIHG3p9IlCs4Ny8K9GhaRj1R++bO8lz3zR+obp0wmJXQL5vK1q7ygJuIGPE3UN3oa6BZ1TwGSD3ymJtzNQe5vyEYu8FYAmiu9XPo6ZpaJEgJ8FDwZfeyALp06C/IOjqJafg68Vfv7uhu9ro+nE77GdV6V+E2GJqpduuc5DBGqJmliXD6tDyHnhrzzjAEam/0+fwfqSMdQogbsixYqFzv8smSfDFV4DRa4vRRu4YUY6SC9BRq6aendu9zNNnu8k0jhNPDCrHkuUnt8ClGqbivv8TmLPDu38FR8s0709ksShlOrinSg/MOGMUgI/Q0rWQsQQL/n/ikWfOPnn6wqhnOcq0VO1QrWmD3v1/Puq1uq93+QRdzHaPdCwBceXjpxMeyxOM5eRRyE4TsbkRVmG2D4ow1jGMCeBvRJaTaYsjfZfh0B3p7wCJfThlXmj/2/Oz1unmIonGy2pOhE+iEqZkLsDqB6fc8JamcMyXZlK4Ll3KpkR2RyoTSunZsmMsiKvE0JYPAkO8X9/++ODPFeB19LHJ7nSYOo8diiWuD/yIp6VrvWPWY8GxY6Bhv1KY41YCo4im8+PXZv7VscVG2drkH5BJZ+hV2AtQFpklTVU9p3BTBODUfbydG6xg==\",\r\n \"resourceKey\": \"7983153680029486840\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device\",\r\n \"name\": \"edge-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/getExtendedInformation?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvZ2V0RXh0ZW5kZWRJbmZvcm1hdGlvbj9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "698d1263-56d8-4c54-bfc5-d4c4263e640a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:01:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "5de60cee-79f8-4d20-82ff-7e19312c12a0" + ], + "x-ms-client-request-id": [ + "698d1263-56d8-4c54-bfc5-d4c4263e640a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "36b31da5-4b11-49fc-b32c-98837e09c7e8" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150107Z:36b31da5-4b11-49fc-b32c-98837e09c7e8" + ], + "Content-Length": [ + "1964" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"encryptionKeyThumbprint\": \"6BBC5F26CED36A5946F0B010B7AD0C77571F86A8\",\r\n \"encryptionKey\": \"EAAAAGSo0oVVuTKZT+V8ag8m/99oKZa4LCn/jvgRkdHtrhjq6R2QpcyE81sVhmC8WwHJx+HenJHGwqX8TehRXIHLgYQiPIqjkQLJFw86YjgNlVnCao7cMgvUW+fSIHkw3rvdev+VAHBv7Kg3k3ICoNiu9Ri17AKOsHTTn5jKSJYhl0DGlHtkUiwL/xZv+t8fG6DYOGgzxdxwyvXZC2ijG5ieWw6gBjOHO2MOPpfZuiMmIDfpQ8usLvsQsR7srkd3QDFoZZ/2TJeMetiYrM0mAExleWExz/XlvuE77mk+lT1t1Kbyd58me4mZYHcM5eR441glWBZJdkp5UXfSTLn8kKNhpfiOfzxpbUOyg/2Gxd02WBiNkytdn289CIJb7jOtczJd0N2z//fMoNMlBNE49e7He7U2KyuQa2ANCdbwcpnhurMkKu/5la5TZnHZw2e8hQGrYrzz+W+XizgkeW//453FkUHS5djuIs1lhfB2Da6jTHjC+1fFyB5Y2fwDDc9iTypQ95xgCkrLc+WFn5xxYAtAUuEZ4a70xIsY9sCj1a2V5+bnLf0IAclVMaLJQxeecOR0hrQC2e/7l1zUtKO5EQNF0x/M16I9CwpDjYZV8+eSPvXlSdtsmqbTXNYj6elj6QnwBTL7YRe8cDLxTQlo7Bjo6W6qrS9N275zj6utrRfC2k4w2BsfLfGKoXvnu8zLu1Cijy/WDH1gZWGhNfh/hJw9e/MMcCfZ6PQ4RGbWrfzhn2qXD3RWi4roGcKr5uuNyy17NFJX8P/6vJ9TtKyTM9CR2EnS3RqKKbKMNXwdEmnFx+zaOObecuf97eVJ6SKFxWanujmkfHWWY6W1m8it7Y4SeKygYRz3oIkoUm/ytP5/rcxs4UZwrOhHeweJhAcHue/h4GS6N9Gw7yJkIHG3p9IlCs4Ny8K9GhaRj1R++bO8lz3zR+obp0wmJXQL5vK1q7ygJuIGPE3UN3oa6BZ1TwGSD3ymJtzNQe5vyEYu8FYAmiu9XPo6ZpaJEgJ8FDwZfeyALp06C/IOjqJafg68Vfv7uhu9ro+nE77GdV6V+E2GJqpduuc5DBGqJmliXD6tDyHnhrzzjAEam/0+fwfqSMdQogbsixYqFzv8smSfDFV4DRa4vRRu4YUY6SC9BRq6aendu9zNNnu8k0jhNPDCrHkuUnt8ClGqbivv8TmLPDu38FR8s0709ksShlOrinSg/MOGMUgI/Q0rWQsQQL/n/ikWfOPnn6wqhnOcq0VO1QrWmD3v1/Puq1uq93+QRdzHaPdCwBceXjpxMeyxOM5eRRyE4TsbkRVmG2D4ow1jGMCeBvRJaTaYsjfZfh0B3p7wCJfThlXmj/2/Oz1unmIonGy2pOhE+iEqZkLsDqB6fc8JamcMyXZlK4Ll3KpkR2RyoTSunZsmMsiKvE0JYPAkO8X9/++ODPFeB19LHJ7nSYOo8diiWuD/yIp6VrvWPWY8GxY6Bhv1KY41YCo4im8+PXZv7VscVG2drkH5BJZ+hV2AtQFpklTVU9p3BTBODUfbydG6xg==\",\r\n \"resourceKey\": \"7983153680029486840\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device\",\r\n \"name\": \"edge-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"IOT\",\r\n \"properties\": {\r\n \"hostPlatform\": \"Linux\",\r\n \"ioTDeviceDetails\": {\r\n \"deviceId\": \"iotdevice\",\r\n \"ioTHostHub\": \"iothub.azure-devices.net\",\r\n \"authentication\": {\r\n \"symmetricKey\": {\r\n \"connectionString\": {\r\n \"value\": \"BoxyUC3kB0pPhDz2BmluDuxb5AgSgHW8+bHl8nud1RhuSISQqGPkmqJc6acupRnllfgehEu7oe3jpFpHT9azujB6/pW8k2c+Lkka/9fCMqn3J8c3XLQIN6K8oqHGxgemOUfTXC9GUb2KUM2AFG2F6cQypOvZ2ykoLQShDTQDOwFutBaZcrD3HvdXjELLZq7A53jYLkCeHXK0iKI39u3/2ot1tc8bovGijZpE96BUpdD2ffLCXsxcDBNQyoE62RI/CHG5f11LCfX659b+UoZA82n5aVg1lm85wUuylirktinAW4ouQ76NpL+EpdytJAV7MqtgKiouMjQ5a1jn7vFEgQ==\",\r\n \"encryptionCertThumbprint\": \"6BBC5F26CED36A5946F0B010B7AD0C77571F86A8\",\r\n \"encryptionAlgorithm\": \"AES256\"\r\n }\r\n }\r\n }\r\n },\r\n \"ioTEdgeDeviceDetails\": {\r\n \"deviceId\": \"iotdevice\",\r\n \"ioTHostHub\": \"iothub.azure-devices.net\",\r\n \"authentication\": {\r\n \"symmetricKey\": {\r\n \"connectionString\": {\r\n \"value\": \"FEBquDkIeV7l2WHlgrTmoM0/DkgrEAKZZIB6nVE8w/XfnvfMTgtjP+butBccTdvMeSqLdkOVL662ImJjS+8XHWI8W0mt/zx8yqOmPjlI9qjehTa0p91mkvttDqdlVavS7kQux611ge9N86D5r188FBrqu70slKQA6vS5mpaX9kPx1DfSz2gtmw7jD3i4RJ4vZesSjDVMtqiTFU1gw3UTtKOftcYF0hJeZZT6B0ay9r+vBGRzSMAXXXNkSQzAo9kOLVVLTUVY6ZnKS7Vl9jwIIj1oyKaWL6fcDmasH1lz0e6glVfPx4vbd2bEyo+ziZbjJJfpOuuGgMWEtutwu3Jo0A==\",\r\n \"encryptionCertThumbprint\": \"6BBC5F26CED36A5946F0B010B7AD0C77571F86A8\",\r\n \"encryptionAlgorithm\": \"AES256\"\r\n }\r\n }\r\n }\r\n },\r\n \"roleStatus\": \"Enabled\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f00bcf5b-16ba-4473-83ef-46cbea8488f3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1581" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:01:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b1d0f4de-a648-42ab-bf3e-f2d8f93b29fe" + ], + "x-ms-client-request-id": [ + "f00bcf5b-16ba-4473-83ef-46cbea8488f3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "1021f084-7e88-4a39-aaed-60f7ef62cba3" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150108Z:1021f084-7e88-4a39-aaed-60f7ef62cba3" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:01:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "c41175e8-b58e-47bf-bca3-6988c2555f38" + ], + "x-ms-client-request-id": [ + "1a8fd3b6-be3c-423f-aece-bdbc314e3798" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "b1f54ea7-5245-42ed-9748-d1891e083e88" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150138Z:b1f54ea7-5245-42ed-9748-d1891e083e88" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:01:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "67a15635-f307-4ba5-8e77-fb5e327b8e5c" + ], + "x-ms-client-request-id": [ + "6da4fa98-88ae-4274-81be-a735a9ca30f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "96379ceb-42fd-4a6f-830d-2d2cbac4ff5b" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150149Z:96379ceb-42fd-4a6f-830d-2d2cbac4ff5b" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:01:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "5da54a31-901f-40b1-8dab-cae881e1dc6a" + ], + "x-ms-client-request-id": [ + "5574e643-22c9-48ad-9deb-2a41525f1786" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "a6501a87-6c8f-471e-aab1-e83bbff1645d" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150159Z:a6501a87-6c8f-471e-aab1-e83bbff1645d" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:02:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "dd17e7af-5131-4433-b84c-bc7741e59a84" + ], + "x-ms-client-request-id": [ + "efc2fa86-a4bf-4036-8af0-109824232634" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "922ab0c7-4b96-45f7-8143-038a7d27a368" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150210Z:922ab0c7-4b96-45f7-8143-038a7d27a368" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:02:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "901948e7-25dc-4b09-8e5f-b77552d672b2" + ], + "x-ms-client-request-id": [ + "232e4f1f-c6ce-419c-8879-4309c3f4bd50" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "a6d9e578-fb9e-4a1f-b000-ed09f1ac84e3" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150220Z:a6d9e578-fb9e-4a1f-b000-ed09f1ac84e3" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:02:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "f1a1829a-6691-4bd8-8ccd-ceb43a22443b" + ], + "x-ms-client-request-id": [ + "afe68a64-9a50-4956-9ebb-0db325d20458" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "dff8ca09-032a-4754-ac8c-3becd18a3bc7" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150232Z:dff8ca09-032a-4754-ac8c-3becd18a3bc7" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:02:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "25aa44f5-89e3-4bb8-8eef-af21c26a658a" + ], + "x-ms-client-request-id": [ + "95c5690e-044d-41dd-a764-0c303cf4ca6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "f9bcbe0c-659c-4f1e-b91b-6eb2ddb39902" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150242Z:f9bcbe0c-659c-4f1e-b91b-6eb2ddb39902" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:02:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ef2c7f4c-11ce-4869-a9c7-8ac216ee1e1c" + ], + "x-ms-client-request-id": [ + "2fee6424-cc2c-437b-968c-dbc80f989f52" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "7e09bde6-283d-4a5c-b4ea-2104be271ab3" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150253Z:7e09bde6-283d-4a5c-b4ea-2104be271ab3" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:03:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "22a8d631-4abe-44af-9399-2219d5647633" + ], + "x-ms-client-request-id": [ + "07e9ff63-cfd9-4aab-b366-2692224fce52" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "50f50cab-6988-4eeb-bd98-a5b3b9061d40" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150303Z:50f50cab-6988-4eeb-bd98-a5b3b9061d40" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:03:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "530e2ddb-ee27-4e74-a377-45592e35424a" + ], + "x-ms-client-request-id": [ + "1ebd2fea-e4ed-40ff-846a-8de12f5a5abf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "406d89ac-664b-4fe1-ae8b-e41092357e09" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150314Z:406d89ac-664b-4fe1-ae8b-e41092357e09" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:03:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "eb669c74-303e-4c80-a523-463fd95ebcf0" + ], + "x-ms-client-request-id": [ + "ce67ff95-9b1e-40e9-b10d-460e1d82f497" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "4dc91dd0-7c1e-4552-aeb1-00dc92b5c830" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150324Z:4dc91dd0-7c1e-4552-aeb1-00dc92b5c830" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:03:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "e94c6e30-7466-45f0-9324-af586dea3aad" + ], + "x-ms-client-request-id": [ + "3df7ea9c-d0cd-48b1-b77e-b2982feb3ca7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "edfb38c3-f58b-4932-b9f1-142cd96aeeaf" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150334Z:edfb38c3-f58b-4932-b9f1-142cd96aeeaf" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:03:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "a29976ee-de7c-413e-9c60-7a1d161ca936" + ], + "x-ms-client-request-id": [ + "8686b6a2-2652-42a7-873d-e9fcb8207c07" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "08ea52ee-ff00-410a-a8eb-a12ecfbcc1e2" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150345Z:08ea52ee-ff00-410a-a8eb-a12ecfbcc1e2" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/48df6c2b-3c67-42e2-8edd-8e7e293a8d31?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy80OGRmNmMyYi0zYzY3LTQyZTItOGVkZC04ZTdlMjkzYThkMzE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:03:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b31c9ba4-3403-47a0-93d3-165fee2d5331" + ], + "x-ms-client-request-id": [ + "995f2e06-a0a8-4b82-baf7-0fe8165c646a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "79b7423b-9dd4-4b72-a00d-16da5ac2af71" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150357Z:79b7423b-9dd4-4b72-a00d-16da5ac2af71" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:04:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "323c3e26-8e6a-487e-aaf9-f6be2eba8be5" + ], + "x-ms-client-request-id": [ + "f5e32c70-ec46-4e0e-a1d6-cb00c975b8ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "e45b1300-74f8-41b9-a12e-f4b7a21e61da" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150407Z:e45b1300-74f8-41b9-a12e-f4b7a21e61da" + ], + "Content-Length": [ + "750" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"hostPlatform\": \"Linux\",\r\n \"ioTDeviceDetails\": {\r\n \"deviceId\": \"iotdevice\",\r\n \"ioTHostHub\": \"iothub.azure-devices.net\",\r\n \"authentication\": {\r\n \"symmetricKey\": {}\r\n }\r\n },\r\n \"ioTEdgeDeviceDetails\": {\r\n \"deviceId\": \"iotdevice\",\r\n \"ioTHostHub\": \"iothub.azure-devices.net\",\r\n \"authentication\": {\r\n \"symmetricKey\": {}\r\n }\r\n },\r\n \"shareMappings\": [],\r\n \"roleStatus\": \"Enabled\"\r\n },\r\n \"kind\": \"IOT\",\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1\",\r\n \"name\": \"iot-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2bff9495-d0fb-4087-b477-dd49bc8bd698" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:04:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "f6752c10-2176-4db3-ac1e-b221f343146b" + ], + "x-ms-client-request-id": [ + "2bff9495-d0fb-4087-b477-dd49bc8bd698" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "d2489880-cc19-481c-a22c-7f966fe45b2a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150408Z:d2489880-cc19-481c-a22c-7f966fe45b2a" + ], + "Content-Length": [ + "750" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"hostPlatform\": \"Linux\",\r\n \"ioTDeviceDetails\": {\r\n \"deviceId\": \"iotdevice\",\r\n \"ioTHostHub\": \"iothub.azure-devices.net\",\r\n \"authentication\": {\r\n \"symmetricKey\": {}\r\n }\r\n },\r\n \"ioTEdgeDeviceDetails\": {\r\n \"deviceId\": \"iotdevice\",\r\n \"ioTHostHub\": \"iothub.azure-devices.net\",\r\n \"authentication\": {\r\n \"symmetricKey\": {}\r\n }\r\n },\r\n \"shareMappings\": [],\r\n \"roleStatus\": \"Enabled\"\r\n },\r\n \"kind\": \"IOT\",\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1\",\r\n \"name\": \"iot-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXM/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "df84713f-5b8a-46ed-b153-e1f8a1449fed" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:04:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "7793f06a-4204-4996-8e39-d5f615e33cc0" + ], + "x-ms-client-request-id": [ + "df84713f-5b8a-46ed-b153-e1f8a1449fed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "0638bcf8-0ad9-4a4f-aede-ee65916cd24a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150408Z:0638bcf8-0ad9-4a4f-aede-ee65916cd24a" + ], + "Content-Length": [ + "875" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"hostPlatform\": \"Linux\",\r\n \"ioTDeviceDetails\": {\r\n \"deviceId\": \"iotdevice\",\r\n \"ioTHostHub\": \"iothub.azure-devices.net\",\r\n \"authentication\": {\r\n \"symmetricKey\": {}\r\n }\r\n },\r\n \"ioTEdgeDeviceDetails\": {\r\n \"deviceId\": \"iotdevice\",\r\n \"ioTHostHub\": \"iothub.azure-devices.net\",\r\n \"authentication\": {\r\n \"symmetricKey\": {}\r\n }\r\n },\r\n \"shareMappings\": [],\r\n \"roleStatus\": \"Enabled\"\r\n },\r\n \"kind\": \"IOT\",\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1\",\r\n \"name\": \"iot-1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "53316ed8-c5fb-4dd9-b993-9323f027dc0f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:04:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/21ae62e4-9918-4bd4-99e5-8a107d66d540?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b88ea2f9-744e-4ab1-96af-f42f0dc9901d" + ], + "x-ms-client-request-id": [ + "53316ed8-c5fb-4dd9-b993-9323f027dc0f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "5f0ee764-f402-438a-90f7-68df1f918acf" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150409Z:5f0ee764-f402-438a-90f7-68df1f918acf" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/21ae62e4-9918-4bd4-99e5-8a107d66d540?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy8yMWFlNjJlNC05OTE4LTRiZDQtOTllNS04YTEwN2Q2NmQ1NDA/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:04:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "0412b313-fedb-48c7-957b-c68b3aa91619" + ], + "x-ms-client-request-id": [ + "42333bb9-60cf-4f89-9e5e-d8d37d5f73a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "1b395051-ba31-4cc4-b371-189e534e643a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150440Z:1b395051-ba31-4cc4-b371-189e534e643a" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/iot-1/operationResults/21ae62e4-9918-4bd4-99e5-8a107d66d540?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2Uvcm9sZXMvaW90LTEvb3BlcmF0aW9uUmVzdWx0cy8yMWFlNjJlNC05OTE4LTRiZDQtOTllNS04YTEwN2Q2NmQ1NDA/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:04:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "a961dbae-74ad-441a-8a0a-a0ba604b0804" + ], + "x-ms-client-request-id": [ + "bb7f8652-cbd8-4d1d-a4ca-ec23f0b66c9b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-correlation-request-id": [ + "f84a31c6-8981-4f59-a5fa-bbf65f339a6c" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T150440Z:f84a31c6-8981-4f59-a5fa-bbf65f339a6c" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.ShareTests/Test_RefreshShare.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.ShareTests/Test_RefreshShare.json new file mode 100644 index 000000000000..dfdcdeb75286 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.ShareTests/Test_RefreshShare.json @@ -0,0 +1,192 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1/refresh?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL25mczEvcmVmcmVzaD9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9f279f48-fc03-4106-ba09-7762251d89eb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:57:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1/operationResults/32c599d1-5e3b-47bf-a5f2-9743c697adb0?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "914f9bfa-033e-45a1-a422-a80f7eb580a7" + ], + "x-ms-client-request-id": [ + "9f279f48-fc03-4106-ba09-7762251d89eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "e208da9f-a573-407f-9980-40aff63d0eb6" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145700Z:e208da9f-a573-407f-9980-40aff63d0eb6" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1/operationResults/32c599d1-5e3b-47bf-a5f2-9743c697adb0?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL25mczEvb3BlcmF0aW9uUmVzdWx0cy8zMmM1OTlkMS01ZTNiLTQ3YmYtYTVmMi05NzQzYzY5N2FkYjA/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:57:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/32c599d1-5e3b-47bf-a5f2-9743c697adb0?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "038a3a3b-a307-4eb1-aeca-d9035d2131d3" + ], + "x-ms-client-request-id": [ + "92f1e6b3-20d3-43ec-a354-ffbdb22f0354" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "7a8b05be-9b7a-441d-867a-978338d5f566" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145731Z:7a8b05be-9b7a-441d-867a-978338d5f566" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1/operationResults/32c599d1-5e3b-47bf-a5f2-9743c697adb0?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL25mczEvb3BlcmF0aW9uUmVzdWx0cy8zMmM1OTlkMS01ZTNiLTQ3YmYtYTVmMi05NzQzYzY5N2FkYjA/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:57:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/operationsStatus/32c599d1-5e3b-47bf-a5f2-9743c697adb0?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "4dacce94-a817-4223-b418-98f4867ca722" + ], + "x-ms-client-request-id": [ + "c7f7c88c-8fce-4b70-8dec-6b25183344de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "90be2799-20a1-4fc8-8556-0c838c347a74" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145732Z:90be2799-20a1-4fc8-8556-0c838c347a74" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.ShareTests/Test_ShareOperations.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.ShareTests/Test_ShareOperations.json new file mode 100644 index 000000000000..5955a57673d4 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.ShareTests/Test_ShareOperations.json @@ -0,0 +1,840 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0c0de237-8876-4d88-83a6-a9eecb793a42" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:47:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "354eaf53-6f99-4881-8475-a5a89c46754c" + ], + "x-ms-client-request-id": [ + "0c0de237-8876-4d88-83a6-a9eecb793a42" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "f3e5ce74-2842-4af5-b4d8-46fd2d86c247" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144726Z:f3e5ce74-2842-4af5-b4d8-46fd2d86c247" + ], + "Content-Length": [ + "282" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {},\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1\",\r\n \"name\": \"user1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/users\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMxP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "48f2b5aa-2674-4eb8-8202-ca08950226f9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:47:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "43f769a0-2be8-40e6-8033-92bef20fe688" + ], + "x-ms-client-request-id": [ + "48f2b5aa-2674-4eb8-8202-ca08950226f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "75f31d16-6d7f-4fe8-b124-7ea618838f04" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144726Z:75f31d16-6d7f-4fe8-b124-7ea618838f04" + ], + "Content-Length": [ + "447" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"alias\": \"sac1\",\r\n \"userName\": \"databoxedgeutdst\",\r\n \"sslStatus\": \"Disabled\",\r\n \"accountType\": \"BlobStorage\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"name\": \"sac1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/storageAccountCredentials\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL3NtYjE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"shareStatus\": \"Online\",\r\n \"monitoringStatus\": \"Enabled\",\r\n \"azureContainerInfo\": {\r\n \"storageAccountCredentialId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"containerName\": \"testContainersmb\",\r\n \"dataFormat\": \"BlockBlob\"\r\n },\r\n \"accessProtocol\": \"SMB\",\r\n \"userAccessRights\": [\r\n {\r\n \"userId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1\",\r\n \"accessType\": \"Change\"\r\n }\r\n ],\r\n \"dataPolicy\": \"Cloud\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8c2761b0-b5fd-4e16-9aad-88da087fbb63" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "761" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:47:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1/operationResults/e8da7cff-3f78-4ad6-a820-a47d5af2a5db?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "0d10150e-702c-41c6-9b0e-f493dc6839c6" + ], + "x-ms-client-request-id": [ + "8c2761b0-b5fd-4e16-9aad-88da087fbb63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "8c3192b1-7278-4123-a962-24f1e5a5f7f6" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144728Z:8c3192b1-7278-4123-a962-24f1e5a5f7f6" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1/operationResults/e8da7cff-3f78-4ad6-a820-a47d5af2a5db?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL3NtYjEvb3BlcmF0aW9uUmVzdWx0cy9lOGRhN2NmZi0zZjc4LTRhZDYtYTgyMC1hNDdkNWFmMmE1ZGI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:47:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "bfa49bc8-7098-4d44-8561-48bfe0ed0d77" + ], + "x-ms-client-request-id": [ + "1e828ff4-e721-4f48-82c8-b1c201c7fbb2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "c78732f3-d621-432c-8211-da7067a07d33" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144758Z:c78732f3-d621-432c-8211-da7067a07d33" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL3NtYjE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:48:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "1e7c8aec-ea79-4eb6-bc76-ab07069a8d83" + ], + "x-ms-client-request-id": [ + "0e25b903-511c-40fe-9a67-36fe2304696a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "4b650a49-93f6-4183-a12e-59feaa7a57f5" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144829Z:4b650a49-93f6-4183-a12e-59feaa7a57f5" + ], + "Content-Length": [ + "1128" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"\",\r\n \"shareStatus\": \"Online\",\r\n \"monitoringStatus\": \"Disabled\",\r\n \"azureContainerInfo\": {\r\n \"storageAccountCredentialId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"containerName\": \"testContainersmb\",\r\n \"dataFormat\": \"BlockBlob\"\r\n },\r\n \"accessProtocol\": \"SMB\",\r\n \"userAccessRights\": [\r\n {\r\n \"userId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1\",\r\n \"accessType\": \"Change\"\r\n }\r\n ],\r\n \"clientAccessRights\": [],\r\n \"refreshDetails\": {},\r\n \"shareMappings\": [],\r\n \"dataPolicy\": \"Cloud\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1\",\r\n \"name\": \"smb1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/shares\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL3NtYjE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8574bcf9-960a-40b8-9c0e-72ca30f66d96" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:49:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "1d877bac-56de-44d1-bef1-118cebab2b77" + ], + "x-ms-client-request-id": [ + "8574bcf9-960a-40b8-9c0e-72ca30f66d96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "1caa24a7-fbbc-4407-a132-c40d9baf869d" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144933Z:1caa24a7-fbbc-4407-a132-c40d9baf869d" + ], + "Content-Length": [ + "1128" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"\",\r\n \"shareStatus\": \"Online\",\r\n \"monitoringStatus\": \"Disabled\",\r\n \"azureContainerInfo\": {\r\n \"storageAccountCredentialId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"containerName\": \"testContainersmb\",\r\n \"dataFormat\": \"BlockBlob\"\r\n },\r\n \"accessProtocol\": \"SMB\",\r\n \"userAccessRights\": [\r\n {\r\n \"userId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1\",\r\n \"accessType\": \"Change\"\r\n }\r\n ],\r\n \"clientAccessRights\": [],\r\n \"refreshDetails\": {},\r\n \"shareMappings\": [],\r\n \"dataPolicy\": \"Cloud\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1\",\r\n \"name\": \"smb1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/shares\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL25mczE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"shareStatus\": \"Online\",\r\n \"monitoringStatus\": \"Enabled\",\r\n \"azureContainerInfo\": {\r\n \"storageAccountCredentialId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"containerName\": \"testContainernfs\",\r\n \"dataFormat\": \"BlockBlob\"\r\n },\r\n \"accessProtocol\": \"NFS\",\r\n \"clientAccessRights\": [\r\n {\r\n \"client\": \"10.150.76.81\",\r\n \"accessPermission\": \"ReadWrite\"\r\n }\r\n ],\r\n \"dataPolicy\": \"Cloud\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b099c7dd-4902-4a8c-8369-a8f33e6601e6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "620" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:48:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1/operationResults/16b10193-b8e1-4bfb-9948-1f9759e3d5db?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "87041a49-d02a-4a88-9a5f-82ff196795c5" + ], + "x-ms-client-request-id": [ + "b099c7dd-4902-4a8c-8369-a8f33e6601e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "abd0b49e-b31f-422a-b3de-35a6e0c82e9c" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144830Z:abd0b49e-b31f-422a-b3de-35a6e0c82e9c" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1/operationResults/16b10193-b8e1-4bfb-9948-1f9759e3d5db?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL25mczEvb3BlcmF0aW9uUmVzdWx0cy8xNmIxMDE5My1iOGUxLTRiZmItOTk0OC0xZjk3NTllM2Q1ZGI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:49:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "a48e3d94-445f-4afe-97d5-1d2603bc7f58" + ], + "x-ms-client-request-id": [ + "49603736-8b39-477f-a003-c575ea9c6c59" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "a24d5499-947d-4ec6-ae42-03bfc832cb29" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144900Z:a24d5499-947d-4ec6-ae42-03bfc832cb29" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL25mczE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:49:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "6faa2a32-8c18-4c84-b29c-6a414ca2ce8c" + ], + "x-ms-client-request-id": [ + "4f33aad9-fe85-4d57-ada6-a0f7fcb7cfee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "a8249797-eb40-41a3-befc-8d4326e86763" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144932Z:a8249797-eb40-41a3-befc-8d4326e86763" + ], + "Content-Length": [ + "985" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"\",\r\n \"shareStatus\": \"Online\",\r\n \"monitoringStatus\": \"Disabled\",\r\n \"azureContainerInfo\": {\r\n \"storageAccountCredentialId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"containerName\": \"testContainernfs\",\r\n \"dataFormat\": \"BlockBlob\"\r\n },\r\n \"accessProtocol\": \"NFS\",\r\n \"userAccessRights\": [],\r\n \"clientAccessRights\": [\r\n {\r\n \"client\": \"10.150.76.81\",\r\n \"accessPermission\": \"ReadWrite\"\r\n }\r\n ],\r\n \"refreshDetails\": {},\r\n \"shareMappings\": [],\r\n \"dataPolicy\": \"Cloud\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1\",\r\n \"name\": \"nfs1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/shares\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "96561b39-d8bb-4356-be8b-35edaf645e3c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:49:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "465524d9-0018-49c4-8721-7a6e46326a4b" + ], + "x-ms-client-request-id": [ + "96561b39-d8bb-4356-be8b-35edaf645e3c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "5da43079-989f-4f72-80cc-de6c5062511f" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144933Z:5da43079-989f-4f72-80cc-de6c5062511f" + ], + "Content-Length": [ + "2349" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"\",\r\n \"shareStatus\": \"Online\",\r\n \"monitoringStatus\": \"Disabled\",\r\n \"azureContainerInfo\": {\r\n \"storageAccountCredentialId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"containerName\": \"testContainersmb\",\r\n \"dataFormat\": \"BlockBlob\"\r\n },\r\n \"accessProtocol\": \"SMB\",\r\n \"userAccessRights\": [\r\n {\r\n \"userId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1\",\r\n \"accessType\": \"Change\"\r\n }\r\n ],\r\n \"clientAccessRights\": [],\r\n \"refreshDetails\": {},\r\n \"shareMappings\": [],\r\n \"dataPolicy\": \"Cloud\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1\",\r\n \"name\": \"smb1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/shares\"\r\n },\r\n {\r\n \"properties\": {\r\n \"description\": \"\",\r\n \"shareStatus\": \"Online\",\r\n \"monitoringStatus\": \"Disabled\",\r\n \"azureContainerInfo\": {\r\n \"storageAccountCredentialId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"containerName\": \"testContainernfs\",\r\n \"dataFormat\": \"BlockBlob\"\r\n },\r\n \"accessProtocol\": \"NFS\",\r\n \"userAccessRights\": [],\r\n \"clientAccessRights\": [\r\n {\r\n \"client\": \"10.150.76.81\",\r\n \"accessPermission\": \"ReadWrite\"\r\n }\r\n ],\r\n \"refreshDetails\": {},\r\n \"shareMappings\": [],\r\n \"dataPolicy\": \"Cloud\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/nfs1\",\r\n \"name\": \"nfs1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/shares\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL3NtYjE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1cd41fdd-5ec1-4fbb-9d7a-d93f8b527121" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:49:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1/operationResults/249b663e-b1bd-45f0-8469-4a448099e213?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "824b6b58-036e-4ab0-b100-42bc395eec76" + ], + "x-ms-client-request-id": [ + "1cd41fdd-5ec1-4fbb-9d7a-d93f8b527121" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "ba0dea1d-ba0a-4d31-95b9-0cccfc7cb376" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144934Z:ba0dea1d-ba0a-4d31-95b9-0cccfc7cb376" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1/operationResults/249b663e-b1bd-45f0-8469-4a448099e213?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL3NtYjEvb3BlcmF0aW9uUmVzdWx0cy8yNDliNjYzZS1iMWJkLTQ1ZjAtODQ2OS00YTQ0ODA5OWUyMTM/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:50:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b83cef80-77e4-4f15-8709-fbe74061cdb0" + ], + "x-ms-client-request-id": [ + "0a734a30-6441-4477-bbe6-2836257cd2ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "054d92b8-a73c-4a8f-b94d-20de60919146" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145005Z:054d92b8-a73c-4a8f-b94d-20de60919146" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/shares/smb1/operationResults/249b663e-b1bd-45f0-8469-4a448099e213?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc2hhcmVzL3NtYjEvb3BlcmF0aW9uUmVzdWx0cy8yNDliNjYzZS1iMWJkLTQ1ZjAtODQ2OS00YTQ0ODA5OWUyMTM/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:50:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b5735b57-40e6-4a24-ae35-9afcad838ad0" + ], + "x-ms-client-request-id": [ + "095fd9ee-92bf-4ceb-b0f9-45b648fdbad1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "846a0375-4bd6-494f-8b11-20815e464c0c" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T145005Z:846a0375-4bd6-494f-8b11-20815e464c0c" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.StorageAccountCredentialsTests/Test_SACManagement.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.StorageAccountCredentialsTests/Test_SACManagement.json new file mode 100644 index 000000000000..48f159e0b7e0 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.StorageAccountCredentialsTests/Test_SACManagement.json @@ -0,0 +1,774 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/getExtendedInformation?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvZ2V0RXh0ZW5kZWRJbmZvcm1hdGlvbj9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "61033e15-944c-4749-911b-14e6270f3f6e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:43:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "29c21df2-4393-4906-bda5-9b8ee9a0dd90" + ], + "x-ms-client-request-id": [ + "61033e15-944c-4749-911b-14e6270f3f6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "9f13637e-6dc2-4287-9c2b-b654a55980f4" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144357Z:9f13637e-6dc2-4287-9c2b-b654a55980f4" + ], + "Content-Length": [ + "1970" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"encryptionKeyThumbprint\": \"EFF34EAE4702FD8BBFEF2EE9F353C9FA49027A86\",\r\n \"encryptionKey\": \"EAAAAP1/8kmc2++GF8Ca04GahH2lymRl4L9UUJGab8G237FZm8Ff47qYPlmkQ7UAE49Thh6/Av5gmw+V5HHLxOoa3BX4fuMqsBzkdJFDEx7mxU33/vuxGo9YZIwLg3iQJj75pojdNqPXn8vnNyM1dpX2VnN4cX5OwKD9xBZs9rKosvNFC1WRTb6rgw2Kjnzp3jCCh6qVm08bf4PZvZ/nOzn1cvnNf697H30RbGr+9JJSPcpdLt4F3k6McbGjCkZK508R7DDeezYIzf+m3UmUHw65ckEVuXIqtRUM3qgAuqsl5PAVrktWdzqohWFtv+8DVxTlNO76ylDwXkuijwto1oFyDe/zif+SUHBRwTaVKbbj6BKZOFAc9nz16cMakZljOCZtbrlSJFufDvYV41akknN3VYY73mO5ZTrBqzt9J48GEVWV6qnqfz326y1AM0G8ffLIgWIFfTdfocl3IfKaEfeYJjT14+EMgeofFJzGKRHYhJAjCd8CZnQe3guQHjkjSxkiPjpCcM2uPlGMIAWUZUOnqYJBqjVxaJGzw0sCiws5tVsD7iVwbK37FC3LSndAViz5isLtPKK3ryfajIpi/nD6M+TEkzJOmk9vAY/TEHkl49CkVQbPDYmwRXeHJgklDrjUe1DQLzbmbawQokao5/c+NBSJPo6PDjD2/Lz1TLCYdOzS+I58oXdc0TlHCrSUH7BjACVaDjgy8L0QlNr/k2YYraX4yLunpKfNL+P4XLBLfzXF9bT9U7f3XNYIVl+ncg2rSWfZNCKW57cVnioSM/z8S17DK3WiU2r1vKgHbP7+yVm52ZQSC+6vjFezhjqFe34eJbKrZFCUf/t1IMUjKZjWmXOTteODUPnh7C3jtwtCcI5rf/CAxozNeVne9vdJHIyE6gmIn8zUmtNAZ21rZSmlFpiU+W5EaZMSum8DlYTbt4Hk/Yl3oEpWY/HWDpGmn/r5czAJQ/CSeyV8DI4/RblFRCKANJt9WBzl3Jf1vVvTHUyP9RC8Vut5ZiCv1h4hABO9Hhc+yq9Q7vNwqkRdHg9FUGluvZcZIxsVxez4BoWp69m66C5jrqVTmhneFuTba1Z73bzFTJJbzar2qjVCaGlxajD0j/XiOpRzcDKHQPxmviLnf+At8JNIqH0a1A2GL/2SCfFd5IQcMn9gV65kC5ufSAbZ8mXr++IgFlGn+PFpsH/vptxRqBSEKAkMSZpCEbn1atd4FjzjI6YRKy10DtXgC58Q1WtArNiFBawdDqyNOTwrD1WCK+VMeSao+rzJI/5zd2tbV2haMGQrRGSZoD7PhLszEGPm+YGZWCx9OLEly8nPgP+1RiD69RRA1tQa6O4pw4Y+HIjiMUWhJQKH95hEflOHK9Xjtb9XF0UOZnHHWjy0klH1JML46wOr4r34q15hx6AJJHbUZHLM3mLVL85gcNAsdcijpJGUkfuHT/giF1n/iZc05OHFfvxFfJsw9+47iWfexbsTxvmqmAf+gq6OXNtlymqJ184/Jffz1b+Z1R6JzMHpQAXjdoKHt39jInZdxQ==\",\r\n \"resourceKey\": \"6674016362648189277\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device\",\r\n \"name\": \"gateway-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMxP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"alias\": \"sac1\",\r\n \"userName\": \"databoxedgeutdst\",\r\n \"accountKey\": {\r\n \"value\": \"IoPKbdpfXqgK9b/ajxqyCDLOJVv/AcEZM5uRloy0VzBC/jDheGZX/TgWhuzh1W75VCRWlG2XrIzjklTiCfLx4yIcsj4pR08+dm79BJUw7xaWn2m2fQo7oPuGvE/+W80FH3vq21di/bwoRKpC5xhPHr+DAExV+sMTKkaKlhue7+xrxBRbvQ6oLJiGgWkZKsAHK2E2xcDDwET8Xl81+JKmsP5nCU9zucMjiHRMoZENaaXuQ0meKQ4XFgVK8482xsX2dkct0D6akCp+YXK2m1QjHQ5s7zrbi657M0XN/OwuEyaZ/fLZhkL54sTCvIuoUGiasV7a44FDxFc0nfDT2FiLNg==\",\r\n \"encryptionCertThumbprint\": \"EFF34EAE4702FD8BBFEF2EE9F353C9FA49027A86\",\r\n \"encryptionAlgorithm\": \"AES256\"\r\n },\r\n \"sslStatus\": \"Disabled\",\r\n \"accountType\": \"BlobStorage\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6ef3e25c-ffdb-4048-acaf-d1e9a663f743" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "662" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1/operationResults/9368a88b-d7f7-4365-816a-ce2d186d195d?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "c017d822-4e66-4545-b5e1-887aa827baea" + ], + "x-ms-client-request-id": [ + "6ef3e25c-ffdb-4048-acaf-d1e9a663f743" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "4ee6a625-06fa-4bf0-a64f-58c367a86f08" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144358Z:4ee6a625-06fa-4bf0-a64f-58c367a86f08" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1/operationResults/9368a88b-d7f7-4365-816a-ce2d186d195d?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMxL29wZXJhdGlvblJlc3VsdHMvOTM2OGE4OGItZDdmNy00MzY1LTgxNmEtY2UyZDE4NmQxOTVkP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:44:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "2a0fab46-5eed-4094-a083-1f5f61e74a8a" + ], + "x-ms-client-request-id": [ + "078d0d0b-d3b9-4e61-8e5b-bc8fd7de7d92" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "9f8663ae-23b7-4b36-8a73-f592baa946f2" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144428Z:9f8663ae-23b7-4b36-8a73-f592baa946f2" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMxP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:44:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "f1054643-2f8e-441d-8ea2-bdb5033d2657" + ], + "x-ms-client-request-id": [ + "a73618d4-98c8-497d-9210-cc8db9b738c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "04a38058-fefb-49c7-8abf-8bf03d926d55" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144459Z:04a38058-fefb-49c7-8abf-8bf03d926d55" + ], + "Content-Length": [ + "447" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"alias\": \"sac1\",\r\n \"userName\": \"databoxedgeutdst\",\r\n \"sslStatus\": \"Disabled\",\r\n \"accountType\": \"BlobStorage\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"name\": \"sac1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/storageAccountCredentials\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMxP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b80879d5-fda9-4c2d-bdbc-b0e6af466622" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:46:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "5841f7d0-0f75-484e-a391-50fff8e0d353" + ], + "x-ms-client-request-id": [ + "b80879d5-fda9-4c2d-bdbc-b0e6af466622" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "a128a970-9918-488f-acbc-261c0881b2e6" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144602Z:a128a970-9918-488f-acbc-261c0881b2e6" + ], + "Content-Length": [ + "447" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"alias\": \"sac1\",\r\n \"userName\": \"databoxedgeutdst\",\r\n \"sslStatus\": \"Disabled\",\r\n \"accountType\": \"BlobStorage\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"name\": \"sac1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/storageAccountCredentials\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMyP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"alias\": \"sac2\",\r\n \"userName\": \"databoxedgeutdst\",\r\n \"accountKey\": {\r\n \"value\": \"IoPKbdpfXqgK9b/ajxqyCDLOJVv/AcEZM5uRloy0VzBC/jDheGZX/TgWhuzh1W75VCRWlG2XrIzjklTiCfLx4yIcsj4pR08+dm79BJUw7xaWn2m2fQo7oPuGvE/+W80FH3vq21di/bwoRKpC5xhPHr+DAExV+sMTKkaKlhue7+xrxBRbvQ6oLJiGgWkZKsAHK2E2xcDDwET8Xl81+JKmsP5nCU9zucMjiHRMoZENaaXuQ0meKQ4XFgVK8482xsX2dkct0D6akCp+YXK2m1QjHQ5s7zrbi657M0XN/OwuEyaZ/fLZhkL54sTCvIuoUGiasV7a44FDxFc0nfDT2FiLNg==\",\r\n \"encryptionCertThumbprint\": \"EFF34EAE4702FD8BBFEF2EE9F353C9FA49027A86\",\r\n \"encryptionAlgorithm\": \"AES256\"\r\n },\r\n \"sslStatus\": \"Disabled\",\r\n \"accountType\": \"BlobStorage\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a3f2d26c-e2d5-4f30-b6b4-dc44d69b7dd9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "662" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:44:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2/operationResults/8f7879c9-f6a2-467b-abb7-90bc760b17cf?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ee9bb779-f84e-4eba-a989-c1f5252c19a8" + ], + "x-ms-client-request-id": [ + "a3f2d26c-e2d5-4f30-b6b4-dc44d69b7dd9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "b3352d43-ddeb-4f98-acc6-00ae3af8587c" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144500Z:b3352d43-ddeb-4f98-acc6-00ae3af8587c" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2/operationResults/8f7879c9-f6a2-467b-abb7-90bc760b17cf?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMyL29wZXJhdGlvblJlc3VsdHMvOGY3ODc5YzktZjZhMi00NjdiLWFiYjctOTBiYzc2MGIxN2NmP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:45:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "6c76fe59-f3f8-4dfb-8768-6f6554ad9bc2" + ], + "x-ms-client-request-id": [ + "12e6cacf-252b-438a-a9b3-48ab85b239b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "a395c938-0814-4c1f-bcd5-a453ff6d9514" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144530Z:a395c938-0814-4c1f-bcd5-a453ff6d9514" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMyP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:46:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "df2bc9e2-ec68-4515-bd97-eb0b8c47d083" + ], + "x-ms-client-request-id": [ + "20a85508-c6b6-4ab1-8260-f9ab75cb96be" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "a1891a7d-fac1-4265-981d-e767e8cd06bf" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144602Z:a1891a7d-fac1-4265-981d-e767e8cd06bf" + ], + "Content-Length": [ + "447" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"alias\": \"sac2\",\r\n \"userName\": \"databoxedgeutdst\",\r\n \"sslStatus\": \"Disabled\",\r\n \"accountType\": \"BlobStorage\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2\",\r\n \"name\": \"sac2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/storageAccountCredentials\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "17bc5d91-77ab-4e1d-b506-9f29217938c6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:46:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "7548d833-ab4f-4d8e-a540-6ff1f5e3e6e0" + ], + "x-ms-client-request-id": [ + "17bc5d91-77ab-4e1d-b506-9f29217938c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "6f5bfcb5-78c3-4280-944c-fa847567c40a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144603Z:6f5bfcb5-78c3-4280-944c-fa847567c40a" + ], + "Content-Length": [ + "1010" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"alias\": \"sac1\",\r\n \"userName\": \"databoxedgeutdst\",\r\n \"sslStatus\": \"Disabled\",\r\n \"accountType\": \"BlobStorage\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac1\",\r\n \"name\": \"sac1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/storageAccountCredentials\"\r\n },\r\n {\r\n \"properties\": {\r\n \"alias\": \"sac2\",\r\n \"userName\": \"databoxedgeutdst\",\r\n \"sslStatus\": \"Disabled\",\r\n \"accountType\": \"BlobStorage\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2\",\r\n \"name\": \"sac2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/storageAccountCredentials\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMyP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f8991ce8-e1d3-4f01-a8b8-965abb3ab6c2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:46:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2/operationResults/f7f14180-9ea5-40b6-bfdb-0a2c94a0f4df?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "8087870d-60bd-4a6f-b298-4c0599fb5b88" + ], + "x-ms-client-request-id": [ + "f8991ce8-e1d3-4f01-a8b8-965abb3ab6c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "3b919977-3a46-4d33-896a-dd74c2d75d19" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144603Z:3b919977-3a46-4d33-896a-dd74c2d75d19" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2/operationResults/f7f14180-9ea5-40b6-bfdb-0a2c94a0f4df?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMyL29wZXJhdGlvblJlc3VsdHMvZjdmMTQxODAtOWVhNS00MGI2LWJmZGItMGEyYzk0YTBmNGRmP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:46:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "93078d98-99c0-4763-80d5-af6e9b323b07" + ], + "x-ms-client-request-id": [ + "35a4d835-23e1-4bd4-bc7d-8807f6f72088" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "f15b71d3-6f6e-4199-b5d3-f869abe90125" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144634Z:f15b71d3-6f6e-4199-b5d3-f869abe90125" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/storageAccountCredentials/sac2/operationResults/f7f14180-9ea5-40b6-bfdb-0a2c94a0f4df?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2Uvc3RvcmFnZUFjY291bnRDcmVkZW50aWFscy9zYWMyL29wZXJhdGlvblJlc3VsdHMvZjdmMTQxODAtOWVhNS00MGI2LWJmZGItMGEyYzk0YTBmNGRmP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:46:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "523de122-8a20-4dae-85b7-e07be8bc7b0f" + ], + "x-ms-client-request-id": [ + "d929057e-b677-49d4-871b-a11d92695e26" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "68573cc6-8f0a-428c-bdba-7c332256dcae" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144634Z:68573cc6-8f0a-428c-bdba-7c332256dcae" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.TriggerTests/Test_TriggerOperations.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.TriggerTests/Test_TriggerOperations.json new file mode 100644 index 000000000000..05cbf4b145c9 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.TriggerTests/Test_TriggerOperations.json @@ -0,0 +1,2220 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"FileEvent\",\r\n \"properties\": {\r\n \"sourceInfo\": {\r\n \"shareId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/demo-resources/providers/microsoft.databoxedge/databoxedgedevices/edge-demo-device/shares/localshare\"\r\n },\r\n \"sinkInfo\": {\r\n \"roleId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/edge-demo-device/roles/IotRole\"\r\n },\r\n \"customContextTag\": \"fileEventTrigger\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "544c4f8b-cd5f-4820-9e61-66dabf83d64c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "523" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:23:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "aff51485-3a60-45c7-be2e-0cb6351196cc" + ], + "x-ms-client-request-id": [ + "544c4f8b-cd5f-4820-9e61-66dabf83d64c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "759868ee-f08d-4ff3-89d1-79f5a73ca0a3" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152306Z:759868ee-f08d-4ff3-89d1-79f5a73ca0a3" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:23:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "80a20398-ca6a-4718-af93-977e2f3b5eed" + ], + "x-ms-client-request-id": [ + "f3f1feaf-c4b0-4dd6-a29d-69e7d5caf39d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "99e6e879-9e59-4e83-905f-83df27b6e202" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152338Z:99e6e879-9e59-4e83-905f-83df27b6e202" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:23:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "fea4923b-57c7-46fe-b9ef-4cf8e3e97a63" + ], + "x-ms-client-request-id": [ + "67264688-a295-46a1-af57-5317c5046fc9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "5b98b738-e167-4838-9a4d-23450cc50be3" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152348Z:5b98b738-e167-4838-9a4d-23450cc50be3" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:23:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "9c76c80c-700d-4350-aead-4e0b27487eea" + ], + "x-ms-client-request-id": [ + "4bb0e91a-315e-4a2d-93cd-199070d531ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "6c0ba275-4ccd-4e6f-b17c-c009ff66356e" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152359Z:6c0ba275-4ccd-4e6f-b17c-c009ff66356e" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:24:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "5d8a8619-dfc2-409e-9949-749de623ed19" + ], + "x-ms-client-request-id": [ + "036d2e96-3a1b-4a75-ba2c-e44883670dde" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "8d5cb599-1722-49d8-b8d6-8e37c9e2b29b" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152409Z:8d5cb599-1722-49d8-b8d6-8e37c9e2b29b" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:24:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "3f214d32-8dcd-410d-8841-45c2faf38ff5" + ], + "x-ms-client-request-id": [ + "53a13e2e-a62f-4d7c-b404-d559d10df4b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "6278ff03-c5ad-4683-8a3f-d45905780d81" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152420Z:6278ff03-c5ad-4683-8a3f-d45905780d81" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:24:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "bfc01834-b204-4b3b-b708-a63932b24e49" + ], + "x-ms-client-request-id": [ + "4d135464-3b0c-447b-b9d0-84504cdc0f22" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "ae5ee430-1a0f-43bf-9a2e-17ef4b9b3d41" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152431Z:ae5ee430-1a0f-43bf-9a2e-17ef4b9b3d41" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:24:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "982643d7-92bc-41fa-bfb5-3ff2c92f54a4" + ], + "x-ms-client-request-id": [ + "161bdfdc-df43-416a-b3d1-88a653442f0c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "77700e60-5fc2-41d1-b47d-c92ee986161f" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152442Z:77700e60-5fc2-41d1-b47d-c92ee986161f" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:24:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "bbb44513-668d-4c56-8b90-e436569d1d9f" + ], + "x-ms-client-request-id": [ + "b4e0725e-5d6a-45c0-b15b-b4d78421fe9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "7b57cebd-aa7d-4052-9ebf-553fd24a7b9b" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152452Z:7b57cebd-aa7d-4052-9ebf-553fd24a7b9b" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:25:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "4dc6f484-4536-4174-8c93-099a30ed9cc8" + ], + "x-ms-client-request-id": [ + "37e41e75-29bf-4a25-9bab-3d405a94d36f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "fc26e85d-5ae1-4147-93a9-474081088ce4" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152503Z:fc26e85d-5ae1-4147-93a9-474081088ce4" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:25:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "60f0d3af-266a-41c7-a845-ced4b50d80bd" + ], + "x-ms-client-request-id": [ + "170beb7e-2ce8-494e-81dd-aaa4222277cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "40418738-4222-4e6e-b565-05938331e3d8" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152513Z:40418738-4222-4e6e-b565-05938331e3d8" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:25:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "f9fb04e3-79d8-4dc7-997a-ca53b87fc995" + ], + "x-ms-client-request-id": [ + "64b3a55a-6a06-44eb-a371-1a4c1e4d80dc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "5d2a53fe-0fda-4f35-8712-5ff6291b3e65" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152523Z:5d2a53fe-0fda-4f35-8712-5ff6291b3e65" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:25:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "526788fa-9fb8-4d37-ac18-2585679f9ba0" + ], + "x-ms-client-request-id": [ + "98463c88-4313-4f09-8c55-a7fdf51b9c97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "92297777-e53f-4440-8466-32f4d9551fb2" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152535Z:92297777-e53f-4440-8466-32f4d9551fb2" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger/operationResults/abc387ff-7c97-4582-92fb-4e9c89cdc769?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyL29wZXJhdGlvblJlc3VsdHMvYWJjMzg3ZmYtN2M5Ny00NTgyLTkyZmItNGU5Yzg5Y2RjNzY5P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:25:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ccc1ceb9-850f-4d52-8b36-4dc17a3471a2" + ], + "x-ms-client-request-id": [ + "8aa3800d-f405-4c7c-9631-367ae3b4a231" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "9c8194f2-8fab-42e9-abe6-d189a9cec833" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152546Z:9c8194f2-8fab-42e9-abe6-d189a9cec833" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1maWxlRXZlbnRUcmlnZ2VyP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:25:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "deab878a-1e84-47e7-8501-f9ab65ca96b2" + ], + "x-ms-client-request-id": [ + "46686d55-1657-4e43-b4e5-8d24aceabbca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "36de3045-53cd-43de-a7da-9df41143233b" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152557Z:36de3045-53cd-43de-a7da-9df41143233b" + ], + "Content-Length": [ + "822" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"sourceInfo\": {\r\n \"shareId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/shares/localshare\"\r\n },\r\n \"sinkInfo\": {\r\n \"roleId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/IotRole\"\r\n },\r\n \"customContextTag\": \"fileEventTrigger\"\r\n },\r\n \"kind\": \"FileEvent\",\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger\",\r\n \"name\": \"trigger-fileEventTrigger\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/triggers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"PeriodicTimerEvent\",\r\n \"properties\": {\r\n \"sourceInfo\": {\r\n \"startTime\": \"2019-02-20T00:00:00Z\",\r\n \"schedule\": \"0.1:0:0\",\r\n \"topic\": \"trigger-periodicTrigger\"\r\n },\r\n \"sinkInfo\": {\r\n \"roleId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/edge-demo-device/roles/IotRole\"\r\n },\r\n \"customContextTag\": \"periodicTrigger\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef6831cd-8ed1-499a-8923-f12cb46884db" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "459" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:25:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ead517cd-b360-44e2-8bd6-18c230b6f7ee" + ], + "x-ms-client-request-id": [ + "ef6831cd-8ed1-499a-8923-f12cb46884db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "07ac20a6-c332-41c6-8b34-aa8319bd5421" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152558Z:07ac20a6-c332-41c6-8b34-aa8319bd5421" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:26:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "c61500c0-43be-4497-9bf7-55553cde9713" + ], + "x-ms-client-request-id": [ + "2afe2bf3-70b7-4d0c-aa95-77574ae18161" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "08cd77c3-927c-4a25-83b1-7d017ffbe318" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152628Z:08cd77c3-927c-4a25-83b1-7d017ffbe318" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:26:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "2fa76035-9659-4bd2-b244-6d49475376b1" + ], + "x-ms-client-request-id": [ + "e0e6ce3f-a4fe-4dc0-98a0-e29d5f87be09" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "0b419014-8a72-4e3f-bec6-bd8dc2602de4" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152640Z:0b419014-8a72-4e3f-bec6-bd8dc2602de4" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:26:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "997cc836-dfbd-4c6f-a555-871bd9050376" + ], + "x-ms-client-request-id": [ + "1f74dcdb-fdf9-4bc3-b97d-260dd9bbe333" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "420925c4-f4d0-4690-a7d3-91c6f5cf37a9" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152652Z:420925c4-f4d0-4690-a7d3-91c6f5cf37a9" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:27:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "5ad1358d-43d4-4c19-85fe-273fb33bff8f" + ], + "x-ms-client-request-id": [ + "d0dfb987-44d6-4105-a96b-f0ac38e6a65d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "0a50f6aa-29bf-4a25-acb1-ea1445975775" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152702Z:0a50f6aa-29bf-4a25-acb1-ea1445975775" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:27:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "532a8735-959d-40e6-847f-7c0476a86525" + ], + "x-ms-client-request-id": [ + "e3e1a575-ae25-4f62-b3c2-9c89b1b6bdec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "1e98271d-cc7c-4390-9212-3d89a76492f6" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152712Z:1e98271d-cc7c-4390-9212-3d89a76492f6" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:27:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b492ef8b-885d-4201-8125-d98fbeef988b" + ], + "x-ms-client-request-id": [ + "c02d1b2c-f7ce-4f09-a224-9d2acde043d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "34b79cb4-58a8-473d-8ff1-986ee7899bd4" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152723Z:34b79cb4-58a8-473d-8ff1-986ee7899bd4" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:27:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "1ed65385-8f44-4c40-b109-8d4bca4ea08b" + ], + "x-ms-client-request-id": [ + "fe75e7b7-0f33-4265-ae01-89f2cb66aeab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "f9bfede3-45da-483f-a01d-bf0f2d032639" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152734Z:f9bfede3-45da-483f-a01d-bf0f2d032639" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:27:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "97b23ffa-6c8a-4a06-ad49-fb6c343df492" + ], + "x-ms-client-request-id": [ + "02d7b452-d005-4ec2-8273-6673a69dc486" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "5664ac3d-7b90-4f31-83b2-5cb72a1c7b10" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152745Z:5664ac3d-7b90-4f31-83b2-5cb72a1c7b10" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:27:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "c257757e-df42-44b1-bbda-f46ef7aa0ade" + ], + "x-ms-client-request-id": [ + "2425165e-2d76-41df-bf82-5c362751930a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "b24b1d2b-7cff-40fc-85a2-8bd0ac8a1b36" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152757Z:b24b1d2b-7cff-40fc-85a2-8bd0ac8a1b36" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:28:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ecbf7de3-ab1a-48a5-a16b-a9ab6ba9ba13" + ], + "x-ms-client-request-id": [ + "91c03f36-e58c-4adb-b57b-1b08abf9f57d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "8b57ab9d-94f2-49fa-a69e-0e487162e98a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152808Z:8b57ab9d-94f2-49fa-a69e-0e487162e98a" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:28:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "b9804f44-cc7d-4af5-99a0-9062629a3b9f" + ], + "x-ms-client-request-id": [ + "958933c5-7230-491d-918f-877d662bcc32" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "7fa21060-dbd8-4c56-961b-badcf9005a0e" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152818Z:7fa21060-dbd8-4c56-961b-badcf9005a0e" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:28:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01" + ], + "Retry-After": [ + "10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "5b99201e-06b2-4b37-84e1-3eb5a70353c3" + ], + "x-ms-client-request-id": [ + "6b67165a-50c0-45d6-be87-1aa92bd2e4e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "db672f5d-7ec2-44ea-8ec1-918d71420a5f" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152829Z:db672f5d-7ec2-44ea-8ec1-918d71420a5f" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/7d119a6d-e789-44e3-86fa-a5991bbe8e49?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy83ZDExOWE2ZC1lNzg5LTQ0ZTMtODZmYS1hNTk5MWJiZThlNDk/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:28:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "ec2cfcc9-52df-4a1f-918f-558e4751ceef" + ], + "x-ms-client-request-id": [ + "08c9551b-414d-42c0-9c19-61ea3bcefe96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-correlation-request-id": [ + "5dfd5195-64a9-4f19-8740-38ffc36129b9" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152839Z:5dfd5195-64a9-4f19-8740-38ffc36129b9" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:28:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "72d7ab38-546a-4f86-aa95-21d70131b05b" + ], + "x-ms-client-request-id": [ + "31677bf8-b5b0-4ac0-af3f-9198b05f6e19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-correlation-request-id": [ + "dbca10e2-dcce-4a16-b45a-071d2eef67ad" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152851Z:dbca10e2-dcce-4a16-b45a-071d2eef67ad" + ], + "Content-Length": [ + "757" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"sourceInfo\": {\r\n \"startTime\": \"2019-02-20T00:00:00Z\",\r\n \"schedule\": \"01:00:00\",\r\n \"topic\": \"trigger-periodicTrigger\"\r\n },\r\n \"sinkInfo\": {\r\n \"roleId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/IotRole\"\r\n },\r\n \"customContextTag\": \"periodicTrigger\"\r\n },\r\n \"kind\": \"PeriodicTimerEvent\",\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger\",\r\n \"name\": \"trigger-periodicTrigger\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/triggers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3609e0d6-a5a8-472f-be48-a9e0269ed31b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:28:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "d87443fb-f831-4038-baf0-42b6f4496b75" + ], + "x-ms-client-request-id": [ + "3609e0d6-a5a8-472f-be48-a9e0269ed31b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "f87bcc87-afe5-4fea-83e9-d3658a320cf7" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152852Z:f87bcc87-afe5-4fea-83e9-d3658a320cf7" + ], + "Content-Length": [ + "757" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"sourceInfo\": {\r\n \"startTime\": \"2019-02-20T00:00:00Z\",\r\n \"schedule\": \"01:00:00\",\r\n \"topic\": \"trigger-periodicTrigger\"\r\n },\r\n \"sinkInfo\": {\r\n \"roleId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/IotRole\"\r\n },\r\n \"customContextTag\": \"periodicTrigger\"\r\n },\r\n \"kind\": \"PeriodicTimerEvent\",\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger\",\r\n \"name\": \"trigger-periodicTrigger\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/triggers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnM/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0c66239d-771e-4742-8580-a6d448aa704e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:28:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "7844031f-3848-4498-99f4-38119833f7bf" + ], + "x-ms-client-request-id": [ + "0c66239d-771e-4742-8580-a6d448aa704e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "85b1e650-3328-4f39-8d4e-2a02aaa31107" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152853Z:85b1e650-3328-4f39-8d4e-2a02aaa31107" + ], + "Content-Length": [ + "1735" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"sourceInfo\": {\r\n \"startTime\": \"2019-02-20T00:00:00Z\",\r\n \"schedule\": \"01:00:00\",\r\n \"topic\": \"trigger-periodicTrigger\"\r\n },\r\n \"sinkInfo\": {\r\n \"roleId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/IotRole\"\r\n },\r\n \"customContextTag\": \"periodicTrigger\"\r\n },\r\n \"kind\": \"PeriodicTimerEvent\",\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger\",\r\n \"name\": \"trigger-periodicTrigger\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/triggers\"\r\n },\r\n {\r\n \"properties\": {\r\n \"sourceInfo\": {\r\n \"shareId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/shares/localshare\"\r\n },\r\n \"sinkInfo\": {\r\n \"roleId\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/roles/IotRole\"\r\n },\r\n \"customContextTag\": \"fileEventTrigger\"\r\n },\r\n \"kind\": \"FileEvent\",\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-fileEventTrigger\",\r\n \"name\": \"trigger-fileEventTrigger\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/triggers\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ea3516af-a4e9-4c3d-a039-aad25a46815b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:28:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/405f8bd0-ec32-4d70-a26d-ee41d56503ea?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "dbedaf03-f289-4a2e-b5c4-5742a7be7bae" + ], + "x-ms-client-request-id": [ + "ea3516af-a4e9-4c3d-a039-aad25a46815b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "9685efe2-45a7-4af0-a893-b97c7da57b30" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152853Z:9685efe2-45a7-4af0-a893-b97c7da57b30" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/405f8bd0-ec32-4d70-a26d-ee41d56503ea?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy80MDVmOGJkMC1lYzMyLTRkNzAtYTI2ZC1lZTQxZDU2NTAzZWE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:29:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "d6689e21-2b62-4589-a663-e140683d425f" + ], + "x-ms-client-request-id": [ + "61c387a1-d693-4965-bbd0-bc5bd4b04692" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-correlation-request-id": [ + "ecf6ee40-5aae-4275-b9b5-95f1407eeb21" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152925Z:ecf6ee40-5aae-4275-b9b5-95f1407eeb21" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edge-demo-device/triggers/trigger-periodicTrigger/operationResults/405f8bd0-ec32-4d70-a26d-ee41d56503ea?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2VkZ2UtZGVtby1kZXZpY2UvdHJpZ2dlcnMvdHJpZ2dlci1wZXJpb2RpY1RyaWdnZXIvb3BlcmF0aW9uUmVzdWx0cy80MDVmOGJkMC1lYzMyLTRkNzAtYTI2ZC1lZTQxZDU2NTAzZWE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 15:29:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "2e424c0f-5dcc-4cfd-a07d-f240bae77246" + ], + "x-ms-client-request-id": [ + "408e2c7e-7182-49d9-9157-aeb66ad33210" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-correlation-request-id": [ + "f6598b21-bba4-46ab-a98d-28cba03c780e" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T152926Z:f6598b21-bba4-46ab-a98d-28cba03c780e" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.UserTests/Test_UserManagement.json b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.UserTests/Test_UserManagement.json new file mode 100644 index 000000000000..5373fbfae150 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/SessionRecords/EdgeGateway.Tests.UserTests/Test_UserManagement.json @@ -0,0 +1,774 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/getExtendedInformation?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvZ2V0RXh0ZW5kZWRJbmZvcm1hdGlvbj9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5b9b03c8-5054-459e-97e5-c060b2dc552e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:40:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "18aee3e7-b1a1-4272-90cb-674538d06c60" + ], + "x-ms-client-request-id": [ + "5b9b03c8-5054-459e-97e5-c060b2dc552e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "4f75e9f0-ed6d-46dd-932d-a222a4473f18" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144059Z:4f75e9f0-ed6d-46dd-932d-a222a4473f18" + ], + "Content-Length": [ + "1970" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"encryptionKeyThumbprint\": \"EFF34EAE4702FD8BBFEF2EE9F353C9FA49027A86\",\r\n \"encryptionKey\": \"EAAAAP1/8kmc2++GF8Ca04GahH2lymRl4L9UUJGab8G237FZm8Ff47qYPlmkQ7UAE49Thh6/Av5gmw+V5HHLxOoa3BX4fuMqsBzkdJFDEx7mxU33/vuxGo9YZIwLg3iQJj75pojdNqPXn8vnNyM1dpX2VnN4cX5OwKD9xBZs9rKosvNFC1WRTb6rgw2Kjnzp3jCCh6qVm08bf4PZvZ/nOzn1cvnNf697H30RbGr+9JJSPcpdLt4F3k6McbGjCkZK508R7DDeezYIzf+m3UmUHw65ckEVuXIqtRUM3qgAuqsl5PAVrktWdzqohWFtv+8DVxTlNO76ylDwXkuijwto1oFyDe/zif+SUHBRwTaVKbbj6BKZOFAc9nz16cMakZljOCZtbrlSJFufDvYV41akknN3VYY73mO5ZTrBqzt9J48GEVWV6qnqfz326y1AM0G8ffLIgWIFfTdfocl3IfKaEfeYJjT14+EMgeofFJzGKRHYhJAjCd8CZnQe3guQHjkjSxkiPjpCcM2uPlGMIAWUZUOnqYJBqjVxaJGzw0sCiws5tVsD7iVwbK37FC3LSndAViz5isLtPKK3ryfajIpi/nD6M+TEkzJOmk9vAY/TEHkl49CkVQbPDYmwRXeHJgklDrjUe1DQLzbmbawQokao5/c+NBSJPo6PDjD2/Lz1TLCYdOzS+I58oXdc0TlHCrSUH7BjACVaDjgy8L0QlNr/k2YYraX4yLunpKfNL+P4XLBLfzXF9bT9U7f3XNYIVl+ncg2rSWfZNCKW57cVnioSM/z8S17DK3WiU2r1vKgHbP7+yVm52ZQSC+6vjFezhjqFe34eJbKrZFCUf/t1IMUjKZjWmXOTteODUPnh7C3jtwtCcI5rf/CAxozNeVne9vdJHIyE6gmIn8zUmtNAZ21rZSmlFpiU+W5EaZMSum8DlYTbt4Hk/Yl3oEpWY/HWDpGmn/r5czAJQ/CSeyV8DI4/RblFRCKANJt9WBzl3Jf1vVvTHUyP9RC8Vut5ZiCv1h4hABO9Hhc+yq9Q7vNwqkRdHg9FUGluvZcZIxsVxez4BoWp69m66C5jrqVTmhneFuTba1Z73bzFTJJbzar2qjVCaGlxajD0j/XiOpRzcDKHQPxmviLnf+At8JNIqH0a1A2GL/2SCfFd5IQcMn9gV65kC5ufSAbZ8mXr++IgFlGn+PFpsH/vptxRqBSEKAkMSZpCEbn1atd4FjzjI6YRKy10DtXgC58Q1WtArNiFBawdDqyNOTwrD1WCK+VMeSao+rzJI/5zd2tbV2haMGQrRGSZoD7PhLszEGPm+YGZWCx9OLEly8nPgP+1RiD69RRA1tQa6O4pw4Y+HIjiMUWhJQKH95hEflOHK9Xjtb9XF0UOZnHHWjy0klH1JML46wOr4r34q15hx6AJJHbUZHLM3mLVL85gcNAsdcijpJGUkfuHT/giF1n/iZc05OHFfvxFfJsw9+47iWfexbsTxvmqmAf+gq6OXNtlymqJ184/Jffz1b+Z1R6JzMHpQAXjdoKHt39jInZdxQ==\",\r\n \"resourceKey\": \"6674016362648189277\"\r\n },\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourcegroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device\",\r\n \"name\": \"gateway-demo-device\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"encryptedPassword\": {\r\n \"value\": \"sfVpbWj9JHGwOjsdL6eTEqAhBXxgwMHI8RWzK9o2INWJkjDgmeoDGJNugslC+pZiYAhGV1lsXcs24BRzl8gCl7CjbcsFbbuZIiOOyXVmuZunUZCZkHnkcvr+5dVg8qLrcskcTmwrngU7QCa2UWiocV9OAKU7HEaX3qFT3VPSyjHIvDj1nf6cuTWsJUuos6hYqc976VEDO74T+BAVYvOhwXhV6Dab9TYTkC/H0i7/utG6iihxLirvH2XVF9+LYzPaq+wq8oLnglgjTlndrLYDgFEpBx98VAMB1KbGFzgandGkc5U0OXOqiRk+gQW0HAcSM2hnjfXWOeNVTWmXtAyyZQ==\",\r\n \"encryptionCertThumbprint\": \"EFF34EAE4702FD8BBFEF2EE9F353C9FA49027A86\",\r\n \"encryptionAlgorithm\": \"AES256\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2b675a0d-4ad5-4cd6-bbe2-3a5eaabb81c8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "545" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:40:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1/operationResults/3d9e46a6-c3b9-41f1-b4db-a9d1508f379a?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "e79d7db9-eed9-49e2-a3f6-4ea74a569d1e" + ], + "x-ms-client-request-id": [ + "2b675a0d-4ad5-4cd6-bbe2-3a5eaabb81c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "b3d54da5-db9b-4ae8-991f-63383b65af3a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144100Z:b3d54da5-db9b-4ae8-991f-63383b65af3a" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1/operationResults/3d9e46a6-c3b9-41f1-b4db-a9d1508f379a?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjEvb3BlcmF0aW9uUmVzdWx0cy8zZDllNDZhNi1jM2I5LTQxZjEtYjRkYi1hOWQxNTA4ZjM3OWE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:41:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "d11d2830-c238-42a3-94ef-abd7b5a5bd8c" + ], + "x-ms-client-request-id": [ + "33e3e530-7c8e-41f0-b083-c1147c7b7e79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "42b4c12e-70c1-4a01-af3d-22a6f998f434" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144131Z:42b4c12e-70c1-4a01-af3d-22a6f998f434" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:42:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "cfa74587-64e7-427e-bde1-472d73afb72c" + ], + "x-ms-client-request-id": [ + "66b3e520-cbbd-4de3-a6f1-192ae03c2131" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "9d3497f1-a7d8-4350-8157-8c7fbc0179b9" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144201Z:9d3497f1-a7d8-4350-8157-8c7fbc0179b9" + ], + "Content-Length": [ + "282" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {},\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1\",\r\n \"name\": \"user1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/users\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f8c15bbd-ec93-46d8-bbc1-0d53886fb359" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:43:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "a7efdd79-5c18-4643-b17c-ddf5d45f8ad5" + ], + "x-ms-client-request-id": [ + "f8c15bbd-ec93-46d8-bbc1-0d53886fb359" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "f62b7a8d-6a40-40ce-ac96-c1245d7edf63" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144305Z:f62b7a8d-6a40-40ce-ac96-c1245d7edf63" + ], + "Content-Length": [ + "282" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {},\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1\",\r\n \"name\": \"user1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/users\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"encryptedPassword\": {\r\n \"value\": \"sfVpbWj9JHGwOjsdL6eTEqAhBXxgwMHI8RWzK9o2INWJkjDgmeoDGJNugslC+pZiYAhGV1lsXcs24BRzl8gCl7CjbcsFbbuZIiOOyXVmuZunUZCZkHnkcvr+5dVg8qLrcskcTmwrngU7QCa2UWiocV9OAKU7HEaX3qFT3VPSyjHIvDj1nf6cuTWsJUuos6hYqc976VEDO74T+BAVYvOhwXhV6Dab9TYTkC/H0i7/utG6iihxLirvH2XVF9+LYzPaq+wq8oLnglgjTlndrLYDgFEpBx98VAMB1KbGFzgandGkc5U0OXOqiRk+gQW0HAcSM2hnjfXWOeNVTWmXtAyyZQ==\",\r\n \"encryptionCertThumbprint\": \"EFF34EAE4702FD8BBFEF2EE9F353C9FA49027A86\",\r\n \"encryptionAlgorithm\": \"AES256\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3d4c4372-ee47-4674-add8-25a50e398ea2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "545" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:42:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2/operationResults/0ccbe3eb-cbce-4768-a4c7-ba8f66b0c6cd?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "0ea2a791-fd77-4aa7-8553-012b255ff5b6" + ], + "x-ms-client-request-id": [ + "3d4c4372-ee47-4674-add8-25a50e398ea2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "f16436ec-9f28-4d63-b4ce-d5fc05915f56" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144202Z:f16436ec-9f28-4d63-b4ce-d5fc05915f56" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2/operationResults/0ccbe3eb-cbce-4768-a4c7-ba8f66b0c6cd?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjIvb3BlcmF0aW9uUmVzdWx0cy8wY2NiZTNlYi1jYmNlLTQ3NjgtYTRjNy1iYThmNjZiMGM2Y2Q/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:42:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2?api-version=2019-03-01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "f336a974-193e-4cef-822b-0e9cf3e4e52b" + ], + "x-ms-client-request-id": [ + "c2634f2c-3456-4519-938e-51f89358492b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "f61ce6e2-fc3a-4a20-b399-0754f42646a3" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144233Z:f61ce6e2-fc3a-4a20-b399-0754f42646a3" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:43:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "e3e3fbdd-b0de-42f1-b418-23b4620b16d1" + ], + "x-ms-client-request-id": [ + "fbe256fe-9108-4bbd-8a27-e5d90f6c4351" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "16d00384-b176-4542-859e-9ca4b07ba01b" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144304Z:16d00384-b176-4542-859e-9ca4b07ba01b" + ], + "Content-Length": [ + "282" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {},\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2\",\r\n \"name\": \"user2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/users\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnM/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "11635b5b-be0f-43ff-bdb1-bcbeeab493ba" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:43:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "1d7d9879-7fe1-41a1-8a07-2b3d59a32c84" + ], + "x-ms-client-request-id": [ + "11635b5b-be0f-43ff-bdb1-bcbeeab493ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "f8e7e3d7-57f0-4202-b717-f4d864fda104" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144306Z:f8e7e3d7-57f0-4202-b717-f4d864fda104" + ], + "Content-Length": [ + "640" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {},\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user1\",\r\n \"name\": \"user1\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/users\"\r\n },\r\n {\r\n \"properties\": {},\r\n \"id\": \"/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2\",\r\n \"name\": \"user2\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/users\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjI/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6201d0f3-ad26-4f9d-96b1-1bd1dcaac5f4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:43:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2/operationResults/67b9ed7a-53cc-45be-8ea4-c4ed765f8727?api-version=2019-03-01" + ], + "Retry-After": [ + "30" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "598a3cb9-3329-41e4-a05e-1451bff21b2f" + ], + "x-ms-client-request-id": [ + "6201d0f3-ad26-4f9d-96b1-1bd1dcaac5f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "b9fdc089-a03e-443c-bbf1-cee0af7b36d0" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144306Z:b9fdc089-a03e-443c-bbf1-cee0af7b36d0" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2/operationResults/67b9ed7a-53cc-45be-8ea4-c4ed765f8727?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjIvb3BlcmF0aW9uUmVzdWx0cy82N2I5ZWQ3YS01M2NjLTQ1YmUtOGVhNC1jNGVkNzY1Zjg3Mjc/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:43:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "91348571-c63f-4255-80b8-c177d3056445" + ], + "x-ms-client-request-id": [ + "b070b146-d1ec-407f-ad2c-644594407483" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "c4c18526-2f8c-483d-984d-1ef6423a461f" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144337Z:c4c18526-2f8c-483d-984d-1ef6423a461f" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-736098270664/resourceGroups/demo-resources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/gateway-demo-device/users/user2/operationResults/67b9ed7a-53cc-45be-8ea4-c4ed765f8727?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGI0ZTJmZGItNmQ4MC00ZTZlLWI3Y2QtNzM2MDk4MjcwNjY0L3Jlc291cmNlR3JvdXBzL2RlbW8tcmVzb3VyY2VzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveEVkZ2UvZGF0YUJveEVkZ2VEZXZpY2VzL2dhdGV3YXktZGVtby1kZXZpY2UvdXNlcnMvdXNlcjIvb3BlcmF0aW9uUmVzdWx0cy82N2I5ZWQ3YS01M2NjLTQ1YmUtOGVhNC1jNGVkNzY1Zjg3Mjc/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.EdgeGateway.DataBoxEdgeManagementClient/0.8.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 20 Feb 2019 14:43:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-request-id": [ + "5a86e1f9-91b2-432d-af3f-388e453d4499" + ], + "x-ms-client-request-id": [ + "01e738d1-2eb1-42be-981a-cdefe9e25d12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "300bdd67-46cf-427c-92bd-e8414d8a3133" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190220T144337Z:300bdd67-46cf-427c-92bd-e8414d8a3133" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "db4e2fdb-6d80-4e6e-b7cd-736098270664", + "SubId": "db4e2fdb-6d80-4e6e-b7cd-736098270664" + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/TestConstants.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/TestConstants.cs new file mode 100644 index 000000000000..48a336da6281 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/TestConstants.cs @@ -0,0 +1,40 @@ +namespace EdgeGateway.Tests +{ + /// + /// Contains the constants used in tests + /// + public static class TestConstants + { + /// + /// Location where test resources are created + /// + public const string DefaultResourceLocation = "centraluseuap"; + + /// + /// Resource group in which resources are created + /// + public const string DefaultResourceGroupName = "demo-resources"; + + /// + /// Activation key of gateway resource + /// + public const string GatewayActivationKey = "eyJzdWJzY3JpcHRpb25JZCI6ImRiNGUyZmRiLTZkODAtNGU2ZS1iN2NkLTczNjA5ODI3MDY2NCIsInJlc291cmNlVHlwZSI6ImRhdGFCb3hFZGdlRGV2aWNlcyIsInJlc291cmNlTmFtZSI6ImdhdGV3YXktZGVtby1kZXZpY2UiLCJtYW5hZ2VtZW50Q2VydCI6Ik1JSUtLZ0lCQXpDQ0Nlb0dDU3FHU0liM0RRRUhBYUNDQ2RzRWdnblhNSUlKMHpDQ0JnUUdDU3FHU0liM0RRRUhBYUNDQmZVRWdnWHhNSUlGN1RDQ0Jla0dDeXFHU0liM0RRRU1DZ0VDb0lJRTlqQ0NCUEl3SEFZS0tvWklodmNOQVF3QkF6QU9CQWk0bThuVEhzRWpZUUlDQjlBRWdnVFE3UTRmYkFhSGlMN2dCT3c3T2kyRmFUYkVMZjUvak91djhORnFYbWpKVXZ2S0hreHJLR2lqT0xEaFVGbFJYZ3N0NW5ocU82SDlvY2ZSK0w0UThnQmlFb2srVDJHOVR5OGdlWDhFdjNNNTF4WWtGZXI1Y0t3SnU0MHZpQ1Q0RFAvc2FUTmxCNUFYVmtyV3BvM0I3STFCclBuMHRBR3VRcVkwOHdMdVVqQVQ3MVdFamhvMFNxY2hHdHdqVWFvME5nK0ZMVkRpeXBUblpNRGRFd25lYTlZNU5HdTZ4Z2djM1VucTVwcFhpak9yNGdLQ3RhMGM1VVE2S2JTT3V6d0FWd21uUWhmSUNLL3FlYmE4TmFNSlFHZEk1YlhoVEE1MjduTlQ5dmF6SU1BR1BQL3BDb1ZwSmtCYk94bjNsbk1sQTdFMS9BK2FENVNWTTA4b3hEdzJUZFJxMU16TCtrbVFNaEVFZ1A5OFB6VjNkLzE4Zm96d2EyeW0wWnFZN3UwYVJkYTdSV3AydlluRjhHZkVhYStGRm5oOHY3MmM1bDZibGRhaDVudkRUS0pGZFNyMjlJUU5sZkJFVSsvcVlqMUxabW15dVBnbk1TOU1COWFqK3BGMjhDZUxCTGp2WGFJZEY4b0d4NGtna09ENStzc2JId3ZWYTJXL3BCN0VpNlBsT3QyRGVraEFuYlFCVE94Z2J1N3lqb2g5cGptamZOM3BkMmZsRFNyM05oSXIvaFR4M3JDb1hYSE9rYTducVkyUlg1U1QvbTRtdkN1d3hKb0VVbENGTkt4Yzh1U3dITHFZTmdRTDlNcXYrZnFPNC9MeThXd0xkRXlVdVNxTHlLa0FhSEwzUXZEdkwwMVJnNUFJOVNyUmVXR05FNU1HelpnMENMYU1KaWtVeXgrRmdqei9NamV5aEpaWnp2MW9lTnhRZlVKTkhNU2hOYi9OT015Q3VUYzU0OW9jYW4rOG9OK3BjeW9YL0hHcEdMeXV1NVpNTDVPSGx5UEtuOExmeisyd0ljOWFBNkx5a2k3SE1KMnZXTTBjbzY2YmtTVy9Ed2ZodFZBNnZyTXRnZ1hzR3dwamRBRmo4cGZCMDdwenNmTXZRdENnUWo0VTRnNWp6K25jdVlpcEM1Rzltd0lhWFRpaDJMTGd2c1habHJhd3BWaEtxZGNHcnlmZjRjNTRLaTVvWjQ3WXRDMGpORU13blFFYXVvQUU5UmlDdnNBcXR0ejZNUHBTRUV0cVdZZmpGcmVMbW1wMFFzOWtjUWJZWk5ob2N6bWhTRlkzM2pyTG9GNU5SL2Z2bWllUTBrMi80c09kYnVYV0pJOVNwbWFTVFlBUnhOUlNOV2R2MW8xeTVQQkVRME1tRzVzQTRyWFdka1FYWlBvbWRVbE1wMnF4bnBGeC95djU4MDhnS1JqekpISE0rR0Nac3JKT3JRbStGK3l0MUJBRUROd0ozbkpMRGpJbXhnQml0OXM4dlkrMXZEK0c5U2VYYVdxTkkyd1YzQmdPNTFTMU9FZS9CdmRIZUFEdUhISWFFZUttS3NQVUlQWEF2Q1VDd08zREZ6S1ZqanFXR1dNb0xsZDNKWUhoSW9LNCtjUVpBNHljbjdJeVQ2akx3a1VLdnN0bk1uY3JVVGszZkFCc2ptVklRUXpDeHlSNFZ2YkV2bDhNUWUrWXc5RXlySWxYeDJTd2lHZktuakFCaWFaUUxnM2ZjamcwS21qZU5KQW94WGJDeXREejB4TFpZSDJQM05XWHNWOExZSFpZM0EvRWE5eUV0S0tlK1JnVG9Bemt3NE1XOTczNGNXU21FSVJWdld2VDFBL2xCK1RSRmlncUhJUFEwSGhJeWJhY2J0UU8yaDlUT1hsekFoUVFYeUhyb3Y5V25rN0IyMTU3WTREZG13SkhQcjMweENzRHV6ZHQzRDByVk96aFNpMDRJSFF3Zjl6N3RBd3ZIMGdIV0xTSG9saXBpenVMRDJzWDBqR3lzbmY1Rk9Qem1yYXM3dDdxeUlFMXVCUlI5YkFWTUlBM0E5Y0JDTjVaTmlVSEpFWVgzNU5SSlROQzlqcW1iNkVENlFXZDZlVER2UnRacXk3dzlUQ1JoeUMvZDQyOE40ZUdGMk5YTm5GMm54WC9vRVN3TEViZTNVRkVkcm5HcEQ3aS8xcmxDZEpzWHJNQUZLS3d1SWpKRTI3UkVMTXhnZDh3RXdZSktvWklodmNOQVFrVk1RWUVCQUVBQUFBd1d3WUpLb1pJaHZjTkFRa1VNVTRlVEFCN0FEY0FOd0ExQURjQVJRQTRBRGtBTkFBdEFFVUFSZ0EzQURjQUxRQTBBRUVBTlFCQ0FDMEFPUUF4QUVRQU9BQXRBRUlBTVFCRkFFUUFPUUEzQURJQVJRQkVBRUlBUXdBMUFIMHdhd1lKS3dZQkJBR0NOeEVCTVY0ZVhBQk5BR2tBWXdCeUFHOEFjd0J2QUdZQWRBQWdBRVVBYmdCb0FHRUFiZ0JqQUdVQVpBQWdBRU1BY2dCNUFIQUFkQUJ2QUdjQWNnQmhBSEFBYUFCcEFHTUFJQUJRQUhJQWJ3QjJBR2tBWkFCbEFISUFJQUIyQURFQUxnQXdNSUlEeHdZSktvWklodmNOQVFjR29JSUR1RENDQTdRQ0FRQXdnZ090QmdrcWhraUc5dzBCQndFd0hBWUtLb1pJaHZjTkFRd0JCakFPQkFoQU45Rm5US1QySVFJQ0I5Q0FnZ09BMnNuSDJrV1R2Wk9MWlg5dUJqWkhYYjRNUUtCSC9yeElPWlZKbGROY0ZWWVVsNE9oOTh2b0tnMjFvYmNvNVZHVUhrZGR4RDNPZkpWaTVYRnlKOFl6Q0x0cGZneXpxa1FHUFJZb1BIaFFjam9UWWdhNDZPMHRRVFlzUVdHdGpDdXVHZnV6WjNKSGVGaFVnWjI5TVZ4dU0zL09TQXcxcWpvMEdveVk0WHlPckN4ZzgzV0trNWJGbm5iaUtSZncveS91N1dCRjBQS3RqU3V1YU5MOWpSbDl0OVRYZzBiaUt6ajRVbnU5cENKZFpzRnYrZXRhSk9Sd3d6T2c0cEZsakVyR3NwQnNpeTduR0NacThIS24xb2NGNStmLzdQTTAwQkZUUkFFUmhQTk91YTl3eVJFOXZBanZNSVZjTityL1d5d1FKaFFwQ2VnWTBnWEF5M1R2L2R6Z1A3ejdZQU15VDVKcjVaOHpaYUI4SWJPU1FsbFFEa0ovNlV6TWpKZXFEYXhkZHFwc2JLekVNZzFHbmhKd01DbzRUMDhwOTdTMGc4RDhoRkRCTVpwelVlY1B0UWx1cS9UQTUvaTRNd2lHcnZmODdEMVRVNzVYbjBkcWZZakN5eEFKczh4MVNOSkEzWEJxalprRExkdEZXckxkZExMbExUdklYa3FSUWNhdURvU3BCTzdLYWZoTDRPSC9uVDk2N0xDOVZmYzZXVE8yd2U5MnVGZ1FKWDd5Z1lYcjZKb1htQ2QzMUk3ZzZVSWMwOTNkUXFOeGxxZTJmbXBuclhMYWttaWl3R3ljZENQb0kzdWRGOERCSWR6Ukw1d2RQb1lCWHJoOXBheEZPR0lxYlBFZ3hTTEIwZS9XbkhJcFljQnpUd2s1RmZrcU1lL01PcnlBUzdZMUprTW83SFRKa2NwMjZlbzRoKy9ZOGd4TGJPU1ZXZHhQa0I0Nll3Y2hjNkY1RDRnRWRwNHpSeWRaNDNCbE5vSDd0cmpJa21WMC94NDNOTmJ1UElnWTcwUy96UVgvSFRaYUJ0M1k5WjV6S3c4N252VCtad0Nuc09WMW95NmdFVFllQkRVcThmMEZ0Z1FhaGk0VUg2bXFEMjZCWU45bzQ5Yk9rZDBJcEV1VFdGY3N5WG9ZelpUcGxiNmJ1dmpCYmFrUE9Sb0J6bnZsVzFHVDZnRDY3b2VNK1p4RE44N2RhN3dYTlBxSVB3ajFKYXMybFRYOUJkU2pzSkNOSUwrRUNNMVlQVDl3emVRbU53ZDRqNUQ0RHpYaHNvbzNWVEVRMitFYytuQ2xjNXhUWVAvUUhhTVFSUDJESUpuSTBjcjZRYk91alltVWtpTkRScFU0ZG1PeGRaQ28vSm0venlBUHFRV1N3ejJoWVEvTFJhSGo3b1pESWM1Rm1Ec1dGZmpMRTBTYWhIdGVXVStoaS8rOE1MN2ZOeXNRcDZxN3dZaGpkQWxzRGVmOTNrbUdPYnFHZnFPTm8zY0R5N0hURjBNMXpoRDMrbGpreHRKU0YwbXY5MXNKRjJXZlVZbWk3b1oyeHNCZXFFQW1WMkRjT1lUbFQ2QXhYT204akJ4aCswY0FQcW5iODE0SGpmc3dOekFmTUFjR0JTc09Bd0lhQkJRNCt2cFJVS3oxOTNaak1QSFFBaFN2MEJvbzBRUVVCVVFLSEdnc1ZjNEtQVkdDTEk5WE1TRzV4Q2c9IiwicmVzb3VyY2VJZCI6IjY2NzQwMTYzNjI2NDgxODkyNzciLCJhYWRBdXRob3JpdHkiOiJodHRwczovL2xvZ2luLndpbmRvd3MubmV0IiwiYWFkQXVkaWVuY2UiOiJodHRwczovL2F6dXJlZGF0YWJveGVkZ2UvY2VudHJhbHVzZXVhcC82Njc0MDE2MzYyNjQ4MTg5Mjc3LzY2NzQwMTYzNjI2NDgxODkyNzciLCJhYWRUZW5hbnRJZCI6IjFjZjYyYjA0LWNlNTYtNDI2OC1iNTgxLTNhMzkwMDJkZDRhOCIsInNlcnZpY2VQcmluY2lwYWxDbGllbnRJZCI6IjdiOTFlNDI3LWIwZWUtNGJiZi1hY2U0LTJjMjM3MWZkMjJjNyIsImF6dXJlTWFuYWdlbWVudEVuZHBvaW50QXVkaWVuY2UiOiJodHRwczovL3BvZDAxLWVkZzEuY2N5LmRhdGFib3hlZGdlLmF6dXJlLmNvbS8iLCJwcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5EYXRhQm94RWRnZSIsInJlc291cmNlR3JvdXAiOiJkZW1vLXJlc291cmNlcyIsInNlcnZpY2VEYXRhSW50ZWdyaXR5S2V5IjoiZmYyZGNmNzczZWVlYWNiN2U4OTRjZjRiMjE3NGJjMGJhYTA0MjBmYWFiMWIxMWZjZDI1YmI2MTBiYjFiNjk4MzM3YjliNDA3YTAyNzk4OWY5YThmNTdjYTFiNGUzZTkwNDE1ZmQ0NTdiOGI0M2Y2Zjg2MjYzYzAwZmVmMTE0ZGYifQ==#6f79d75054eb904d"; + + /// + /// Activation key of edge resource + /// + public const string EdgeDeviceActivationKey = "eyJzdWJzY3JpcHRpb25JZCI6ImRiNGUyZmRiLTZkODAtNGU2ZS1iN2NkLTczNjA5ODI3MDY2NCIsInJlc291cmNlVHlwZSI6ImRhdGFCb3hFZGdlRGV2aWNlcyIsInJlc291cmNlTmFtZSI6ImVkZ2UtZGVtby1kZXZpY2UiLCJtYW5hZ2VtZW50Q2VydCI6Ik1JSUtNZ0lCQXpDQ0NmSUdDU3FHU0liM0RRRUhBYUNDQ2VNRWdnbmZNSUlKMnpDQ0Jnd0dDU3FHU0liM0RRRUhBYUNDQmYwRWdnWDVNSUlGOVRDQ0JmRUdDeXFHU0liM0RRRU1DZ0VDb0lJRS9qQ0NCUG93SEFZS0tvWklodmNOQVF3QkF6QU9CQWlEZnVySy8rejhyUUlDQjlBRWdnVFl5UlVRcEpZV3ZIcnlWNjJDUCtldU1WYS9TUjgxdWZWanhGTk1ydW02amxtUHVPSncwbVI1L1E1SWphaWZLWFRZSVlhdFFVK1I3V2FPRStOK1BxRXVYMXpwMHFoaDJVeTBlQVBxdjRTRDB2MHByV25KZU1HK2VtV1h0RVR5R2lpbWZYZE90Y0Y2dUtSeHE5dzFMTTJ6UEc4RFBpSTJ4TUdCWmxQbFlBU3V0RlY5WFRzbitKVWVodTYwNmgxTDEzRVN4MkRPMEJmdUx3cVB1ZzhvWjJvK20xYU1TY3M1U1NWQ2thbHpTZU1UbkE5RWozZkx0Z1VmT2IyTzhkeENNdnFzdldsSFBoZlhjU1l0WnpITVpqNmRaZll6WjFSQVVzUk80SzUzY2VWTUtYbGdrNGY1emsxb0dqMUFybjYwdXBzZjRxaFEvOFkvZ1JWUXkvZ2E4VnVyK3FwUnVRKzdvcVpNeWUvbjR4bE9LWHZWZjh4alBhQmRrd0FVY2EreUNuZ0lZT2V1cGx5S0I5YjhtZUtNME9sdndKMHgzbThEajRndEJXbDY2QWpQSzI2czBvSzYrdUN6NlVmTWZqTWpnOWlRWEM5U0c5SE9GOC82U1FLM3AyOCtIR2ZyUUppT2FiaUx0NlpUWnJXcVZSaC95Z0JYdzF0NEI0ajBibGF2SG0zQjNKWm1WZk1HTWIyWjBYb3Z1R3BxdHhJd3hsMkJ4RkZ2S3hWY0FLNGcxYW9DNWwxTkk3UG00UVdmelEySU1xVmZOY1pBSFBjYlMrRnA0NzFJcytRdHprZTA3TVc4Ym5LaUtoN0lMSjQrQTJvejh1alF1dms1S2RWTm9DS0JaWXpVbUphcXpzcW01eGZvdTB6UmZ2TjRmeFNVU0FOV1piM2h2b2gwVUpUa3I4dnVrR3pVVFE2Vm1jZS94bUIzMWxVbWs5di90VldXcWM1NW0raUtjV2lWT05XTDlabG9GdkVlSW5GWDJsd2c0ZG1YcG92cTY3YnFRdERFaXd3eGZ6R1hIOWJ4WnRFK3FoVnlMTE81T1lsTGFjajA5b1FVdnROOFZHaE8zKy8yQklIazlpRXUyYWtzc3didFhrVVNEY29GVVJoNmdBMERCazlrTk9XL29PR25zNTNnTnFFMyt5N3cwR3NhMFlJWnBucE9PaFozc2F3MS9lc3YwbmxoQzViLzNzU0xtQlk0U2t1VnVOYjNTWU15NStMN0FwNStoak9RTDF4MU1FcUFsaEU0ai9EcGVjQklKTG82TFVYRlNJZ21ES2w0bTVpSDIrTHg1TXQvN1dpMDVCNm00aTgyQUFHWmZCUTRhNFhUMkZKVHNSMEQ4OEtTVWN5cDJaRUFheU4rb21ZU1NpZHpqTThLNksybnNDTjAxUHlyZG0vVmdKT24rZngveUYvZzU4WjUxYlNxeGk2K1RObndib2E0UkVFamNmTFErNmlnUFJjZDJ4OFd0RjVuRjBCdTMzN3E1aEJKQUFVbWc0Q2t0dHpYR28wWFI1Ty94RlBXRENKOGhsL1JMTmJkT2RjN3pobGpyWXE2OUNoaHhMNmxHbXhmU2ZuMlNIYUk2MWp0Q2xtcHp0Z2lvOHIwbTdSTlRVbEs4T3BIMTFTYVZWeE5PM1psVDB3UW5uajhJZkFpK08yd2kvQ3RjZXIwNFB6VkRHamZvS3J2SlkrOEZVa2JpWnd2RXR0TUxkYTNGS1RWMjJDYlVUVURCTXJvWGpaMnVrTTJCRG16bEhqajRpbWp2ampCZm50akpQb1E0QzgzRkZpRHNpRVBkNG1WZjNQL0t5MjNjNk5DdHY3RTEyRjlyMVpWNDd2K1hnZnFsNnJLem56MHpROURJcjJ1MmQySE5xMnpKQ1VGTnJ3OVlnVUZmd1NoN0lpRU0yYW5iSURJN0g5ZCtoM2lEajNpaUlTNVo2RzlOSnhkTjhnOE1WSEFMbXpmOUZKa1RBVTlPOExHUEZhZ05HUWxXRThLQzVnakhCeVVObXZ0K3hNZGIzL3lXZkhVNTM1SEVKRHMxK0tkbHhrOHUwSVp5TDZRNE92bXVKK0FYZjBndGgvQ3gzOFZNc1RMVWdEOE1XcEo0Q0MrUVFQUmtPaU1VZzNLVlMvL0R4WlBnQVNCUVV5VVhCWGJ2VWViYnRMZnVWQ011NVVPKy9RZ2VQbCswc0ZWMkwyd05DUTZLTFNDVEFpSVRER0IzekFUQmdrcWhraUc5dzBCQ1JVeEJnUUVBUUFBQURCYkJna3Foa2lHOXcwQkNSUXhUaDVNQUhzQU5BQkNBREVBT0FBeUFFTUFNd0JHQUMwQVFnQXlBRFVBTkFBdEFEUUFSZ0F3QUVZQUxRQTRBRE1BUWdBNUFDMEFOUUE1QURVQU53QTFBRVlBTUFBMUFEZ0FRZ0EzQUVZQWZUQnJCZ2tyQmdFRUFZSTNFUUV4WGg1Y0FFMEFhUUJqQUhJQWJ3QnpBRzhBWmdCMEFDQUFSUUJ1QUdnQVlRQnVBR01BWlFCa0FDQUFRd0J5QUhrQWNBQjBBRzhBWndCeUFHRUFjQUJvQUdrQVl3QWdBRkFBY2dCdkFIWUFhUUJrQUdVQWNnQWdBSFlBTVFBdUFEQXdnZ1BIQmdrcWhraUc5dzBCQndhZ2dnTzRNSUlEdEFJQkFEQ0NBNjBHQ1NxR1NJYjNEUUVIQVRBY0Jnb3Foa2lHOXcwQkRBRUdNQTRFQ0dRdERNNHhJQzJyQWdJSDBJQ0NBNEFIMkJOMlpmUE1CL2VvOFlkTk54ZEliMTNMYW0reDN6WEN5WWo5QkRjMkFGN2syK2hMdmkrQ1VOVjEzNjVFOGNRQkJlbWVaN3JuT2djUmgxc2dua3Y5S1JtOWI5Y09QRzNpUFIzYjJRVmRBbmplK3pzUUxydWZDQ0hpM3BzMHdnRitOd29wYU9IVEo5YUtGbVFIR3dPQzVTZDI4U3F6aGNTWXhYempQSWZZRHlKN3VhSDdWM09SSk5WMnNVQTcrK1ZTejR0b1llWEE1WkNOTkE2dkY2L2dhWExWSkZGZTFNUkNnUTRxS2NUNkpjRkx1QW1BcThoTDd5MGRoRTJFOXV4aXBlb2l2YzNPbG42dkdKeUczQkllRVpyVGtBc2lzbUtFcVExOGZ3dzFJSUNmMU1hR3p1RUJHK0ZldFhrQWlWdEttcFVKYlhvOVpqamtXT0xETCtidnRIdEFJV2lEbFE0ZVRDS0N2c05FUkdCTmlZSXpjNXhGeWcrdm1RWXVTV1I2bjQxclFpM1pkaEEzNU9FbWxiQmp1a09qczhTK2o5THRWS3JqYjlsRnFEZXA1VzlreEFRQWlDdFNGaVRoSjlkMW1RM0gwSi9pRVYrRnptdTdvMUFiWExXVC9ucWg4RzZzOU9kVlRqL0RQRk4xYXBJZW4yOHVmRmdxNkFWZWlxcFRvZjRFMHVyM2RkS2RRUUhyekd3RVhYTlFoN1loRnBRNUtpT29pd0h0Q1FZTWZBSzNGRllmVTZINSszcTdsSC9pWmxqOHd6MzN0Y3FJNHF3U1R0TmV2OW1PWjJVOTJIWWR6RUlvclM1bEpSMFV4TTJYTFdmT2R6THMwOVRuOEk0Z2hEN0tuc2NORjIzYzN2M0VGS21jaHRnQkQ3c09semUrT29kV3luMW5nYVZCeERwUWI2MG12SThPMHBmVWt5aE5XblFBbTVhdUFvN2xTaGY2d1N3NklJeXo4eU5sU3Q2UnRZYit2YlRuN3hRVityeE9vUkUreWNhT3Q3bFcvYi93WVFYU2l3d3YxWGhMaTVic2tzaU53R1lPMU0zZGhlQmZaWFg3VTI2RmoxZ3BnVW9xdkFOSUdHRDhOYW5IYmpMeGJqTjExK0dwbGV3OW93djQrWS9FNmFCdUc2UjYvczFIZW5MSCtOZmN3ZjJXbnhNQjRvRVlacVB6YVFEUjMxY0JYRmUxMjBtV0tkcld5em5WVWRlZzFJeHRHbWR1THVGZHJoUzJtVVhncFVjOHJRYUNya1E4Y2tFVFpza09lVS9MVGRWTE1oOGE4bHRPYy9lYkRaOUk4OFVNdmt0bXhVdTBPYXdkWU5BVTFTNTc4alBjbzRaK1VHNkhFUzMwRDhtZllHMjVCOERLa3k2SVhjc2ZwYW1IMkt3ZEpGVkZ3SnhEdktLRS96L2E2a0NLZU5HRVRiT09EeHEyaDVXSDlpa3dEUzBFdDdPSm5sMnJaSGU3Mkh2dnFaTitrM0hjUUMwMHJON0FjMjlPWFJaL1Bja2ZaR1VDUzNFTk1VME5GVFhHb1RVNUJuSU5DVVZFS0pPd1prdzlhTk03d09CZjdZYTNpOXE5UHlqZHBEQTNNQjh3QndZRkt3NERBaG9FRkRtVmNkVXpaSTJKbEtBQjBPcllvdjBxS3BWN0JCUUpUSlJQNWZPdG5ZbWUxWGJuNkFneTRTck80UT09IiwicmVzb3VyY2VJZCI6Ijc5ODMxNTM2ODAwMjk0ODY4NDAiLCJhYWRBdXRob3JpdHkiOiJodHRwczovL2xvZ2luLndpbmRvd3MubmV0IiwiYWFkQXVkaWVuY2UiOiJodHRwczovL2F6dXJlZGF0YWJveGVkZ2UvY2VudHJhbHVzZXVhcC83OTgzMTUzNjgwMDI5NDg2ODQwLzc5ODMxNTM2ODAwMjk0ODY4NDAiLCJhYWRUZW5hbnRJZCI6IjFjZjYyYjA0LWNlNTYtNDI2OC1iNTgxLTNhMzkwMDJkZDRhOCIsInNlcnZpY2VQcmluY2lwYWxDbGllbnRJZCI6IjlkMjIzODk0LWFlOWUtNDIyYi1hYjk1LWI4YzE4NjU2ZTk3MyIsImF6dXJlTWFuYWdlbWVudEVuZHBvaW50QXVkaWVuY2UiOiJodHRwczovL3BvZDAxLWVkZzEuY2N5LmRhdGFib3hlZGdlLmF6dXJlLmNvbS8iLCJwcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5EYXRhQm94RWRnZSIsInJlc291cmNlR3JvdXAiOiJkZW1vLXJlc291cmNlcyIsInNlcnZpY2VEYXRhSW50ZWdyaXR5S2V5IjoiZjlmNTAyZTYyZWRmNzRmNjZhMWIxMGE5ZjRmZmNjMmZjNDQ5MDZkNjA1OTc4YmE4NDJjOWNkNjNmZWEwMmI3YzY4MjY5MGVmYzhmOTFlNWM3MDE5N2JmNDVkNTAyNzI4ODcxZDhmZTE2MjQyYTE5OGM5NTU1MDQyNzcyZDcwMTcifQ==#f802a74f1f7d04ce"; + + /// + /// Name of the gateway resource being used in the test + /// + public const string GatewayResourceName = "gateway-demo-device"; + + /// + /// Name of the edge resource being used in the test + /// + public const string EdgeResourceName = "edge-demo-device"; + + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/AlertTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/AlertTests.cs new file mode 100644 index 000000000000..3d6bc4cb1a0b --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/AlertTests.cs @@ -0,0 +1,48 @@ +using Microsoft.Azure.Management.EdgeGateway; +using System.Linq; +using Xunit; +using Xunit.Abstractions; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for alerts APIs + /// + public class AlertTests : EdgeGatewayTestBase + { + #region Constructor + /// + /// Initializes the instance to test alert APIs + /// + public AlertTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests alert list and get APIs + /// + [Fact] + public void Test_Alerts() + { + string contiunationToken = null; + // Get the list of alerts in the device. + var alerts = TestUtilities.ListAlerts(Client, TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName, out contiunationToken); + + if (contiunationToken != null) + { + // Get the list of remaining alerts in the device. + alerts = TestUtilities.ListAlertsNext(Client, contiunationToken, out contiunationToken); + } + + if (alerts != null && alerts.Count() > 0) + { + // Get one alert by name + var alert = Client.Alerts.Get(TestConstants.GatewayResourceName, alerts.ToList().First().Name, TestConstants.DefaultResourceGroupName); + } + } + + #endregion Test Methods + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/BandwidthScheduleTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/BandwidthScheduleTests.cs new file mode 100644 index 000000000000..44da12b908d1 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/BandwidthScheduleTests.cs @@ -0,0 +1,48 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Xunit; +using Xunit.Abstractions; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for bandwidth schedules APIs + /// + public class BandwidthScheduleTests : EdgeGatewayTestBase + { + #region Constructor + /// + /// Initializes the instance to test bandwidth schedule APIs + /// + public BandwidthScheduleTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests bandwidth schedule create, update, get, list and delete APIs + /// + [Fact] + public void Test_BandwidthSchedule() + { + BandwidthSchedule schedule = TestUtilities.GetBWSObject(); + + // Create a bandwidth schedule + Client.BandwidthSchedules.CreateOrUpdate(TestConstants.GatewayResourceName, "schedule-1", schedule, TestConstants.DefaultResourceGroupName); + + // Get a bandwidth schedule by name + var bandwidthSchedule = Client.BandwidthSchedules.Get(TestConstants.GatewayResourceName, "schedule-1", TestConstants.DefaultResourceGroupName); + + // List all schedules in device + string contiuationToken = null; + var bandwidthSchedules = TestUtilities.ListBandwidthSchedules(Client, TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName, out contiuationToken); + + // Delete a schedules by name + Client.BandwidthSchedules.Delete(TestConstants.GatewayResourceName, "schedule-1", TestConstants.DefaultResourceGroupName); + + } + #endregion Test Methods + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/DeviceExtendedInfoTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/DeviceExtendedInfoTests.cs new file mode 100644 index 000000000000..6380c7aabd70 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/DeviceExtendedInfoTests.cs @@ -0,0 +1,36 @@ +namespace EdgeGateway.Tests +{ + using Microsoft.Azure.Management.EdgeGateway.Models; + using Xunit; + using Xunit.Abstractions; + using Microsoft.Azure.Management.EdgeGateway; + + /// + /// Contains the tests for device extended information APIs + /// + public class DeviceExtendedInfoTests : EdgeGatewayTestBase + { + #region Constructor + /// + /// Initializes the instance to test device extended information APIs + /// + public DeviceExtendedInfoTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests device extended information APIs + /// + [Fact] + public void Test_GetExtendedInformation() + { + // Get the extended information. + var extendedInfo = Client.Devices.GetExtendedInformation(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName); + } + + #endregion Test Methods + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/DeviceTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/DeviceTests.cs new file mode 100644 index 000000000000..983a2f44bfb1 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/DeviceTests.cs @@ -0,0 +1,97 @@ +namespace EdgeGateway.Tests +{ + using Microsoft.Azure.Management.EdgeGateway.Models; + using Xunit; + using Xunit.Abstractions; + using Microsoft.Azure.Management.EdgeGateway; + using System.Linq; + + /// + /// Contains the tests for device operations + /// + public class DeviceTests : EdgeGatewayTestBase + { + #region Constructor + /// + /// Initializes an instance to test device operations + /// + public DeviceTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests create, update, get, list and delete device APIs + /// + [Fact] + public void Test_ManageDeviceOperations() + { + + DataBoxEdgeDevice device = new DataBoxEdgeDevice(); + + // Populate device properties as a Gateway resource + device.PopulateGatewayDeviceProperties(); + + // Create a gateway resource + device.CreateOrUpdate(TestConstants.GatewayResourceName, Client, TestConstants.DefaultResourceGroupName); + + // Get a device by name + var gatewayDevice = Client.Devices.Get(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName); + + string contiuationToken = null; + // Get devices in the resource group + var devicesInResourceGroup = TestUtilities.GetResourcesByResourceGroup(Client, TestConstants.DefaultResourceGroupName, out contiuationToken); + + if (contiuationToken != null) + { + // Get the remaining devices in the resource group + devicesInResourceGroup.ToList().AddRange(TestUtilities.GetResourcesByResourceGroupNext(Client, contiuationToken, out contiuationToken)); + } + + contiuationToken = null; + + // Get all devices in subscription + var devicesInSubscription = TestUtilities.GetResourcesBySubscription(Client, out contiuationToken); + + if (contiuationToken != null) + { + // Get the remaining devices in the subscription + devicesInSubscription.ToList().AddRange(TestUtilities.GetResourcesBySubscriptionNext(Client, contiuationToken, out contiuationToken)); + } + + // Get the tags to be updated to resource + var tags = device.GetTags(); + + // Update tags in the resource + Client.Devices.Update(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName, tags); + + // Delete a gateway resource + Client.Devices.Delete(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName); + + // Create an edge device + DataBoxEdgeDevice edgeDevice = new DataBoxEdgeDevice(); + + // Populate device properties as a Gateway resource + edgeDevice.PopulateEdgeDeviceProperties(); + + // Create a gateway resource + edgeDevice.CreateOrUpdate(TestConstants.EdgeResourceName, Client, TestConstants.DefaultResourceGroupName); + + } + + /// + /// Tests device admin password change + /// + [Fact] + public void Test_DevicePasswordUpdate() + { + var asymmetricEncryptedSecret = Client.Devices.GetAsymmetricEncryptedSecret(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName, "Password3", TestConstants.GatewayActivationKey); + // Update the device admin password + Client.Devices.CreateOrUpdateSecuritySettings(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName, asymmetricEncryptedSecret); + } + + #endregion Test Methods + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/DeviceUpdatesTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/DeviceUpdatesTests.cs new file mode 100644 index 000000000000..a801428159e1 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/DeviceUpdatesTests.cs @@ -0,0 +1,62 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Xunit; +using Xunit.Abstractions; + + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for device update APIs + /// + public class DeviceUpdatesTests : EdgeGatewayTestBase + { + #region Constructor + /// + /// Creates an instance to test device update APIs + /// + public DeviceUpdatesTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests download device updates APIs. + /// + [Fact] + public void Test_GetAndDownloadUpdates() + { + // Get the update summary. + var updateSummary = Client.Devices.GetUpdateSummary(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName); + + // Scan the device for updates. + Client.Devices.ScanForUpdates(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName); + + // Download the updates in the device. + // This is a long running operation and may take upto hours. + Client.Devices.DownloadUpdates(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName); + + // Get the update summary. + updateSummary = Client.Devices.GetUpdateSummary(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName); + + + } + + + /// + /// Tests install device updates APIs. + /// + [Fact] + public void Test_InstallUpdates() + { + // Install updates in the device. + // This is a long running operation and may take upto hours. + Client.Devices.InstallUpdates(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName); + + // Get the update summary. + var updateSummary = Client.Devices.GetUpdateSummary(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName); + } + + #endregion Test Methods + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/EdgeGatewayTestBase.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/EdgeGatewayTestBase.cs new file mode 100644 index 000000000000..18574bf64473 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/EdgeGatewayTestBase.cs @@ -0,0 +1,111 @@ +namespace EdgeGateway.Tests +{ + using Microsoft.Azure.Management.EdgeGateway; + using Microsoft.Azure.Management.EdgeGateway.Models; + using Microsoft.Azure.Test.HttpRecorder; + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + using System; + using System.Reflection; + using System.Threading; + using Xunit.Abstractions; + using Xunit.Sdk; + + /// + /// Base class for all tests + /// + public class EdgeGatewayTestBase : TestBase, IDisposable + { + /// + /// The subscription id key + /// + protected const string SubIdKey = "SubId"; + + /// + /// The subscription id used for tests + /// + public string SubscriptionId { get; protected set; } + + /// + /// The context in which the tests run + /// + protected MockContext Context { get; set; } + + /// + /// The edge gateway client + /// + public DataBoxEdgeManagementClient Client { get; protected set; } + + + /// + /// Initializes common properties used across tests + /// + public EdgeGatewayTestBase(ITestOutputHelper testOutputHelper) + { + // Getting test method name here as we are not initializing context from each method + var helper = (TestOutputHelper)testOutputHelper; + ITest test = (ITest)helper.GetType().GetField("test", BindingFlags.NonPublic | BindingFlags.Instance) + .GetValue(helper); + this.Context = MockContext.Start(this.GetType().FullName, test.TestCase.TestMethod.Method.Name); + + this.Client = this.Context.GetServiceClient(); + var testEnv = TestEnvironmentFactory.GetTestEnvironment(); + this.SubscriptionId = testEnv.SubscriptionId; + + if (HttpMockServer.Mode == HttpRecorderMode.Record) + { + HttpMockServer.Variables[SubIdKey] = testEnv.SubscriptionId; + } + } + + /// + /// Wait for the specified span unless we are in mock playback mode + /// + /// The span of time to wait for + public static void Wait(TimeSpan timeout) + { + if (HttpMockServer.Mode != HttpRecorderMode.Playback) + { + Thread.Sleep(timeout); + } + } + + /// + /// Disposes the client and context + /// + public void Dispose() + { + this.Client.Dispose(); + this.Context.Dispose(); + } + + /// + /// Disposes the object + /// + ~EdgeGatewayTestBase() + { + Dispose(); + } + + ///// + ///// Disposes the object + ///// + //protected static object GetResourceManagementClient(object context, object handler) + //{ + // throw new NotImplementedException(); + //} + + ///// + ///// Disposes the object + ///// + //protected static Sku GetDefaultSku() + //{ + // return new Sku + // { + // Name = SkuName.Edge + // }; + //} + + + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/JobsTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/JobsTests.cs new file mode 100644 index 000000000000..fb1bf50dce25 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/JobsTests.cs @@ -0,0 +1,33 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Xunit; +using Xunit.Abstractions; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for jobs APIs + /// + public class JobsTests : EdgeGatewayTestBase + { + #region Constructor + /// + /// Creates an instance to test jobs API + /// + public JobsTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Test job get API + /// + [Fact] + public void Test_Jobs() + { + // Get a job by name + Client.Jobs.Get(TestConstants.GatewayResourceName, "d27da901-5e8c-4e53-880a-e6f6fd4af560", TestConstants.DefaultResourceGroupName); + } + #endregion Test Methods + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/NetworkSettingsTest.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/NetworkSettingsTest.cs new file mode 100644 index 000000000000..14c9b9a0a9e0 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/NetworkSettingsTest.cs @@ -0,0 +1,34 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Xunit; +using Xunit.Abstractions; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for network settings APIs + /// + public class NetworkSettingsTest : EdgeGatewayTestBase + { + #region Constructor + /// + /// Creates an instance to test network settings APIs + /// + public NetworkSettingsTest(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests network settings create, update, get, list and delete APIs + /// + [Fact] + public void Test_GetNetworkSettings() + { + // Get the device network settings. + var NetworkSettings = Client.Devices.GetNetworkSettings(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName); + } + + #endregion Test Methods + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/OrderTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/OrderTests.cs new file mode 100644 index 000000000000..6872082ee9f0 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/OrderTests.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Xunit; +using Xunit.Abstractions; +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for order APIs + /// + public class OrderTests : EdgeGatewayTestBase + { + #region Constructor + /// + ///Creates an instance to test order API + /// + public OrderTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests order create, update, get, list and delete APIs + /// + [Fact] + public void Test_DeviceOrders() + { + Order order = TestUtilities.GetOrderObject(); + // Create an order + Client.Orders.CreateOrUpdate(TestConstants.EdgeResourceName, order, TestConstants.DefaultResourceGroupName); + + // Get an order + Client.Orders.Get(TestConstants.EdgeResourceName, TestConstants.DefaultResourceGroupName); + + // List all orders in the device (We support only one order for now) + string continuationToken = null; + TestUtilities.ListOrders(Client, TestConstants.EdgeResourceName, TestConstants.DefaultResourceGroupName, out continuationToken); + + // Delete an order + Client.Orders.Delete(TestConstants.EdgeResourceName, TestConstants.DefaultResourceGroupName); + } + #endregion Test Methods + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/RoleTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/RoleTests.cs new file mode 100644 index 000000000000..39734f9ca240 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/RoleTests.cs @@ -0,0 +1,52 @@ +using Microsoft.Azure.Management.EdgeGateway.Models; +using Xunit; +using Xunit.Abstractions; +using Microsoft.Azure.Management.EdgeGateway; +using System.Linq; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for role APIs + /// + public class RoleTests : EdgeGatewayTestBase + { + #region Constructor + /// + /// Creates an instance to thes role APIs + /// + public RoleTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests IoT role management APIs + /// + [Fact] + public void Test_IoTRoles() + { + AsymmetricEncryptedSecret iotDevicesecret = Client.Devices.GetAsymmetricEncryptedSecret(TestConstants.EdgeResourceName, TestConstants.DefaultResourceGroupName, "IotDeviceConnectionString", TestConstants.EdgeDeviceActivationKey); + AsymmetricEncryptedSecret iotEdgeDevicesecret = Client.Devices.GetAsymmetricEncryptedSecret(TestConstants.EdgeResourceName, TestConstants.DefaultResourceGroupName, "IotEdgeDeviceConnectionString", TestConstants.EdgeDeviceActivationKey); + + var iotRole = TestUtilities.GetIoTRoleObject(iotDevicesecret, iotEdgeDevicesecret); + + // Create an iot role + Client.Roles.CreateOrUpdate(TestConstants.EdgeResourceName, "iot-1", iotRole, TestConstants.DefaultResourceGroupName); + + // Get an iot role by name + Client.Roles.Get(TestConstants.EdgeResourceName, "iot-1", TestConstants.DefaultResourceGroupName); + + // List iot Roles in the device + string continuationToken = null; + TestUtilities.ListRoles(Client, TestConstants.EdgeResourceName, TestConstants.DefaultResourceGroupName, out continuationToken); + + // Delete iot role + Client.Roles.Delete(TestConstants.EdgeResourceName, "iot-1", TestConstants.DefaultResourceGroupName); + } + + #endregion Test Methods + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/ShareTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/ShareTests.cs new file mode 100644 index 000000000000..d29b3b490f91 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/ShareTests.cs @@ -0,0 +1,94 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using System.Collections.Generic; +using System.Linq; +using Xunit; +using Xunit.Abstractions; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for share APIs + /// + public class ShareTests : EdgeGatewayTestBase + { + #region Constructor + /// + /// Creates an instance to test share APIs + /// + public ShareTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests share management APIs + /// + [Fact] + public void Test_ShareOperations() + { + string userId = null; + string sacId = null; + // Get the user details + var user = Client.Users.Get(TestConstants.GatewayResourceName, "user1", TestConstants.DefaultResourceGroupName); + if (user != null) + { + userId = user.Id; + } + + // Get SAC details + var sac = Client.StorageAccountCredentials.Get(TestConstants.GatewayResourceName, "sac1", TestConstants.DefaultResourceGroupName); + if (sac != null) + { + sacId = sac.Id; + } + + // Get SMB share object + Share smbShare = TestUtilities.GetSMBShareObject(sacId, userId); + + // Create SMB share + Client.Shares.CreateOrUpdate(TestConstants.GatewayResourceName, "smb1", smbShare, TestConstants.DefaultResourceGroupName); + + // Get NFS share object + Share nfsShare = TestUtilities.GetNFSShareObject(sacId, "10.150.76.81"); + + // Create NFS share + Client.Shares.CreateOrUpdate(TestConstants.GatewayResourceName, "nfs1", nfsShare, TestConstants.DefaultResourceGroupName); + + // Get share by name + var share = Client.Shares.Get(TestConstants.GatewayResourceName, "smb1", TestConstants.DefaultResourceGroupName); + + // List shares in the device + string continuationToken = null; + var shares = TestUtilities.ListShares(Client, TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName, out continuationToken); + + if (continuationToken != null) + { + shares.ToList().AddRange(TestUtilities.ListSharesNext(Client, continuationToken, out continuationToken)); + } + + // Refresh a share + // Client.Shares.Refresh(TestConstants.GatewayResourceName, "smb1", TestConstants.DefaultResourceGroupName); + + // Delete a share + Client.Shares.Delete(TestConstants.GatewayResourceName, "smb1", TestConstants.DefaultResourceGroupName); + + } + + /// + /// Tests share refresh API + /// + [Fact] + public void Test_RefreshShare() + { + + + // Refresh a share + Client.Shares.Refresh(TestConstants.GatewayResourceName, "nfs1", TestConstants.DefaultResourceGroupName); + + } + #endregion Test Methods + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/StorageAccountCredentialsTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/StorageAccountCredentialsTests.cs new file mode 100644 index 000000000000..1547ca6618dd --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/StorageAccountCredentialsTests.cs @@ -0,0 +1,55 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using Xunit; +using Xunit.Abstractions; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for storage account credential APIs + /// + public class StorageAccountCredentialsTests : EdgeGatewayTestBase + { + #region Constructor + + /// + /// Creates an instance to test storage account credential APIs + /// + public StorageAccountCredentialsTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests storage account credential APIs + /// + [Fact] + public void Test_SACManagement() + { + //Create storage account credential + AsymmetricEncryptedSecret encryptedSecret = Client.Devices.GetAsymmetricEncryptedSecret(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName, "EyIbt0QelBmm4ggkWsvQGaGaijYv/JBXIRl5ZR7pwgCJCkLYQmKY+H5RV4COGhbi01dBRIC1dNSF1sbJoeAL1Q==", TestConstants.GatewayActivationKey); + StorageAccountCredential sac1 = TestUtilities.GetSACObject(encryptedSecret, "sac1"); + Client.StorageAccountCredentials.CreateOrUpdate(TestConstants.GatewayResourceName, "sac1", sac1, TestConstants.DefaultResourceGroupName); + + StorageAccountCredential sac2 = TestUtilities.GetSACObject(encryptedSecret, "sac2"); + Client.StorageAccountCredentials.CreateOrUpdate(TestConstants.GatewayResourceName, "sac2", sac2, TestConstants.DefaultResourceGroupName); + + //Get storage account credential by name. + Client.StorageAccountCredentials.Get(TestConstants.GatewayResourceName, "sac1", TestConstants.DefaultResourceGroupName); + + //List storage account credentials in the device + string continuationToken = null; + var storageCredentials = TestUtilities.ListStorageAccountCredentials(Client, TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName,out continuationToken); + + //List storage account credentials in the device + Client.StorageAccountCredentials.Delete(TestConstants.GatewayResourceName, "sac2", TestConstants.DefaultResourceGroupName); + + } + + #endregion Test Methods + + + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/TriggerTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/TriggerTests.cs new file mode 100644 index 000000000000..0db6ae043540 --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/TriggerTests.cs @@ -0,0 +1,54 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using System.Collections.Generic; +using System.Linq; +using Xunit; +using Xunit.Abstractions; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for trigger APIs + /// + public class TriggerTests : EdgeGatewayTestBase + { + #region Constructor + /// + /// Creates an instance to test share APIs + /// + public TriggerTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests share management APIs + /// + [Fact] + public void Test_TriggerOperations() + { + Trigger fileTrigger = TestUtilities.GetFileTriggerObject(); + + // Create a file event trigger + Client.Triggers.CreateOrUpdate(TestConstants.EdgeResourceName, "trigger-fileEventTrigger", fileTrigger, TestConstants.DefaultResourceGroupName); + + // Create a periodic timer event trigger + + Trigger periodicTrigger = TestUtilities.GetPeriodicTriggerObject(); + Client.Triggers.CreateOrUpdate(TestConstants.EdgeResourceName, "trigger-periodicTrigger", periodicTrigger, TestConstants.DefaultResourceGroupName); + + // Get a trigger by name + var trigger = Client.Triggers.Get(TestConstants.EdgeResourceName, "trigger-periodicTrigger", TestConstants.DefaultResourceGroupName); + + string continuationToken = null; + // List all triggers in the device + var triggers = TestUtilities.ListTriggers(Client, TestConstants.EdgeResourceName, TestConstants.DefaultResourceGroupName, out continuationToken); + + // Delete a share + Client.Triggers.Delete(TestConstants.EdgeResourceName, "trigger-periodicTrigger", TestConstants.DefaultResourceGroupName); + } + #endregion Test Methods + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/UserTests.cs b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/UserTests.cs new file mode 100644 index 000000000000..6364b43b026e --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.Tests/Tests/UserTests.cs @@ -0,0 +1,58 @@ +using Microsoft.Azure.Management.EdgeGateway; +using Microsoft.Azure.Management.EdgeGateway.Models; +using System.Linq; +using Xunit; +using Xunit.Abstractions; + +namespace EdgeGateway.Tests +{ + /// + /// Contains the tests for user operations + /// + public class UserTests : EdgeGatewayTestBase + { + #region Constructor + /// + /// Initializes an instance to test user operations + /// + public UserTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } + + #endregion Constructor + + #region Test Methods + + /// + /// Tests user management APIs + /// + [Fact] + public void Test_UserManagement() + { + // Create the encrypted password for the user + AsymmetricEncryptedSecret encryptedSecret = Client.Devices.GetAsymmetricEncryptedSecret(TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName, "Password1", TestConstants.GatewayActivationKey); + User user = new User() { EncryptedPassword = encryptedSecret }; + + // Create user. + Client.Users.CreateOrUpdate(TestConstants.GatewayResourceName, "user1", TestConstants.DefaultResourceGroupName, encryptedSecret); + Client.Users.CreateOrUpdate(TestConstants.GatewayResourceName, "user2", TestConstants.DefaultResourceGroupName, encryptedSecret); + + // Get user by name + var retrievedUser = Client.Users.Get(TestConstants.GatewayResourceName, "user1", TestConstants.DefaultResourceGroupName); + + // List users in the device + string continuationToken = null; + var usersInDevice = TestUtilities.ListUsers(Client, TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName, out continuationToken); + if (continuationToken != null) + { + usersInDevice.ToList().AddRange(TestUtilities.ListUsers(Client, TestConstants.GatewayResourceName, TestConstants.DefaultResourceGroupName, out continuationToken)); + } + + // Delete user + Client.Users.Delete(TestConstants.GatewayResourceName, "user2", TestConstants.DefaultResourceGroupName); + + } + + #endregion Test Methods + + + } +} diff --git a/src/SDKs/EdgeGateway/EdgeGateway.sln b/src/SDKs/EdgeGateway/EdgeGateway.sln new file mode 100644 index 000000000000..a7a93623f17a --- /dev/null +++ b/src/SDKs/EdgeGateway/EdgeGateway.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27703.2000 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.EdgeGateway", "Management.EdgeGateway\Microsoft.Azure.Management.EdgeGateway.csproj", "{1EB75EB2-0C8F-42B0-B40D-A1D5EE68B6BB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EdgeGateway.Tests", "EdgeGateway.Tests\EdgeGateway.Tests.csproj", "{79C1D6B9-BE65-46F2-B1F2-42C7B6673A9E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1EB75EB2-0C8F-42B0-B40D-A1D5EE68B6BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1EB75EB2-0C8F-42B0-B40D-A1D5EE68B6BB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1EB75EB2-0C8F-42B0-B40D-A1D5EE68B6BB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1EB75EB2-0C8F-42B0-B40D-A1D5EE68B6BB}.Release|Any CPU.Build.0 = Release|Any CPU + {79C1D6B9-BE65-46F2-B1F2-42C7B6673A9E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {79C1D6B9-BE65-46F2-B1F2-42C7B6673A9E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {79C1D6B9-BE65-46F2-B1F2-42C7B6673A9E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {79C1D6B9-BE65-46F2-B1F2-42C7B6673A9E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9CA0B66B-69CD-414C-9DBA-19D087CE1720} + EndGlobalSection +EndGlobal diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Customizations/CryptoUtilities.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Customizations/CryptoUtilities.cs new file mode 100644 index 000000000000..0d845cbd8726 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Customizations/CryptoUtilities.cs @@ -0,0 +1,157 @@ +namespace Microsoft.Azure.Management.EdgeGateway +{ + using System; + using System.IO; + using System.Security.Cryptography; + using System.Security.Cryptography.X509Certificates; + using System.Text; + + /// + /// The crypto helper. + /// + public class CryptoUtilities + { + /// + /// The salt for generating encryption keys. + /// + private static readonly byte[] Salt = Encoding.ASCII.GetBytes("o6806642kbM7c5"); + + /// + /// The AES algorithm is used to decrypt the given cipherText. + /// + /// The cipher text. + /// The shared secret. + /// The decrypted secret in pain text. + public static string DecryptCipherAES(string cipherText, string sharedSecret) + { + if (string.IsNullOrEmpty(cipherText)) + { + return cipherText; + } + + Aes aesAlg = null; + + string plaintext = null; + + // generate the key from the shared secret and the salt + Rfc2898DeriveBytes key = new Rfc2898DeriveBytes(sharedSecret, Salt); + + // Create the streams used for decryption. + byte[] bytes = Convert.FromBase64String(cipherText); + using (MemoryStream memoryDecrypt = new MemoryStream(bytes)) + { + aesAlg = Aes.Create(); + aesAlg.Key = key.GetBytes(aesAlg.KeySize / 8); + + // Get the initialization vector from the encrypted stream + aesAlg.IV = ReadByteArray(memoryDecrypt); + + // Create a decrytor to perform the stream transform. + ICryptoTransform decryptor = aesAlg.CreateDecryptor(aesAlg.Key, aesAlg.IV); + using (CryptoStream cryptoDecrypt = new CryptoStream(memoryDecrypt, decryptor, CryptoStreamMode.Read)) + { + using (StreamReader streamDecrypt = new StreamReader(cryptoDecrypt)) + { + // Read the decrypted bytes from the decrypting stream and place them in a string. + plaintext = streamDecrypt.ReadToEnd(); + } + } + } + + return plaintext; + } + + public static string DecryptStringAES(string cipherText, string sharedSecret) + { + if (string.IsNullOrEmpty(cipherText)) + return cipherText; + + Aes aesAlg = null; + string plaintext = null; + + // generate the key from the shared secret and the salt + Rfc2898DeriveBytes key = new Rfc2898DeriveBytes(sharedSecret, Salt); + + // Create the streams used for decryption. + byte[] bytes = Convert.FromBase64String(cipherText); + using (MemoryStream msDecrypt = new MemoryStream(bytes)) + { + aesAlg = Aes.Create(); + aesAlg.Key = key.GetBytes(aesAlg.KeySize / 8); + // Get the initialization vector from the encrypted stream + aesAlg.IV = ReadByteArray(msDecrypt); + // Create a decrytor to perform the stream transform. + ICryptoTransform decryptor = aesAlg.CreateDecryptor(aesAlg.Key, aesAlg.IV); + using (CryptoStream csDecrypt = + new CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Read)) + { + using (StreamReader srDecrypt = new StreamReader(csDecrypt)) + + // Read the decrypted bytes from the decrypting stream + // and place them in a string. + plaintext = srDecrypt.ReadToEnd(); + } + } + + return plaintext; + } + + /// + /// This method encrypts a given secret using the public certificate. + /// + /// The secret in plain text. + /// The public certificate to be used for encryption. + /// The encrypted secret. + public static string EncryptSecretRSAPKCS(string plainText, string publicCertificate) + { + string encryptedSecret = null; + encryptedSecret = EncryptStringRsaPkcs1v15(plainText, publicCertificate); + return encryptedSecret; + } + + public static string EncryptStringRsaPkcs1v15(string plaintext, string encodedCertificate) + { + X509Certificate2 cert = new X509Certificate2(Convert.FromBase64String(encodedCertificate)); + if (string.IsNullOrEmpty(plaintext) || cert == null) + { + return null; + } + + byte[] textBytes = Encoding.UTF8.GetBytes(plaintext); + byte[] encryptedTextBytes; + + // Create a new instance of RSACryptoServiceProvider, and encrypt the passed byte array and specify OAEP padding false to use PKCS#1 V1.5 padding. +#if FullNetFx + RSACryptoServiceProvider rsa = (RSACryptoServiceProvider)cert.PublicKey.Key; + encryptedTextBytes = rsa.Encrypt(textBytes, false); +#else + RSA rsa = cert.GetRSAPublicKey(); + encryptedTextBytes = rsa.Encrypt(textBytes, RSAEncryptionPadding.Pkcs1); +#endif + var encryptedBase64 = Convert.ToBase64String(encryptedTextBytes); + return encryptedBase64; + } + + /// + /// Helper method to read byte array from a stream. + /// + /// The stream. + /// The byte array. + private static byte[] ReadByteArray(Stream s) + { + byte[] rawLength = new byte[sizeof(int)]; + if (s.Read(rawLength, 0, rawLength.Length) != rawLength.Length) + { + throw new Exception("Stream did not contain properly formatted byte array"); + } + + byte[] buffer = new byte[BitConverter.ToInt32(rawLength, 0)]; + if (s.Read(buffer, 0, buffer.Length) != buffer.Length) + { + throw new Exception("Did not read byte array properly"); + } + + return buffer; + } + } +} \ No newline at end of file diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Customizations/ExtendedClientMethods.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Customizations/ExtendedClientMethods.cs new file mode 100644 index 000000000000..1070de5df862 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Customizations/ExtendedClientMethods.cs @@ -0,0 +1,123 @@ +using Microsoft.Azure.Management.EdgeGateway.Models; +using Microsoft.Rest; +using Newtonsoft.Json.Linq; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.Azure.Management.EdgeGateway +{ + public static partial class ExtendedClientMethods + { + + /// + /// Use this method to encrypt the user secrets (Storage Account Access Key, Volume Container Encryption Key etc.) + /// + /// + /// The resource name. + /// + /// + /// The resource group name. + /// + /// + /// The plain text secret. + /// + /// + /// The . + /// + /// + /// + /// + /// + public static AsymmetricEncryptedSecret GetAsymmetricEncryptedSecret( + this IDevicesOperations operations, + string deviceName, + string resourceGroupName, + + string plainTextSecret, + string activationKey) + { + if (string.IsNullOrWhiteSpace(activationKey)) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "activationKey"); + } + + + + string channelIntegrationKey = GetChannelIntegrityKey(activationKey); + return operations.GetAsymmetricEncryptedSecretFromCIK(deviceName, resourceGroupName, plainTextSecret, channelIntegrationKey); + } + + /// + /// Use this method to encrypt the user secrets (Storage Account Access Key, Volume Container Encryption Key etc.) + /// + /// + /// The resource name. + /// + /// + /// The resource group name. + /// + /// + /// The plain text secret. + /// + /// + /// The . + /// + /// + /// + /// + /// + public static AsymmetricEncryptedSecret GetAsymmetricEncryptedSecretFromCIK( + this IDevicesOperations operations, + string deviceName, + string resourceGroupName, + string plainTextSecret, + string channelIntegrationKey) + { + if (string.IsNullOrWhiteSpace(plainTextSecret)) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "plainTextSecret"); + } + + if (string.IsNullOrWhiteSpace(resourceGroupName)) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + } + + if (string.IsNullOrWhiteSpace(deviceName)) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceName"); + } + + DataBoxEdgeDeviceExtendedInfo extendedInfo = operations.GetExtendedInformation(deviceName, resourceGroupName); + string encryptionKey = extendedInfo.EncryptionKey; + string encryptionKeyThumbprint = extendedInfo.EncryptionKeyThumbprint; + + string ChannelEncryptionKey = CryptoUtilities.DecryptStringAES(encryptionKey, channelIntegrationKey); + + var secret = new AsymmetricEncryptedSecret() + { + EncryptionAlgorithm = EncryptionAlgorithm.AES256, + EncryptionCertThumbprint = encryptionKeyThumbprint, + Value = CryptoUtilities.EncryptStringRsaPkcs1v15(plainTextSecret, ChannelEncryptionKey) + }; + + return secret; + } + + + private static string GetChannelIntegrityKey(string activationKey) + { + string[] keys = activationKey.Split('#'); + string encodedString = keys[0]; + byte[] data = Convert.FromBase64String(encodedString); + string decodedString = Encoding.UTF8.GetString(data); + var jsondata = (JObject)JsonConvert.DeserializeObject(decodedString); + string serviceDataIntegrityKey = jsondata["serviceDataIntegrityKey"].Value(); + return serviceDataIntegrityKey; + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/AlertsOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/AlertsOperations.cs new file mode 100644 index 000000000000..e5b2f07b54cc --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/AlertsOperations.cs @@ -0,0 +1,628 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// AlertsOperations operations. + /// + internal partial class AlertsOperations : IServiceOperations, IAlertsOperations + { + /// + /// Initializes a new instance of the AlertsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal AlertsOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Gets all the alerts for a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDevice", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/alerts").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets an alert by name. + /// + /// + /// The device name. + /// + /// + /// The alert name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/alerts/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets all the alerts for a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDeviceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/AlertsOperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/AlertsOperationsExtensions.cs new file mode 100644 index 000000000000..15923a7dd842 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/AlertsOperationsExtensions.cs @@ -0,0 +1,145 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for AlertsOperations. + /// + public static partial class AlertsOperationsExtensions + { + /// + /// Gets all the alerts for a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static IPage ListByDataBoxEdgeDevice(this IAlertsOperations operations, string deviceName, string resourceGroupName) + { + return operations.ListByDataBoxEdgeDeviceAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets all the alerts for a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceAsync(this IAlertsOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets an alert by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The alert name. + /// + /// + /// The resource group name. + /// + public static Alert Get(this IAlertsOperations operations, string deviceName, string name, string resourceGroupName) + { + return operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets an alert by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The alert name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IAlertsOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the alerts for a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDataBoxEdgeDeviceNext(this IAlertsOperations operations, string nextPageLink) + { + return operations.ListByDataBoxEdgeDeviceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the alerts for a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceNextAsync(this IAlertsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/BandwidthSchedulesOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/BandwidthSchedulesOperations.cs new file mode 100644 index 000000000000..65e7b5f049b6 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/BandwidthSchedulesOperations.cs @@ -0,0 +1,1088 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// BandwidthSchedulesOperations operations. + /// + internal partial class BandwidthSchedulesOperations : IServiceOperations, IBandwidthSchedulesOperations + { + /// + /// Initializes a new instance of the BandwidthSchedulesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal BandwidthSchedulesOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Gets all the bandwidth schedules for a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDevice", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/bandwidthSchedules").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets the properties of the specified bandwidth schedule. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/bandwidthSchedules/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Creates or updates a bandwidth schedule. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name which needs to be added/updated. + /// + /// + /// The bandwidth schedule to be added or updated. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, BandwidthSchedule parameters, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, parameters, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified bandwidth schedule. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates a bandwidth schedule. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name which needs to be added/updated. + /// + /// + /// The bandwidth schedule to be added or updated. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, BandwidthSchedule parameters, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/bandwidthSchedules/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Deletes the specified bandwidth schedule. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/bandwidthSchedules/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("DELETE"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the bandwidth schedules for a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDeviceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/BandwidthSchedulesOperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/BandwidthSchedulesOperationsExtensions.cs new file mode 100644 index 000000000000..6961bad7b4d8 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/BandwidthSchedulesOperationsExtensions.cs @@ -0,0 +1,335 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for BandwidthSchedulesOperations. + /// + public static partial class BandwidthSchedulesOperationsExtensions + { + /// + /// Gets all the bandwidth schedules for a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static IPage ListByDataBoxEdgeDevice(this IBandwidthSchedulesOperations operations, string deviceName, string resourceGroupName) + { + return operations.ListByDataBoxEdgeDeviceAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets all the bandwidth schedules for a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceAsync(this IBandwidthSchedulesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the properties of the specified bandwidth schedule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + public static BandwidthSchedule Get(this IBandwidthSchedulesOperations operations, string deviceName, string name, string resourceGroupName) + { + return operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets the properties of the specified bandwidth schedule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IBandwidthSchedulesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a bandwidth schedule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name which needs to be added/updated. + /// + /// + /// The bandwidth schedule to be added or updated. + /// + /// + /// The resource group name. + /// + public static BandwidthSchedule CreateOrUpdate(this IBandwidthSchedulesOperations operations, string deviceName, string name, BandwidthSchedule parameters, string resourceGroupName) + { + return operations.CreateOrUpdateAsync(deviceName, name, parameters, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a bandwidth schedule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name which needs to be added/updated. + /// + /// + /// The bandwidth schedule to be added or updated. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IBandwidthSchedulesOperations operations, string deviceName, string name, BandwidthSchedule parameters, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(deviceName, name, parameters, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified bandwidth schedule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + public static void Delete(this IBandwidthSchedulesOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.DeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified bandwidth schedule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IBandwidthSchedulesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates a bandwidth schedule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name which needs to be added/updated. + /// + /// + /// The bandwidth schedule to be added or updated. + /// + /// + /// The resource group name. + /// + public static BandwidthSchedule BeginCreateOrUpdate(this IBandwidthSchedulesOperations operations, string deviceName, string name, BandwidthSchedule parameters, string resourceGroupName) + { + return operations.BeginCreateOrUpdateAsync(deviceName, name, parameters, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a bandwidth schedule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name which needs to be added/updated. + /// + /// + /// The bandwidth schedule to be added or updated. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IBandwidthSchedulesOperations operations, string deviceName, string name, BandwidthSchedule parameters, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, parameters, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified bandwidth schedule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + public static void BeginDelete(this IBandwidthSchedulesOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.BeginDeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified bandwidth schedule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IBandwidthSchedulesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets all the bandwidth schedules for a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDataBoxEdgeDeviceNext(this IBandwidthSchedulesOperations operations, string nextPageLink) + { + return operations.ListByDataBoxEdgeDeviceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the bandwidth schedules for a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceNextAsync(this IBandwidthSchedulesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/DataBoxEdgeManagementClient.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/DataBoxEdgeManagementClient.cs new file mode 100644 index 000000000000..2909a3a8d70b --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/DataBoxEdgeManagementClient.cs @@ -0,0 +1,427 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + public partial class DataBoxEdgeManagementClient : ServiceClient, IDataBoxEdgeManagementClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// The API version. + /// + public string ApiVersion { get; private set; } + + /// + /// The subscription ID. + /// + public string SubscriptionId { get; set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the IDevicesOperations. + /// + public virtual IDevicesOperations Devices { get; private set; } + + /// + /// Gets the IAlertsOperations. + /// + public virtual IAlertsOperations Alerts { get; private set; } + + /// + /// Gets the IBandwidthSchedulesOperations. + /// + public virtual IBandwidthSchedulesOperations BandwidthSchedules { get; private set; } + + /// + /// Gets the IJobsOperations. + /// + public virtual IJobsOperations Jobs { get; private set; } + + /// + /// Gets the IOperationsStatus. + /// + public virtual IOperationsStatus OperationsStatus { get; private set; } + + /// + /// Gets the IOrdersOperations. + /// + public virtual IOrdersOperations Orders { get; private set; } + + /// + /// Gets the IRolesOperations. + /// + public virtual IRolesOperations Roles { get; private set; } + + /// + /// Gets the ISharesOperations. + /// + public virtual ISharesOperations Shares { get; private set; } + + /// + /// Gets the IStorageAccountCredentialsOperations. + /// + public virtual IStorageAccountCredentialsOperations StorageAccountCredentials { get; private set; } + + /// + /// Gets the ITriggersOperations. + /// + public virtual ITriggersOperations Triggers { get; private set; } + + /// + /// Gets the IUsersOperations. + /// + public virtual IUsersOperations Users { get; private set; } + + /// + /// Initializes a new instance of the DataBoxEdgeManagementClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling DataBoxEdgeManagementClient.Dispose(). False: will not dispose provided httpClient + protected DataBoxEdgeManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the DataBoxEdgeManagementClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected DataBoxEdgeManagementClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the DataBoxEdgeManagementClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected DataBoxEdgeManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the DataBoxEdgeManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected DataBoxEdgeManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the DataBoxEdgeManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected DataBoxEdgeManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the DataBoxEdgeManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DataBoxEdgeManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the DataBoxEdgeManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling DataBoxEdgeManagementClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public DataBoxEdgeManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the DataBoxEdgeManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DataBoxEdgeManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the DataBoxEdgeManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DataBoxEdgeManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the DataBoxEdgeManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DataBoxEdgeManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Operations = new Operations(this); + Devices = new DevicesOperations(this); + Alerts = new AlertsOperations(this); + BandwidthSchedules = new BandwidthSchedulesOperations(this); + Jobs = new JobsOperations(this); + OperationsStatus = new OperationsStatus(this); + Orders = new OrdersOperations(this); + Roles = new RolesOperations(this); + Shares = new SharesOperations(this); + StorageAccountCredentials = new StorageAccountCredentialsOperations(this); + Triggers = new TriggersOperations(this); + Users = new UsersOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2019-03-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("kind")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("kind")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("kind")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("kind")); + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/DevicesOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/DevicesOperations.cs new file mode 100644 index 000000000000..573c88f7aeb1 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/DevicesOperations.cs @@ -0,0 +1,3473 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// DevicesOperations operations. + /// + internal partial class DevicesOperations : IServiceOperations, IDevicesOperations + { + /// + /// Initializes a new instance of the DevicesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DevicesOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Gets all the data box edge/gateway devices in a subscription. + /// + /// + /// Specify $expand=details to populate additional fields related to the + /// resource or Specify $skipToken=<token> to populate the next page in + /// the list. + /// + /// + /// 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>> ListBySubscriptionWithHttpMessagesAsync(string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("expand", expand); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets all the data box edge/gateway devices in a resource group. + /// + /// + /// The resource group name. + /// + /// + /// Specify $expand=details to populate additional fields related to the + /// resource or Specify $skipToken=<token> to populate the next page in + /// the list. + /// + /// + /// 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>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("expand", expand); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", 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.DataBoxEdge/dataBoxEdgeDevices").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets the properties of the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Creates or updates a Data Box Edge/Gateway resource. + /// + /// + /// The device name. + /// + /// + /// The resource object. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string deviceName, DataBoxEdgeDevice dataBoxEdgeDevice, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, dataBoxEdgeDevice, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(deviceName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Modifies a Data Box Edge/Gateway resource. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The tags attached to the Data Box Edge/Gateway resource. + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string deviceName, string resourceGroupName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + DataBoxEdgeDevicePatch parameters = new DataBoxEdgeDevicePatch(); + if (tags != null) + { + parameters.Tags = tags; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PATCH"); + _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; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Downloads the updates on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DownloadUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDownloadUpdatesWithHttpMessagesAsync(deviceName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates the additional information of a the data box + /// edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The additional information. + /// + /// + /// The resource group name. + /// + /// + /// 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> CreateOrUpdateExtendedInfoWithHttpMessagesAsync(string deviceName, DataBoxEdgeDeviceExtendedInfo parameters, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateExtendedInfo", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/getExtendedInformation").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets additional information for the specified data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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> GetExtendedInformationWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetExtendedInformation", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/getExtendedInformation").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Installs the updates on the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task InstallUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginInstallUpdatesWithHttpMessagesAsync(deviceName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the network settings of the specified data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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> GetNetworkSettingsWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetNetworkSettings", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/networkSettings/default").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Scans for updates on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task ScanForUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginScanForUpdatesWithHttpMessagesAsync(deviceName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates the security settings on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Device administrator password as an encrypted string (encrypted using RSA + /// PKCS #1) is used to sign into the local web UI of the device. The Actual + /// password should have at least 8 characters that are a combination of + /// uppercase, lowercase, numeric, and special characters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task CreateOrUpdateSecuritySettingsWithHttpMessagesAsync(string deviceName, string resourceGroupName, AsymmetricEncryptedSecret deviceAdminPassword, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginCreateOrUpdateSecuritySettingsWithHttpMessagesAsync(deviceName, resourceGroupName, deviceAdminPassword, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets information about the availability of updates based on the last scan + /// of the device. It also gets information about any ongoing download or + /// install jobs on the device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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> GetUpdateSummaryWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetUpdateSummary", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/updateSummary/default").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Uploads registration certificate for the device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The base64 encoded certificate raw data. + /// + /// + /// The authentication type. Possible values include: 'Invalid', + /// 'AzureActiveDirectory' + /// + /// + /// 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> UploadCertificateWithHttpMessagesAsync(string deviceName, string resourceGroupName, string certificate, string authenticationType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (certificate == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "certificate"); + } + UploadCertificateRequest parameters = new UploadCertificateRequest(); + if (authenticationType != null || certificate != null) + { + parameters.AuthenticationType = authenticationType; + parameters.Certificate = certificate; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UploadCertificate", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/uploadCertificate").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); + _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; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Creates or updates a Data Box Edge/Gateway resource. + /// + /// + /// The device name. + /// + /// + /// The resource object. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, DataBoxEdgeDevice dataBoxEdgeDevice, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (dataBoxEdgeDevice == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dataBoxEdgeDevice"); + } + if (dataBoxEdgeDevice != null) + { + dataBoxEdgeDevice.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("dataBoxEdgeDevice", dataBoxEdgeDevice); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(dataBoxEdgeDevice != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(dataBoxEdgeDevice, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Deletes the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("DELETE"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Downloads the updates on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginDownloadUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDownloadUpdates", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/downloadUpdates").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Installs the updates on the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginInstallUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginInstallUpdates", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/installUpdates").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Scans for updates on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginScanForUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginScanForUpdates", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/scanForUpdates").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the security settings on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Device administrator password as an encrypted string (encrypted using RSA + /// PKCS #1) is used to sign into the local web UI of the device. The Actual + /// password should have at least 8 characters that are a combination of + /// uppercase, lowercase, numeric, and special characters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginCreateOrUpdateSecuritySettingsWithHttpMessagesAsync(string deviceName, string resourceGroupName, AsymmetricEncryptedSecret deviceAdminPassword, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (deviceAdminPassword == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceAdminPassword"); + } + if (deviceAdminPassword != null) + { + deviceAdminPassword.Validate(); + } + SecuritySettings securitySettings = new SecuritySettings(); + if (deviceAdminPassword != null) + { + securitySettings.DeviceAdminPassword = deviceAdminPassword; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("securitySettings", securitySettings); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdateSecuritySettings", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/securitySettings/default/update").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); + _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; + if(securitySettings != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(securitySettings, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the data box edge/gateway devices in a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscriptionNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets all the data box edge/gateway devices in a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/DevicesOperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/DevicesOperationsExtensions.cs new file mode 100644 index 000000000000..6b5162a87f3c --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/DevicesOperationsExtensions.cs @@ -0,0 +1,975 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DevicesOperations. + /// + public static partial class DevicesOperationsExtensions + { + /// + /// Gets all the data box edge/gateway devices in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Specify $expand=details to populate additional fields related to the + /// resource or Specify $skipToken=<token> to populate the next page in + /// the list. + /// + public static IPage ListBySubscription(this IDevicesOperations operations, string expand = default(string)) + { + return operations.ListBySubscriptionAsync(expand).GetAwaiter().GetResult(); + } + + /// + /// Gets all the data box edge/gateway devices in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Specify $expand=details to populate additional fields related to the + /// resource or Specify $skipToken=<token> to populate the next page in + /// the list. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionAsync(this IDevicesOperations operations, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the data box edge/gateway devices in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// Specify $expand=details to populate additional fields related to the + /// resource or Specify $skipToken=<token> to populate the next page in + /// the list. + /// + public static IPage ListByResourceGroup(this IDevicesOperations operations, string resourceGroupName, string expand = default(string)) + { + return operations.ListByResourceGroupAsync(resourceGroupName, expand).GetAwaiter().GetResult(); + } + + /// + /// Gets all the data box edge/gateway devices in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// Specify $expand=details to populate additional fields related to the + /// resource or Specify $skipToken=<token> to populate the next page in + /// the list. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IDevicesOperations operations, string resourceGroupName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the properties of the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static DataBoxEdgeDevice Get(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + return operations.GetAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets the properties of the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a Data Box Edge/Gateway resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource object. + /// + /// + /// The resource group name. + /// + public static DataBoxEdgeDevice CreateOrUpdate(this IDevicesOperations operations, string deviceName, DataBoxEdgeDevice dataBoxEdgeDevice, string resourceGroupName) + { + return operations.CreateOrUpdateAsync(deviceName, dataBoxEdgeDevice, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a Data Box Edge/Gateway resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource object. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IDevicesOperations operations, string deviceName, DataBoxEdgeDevice dataBoxEdgeDevice, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(deviceName, dataBoxEdgeDevice, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static void Delete(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + operations.DeleteAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Modifies a Data Box Edge/Gateway resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The tags attached to the Data Box Edge/Gateway resource. + /// + public static DataBoxEdgeDevice Update(this IDevicesOperations operations, string deviceName, string resourceGroupName, IDictionary tags = default(IDictionary)) + { + return operations.UpdateAsync(deviceName, resourceGroupName, tags).GetAwaiter().GetResult(); + } + + /// + /// Modifies a Data Box Edge/Gateway resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The tags attached to the Data Box Edge/Gateway resource. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(deviceName, resourceGroupName, tags, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Downloads the updates on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static void DownloadUpdates(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + operations.DownloadUpdatesAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Downloads the updates on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task DownloadUpdatesAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DownloadUpdatesWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates the additional information of a the data box + /// edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The additional information. + /// + /// + /// The resource group name. + /// + public static DataBoxEdgeDeviceExtendedInfo CreateOrUpdateExtendedInfo(this IDevicesOperations operations, string deviceName, DataBoxEdgeDeviceExtendedInfo parameters, string resourceGroupName) + { + return operations.CreateOrUpdateExtendedInfoAsync(deviceName, parameters, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the additional information of a the data box + /// edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The additional information. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateExtendedInfoAsync(this IDevicesOperations operations, string deviceName, DataBoxEdgeDeviceExtendedInfo parameters, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateExtendedInfoWithHttpMessagesAsync(deviceName, parameters, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets additional information for the specified data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static DataBoxEdgeDeviceExtendedInfo GetExtendedInformation(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + return operations.GetExtendedInformationAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets additional information for the specified data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetExtendedInformationAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetExtendedInformationWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Installs the updates on the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static void InstallUpdates(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + operations.InstallUpdatesAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Installs the updates on the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task InstallUpdatesAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.InstallUpdatesWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the network settings of the specified data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static NetworkSettings GetNetworkSettings(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + return operations.GetNetworkSettingsAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets the network settings of the specified data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetNetworkSettingsAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetNetworkSettingsWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Scans for updates on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static void ScanForUpdates(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + operations.ScanForUpdatesAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Scans for updates on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task ScanForUpdatesAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.ScanForUpdatesWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates the security settings on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Device administrator password as an encrypted string (encrypted using RSA + /// PKCS #1) is used to sign into the local web UI of the device. The Actual + /// password should have at least 8 characters that are a combination of + /// uppercase, lowercase, numeric, and special characters. + /// + public static void CreateOrUpdateSecuritySettings(this IDevicesOperations operations, string deviceName, string resourceGroupName, AsymmetricEncryptedSecret deviceAdminPassword) + { + operations.CreateOrUpdateSecuritySettingsAsync(deviceName, resourceGroupName, deviceAdminPassword).GetAwaiter().GetResult(); + } + + /// + /// Updates the security settings on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Device administrator password as an encrypted string (encrypted using RSA + /// PKCS #1) is used to sign into the local web UI of the device. The Actual + /// password should have at least 8 characters that are a combination of + /// uppercase, lowercase, numeric, and special characters. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateSecuritySettingsAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, AsymmetricEncryptedSecret deviceAdminPassword, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CreateOrUpdateSecuritySettingsWithHttpMessagesAsync(deviceName, resourceGroupName, deviceAdminPassword, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets information about the availability of updates based on the last scan + /// of the device. It also gets information about any ongoing download or + /// install jobs on the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static UpdateSummary GetUpdateSummary(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + return operations.GetUpdateSummaryAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets information about the availability of updates based on the last scan + /// of the device. It also gets information about any ongoing download or + /// install jobs on the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetUpdateSummaryAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetUpdateSummaryWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Uploads registration certificate for the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The base64 encoded certificate raw data. + /// + /// + /// The authentication type. Possible values include: 'Invalid', + /// 'AzureActiveDirectory' + /// + public static UploadCertificateResponse UploadCertificate(this IDevicesOperations operations, string deviceName, string resourceGroupName, string certificate, string authenticationType = default(string)) + { + return operations.UploadCertificateAsync(deviceName, resourceGroupName, certificate, authenticationType).GetAwaiter().GetResult(); + } + + /// + /// Uploads registration certificate for the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The base64 encoded certificate raw data. + /// + /// + /// The authentication type. Possible values include: 'Invalid', + /// 'AzureActiveDirectory' + /// + /// + /// The cancellation token. + /// + public static async Task UploadCertificateAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, string certificate, string authenticationType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UploadCertificateWithHttpMessagesAsync(deviceName, resourceGroupName, certificate, authenticationType, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a Data Box Edge/Gateway resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource object. + /// + /// + /// The resource group name. + /// + public static DataBoxEdgeDevice BeginCreateOrUpdate(this IDevicesOperations operations, string deviceName, DataBoxEdgeDevice dataBoxEdgeDevice, string resourceGroupName) + { + return operations.BeginCreateOrUpdateAsync(deviceName, dataBoxEdgeDevice, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a Data Box Edge/Gateway resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource object. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IDevicesOperations operations, string deviceName, DataBoxEdgeDevice dataBoxEdgeDevice, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, dataBoxEdgeDevice, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static void BeginDelete(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + operations.BeginDeleteAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Downloads the updates on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static void BeginDownloadUpdates(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + operations.BeginDownloadUpdatesAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Downloads the updates on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDownloadUpdatesAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDownloadUpdatesWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Installs the updates on the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static void BeginInstallUpdates(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + operations.BeginInstallUpdatesAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Installs the updates on the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginInstallUpdatesAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginInstallUpdatesWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Scans for updates on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static void BeginScanForUpdates(this IDevicesOperations operations, string deviceName, string resourceGroupName) + { + operations.BeginScanForUpdatesAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Scans for updates on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginScanForUpdatesAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginScanForUpdatesWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates the security settings on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Device administrator password as an encrypted string (encrypted using RSA + /// PKCS #1) is used to sign into the local web UI of the device. The Actual + /// password should have at least 8 characters that are a combination of + /// uppercase, lowercase, numeric, and special characters. + /// + public static void BeginCreateOrUpdateSecuritySettings(this IDevicesOperations operations, string deviceName, string resourceGroupName, AsymmetricEncryptedSecret deviceAdminPassword) + { + operations.BeginCreateOrUpdateSecuritySettingsAsync(deviceName, resourceGroupName, deviceAdminPassword).GetAwaiter().GetResult(); + } + + /// + /// Updates the security settings on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Device administrator password as an encrypted string (encrypted using RSA + /// PKCS #1) is used to sign into the local web UI of the device. The Actual + /// password should have at least 8 characters that are a combination of + /// uppercase, lowercase, numeric, and special characters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateSecuritySettingsAsync(this IDevicesOperations operations, string deviceName, string resourceGroupName, AsymmetricEncryptedSecret deviceAdminPassword, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginCreateOrUpdateSecuritySettingsWithHttpMessagesAsync(deviceName, resourceGroupName, deviceAdminPassword, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets all the data box edge/gateway devices in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListBySubscriptionNext(this IDevicesOperations operations, string nextPageLink) + { + return operations.ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the data box edge/gateway devices in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionNextAsync(this IDevicesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the data box edge/gateway devices in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IDevicesOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the data box edge/gateway devices in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IDevicesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IAlertsOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IAlertsOperations.cs new file mode 100644 index 000000000000..ef59f8afa1db --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IAlertsOperations.cs @@ -0,0 +1,102 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// AlertsOperations operations. + /// + public partial interface IAlertsOperations + { + /// + /// Gets all the alerts for a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets an alert by name. + /// + /// + /// The device name. + /// + /// + /// The alert name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the alerts for a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IBandwidthSchedulesOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IBandwidthSchedulesOperations.cs new file mode 100644 index 000000000000..37d867ceedaa --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IBandwidthSchedulesOperations.cs @@ -0,0 +1,216 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// BandwidthSchedulesOperations operations. + /// + public partial interface IBandwidthSchedulesOperations + { + /// + /// Gets all the bandwidth schedules for a data box edge/gateway + /// device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the properties of the specified bandwidth schedule. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a bandwidth schedule. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name which needs to be added/updated. + /// + /// + /// The bandwidth schedule to be added or updated. + /// + /// + /// The resource group name. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, BandwidthSchedule parameters, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified bandwidth schedule. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a bandwidth schedule. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name which needs to be added/updated. + /// + /// + /// The bandwidth schedule to be added or updated. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, BandwidthSchedule parameters, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified bandwidth schedule. + /// + /// + /// The device name. + /// + /// + /// The bandwidth schedule name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the bandwidth schedules for a data box edge/gateway + /// device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IDataBoxEdgeManagementClient.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IDataBoxEdgeManagementClient.cs new file mode 100644 index 000000000000..9d4af834748b --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IDataBoxEdgeManagementClient.cs @@ -0,0 +1,132 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// + public partial interface IDataBoxEdgeManagementClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// The API version. + /// + string ApiVersion { get; } + + /// + /// The subscription ID. + /// + string SubscriptionId { get; set; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the IDevicesOperations. + /// + IDevicesOperations Devices { get; } + + /// + /// Gets the IAlertsOperations. + /// + IAlertsOperations Alerts { get; } + + /// + /// Gets the IBandwidthSchedulesOperations. + /// + IBandwidthSchedulesOperations BandwidthSchedules { get; } + + /// + /// Gets the IJobsOperations. + /// + IJobsOperations Jobs { get; } + + /// + /// Gets the IOperationsStatus. + /// + IOperationsStatus OperationsStatus { get; } + + /// + /// Gets the IOrdersOperations. + /// + IOrdersOperations Orders { get; } + + /// + /// Gets the IRolesOperations. + /// + IRolesOperations Roles { get; } + + /// + /// Gets the ISharesOperations. + /// + ISharesOperations Shares { get; } + + /// + /// Gets the IStorageAccountCredentialsOperations. + /// + IStorageAccountCredentialsOperations StorageAccountCredentials { get; } + + /// + /// Gets the ITriggersOperations. + /// + ITriggersOperations Triggers { get; } + + /// + /// Gets the IUsersOperations. + /// + IUsersOperations Users { get; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IDevicesOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IDevicesOperations.cs new file mode 100644 index 000000000000..7978e5a30c15 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IDevicesOperations.cs @@ -0,0 +1,605 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DevicesOperations operations. + /// + public partial interface IDevicesOperations + { + /// + /// Gets all the data box edge/gateway devices in a subscription. + /// + /// + /// Specify $expand=details to populate additional fields related to + /// the resource or Specify $skipToken=<token> to populate the + /// next page in the list. + /// + /// + /// 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>> ListBySubscriptionWithHttpMessagesAsync(string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the data box edge/gateway devices in a resource group. + /// + /// + /// The resource group name. + /// + /// + /// Specify $expand=details to populate additional fields related to + /// the resource or Specify $skipToken=<token> to populate the + /// next page in the list. + /// + /// + /// 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>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the properties of the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a Data Box Edge/Gateway resource. + /// + /// + /// The device name. + /// + /// + /// The resource object. + /// + /// + /// The resource group name. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string deviceName, DataBoxEdgeDevice dataBoxEdgeDevice, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Modifies a Data Box Edge/Gateway resource. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The tags attached to the Data Box Edge/Gateway resource. + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string deviceName, string resourceGroupName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Downloads the updates on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DownloadUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the additional information of a the data box + /// edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The additional information. + /// + /// + /// The resource group name. + /// + /// + /// 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> CreateOrUpdateExtendedInfoWithHttpMessagesAsync(string deviceName, DataBoxEdgeDeviceExtendedInfo parameters, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets additional information for the specified data box edge/gateway + /// device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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> GetExtendedInformationWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Installs the updates on the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task InstallUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the network settings of the specified data box edge/gateway + /// device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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> GetNetworkSettingsWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Scans for updates on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task ScanForUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the security settings on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Device administrator password as an encrypted string (encrypted + /// using RSA PKCS #1) is used to sign into the local web UI of the + /// device. The Actual password should have at least 8 characters that + /// are a combination of uppercase, lowercase, numeric, and special + /// characters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task CreateOrUpdateSecuritySettingsWithHttpMessagesAsync(string deviceName, string resourceGroupName, AsymmetricEncryptedSecret deviceAdminPassword, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about the availability of updates based on the + /// last scan of the device. It also gets information about any ongoing + /// download or install jobs on the device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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> GetUpdateSummaryWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Uploads registration certificate for the device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The base64 encoded certificate raw data. + /// + /// + /// The authentication type. Possible values include: 'Invalid', + /// 'AzureActiveDirectory' + /// + /// + /// 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> UploadCertificateWithHttpMessagesAsync(string deviceName, string resourceGroupName, string certificate, string authenticationType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a Data Box Edge/Gateway resource. + /// + /// + /// The device name. + /// + /// + /// The resource object. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, DataBoxEdgeDevice dataBoxEdgeDevice, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Downloads the updates on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDownloadUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Installs the updates on the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginInstallUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Scans for updates on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginScanForUpdatesWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the security settings on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Device administrator password as an encrypted string (encrypted + /// using RSA PKCS #1) is used to sign into the local web UI of the + /// device. The Actual password should have at least 8 characters that + /// are a combination of uppercase, lowercase, numeric, and special + /// characters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginCreateOrUpdateSecuritySettingsWithHttpMessagesAsync(string deviceName, string resourceGroupName, AsymmetricEncryptedSecret deviceAdminPassword, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the data box edge/gateway devices in a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the data box edge/gateway devices in a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IJobsOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IJobsOperations.cs new file mode 100644 index 000000000000..3398b6db3eff --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IJobsOperations.cs @@ -0,0 +1,56 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// JobsOperations operations. + /// + public partial interface IJobsOperations + { + /// + /// Gets the details of a specified job on a data box edge/gateway + /// device. + /// + /// + /// The device name. + /// + /// + /// The job name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IOperations.cs new file mode 100644 index 000000000000..76a5ab1f6176 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IOperations.cs @@ -0,0 +1,68 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + public partial interface IOperations + { + /// + /// List all the supported operations. + /// + /// + /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List all the supported operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IOperationsStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IOperationsStatus.cs new file mode 100644 index 000000000000..2f5cade1b276 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IOperationsStatus.cs @@ -0,0 +1,56 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// OperationsStatus operations. + /// + public partial interface IOperationsStatus + { + /// + /// Gets the details of a specified job on a data box edge/gateway + /// device. + /// + /// + /// The device name. + /// + /// + /// The job name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IOrdersOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IOrdersOperations.cs new file mode 100644 index 000000000000..1658f491199c --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IOrdersOperations.cs @@ -0,0 +1,199 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// OrdersOperations operations. + /// + public partial interface IOrdersOperations + { + /// + /// Lists all the orders related to a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a specific order by name. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates an order. + /// + /// + /// The order details of a device. + /// + /// + /// The order to be created or updated. + /// + /// + /// The resource group name. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string deviceName, Order order, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the order related to the device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates an order. + /// + /// + /// The order details of a device. + /// + /// + /// The order to be created or updated. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, Order order, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the order related to the device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the orders related to a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IRolesOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IRolesOperations.cs new file mode 100644 index 000000000000..76998a74f367 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IRolesOperations.cs @@ -0,0 +1,214 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RolesOperations operations. + /// + public partial interface IRolesOperations + { + /// + /// Lists all the roles configured in a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a specific role by name. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a role. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The role properties. + /// + /// + /// The resource group name. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Role role, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the role on the data box edge device. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a role. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The role properties. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Role role, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the role on the data box edge device. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the roles configured in a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/ISharesOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/ISharesOperations.cs new file mode 100644 index 000000000000..0c84e7e379c4 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/ISharesOperations.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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SharesOperations operations. + /// + public partial interface ISharesOperations + { + /// + /// Lists all the shares in a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a share by name. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a new share or updates an existing share on the device. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The share properties. + /// + /// + /// The resource group name. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Share share, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the share on the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Refreshes the share metadata with the data from the cloud. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task RefreshWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a new share or updates an existing share on the device. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The share properties. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Share share, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the share on the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Refreshes the share metadata with the data from the cloud. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginRefreshWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the shares in a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IStorageAccountCredentialsOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IStorageAccountCredentialsOperations.cs new file mode 100644 index 000000000000..5e573a59ce6d --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IStorageAccountCredentialsOperations.cs @@ -0,0 +1,216 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// StorageAccountCredentialsOperations operations. + /// + public partial interface IStorageAccountCredentialsOperations + { + /// + /// Gets all the storage account credentials in a data box edge/gateway + /// device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the properties of the specified storage account credential. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the storage account credential. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The storage account credential. + /// + /// + /// The resource group name. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, StorageAccountCredential storageAccountCredential, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the storage account credential. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the storage account credential. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The storage account credential. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, StorageAccountCredential storageAccountCredential, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the storage account credential. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the storage account credentials in a data box edge/gateway + /// device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/ITriggersOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/ITriggersOperations.cs new file mode 100644 index 000000000000..1181a4319753 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/ITriggersOperations.cs @@ -0,0 +1,214 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TriggersOperations operations. + /// + public partial interface ITriggersOperations + { + /// + /// Lists all the triggers configured in the device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a specific trigger by name. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a trigger. + /// + /// + /// Creates or updates a trigger + /// + /// + /// The trigger name. + /// + /// + /// The trigger. + /// + /// + /// The resource group name. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Trigger trigger, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the trigger on the gateway device. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a trigger. + /// + /// + /// Creates or updates a trigger + /// + /// + /// The trigger name. + /// + /// + /// The trigger. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Trigger trigger, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the trigger on the gateway device. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the triggers configured in the device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IUsersOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IUsersOperations.cs new file mode 100644 index 000000000000..876f6a06a4c7 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/IUsersOperations.cs @@ -0,0 +1,224 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// UsersOperations operations. + /// + public partial interface IUsersOperations + { + /// + /// Gets all the users registered on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the properties of the specified user. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a new user or updates an existing user's information on a + /// data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The password details. + /// + /// + /// List of shares that the user has rights on. This field should not + /// be specified during user creation. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the user on a databox edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a new user or updates an existing user's information on a + /// data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The password details. + /// + /// + /// List of shares that the user has rights on. This field should not + /// be specified during user creation. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the user on a databox edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the users registered on a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/JobsOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/JobsOperations.cs new file mode 100644 index 000000000000..31ca2a4ece5b --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/JobsOperations.cs @@ -0,0 +1,259 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// JobsOperations operations. + /// + internal partial class JobsOperations : IServiceOperations, IJobsOperations + { + /// + /// Initializes a new instance of the JobsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobsOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Gets the details of a specified job on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The job name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/jobs/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/JobsOperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/JobsOperationsExtensions.cs new file mode 100644 index 000000000000..83134c4198f3 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/JobsOperationsExtensions.cs @@ -0,0 +1,71 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for JobsOperations. + /// + public static partial class JobsOperationsExtensions + { + /// + /// Gets the details of a specified job on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The job name. + /// + /// + /// The resource group name. + /// + public static Job Get(this IJobsOperations operations, string deviceName, string name, string resourceGroupName) + { + return operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets the details of a specified job on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The job name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobsOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ARMBaseModel.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ARMBaseModel.cs new file mode 100644 index 000000000000..d2486dc51860 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ARMBaseModel.cs @@ -0,0 +1,70 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents the base class for all object models. + /// + public partial class ARMBaseModel : IResource + { + /// + /// Initializes a new instance of the ARMBaseModel class. + /// + public ARMBaseModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ARMBaseModel class. + /// + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + public ARMBaseModel(string id = default(string), string name = default(string), string type = default(string)) + { + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the path ID that uniquely identifies the object. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the object name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the hierarchical type of the object. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AccountType.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AccountType.cs new file mode 100644 index 000000000000..eae71e741037 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AccountType.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.EdgeGateway.Models +{ + + /// + /// Defines values for AccountType. + /// + public static class AccountType + { + public const string GeneralPurposeStorage = "GeneralPurposeStorage"; + public const string BlobStorage = "BlobStorage"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Address.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Address.cs new file mode 100644 index 000000000000..1c3a10a0e0b5 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Address.cs @@ -0,0 +1,129 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The shipping address of the customer. + /// + public partial class Address + { + /// + /// Initializes a new instance of the Address class. + /// + public Address() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Address class. + /// + /// The address line1. + /// The postal code. + /// The city name. + /// The state name. + /// The country name. + /// The address line2. + /// The address line3. + public Address(string addressLine1, string postalCode, string city, string state, string country, string addressLine2 = default(string), string addressLine3 = default(string)) + { + AddressLine1 = addressLine1; + AddressLine2 = addressLine2; + AddressLine3 = addressLine3; + PostalCode = postalCode; + City = city; + State = state; + Country = country; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the address line1. + /// + [JsonProperty(PropertyName = "addressLine1")] + public string AddressLine1 { get; set; } + + /// + /// Gets or sets the address line2. + /// + [JsonProperty(PropertyName = "addressLine2")] + public string AddressLine2 { get; set; } + + /// + /// Gets or sets the address line3. + /// + [JsonProperty(PropertyName = "addressLine3")] + public string AddressLine3 { get; set; } + + /// + /// Gets or sets the postal code. + /// + [JsonProperty(PropertyName = "postalCode")] + public string PostalCode { get; set; } + + /// + /// Gets or sets the city name. + /// + [JsonProperty(PropertyName = "city")] + public string City { get; set; } + + /// + /// Gets or sets the state name. + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + /// + /// Gets or sets the country name. + /// + [JsonProperty(PropertyName = "country")] + public string Country { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (AddressLine1 == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AddressLine1"); + } + if (PostalCode == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PostalCode"); + } + if (City == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "City"); + } + if (State == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "State"); + } + if (Country == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Country"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Alert.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Alert.cs new file mode 100644 index 000000000000..d534d655ce5d --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Alert.cs @@ -0,0 +1,112 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Alert on the data box edge/gateway device. + /// + [Rest.Serialization.JsonTransformation] + public partial class Alert : ARMBaseModel + { + /// + /// Initializes a new instance of the Alert class. + /// + public Alert() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Alert class. + /// + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// Alert title. + /// Alert type. + /// UTC time when the alert + /// appeared. + /// Alert recommendation. + /// Severity of the alert. Possible values + /// include: 'Informational', 'Warning', 'Critical' + /// Error details of the alert. + /// Alert details. + public Alert(string id = default(string), string name = default(string), string type = default(string), string title = default(string), string alertType = default(string), System.DateTime? appearedAtDateTime = default(System.DateTime?), string recommendation = default(string), string severity = default(string), AlertErrorDetails errorDetails = default(AlertErrorDetails), IDictionary detailedInformation = default(IDictionary)) + : base(id, name, type) + { + Title = title; + AlertType = alertType; + AppearedAtDateTime = appearedAtDateTime; + Recommendation = recommendation; + Severity = severity; + ErrorDetails = errorDetails; + DetailedInformation = detailedInformation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets alert title. + /// + [JsonProperty(PropertyName = "properties.title")] + public string Title { get; private set; } + + /// + /// Gets alert type. + /// + [JsonProperty(PropertyName = "properties.alertType")] + public string AlertType { get; private set; } + + /// + /// Gets UTC time when the alert appeared. + /// + [JsonProperty(PropertyName = "properties.appearedAtDateTime")] + public System.DateTime? AppearedAtDateTime { get; private set; } + + /// + /// Gets alert recommendation. + /// + [JsonProperty(PropertyName = "properties.recommendation")] + public string Recommendation { get; private set; } + + /// + /// Gets severity of the alert. Possible values include: + /// 'Informational', 'Warning', 'Critical' + /// + [JsonProperty(PropertyName = "properties.severity")] + public string Severity { get; private set; } + + /// + /// Gets error details of the alert. + /// + [JsonProperty(PropertyName = "properties.errorDetails")] + public AlertErrorDetails ErrorDetails { get; private set; } + + /// + /// Gets alert details. + /// + [JsonProperty(PropertyName = "properties.detailedInformation")] + public IDictionary DetailedInformation { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AlertErrorDetails.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AlertErrorDetails.cs new file mode 100644 index 000000000000..9e670b178284 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AlertErrorDetails.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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Error details for the alert. + /// + public partial class AlertErrorDetails + { + /// + /// Initializes a new instance of the AlertErrorDetails class. + /// + public AlertErrorDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AlertErrorDetails class. + /// + /// Error code. + /// Error Message. + /// Number of occurrences. + public AlertErrorDetails(string errorCode = default(string), string errorMessage = default(string), int? occurrences = default(int?)) + { + ErrorCode = errorCode; + ErrorMessage = errorMessage; + Occurrences = occurrences; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets error code. + /// + [JsonProperty(PropertyName = "errorCode")] + public string ErrorCode { get; private set; } + + /// + /// Gets error Message. + /// + [JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage { get; private set; } + + /// + /// Gets number of occurrences. + /// + [JsonProperty(PropertyName = "occurrences")] + public int? Occurrences { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AlertSeverity.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AlertSeverity.cs new file mode 100644 index 000000000000..6cb9987e3217 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AlertSeverity.cs @@ -0,0 +1,23 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for AlertSeverity. + /// + public static class AlertSeverity + { + public const string Informational = "Informational"; + public const string Warning = "Warning"; + public const string Critical = "Critical"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AsymmetricEncryptedSecret.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AsymmetricEncryptedSecret.cs new file mode 100644 index 000000000000..1b352c207be1 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AsymmetricEncryptedSecret.cs @@ -0,0 +1,91 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represent the secrets intended for encryption with asymmetric key pair. + /// + public partial class AsymmetricEncryptedSecret + { + /// + /// Initializes a new instance of the AsymmetricEncryptedSecret class. + /// + public AsymmetricEncryptedSecret() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AsymmetricEncryptedSecret class. + /// + /// The value of the secret. + /// The algorithm used to encrypt + /// "Value". Possible values include: 'None', 'AES256', + /// 'RSAES_PKCS1_v_1_5' + /// Thumbprint certificate used + /// to encrypt \"Value\". If the value is unencrypted, it will be + /// null. + public AsymmetricEncryptedSecret(string value, string encryptionAlgorithm, string encryptionCertThumbprint = default(string)) + { + Value = value; + EncryptionCertThumbprint = encryptionCertThumbprint; + EncryptionAlgorithm = encryptionAlgorithm; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the value of the secret. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// Gets or sets thumbprint certificate used to encrypt \"Value\". If + /// the value is unencrypted, it will be null. + /// + [JsonProperty(PropertyName = "encryptionCertThumbprint")] + public string EncryptionCertThumbprint { get; set; } + + /// + /// Gets or sets the algorithm used to encrypt "Value". Possible values + /// include: 'None', 'AES256', 'RSAES_PKCS1_v_1_5' + /// + [JsonProperty(PropertyName = "encryptionAlgorithm")] + public string EncryptionAlgorithm { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Value == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Value"); + } + if (EncryptionAlgorithm == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EncryptionAlgorithm"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Authentication.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Authentication.cs new file mode 100644 index 000000000000..716946abf5d7 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Authentication.cs @@ -0,0 +1,65 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Authentication mechanism for IoT devices. + /// + public partial class Authentication + { + /// + /// Initializes a new instance of the Authentication class. + /// + public Authentication() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Authentication class. + /// + /// Symmetric key for + /// authentication. + public Authentication(SymmetricKey symmetricKey = default(SymmetricKey)) + { + SymmetricKey = symmetricKey; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets symmetric key for authentication. + /// + [JsonProperty(PropertyName = "symmetricKey")] + public SymmetricKey SymmetricKey { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (SymmetricKey != null) + { + SymmetricKey.Validate(); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AuthenticationType.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AuthenticationType.cs new file mode 100644 index 000000000000..de0251387cfe --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AuthenticationType.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.EdgeGateway.Models +{ + + /// + /// Defines values for AuthenticationType. + /// + public static class AuthenticationType + { + public const string Invalid = "Invalid"; + public const string AzureActiveDirectory = "AzureActiveDirectory"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AzureContainerDataFormat.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AzureContainerDataFormat.cs new file mode 100644 index 000000000000..0068ac677dba --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AzureContainerDataFormat.cs @@ -0,0 +1,23 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for AzureContainerDataFormat. + /// + public static class AzureContainerDataFormat + { + public const string BlockBlob = "BlockBlob"; + public const string PageBlob = "PageBlob"; + public const string AzureFile = "AzureFile"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AzureContainerInfo.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AzureContainerInfo.cs new file mode 100644 index 000000000000..660f78912f88 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/AzureContainerInfo.cs @@ -0,0 +1,98 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure container mapping of the endpoint. + /// + public partial class AzureContainerInfo + { + /// + /// Initializes a new instance of the AzureContainerInfo class. + /// + public AzureContainerInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureContainerInfo class. + /// + /// ID of the storage account + /// credential used to access storage. + /// Container name (Based on the data + /// format specified, this represents the name of Azure Files/Page + /// blob/Block blob). + /// Storage format used for the file + /// represented by the share. Possible values include: 'BlockBlob', + /// 'PageBlob', 'AzureFile' + public AzureContainerInfo(string storageAccountCredentialId, string containerName, string dataFormat) + { + StorageAccountCredentialId = storageAccountCredentialId; + ContainerName = containerName; + DataFormat = dataFormat; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets ID of the storage account credential used to access + /// storage. + /// + [JsonProperty(PropertyName = "storageAccountCredentialId")] + public string StorageAccountCredentialId { get; set; } + + /// + /// Gets or sets container name (Based on the data format specified, + /// this represents the name of Azure Files/Page blob/Block blob). + /// + [JsonProperty(PropertyName = "containerName")] + public string ContainerName { get; set; } + + /// + /// Gets or sets storage format used for the file represented by the + /// share. Possible values include: 'BlockBlob', 'PageBlob', + /// 'AzureFile' + /// + [JsonProperty(PropertyName = "dataFormat")] + public string DataFormat { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StorageAccountCredentialId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageAccountCredentialId"); + } + if (ContainerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ContainerName"); + } + if (DataFormat == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DataFormat"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/BandwidthSchedule.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/BandwidthSchedule.cs new file mode 100644 index 000000000000..da685f62afb3 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/BandwidthSchedule.cs @@ -0,0 +1,107 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The bandwidth schedule details. + /// + [Rest.Serialization.JsonTransformation] + public partial class BandwidthSchedule : ARMBaseModel + { + /// + /// Initializes a new instance of the BandwidthSchedule class. + /// + public BandwidthSchedule() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BandwidthSchedule class. + /// + /// The start time of the schedule in UTC. + /// The stop time of the schedule in UTC. + /// The bandwidth rate in Mbps. + /// The days of the week when this schedule is + /// applicable. + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + public BandwidthSchedule(string start, string stop, int rateInMbps, IList days, string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + Start = start; + Stop = stop; + RateInMbps = rateInMbps; + Days = days; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the start time of the schedule in UTC. + /// + [JsonProperty(PropertyName = "properties.start")] + public string Start { get; set; } + + /// + /// Gets or sets the stop time of the schedule in UTC. + /// + [JsonProperty(PropertyName = "properties.stop")] + public string Stop { get; set; } + + /// + /// Gets or sets the bandwidth rate in Mbps. + /// + [JsonProperty(PropertyName = "properties.rateInMbps")] + public int RateInMbps { get; set; } + + /// + /// Gets or sets the days of the week when this schedule is applicable. + /// + [JsonProperty(PropertyName = "properties.days")] + public IList Days { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Start == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Start"); + } + if (Stop == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Stop"); + } + if (Days == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Days"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ClientAccessRight.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ClientAccessRight.cs new file mode 100644 index 000000000000..f3cbb87d16f9 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ClientAccessRight.cs @@ -0,0 +1,81 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The mapping between a particular client IP and the type of access + /// client has on the NFS share. + /// + public partial class ClientAccessRight + { + /// + /// Initializes a new instance of the ClientAccessRight class. + /// + public ClientAccessRight() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClientAccessRight class. + /// + /// IP of the client. + /// Type of access to be allowed for the + /// client. Possible values include: 'NoAccess', 'ReadOnly', + /// 'ReadWrite' + public ClientAccessRight(string client, string accessPermission) + { + Client = client; + AccessPermission = accessPermission; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets IP of the client. + /// + [JsonProperty(PropertyName = "client")] + public string Client { get; set; } + + /// + /// Gets or sets type of access to be allowed for the client. Possible + /// values include: 'NoAccess', 'ReadOnly', 'ReadWrite' + /// + [JsonProperty(PropertyName = "accessPermission")] + public string AccessPermission { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Client == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Client"); + } + if (AccessPermission == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AccessPermission"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ClientPermissionType.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ClientPermissionType.cs new file mode 100644 index 000000000000..a7e837a81dec --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ClientPermissionType.cs @@ -0,0 +1,23 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for ClientPermissionType. + /// + public static class ClientPermissionType + { + public const string NoAccess = "NoAccess"; + public const string ReadOnly = "ReadOnly"; + public const string ReadWrite = "ReadWrite"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ContactDetails.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ContactDetails.cs new file mode 100644 index 000000000000..77902ef37e15 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ContactDetails.cs @@ -0,0 +1,103 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Contains all the contact details of the customer. + /// + public partial class ContactDetails + { + /// + /// Initializes a new instance of the ContactDetails class. + /// + public ContactDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContactDetails class. + /// + /// The contact person name. + /// The name of the company. + /// The phone number. + /// The email list. + public ContactDetails(string contactPerson, string companyName, string phone, IList emailList) + { + ContactPerson = contactPerson; + CompanyName = companyName; + Phone = phone; + EmailList = emailList; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the contact person name. + /// + [JsonProperty(PropertyName = "contactPerson")] + public string ContactPerson { get; set; } + + /// + /// Gets or sets the name of the company. + /// + [JsonProperty(PropertyName = "companyName")] + public string CompanyName { get; set; } + + /// + /// Gets or sets the phone number. + /// + [JsonProperty(PropertyName = "phone")] + public string Phone { get; set; } + + /// + /// Gets or sets the email list. + /// + [JsonProperty(PropertyName = "emailList")] + public IList EmailList { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ContactPerson == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ContactPerson"); + } + if (CompanyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "CompanyName"); + } + if (Phone == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Phone"); + } + if (EmailList == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EmailList"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDevice.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDevice.cs new file mode 100644 index 000000000000..dd5f2b5a14f3 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDevice.cs @@ -0,0 +1,234 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The Data Box Edge/Gateway device. + /// + [Rest.Serialization.JsonTransformation] + public partial class DataBoxEdgeDevice : ARMBaseModel + { + /// + /// Initializes a new instance of the DataBoxEdgeDevice class. + /// + public DataBoxEdgeDevice() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataBoxEdgeDevice class. + /// + /// The location of the device. This is a + /// supported and registered Azure geographical region (for example, + /// West US, East US, or Southeast Asia). The geographical region of a + /// device cannot be changed once it is created, but if an identical + /// geographical region is specified on update, the request will + /// succeed. + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// The list of tags that describe the device. These + /// tags can be used to view and group this device (across resource + /// groups). + /// The SKU type. + /// The etag for the devices. + /// The status of the Data Box + /// Edge/Gateway device. Possible values include: 'ReadyToSetup', + /// 'Online', 'Offline', 'NeedsAttention', 'Disconnected', + /// 'PartiallyDisconnected' + /// The Serial Number of Data Box + /// Edge/Gateway device. + /// The Description of the Data Box + /// Edge/Gateway device. + /// The description of the Data Box + /// Edge/Gateway device model. + /// The type of the Data Box Edge/Gateway + /// device. Possible values include: 'DataBoxEdgeDevice' + /// The Data Box Edge/Gateway device + /// name. + /// The Data Box Edge/Gateway device + /// culture. + /// The Data Box Edge/Gateway device + /// model. + /// The Data Box Edge/Gateway + /// device software version. + /// The Data Box Edge/Gateway device + /// local capacity in MB. + /// The Data Box Edge/Gateway device + /// timezone. + /// The device software version number + /// of the device (eg: 1.2.18105.6). + /// Type of compute roles + /// configured. + public DataBoxEdgeDevice(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string etag = default(string), string dataBoxEdgeDeviceStatus = default(string), string serialNumber = default(string), string description = default(string), string modelDescription = default(string), string deviceType = default(string), string friendlyName = default(string), string culture = default(string), string deviceModel = default(string), string deviceSoftwareVersion = default(string), long? deviceLocalCapacity = default(long?), string timeZone = default(string), string deviceHcsVersion = default(string), IList configuredRoleTypes = default(IList)) + : base(id, name, type) + { + Location = location; + Tags = tags; + Sku = sku; + Etag = etag; + DataBoxEdgeDeviceStatus = dataBoxEdgeDeviceStatus; + SerialNumber = serialNumber; + Description = description; + ModelDescription = modelDescription; + DeviceType = deviceType; + FriendlyName = friendlyName; + Culture = culture; + DeviceModel = deviceModel; + DeviceSoftwareVersion = deviceSoftwareVersion; + DeviceLocalCapacity = deviceLocalCapacity; + TimeZone = timeZone; + DeviceHcsVersion = deviceHcsVersion; + ConfiguredRoleTypes = configuredRoleTypes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the location of the device. This is a supported and + /// registered Azure geographical region (for example, West US, East + /// US, or Southeast Asia). The geographical region of a device cannot + /// be changed once it is created, but if an identical geographical + /// region is specified on update, the request will succeed. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the list of tags that describe the device. These tags + /// can be used to view and group this device (across resource groups). + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the SKU type. + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets or sets the etag for the devices. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; set; } + + /// + /// Gets or sets the status of the Data Box Edge/Gateway device. + /// Possible values include: 'ReadyToSetup', 'Online', 'Offline', + /// 'NeedsAttention', 'Disconnected', 'PartiallyDisconnected' + /// + [JsonProperty(PropertyName = "properties.dataBoxEdgeDeviceStatus")] + public string DataBoxEdgeDeviceStatus { get; set; } + + /// + /// Gets the Serial Number of Data Box Edge/Gateway device. + /// + [JsonProperty(PropertyName = "properties.serialNumber")] + public string SerialNumber { get; private set; } + + /// + /// Gets or sets the Description of the Data Box Edge/Gateway device. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets the description of the Data Box Edge/Gateway device + /// model. + /// + [JsonProperty(PropertyName = "properties.modelDescription")] + public string ModelDescription { get; set; } + + /// + /// Gets the type of the Data Box Edge/Gateway device. Possible values + /// include: 'DataBoxEdgeDevice' + /// + [JsonProperty(PropertyName = "properties.deviceType")] + public string DeviceType { get; private set; } + + /// + /// Gets or sets the Data Box Edge/Gateway device name. + /// + [JsonProperty(PropertyName = "properties.friendlyName")] + public string FriendlyName { get; set; } + + /// + /// Gets the Data Box Edge/Gateway device culture. + /// + [JsonProperty(PropertyName = "properties.culture")] + public string Culture { get; private set; } + + /// + /// Gets the Data Box Edge/Gateway device model. + /// + [JsonProperty(PropertyName = "properties.deviceModel")] + public string DeviceModel { get; private set; } + + /// + /// Gets the Data Box Edge/Gateway device software version. + /// + [JsonProperty(PropertyName = "properties.deviceSoftwareVersion")] + public string DeviceSoftwareVersion { get; private set; } + + /// + /// Gets the Data Box Edge/Gateway device local capacity in MB. + /// + [JsonProperty(PropertyName = "properties.deviceLocalCapacity")] + public long? DeviceLocalCapacity { get; private set; } + + /// + /// Gets the Data Box Edge/Gateway device timezone. + /// + [JsonProperty(PropertyName = "properties.timeZone")] + public string TimeZone { get; private set; } + + /// + /// Gets the device software version number of the device (eg: + /// 1.2.18105.6). + /// + [JsonProperty(PropertyName = "properties.deviceHcsVersion")] + public string DeviceHcsVersion { get; private set; } + + /// + /// Gets type of compute roles configured. + /// + [JsonProperty(PropertyName = "properties.configuredRoleTypes")] + public IList ConfiguredRoleTypes { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDeviceExtendedInfo.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDeviceExtendedInfo.cs new file mode 100644 index 000000000000..3c06e5ecd891 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDeviceExtendedInfo.cs @@ -0,0 +1,102 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The extended Info of the Data Box Edge/Gateway device. + /// + [Rest.Serialization.JsonTransformation] + public partial class DataBoxEdgeDeviceExtendedInfo : ARMBaseModel + { + /// + /// Initializes a new instance of the DataBoxEdgeDeviceExtendedInfo + /// class. + /// + public DataBoxEdgeDeviceExtendedInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataBoxEdgeDeviceExtendedInfo + /// class. + /// + /// The Channel Integrity Key (CIK) of the + /// device. + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// The certificate thumbprint + /// that was used to encrypt the Channel Integrity Key (CIK). + /// The Channel Integrity Key (CIK) of the + /// device. + /// The Resource ID of the Resource. + public DataBoxEdgeDeviceExtendedInfo(string integrityKey, string id = default(string), string name = default(string), string type = default(string), string encryptionKeyThumbprint = default(string), string encryptionKey = default(string), string resourceKey = default(string)) + : base(id, name, type) + { + IntegrityKey = integrityKey; + EncryptionKeyThumbprint = encryptionKeyThumbprint; + EncryptionKey = encryptionKey; + ResourceKey = resourceKey; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Channel Integrity Key (CIK) of the device. + /// + [JsonProperty(PropertyName = "properties.integrityKey")] + public string IntegrityKey { get; set; } + + /// + /// Gets or sets the certificate thumbprint that was used to encrypt + /// the Channel Integrity Key (CIK). + /// + [JsonProperty(PropertyName = "properties.encryptionKeyThumbprint")] + public string EncryptionKeyThumbprint { get; set; } + + /// + /// Gets or sets the Channel Integrity Key (CIK) of the device. + /// + [JsonProperty(PropertyName = "properties.encryptionKey")] + public string EncryptionKey { get; set; } + + /// + /// Gets the Resource ID of the Resource. + /// + [JsonProperty(PropertyName = "properties.resourceKey")] + public string ResourceKey { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (IntegrityKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "IntegrityKey"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDevicePatch.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDevicePatch.cs new file mode 100644 index 000000000000..664e06315e9a --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDevicePatch.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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The Data Box Edge/Gateway device patch. + /// + public partial class DataBoxEdgeDevicePatch + { + /// + /// Initializes a new instance of the DataBoxEdgeDevicePatch class. + /// + public DataBoxEdgeDevicePatch() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataBoxEdgeDevicePatch class. + /// + /// The tags attached to the Data Box Edge/Gateway + /// resource. + public DataBoxEdgeDevicePatch(IDictionary tags = default(IDictionary)) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tags attached to the Data Box Edge/Gateway + /// resource. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDeviceStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDeviceStatus.cs new file mode 100644 index 000000000000..c95766febcda --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataBoxEdgeDeviceStatus.cs @@ -0,0 +1,26 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for DataBoxEdgeDeviceStatus. + /// + public static class DataBoxEdgeDeviceStatus + { + public const string ReadyToSetup = "ReadyToSetup"; + public const string Online = "Online"; + public const string Offline = "Offline"; + public const string NeedsAttention = "NeedsAttention"; + public const string Disconnected = "Disconnected"; + public const string PartiallyDisconnected = "PartiallyDisconnected"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataPolicy.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataPolicy.cs new file mode 100644 index 000000000000..1350d26cde7c --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DataPolicy.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.EdgeGateway.Models +{ + + /// + /// Defines values for DataPolicy. + /// + public static class DataPolicy + { + public const string Cloud = "Cloud"; + public const string Local = "Local"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DayOfWeek.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DayOfWeek.cs new file mode 100644 index 000000000000..281865ae24c9 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DayOfWeek.cs @@ -0,0 +1,27 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for DayOfWeek. + /// + public static class DayOfWeek + { + public const string Sunday = "Sunday"; + public const string Monday = "Monday"; + public const string Tuesday = "Tuesday"; + public const string Wednesday = "Wednesday"; + public const string Thursday = "Thursday"; + public const string Friday = "Friday"; + public const string Saturday = "Saturday"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DeviceType.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DeviceType.cs new file mode 100644 index 000000000000..720e8f549369 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DeviceType.cs @@ -0,0 +1,21 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for DeviceType. + /// + public static class DeviceType + { + public const string DataBoxEdgeDevice = "DataBoxEdgeDevice"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DownloadPhase.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DownloadPhase.cs new file mode 100644 index 000000000000..8cccdd1797de --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/DownloadPhase.cs @@ -0,0 +1,24 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for DownloadPhase. + /// + public static class DownloadPhase + { + public const string Unknown = "Unknown"; + public const string Initializing = "Initializing"; + public const string Downloading = "Downloading"; + public const string Verifying = "Verifying"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/EncryptionAlgorithm.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/EncryptionAlgorithm.cs new file mode 100644 index 000000000000..5a4daf853f69 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/EncryptionAlgorithm.cs @@ -0,0 +1,23 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for EncryptionAlgorithm. + /// + public static class EncryptionAlgorithm + { + public const string None = "None"; + public const string AES256 = "AES256"; + public const string RSAESPKCS1V15 = "RSAES_PKCS1_v_1_5"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/FileEventTrigger.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/FileEventTrigger.cs new file mode 100644 index 000000000000..5d52f3b9fa7a --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/FileEventTrigger.cs @@ -0,0 +1,108 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Trigger details. + /// + [Newtonsoft.Json.JsonObject("FileEvent")] + [Rest.Serialization.JsonTransformation] + public partial class FileEventTrigger : Trigger + { + /// + /// Initializes a new instance of the FileEventTrigger class. + /// + public FileEventTrigger() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FileEventTrigger class. + /// + /// File event source details. + /// Role sink info. + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// A custom context tag typically used + /// to correlate the trigger against its usage. For example, if a + /// periodic timer trigger is intended for certain specific IoT modules + /// in the device, the tag can be the name or the image URL of the + /// module. + public FileEventTrigger(FileSourceInfo sourceInfo, RoleSinkInfo sinkInfo, string id = default(string), string name = default(string), string type = default(string), string customContextTag = default(string)) + : base(id, name, type) + { + SourceInfo = sourceInfo; + SinkInfo = sinkInfo; + CustomContextTag = customContextTag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets file event source details. + /// + [JsonProperty(PropertyName = "properties.sourceInfo")] + public FileSourceInfo SourceInfo { get; set; } + + /// + /// Gets or sets role sink info. + /// + [JsonProperty(PropertyName = "properties.sinkInfo")] + public RoleSinkInfo SinkInfo { get; set; } + + /// + /// Gets or sets a custom context tag typically used to correlate the + /// trigger against its usage. For example, if a periodic timer trigger + /// is intended for certain specific IoT modules in the device, the tag + /// can be the name or the image URL of the module. + /// + [JsonProperty(PropertyName = "properties.customContextTag")] + public string CustomContextTag { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (SourceInfo == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SourceInfo"); + } + if (SinkInfo == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SinkInfo"); + } + if (SourceInfo != null) + { + SourceInfo.Validate(); + } + if (SinkInfo != null) + { + SinkInfo.Validate(); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/FileSourceInfo.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/FileSourceInfo.cs new file mode 100644 index 000000000000..3060cdd428b5 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/FileSourceInfo.cs @@ -0,0 +1,65 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// File source details. + /// + public partial class FileSourceInfo + { + /// + /// Initializes a new instance of the FileSourceInfo class. + /// + public FileSourceInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FileSourceInfo class. + /// + /// File share ID. + public FileSourceInfo(string shareId) + { + ShareId = shareId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets file share ID. + /// + [JsonProperty(PropertyName = "shareId")] + public string ShareId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ShareId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ShareId"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/InstallRebootBehavior.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/InstallRebootBehavior.cs new file mode 100644 index 000000000000..47bd11a49f9f --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/InstallRebootBehavior.cs @@ -0,0 +1,23 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for InstallRebootBehavior. + /// + public static class InstallRebootBehavior + { + public const string NeverReboots = "NeverReboots"; + public const string RequiresReboot = "RequiresReboot"; + public const string RequestReboot = "RequestReboot"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/IoTDeviceInfo.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/IoTDeviceInfo.cs new file mode 100644 index 000000000000..abd5f5a05621 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/IoTDeviceInfo.cs @@ -0,0 +1,91 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Metadata of IoT device/IoT Edge device to be configured. + /// + public partial class IoTDeviceInfo + { + /// + /// Initializes a new instance of the IoTDeviceInfo class. + /// + public IoTDeviceInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IoTDeviceInfo class. + /// + /// ID of the IoT device/edge device. + /// Host name for the IoT hub associated to + /// the device. + /// IoT device authentication + /// info. + public IoTDeviceInfo(string deviceId, string ioTHostHub, Authentication authentication = default(Authentication)) + { + DeviceId = deviceId; + IoTHostHub = ioTHostHub; + Authentication = authentication; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets ID of the IoT device/edge device. + /// + [JsonProperty(PropertyName = "deviceId")] + public string DeviceId { get; set; } + + /// + /// Gets or sets host name for the IoT hub associated to the device. + /// + [JsonProperty(PropertyName = "ioTHostHub")] + public string IoTHostHub { get; set; } + + /// + /// Gets or sets ioT device authentication info. + /// + [JsonProperty(PropertyName = "authentication")] + public Authentication Authentication { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DeviceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DeviceId"); + } + if (IoTHostHub == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "IoTHostHub"); + } + if (Authentication != null) + { + Authentication.Validate(); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/IoTRole.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/IoTRole.cs new file mode 100644 index 000000000000..51164caf63f5 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/IoTRole.cs @@ -0,0 +1,146 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Compute role. + /// + [Newtonsoft.Json.JsonObject("IOT")] + [Rest.Serialization.JsonTransformation] + public partial class IoTRole : Role + { + /// + /// Initializes a new instance of the IoTRole class. + /// + public IoTRole() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IoTRole class. + /// + /// Host OS supported by the IoT role. + /// Possible values include: 'Windows', 'Linux' + /// IoT device metadata to which data + /// box edge device needs to be connected. + /// IoT edge device to which the IoT + /// role needs to be configured. + /// Role status. Possible values include: + /// 'Enabled', 'Disabled' + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// Mount points of shares in + /// role(s). + public IoTRole(string hostPlatform, IoTDeviceInfo ioTDeviceDetails, IoTDeviceInfo ioTEdgeDeviceDetails, string roleStatus, string id = default(string), string name = default(string), string type = default(string), IList shareMappings = default(IList)) + : base(id, name, type) + { + HostPlatform = hostPlatform; + IoTDeviceDetails = ioTDeviceDetails; + IoTEdgeDeviceDetails = ioTEdgeDeviceDetails; + ShareMappings = shareMappings; + RoleStatus = roleStatus; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets host OS supported by the IoT role. Possible values + /// include: 'Windows', 'Linux' + /// + [JsonProperty(PropertyName = "properties.hostPlatform")] + public string HostPlatform { get; set; } + + /// + /// Gets or sets ioT device metadata to which data box edge device + /// needs to be connected. + /// + [JsonProperty(PropertyName = "properties.ioTDeviceDetails")] + public IoTDeviceInfo IoTDeviceDetails { get; set; } + + /// + /// Gets or sets ioT edge device to which the IoT role needs to be + /// configured. + /// + [JsonProperty(PropertyName = "properties.ioTEdgeDeviceDetails")] + public IoTDeviceInfo IoTEdgeDeviceDetails { get; set; } + + /// + /// Gets or sets mount points of shares in role(s). + /// + [JsonProperty(PropertyName = "properties.shareMappings")] + public IList ShareMappings { get; set; } + + /// + /// Gets or sets role status. Possible values include: 'Enabled', + /// 'Disabled' + /// + [JsonProperty(PropertyName = "properties.roleStatus")] + public string RoleStatus { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (HostPlatform == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "HostPlatform"); + } + if (IoTDeviceDetails == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "IoTDeviceDetails"); + } + if (IoTEdgeDeviceDetails == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "IoTEdgeDeviceDetails"); + } + if (RoleStatus == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RoleStatus"); + } + if (IoTDeviceDetails != null) + { + IoTDeviceDetails.Validate(); + } + if (IoTEdgeDeviceDetails != null) + { + IoTEdgeDeviceDetails.Validate(); + } + if (ShareMappings != null) + { + foreach (var element in ShareMappings) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Ipv4Config.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Ipv4Config.cs new file mode 100644 index 000000000000..12c0db4e87cb --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Ipv4Config.cs @@ -0,0 +1,70 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Details related to the IPv4 address configuration. + /// + public partial class Ipv4Config + { + /// + /// Initializes a new instance of the Ipv4Config class. + /// + public Ipv4Config() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Ipv4Config class. + /// + /// The IPv4 address of the network + /// adapter. + /// The IPv4 subnet of the network + /// adapter. + /// The IPv4 gateway of the network + /// adapter. + public Ipv4Config(string ipAddress = default(string), string subnet = default(string), string gateway = default(string)) + { + IpAddress = ipAddress; + Subnet = subnet; + Gateway = gateway; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the IPv4 address of the network adapter. + /// + [JsonProperty(PropertyName = "ipAddress")] + public string IpAddress { get; private set; } + + /// + /// Gets the IPv4 subnet of the network adapter. + /// + [JsonProperty(PropertyName = "subnet")] + public string Subnet { get; private set; } + + /// + /// Gets the IPv4 gateway of the network adapter. + /// + [JsonProperty(PropertyName = "gateway")] + public string Gateway { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Ipv6Config.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Ipv6Config.cs new file mode 100644 index 000000000000..b85e1ec26d91 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Ipv6Config.cs @@ -0,0 +1,70 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Details related to the IPv6 address configuration. + /// + public partial class Ipv6Config + { + /// + /// Initializes a new instance of the Ipv6Config class. + /// + public Ipv6Config() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Ipv6Config class. + /// + /// The IPv6 address of the network + /// adapter. + /// The IPv6 prefix of the network + /// adapter. + /// The IPv6 gateway of the network + /// adapter. + public Ipv6Config(string ipAddress = default(string), int? prefixLength = default(int?), string gateway = default(string)) + { + IpAddress = ipAddress; + PrefixLength = prefixLength; + Gateway = gateway; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the IPv6 address of the network adapter. + /// + [JsonProperty(PropertyName = "ipAddress")] + public string IpAddress { get; private set; } + + /// + /// Gets the IPv6 prefix of the network adapter. + /// + [JsonProperty(PropertyName = "prefixLength")] + public int? PrefixLength { get; private set; } + + /// + /// Gets the IPv6 gateway of the network adapter. + /// + [JsonProperty(PropertyName = "gateway")] + public string Gateway { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Job.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Job.cs new file mode 100644 index 000000000000..2dc35cae7538 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Job.cs @@ -0,0 +1,205 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A device job. + /// + [Rest.Serialization.JsonTransformation] + public partial class Job + { + /// + /// Initializes a new instance of the Job class. + /// + public Job() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Job class. + /// + /// The path ID that uniquely identifies the + /// object. + /// The name of the object. + /// The hierarchical type of the object. + /// The current status of the job. Possible values + /// include: 'Invalid', 'Running', 'Succeeded', 'Failed', 'Canceled', + /// 'Paused', 'Scheduled' + /// The UTC date and time at which the job + /// started. + /// The UTC date and time at which the job + /// completed. + /// The percentage of the job that is + /// complete. + /// The error details. + /// The type of the job. Possible values include: + /// 'Invalid', 'ScanForUpdates', 'DownloadUpdates', 'InstallUpdates', + /// 'RefreshShare' + /// Current stage of the update operation. + /// Possible values include: 'Unknown', 'Initial', 'ScanStarted', + /// 'ScanComplete', 'ScanFailed', 'DownloadStarted', + /// 'DownloadComplete', 'DownloadFailed', 'InstallStarted', + /// 'InstallComplete', 'InstallFailed', 'RebootInitiated', 'Success', + /// 'Failure', 'RescanStarted', 'RescanComplete', + /// 'RescanFailed' + /// The download progress. + /// The install progress. + /// Total number of errors encountered + /// during the refresh process. + /// Local share/remote container + /// relative path to the error manifest file of the refresh. + /// ARM ID of the share that was + /// refreshed. + /// If only subfolders need to be refreshed, then + /// the subfolder path inside the share. (The path is empty if there + /// are no subfolders.) + public Job(string id = default(string), string name = default(string), string type = default(string), string status = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? percentComplete = default(int?), JobErrorDetails error = default(JobErrorDetails), string jobType = default(string), string currentStage = default(string), UpdateDownloadProgress downloadProgress = default(UpdateDownloadProgress), UpdateInstallProgress installProgress = default(UpdateInstallProgress), int? totalRefreshErrors = default(int?), string errorManifestFile = default(string), string shareId = default(string), string folder = default(string)) + { + Id = id; + Name = name; + Type = type; + Status = status; + StartTime = startTime; + EndTime = endTime; + PercentComplete = percentComplete; + Error = error; + JobType = jobType; + CurrentStage = currentStage; + DownloadProgress = downloadProgress; + InstallProgress = installProgress; + TotalRefreshErrors = totalRefreshErrors; + ErrorManifestFile = errorManifestFile; + ShareId = shareId; + Folder = folder; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the path ID that uniquely identifies the object. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the object. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the hierarchical type of the object. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the current status of the job. Possible values include: + /// 'Invalid', 'Running', 'Succeeded', 'Failed', 'Canceled', 'Paused', + /// 'Scheduled' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; private set; } + + /// + /// Gets the UTC date and time at which the job started. + /// + [JsonProperty(PropertyName = "startTime")] + public System.DateTime? StartTime { get; private set; } + + /// + /// Gets the UTC date and time at which the job completed. + /// + [JsonProperty(PropertyName = "endTime")] + public System.DateTime? EndTime { get; private set; } + + /// + /// Gets the percentage of the job that is complete. + /// + [JsonProperty(PropertyName = "percentComplete")] + public int? PercentComplete { get; private set; } + + /// + /// Gets the error details. + /// + [JsonProperty(PropertyName = "error")] + public JobErrorDetails Error { get; private set; } + + /// + /// Gets the type of the job. Possible values include: 'Invalid', + /// 'ScanForUpdates', 'DownloadUpdates', 'InstallUpdates', + /// 'RefreshShare' + /// + [JsonProperty(PropertyName = "properties.jobType")] + public string JobType { get; private set; } + + /// + /// Gets current stage of the update operation. Possible values + /// include: 'Unknown', 'Initial', 'ScanStarted', 'ScanComplete', + /// 'ScanFailed', 'DownloadStarted', 'DownloadComplete', + /// 'DownloadFailed', 'InstallStarted', 'InstallComplete', + /// 'InstallFailed', 'RebootInitiated', 'Success', 'Failure', + /// 'RescanStarted', 'RescanComplete', 'RescanFailed' + /// + [JsonProperty(PropertyName = "properties.currentStage")] + public string CurrentStage { get; private set; } + + /// + /// Gets the download progress. + /// + [JsonProperty(PropertyName = "properties.downloadProgress")] + public UpdateDownloadProgress DownloadProgress { get; private set; } + + /// + /// Gets the install progress. + /// + [JsonProperty(PropertyName = "properties.installProgress")] + public UpdateInstallProgress InstallProgress { get; private set; } + + /// + /// Gets total number of errors encountered during the refresh process. + /// + [JsonProperty(PropertyName = "properties.totalRefreshErrors")] + public int? TotalRefreshErrors { get; private set; } + + /// + /// Gets local share/remote container relative path to the error + /// manifest file of the refresh. + /// + [JsonProperty(PropertyName = "properties.errorManifestFile")] + public string ErrorManifestFile { get; private set; } + + /// + /// Gets ARM ID of the share that was refreshed. + /// + [JsonProperty(PropertyName = "properties.shareId")] + public string ShareId { get; private set; } + + /// + /// Gets or sets if only subfolders need to be refreshed, then the + /// subfolder path inside the share. (The path is empty if there are no + /// subfolders.) + /// + [JsonProperty(PropertyName = "properties.folder")] + public string Folder { get; set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobErrorDetails.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobErrorDetails.cs new file mode 100644 index 000000000000..58593d6aeb8a --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobErrorDetails.cs @@ -0,0 +1,71 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The job error information containing the list of job errors. + /// + public partial class JobErrorDetails + { + /// + /// Initializes a new instance of the JobErrorDetails class. + /// + public JobErrorDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobErrorDetails class. + /// + /// The error details. + /// The code intended for programmatic + /// access. + /// The message that describes the error in + /// detail. + public JobErrorDetails(IList errorDetails = default(IList), string code = default(string), string message = default(string)) + { + ErrorDetails = errorDetails; + Code = code; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the error details. + /// + [JsonProperty(PropertyName = "errorDetails")] + public IList ErrorDetails { get; private set; } + + /// + /// Gets the code intended for programmatic access. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; private set; } + + /// + /// Gets the message that describes the error in detail. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobErrorItem.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobErrorItem.cs new file mode 100644 index 000000000000..380db9dad6ab --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobErrorItem.cs @@ -0,0 +1,71 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The job error items. + /// + public partial class JobErrorItem + { + /// + /// Initializes a new instance of the JobErrorItem class. + /// + public JobErrorItem() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobErrorItem class. + /// + /// The recommended actions. + /// The code intended for programmatic + /// access. + /// The message that describes the error in + /// detail. + public JobErrorItem(IList recommendations = default(IList), string code = default(string), string message = default(string)) + { + Recommendations = recommendations; + Code = code; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the recommended actions. + /// + [JsonProperty(PropertyName = "recommendations")] + public IList Recommendations { get; private set; } + + /// + /// Gets the code intended for programmatic access. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; private set; } + + /// + /// Gets the message that describes the error in detail. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobStatus.cs new file mode 100644 index 000000000000..ac6445628be8 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobStatus.cs @@ -0,0 +1,27 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for JobStatus. + /// + public static class JobStatus + { + public const string Invalid = "Invalid"; + public const string Running = "Running"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Canceled = "Canceled"; + public const string Paused = "Paused"; + public const string Scheduled = "Scheduled"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobType.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobType.cs new file mode 100644 index 000000000000..7cdc61cf833d --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/JobType.cs @@ -0,0 +1,25 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for JobType. + /// + public static class JobType + { + public const string Invalid = "Invalid"; + public const string ScanForUpdates = "ScanForUpdates"; + public const string DownloadUpdates = "DownloadUpdates"; + public const string InstallUpdates = "InstallUpdates"; + public const string RefreshShare = "RefreshShare"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricAggregationType.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricAggregationType.cs new file mode 100644 index 000000000000..eddb6bff3102 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricAggregationType.cs @@ -0,0 +1,27 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for MetricAggregationType. + /// + public static class MetricAggregationType + { + public const string NotSpecified = "NotSpecified"; + public const string None = "None"; + public const string Average = "Average"; + public const string Minimum = "Minimum"; + public const string Maximum = "Maximum"; + public const string Total = "Total"; + public const string Count = "Count"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricCategory.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricCategory.cs new file mode 100644 index 000000000000..dc54f92ed798 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricCategory.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.EdgeGateway.Models +{ + + /// + /// Defines values for MetricCategory. + /// + public static class MetricCategory + { + public const string Capacity = "Capacity"; + public const string Transaction = "Transaction"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricDimensionV1.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricDimensionV1.cs new file mode 100644 index 000000000000..943c0c04cba2 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricDimensionV1.cs @@ -0,0 +1,69 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Metric Dimension v1. + /// + public partial class MetricDimensionV1 + { + /// + /// Initializes a new instance of the MetricDimensionV1 class. + /// + public MetricDimensionV1() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MetricDimensionV1 class. + /// + /// Name of the metrics dimension. + /// Display name of the metrics + /// dimension. + /// To be exported to shoe + /// box. + public MetricDimensionV1(string name = default(string), string displayName = default(string), bool? toBeExportedForShoebox = default(bool?)) + { + Name = name; + DisplayName = displayName; + ToBeExportedForShoebox = toBeExportedForShoebox; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the metrics dimension. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets display name of the metrics dimension. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets to be exported to shoe box. + /// + [JsonProperty(PropertyName = "toBeExportedForShoebox")] + public bool? ToBeExportedForShoebox { get; set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricSpecificationV1.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricSpecificationV1.cs new file mode 100644 index 000000000000..21ccae2676d1 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricSpecificationV1.cs @@ -0,0 +1,150 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Metric specification version 1. + /// + public partial class MetricSpecificationV1 + { + /// + /// Initializes a new instance of the MetricSpecificationV1 class. + /// + public MetricSpecificationV1() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MetricSpecificationV1 class. + /// + /// Name of the metric. + /// Display name of the metric. + /// Description of the metric to be + /// displayed. + /// Metric units. Possible values include: + /// 'NotSpecified', 'Percent', 'Count', 'Seconds', 'Milliseconds', + /// 'Bytes', 'BytesPerSecond', 'CountPerSecond' + /// Metric aggregation type. Possible + /// values include: 'NotSpecified', 'None', 'Average', 'Minimum', + /// 'Maximum', 'Total', 'Count' + /// Metric dimensions, other than default + /// dimension which is resource. + /// Set true to fill the gaps with + /// zero. + /// Metric category. Possible values include: + /// 'Capacity', 'Transaction' + /// Resource name + /// override. + /// Support granularity of + /// metrics. + /// Support metric aggregation + /// type. + public MetricSpecificationV1(string name = default(string), string displayName = default(string), string displayDescription = default(string), string unit = default(string), string aggregationType = default(string), IList dimensions = default(IList), bool? fillGapWithZero = default(bool?), string category = default(string), string resourceIdDimensionNameOverride = default(string), IList supportedTimeGrainTypes = default(IList), IList supportedAggregationTypes = default(IList)) + { + Name = name; + DisplayName = displayName; + DisplayDescription = displayDescription; + Unit = unit; + AggregationType = aggregationType; + Dimensions = dimensions; + FillGapWithZero = fillGapWithZero; + Category = category; + ResourceIdDimensionNameOverride = resourceIdDimensionNameOverride; + SupportedTimeGrainTypes = supportedTimeGrainTypes; + SupportedAggregationTypes = supportedAggregationTypes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the metric. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets display name of the metric. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets description of the metric to be displayed. + /// + [JsonProperty(PropertyName = "displayDescription")] + public string DisplayDescription { get; set; } + + /// + /// Gets or sets metric units. Possible values include: 'NotSpecified', + /// 'Percent', 'Count', 'Seconds', 'Milliseconds', 'Bytes', + /// 'BytesPerSecond', 'CountPerSecond' + /// + [JsonProperty(PropertyName = "unit")] + public string Unit { get; set; } + + /// + /// Gets or sets metric aggregation type. Possible values include: + /// 'NotSpecified', 'None', 'Average', 'Minimum', 'Maximum', 'Total', + /// 'Count' + /// + [JsonProperty(PropertyName = "aggregationType")] + public string AggregationType { get; set; } + + /// + /// Gets or sets metric dimensions, other than default dimension which + /// is resource. + /// + [JsonProperty(PropertyName = "dimensions")] + public IList Dimensions { get; set; } + + /// + /// Gets or sets set true to fill the gaps with zero. + /// + [JsonProperty(PropertyName = "fillGapWithZero")] + public bool? FillGapWithZero { get; set; } + + /// + /// Gets or sets metric category. Possible values include: 'Capacity', + /// 'Transaction' + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + + /// + /// Gets or sets resource name override. + /// + [JsonProperty(PropertyName = "resourceIdDimensionNameOverride")] + public string ResourceIdDimensionNameOverride { get; set; } + + /// + /// Gets or sets support granularity of metrics. + /// + [JsonProperty(PropertyName = "supportedTimeGrainTypes")] + public IList SupportedTimeGrainTypes { get; set; } + + /// + /// Gets or sets support metric aggregation type. + /// + [JsonProperty(PropertyName = "supportedAggregationTypes")] + public IList SupportedAggregationTypes { get; set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricUnit.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricUnit.cs new file mode 100644 index 000000000000..65db3950dbd1 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MetricUnit.cs @@ -0,0 +1,28 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for MetricUnit. + /// + public static class MetricUnit + { + public const string NotSpecified = "NotSpecified"; + public const string Percent = "Percent"; + public const string Count = "Count"; + public const string Seconds = "Seconds"; + public const string Milliseconds = "Milliseconds"; + public const string Bytes = "Bytes"; + public const string BytesPerSecond = "BytesPerSecond"; + public const string CountPerSecond = "CountPerSecond"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MonitoringStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MonitoringStatus.cs new file mode 100644 index 000000000000..5395c55f2bdd --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MonitoringStatus.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.EdgeGateway.Models +{ + + /// + /// Defines values for MonitoringStatus. + /// + public static class MonitoringStatus + { + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MountPointMap.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MountPointMap.cs new file mode 100644 index 000000000000..3618c05343c7 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/MountPointMap.cs @@ -0,0 +1,93 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The share mount point. + /// + public partial class MountPointMap + { + /// + /// Initializes a new instance of the MountPointMap class. + /// + public MountPointMap() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MountPointMap class. + /// + /// ID of the share mounted to the role + /// VM. + /// ID of the role to which share is + /// mounted. + /// Mount point for the share. + /// Role type. Possible values include: 'IOT', + /// 'ASA', 'Functions', 'Cognitive' + public MountPointMap(string shareId, string roleId = default(string), string mountPoint = default(string), string roleType = default(string)) + { + ShareId = shareId; + RoleId = roleId; + MountPoint = mountPoint; + RoleType = roleType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets ID of the share mounted to the role VM. + /// + [JsonProperty(PropertyName = "shareId")] + public string ShareId { get; set; } + + /// + /// Gets ID of the role to which share is mounted. + /// + [JsonProperty(PropertyName = "roleId")] + public string RoleId { get; private set; } + + /// + /// Gets mount point for the share. + /// + [JsonProperty(PropertyName = "mountPoint")] + public string MountPoint { get; private set; } + + /// + /// Gets role type. Possible values include: 'IOT', 'ASA', 'Functions', + /// 'Cognitive' + /// + [JsonProperty(PropertyName = "roleType")] + public string RoleType { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ShareId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ShareId"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapter.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapter.cs new file mode 100644 index 000000000000..1fdba7675912 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapter.cs @@ -0,0 +1,177 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Represents the networkAdapter on a device. + /// + public partial class NetworkAdapter + { + /// + /// Initializes a new instance of the NetworkAdapter class. + /// + public NetworkAdapter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NetworkAdapter class. + /// + /// Instance ID of network adapter. + /// Hardware position of network + /// adapter. + /// Logical index of the adapter. + /// Node ID of the network adapter. + /// Network adapter name. + /// Hardware label for the adapter. + /// MAC address. + /// Link speed. + /// Value indicating whether this adapter is + /// valid. Possible values include: 'Inactive', 'Active' + /// Value indicating whether this adapter is + /// RDMA capable. Possible values include: 'Incapable', + /// 'Capable' + /// Value indicating whether this adapter has + /// DHCP enabled. Possible values include: 'Disabled', + /// 'Enabled' + /// The IPv4 configuration of the + /// network adapter. + /// The IPv6 configuration of the + /// network adapter. + /// The IPv6 local address. + /// The list of DNS Servers of the + /// device. + public NetworkAdapter(string adapterId = default(string), NetworkAdapterPosition adapterPosition = default(NetworkAdapterPosition), int? index = default(int?), string nodeId = default(string), string networkAdapterName = default(string), string label = default(string), string macAddress = default(string), long? linkSpeed = default(long?), string status = default(string), string rdmaStatus = default(string), string dhcpStatus = default(string), Ipv4Config ipv4Configuration = default(Ipv4Config), Ipv6Config ipv6Configuration = default(Ipv6Config), string ipv6LinkLocalAddress = default(string), IList dnsServers = default(IList)) + { + AdapterId = adapterId; + AdapterPosition = adapterPosition; + Index = index; + NodeId = nodeId; + NetworkAdapterName = networkAdapterName; + Label = label; + MacAddress = macAddress; + LinkSpeed = linkSpeed; + Status = status; + RdmaStatus = rdmaStatus; + DhcpStatus = dhcpStatus; + Ipv4Configuration = ipv4Configuration; + Ipv6Configuration = ipv6Configuration; + Ipv6LinkLocalAddress = ipv6LinkLocalAddress; + DnsServers = dnsServers; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets instance ID of network adapter. + /// + [JsonProperty(PropertyName = "adapterId")] + public string AdapterId { get; private set; } + + /// + /// Gets hardware position of network adapter. + /// + [JsonProperty(PropertyName = "adapterPosition")] + public NetworkAdapterPosition AdapterPosition { get; private set; } + + /// + /// Gets logical index of the adapter. + /// + [JsonProperty(PropertyName = "index")] + public int? Index { get; private set; } + + /// + /// Gets node ID of the network adapter. + /// + [JsonProperty(PropertyName = "nodeId")] + public string NodeId { get; private set; } + + /// + /// Gets network adapter name. + /// + [JsonProperty(PropertyName = "networkAdapterName")] + public string NetworkAdapterName { get; private set; } + + /// + /// Gets hardware label for the adapter. + /// + [JsonProperty(PropertyName = "label")] + public string Label { get; private set; } + + /// + /// Gets MAC address. + /// + [JsonProperty(PropertyName = "macAddress")] + public string MacAddress { get; private set; } + + /// + /// Gets link speed. + /// + [JsonProperty(PropertyName = "linkSpeed")] + public long? LinkSpeed { get; private set; } + + /// + /// Gets value indicating whether this adapter is valid. Possible + /// values include: 'Inactive', 'Active' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; private set; } + + /// + /// Gets or sets value indicating whether this adapter is RDMA capable. + /// Possible values include: 'Incapable', 'Capable' + /// + [JsonProperty(PropertyName = "rdmaStatus")] + public string RdmaStatus { get; set; } + + /// + /// Gets or sets value indicating whether this adapter has DHCP + /// enabled. Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "dhcpStatus")] + public string DhcpStatus { get; set; } + + /// + /// Gets the IPv4 configuration of the network adapter. + /// + [JsonProperty(PropertyName = "ipv4Configuration")] + public Ipv4Config Ipv4Configuration { get; private set; } + + /// + /// Gets the IPv6 configuration of the network adapter. + /// + [JsonProperty(PropertyName = "ipv6Configuration")] + public Ipv6Config Ipv6Configuration { get; private set; } + + /// + /// Gets the IPv6 local address. + /// + [JsonProperty(PropertyName = "ipv6LinkLocalAddress")] + public string Ipv6LinkLocalAddress { get; private set; } + + /// + /// Gets the list of DNS Servers of the device. + /// + [JsonProperty(PropertyName = "dnsServers")] + public IList DnsServers { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterDHCPStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterDHCPStatus.cs new file mode 100644 index 000000000000..cf8cf2a6c7b3 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterDHCPStatus.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.EdgeGateway.Models +{ + + /// + /// Defines values for NetworkAdapterDHCPStatus. + /// + public static class NetworkAdapterDHCPStatus + { + public const string Disabled = "Disabled"; + public const string Enabled = "Enabled"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterPosition.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterPosition.cs new file mode 100644 index 000000000000..a3f5874f4602 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterPosition.cs @@ -0,0 +1,61 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The network adapter position. + /// + public partial class NetworkAdapterPosition + { + /// + /// Initializes a new instance of the NetworkAdapterPosition class. + /// + public NetworkAdapterPosition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NetworkAdapterPosition class. + /// + /// The network group. Possible values + /// include: 'None', 'NonRDMA', 'RDMA' + /// The port. + public NetworkAdapterPosition(string networkGroup = default(string), int? port = default(int?)) + { + NetworkGroup = networkGroup; + Port = port; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the network group. Possible values include: 'None', 'NonRDMA', + /// 'RDMA' + /// + [JsonProperty(PropertyName = "networkGroup")] + public string NetworkGroup { get; private set; } + + /// + /// Gets the port. + /// + [JsonProperty(PropertyName = "port")] + public int? Port { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterRDMAStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterRDMAStatus.cs new file mode 100644 index 000000000000..d4a37ba32077 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterRDMAStatus.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.EdgeGateway.Models +{ + + /// + /// Defines values for NetworkAdapterRDMAStatus. + /// + public static class NetworkAdapterRDMAStatus + { + public const string Incapable = "Incapable"; + public const string Capable = "Capable"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterStatus.cs new file mode 100644 index 000000000000..412a9ed9e337 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkAdapterStatus.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.EdgeGateway.Models +{ + + /// + /// Defines values for NetworkAdapterStatus. + /// + public static class NetworkAdapterStatus + { + public const string Inactive = "Inactive"; + public const string Active = "Active"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkGroup.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkGroup.cs new file mode 100644 index 000000000000..351346f4db7a --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkGroup.cs @@ -0,0 +1,23 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for NetworkGroup. + /// + public static class NetworkGroup + { + public const string None = "None"; + public const string NonRDMA = "NonRDMA"; + public const string RDMA = "RDMA"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkSettings.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkSettings.cs new file mode 100644 index 000000000000..6377ab322432 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/NetworkSettings.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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The network settings of a device. + /// + [Rest.Serialization.JsonTransformation] + public partial class NetworkSettings : ARMBaseModel + { + /// + /// Initializes a new instance of the NetworkSettings class. + /// + public NetworkSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NetworkSettings class. + /// + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// The network adapter list on the + /// device. + public NetworkSettings(string id = default(string), string name = default(string), string type = default(string), IList networkAdapters = default(IList)) + : base(id, name, type) + { + NetworkAdapters = networkAdapters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the network adapter list on the device. + /// + [JsonProperty(PropertyName = "properties.networkAdapters")] + public IList NetworkAdapters { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Operation.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Operation.cs new file mode 100644 index 000000000000..11a20063f0ea --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Operation.cs @@ -0,0 +1,79 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Operations. + /// + [Rest.Serialization.JsonTransformation] + public partial class Operation + { + /// + /// Initializes a new instance of the Operation class. + /// + public Operation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Operation class. + /// + /// Name of the operation. + /// Properties displayed for the + /// operation. + /// Origin of the operation. + /// Service specification. + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string), ServiceSpecification serviceSpecification = default(ServiceSpecification)) + { + Name = name; + Display = display; + Origin = origin; + ServiceSpecification = serviceSpecification; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the operation. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets properties displayed for the operation. + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplay Display { get; set; } + + /// + /// Gets or sets origin of the operation. + /// + [JsonProperty(PropertyName = "origin")] + public string Origin { get; set; } + + /// + /// Gets or sets service specification. + /// + [JsonProperty(PropertyName = "properties.serviceSpecification")] + public ServiceSpecification ServiceSpecification { get; set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/OperationDisplay.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/OperationDisplay.cs new file mode 100644 index 000000000000..29b3c900067e --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/OperationDisplay.cs @@ -0,0 +1,79 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Operation display properties. + /// + public partial class OperationDisplay + { + /// + /// Initializes a new instance of the OperationDisplay class. + /// + public OperationDisplay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplay class. + /// + /// Provider name. + /// The type of resource in which the operation + /// is performed. + /// Operation to be performed on the + /// resource. + /// Description of the operation to be + /// performed. + public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) + { + Provider = provider; + Resource = resource; + Operation = operation; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets provider name. + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; set; } + + /// + /// Gets or sets the type of resource in which the operation is + /// performed. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; set; } + + /// + /// Gets or sets operation to be performed on the resource. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets description of the operation to be performed. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Order.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Order.cs new file mode 100644 index 000000000000..1aa2199af67d --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Order.cs @@ -0,0 +1,155 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The order details. + /// + [Rest.Serialization.JsonTransformation] + public partial class Order : ARMBaseModel + { + /// + /// Initializes a new instance of the Order class. + /// + public Order() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Order class. + /// + /// The contact details. + /// The shipping address. + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// Current status of the order. + /// List of status changes in the + /// order. + /// Serial number of the device. + /// Tracking information for the + /// package delivered to the customer whether it has an original or a + /// replacement device. + /// Tracking information for the + /// package returned from the customer whether it has an original or a + /// replacement device. + public Order(ContactDetails contactInformation, Address shippingAddress, string id = default(string), string name = default(string), string type = default(string), OrderStatus currentStatus = default(OrderStatus), IList orderHistory = default(IList), string serialNumber = default(string), IList deliveryTrackingInfo = default(IList), IList returnTrackingInfo = default(IList)) + : base(id, name, type) + { + ContactInformation = contactInformation; + ShippingAddress = shippingAddress; + CurrentStatus = currentStatus; + OrderHistory = orderHistory; + SerialNumber = serialNumber; + DeliveryTrackingInfo = deliveryTrackingInfo; + ReturnTrackingInfo = returnTrackingInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the contact details. + /// + [JsonProperty(PropertyName = "properties.contactInformation")] + public ContactDetails ContactInformation { get; set; } + + /// + /// Gets or sets the shipping address. + /// + [JsonProperty(PropertyName = "properties.shippingAddress")] + public Address ShippingAddress { get; set; } + + /// + /// Gets or sets current status of the order. + /// + [JsonProperty(PropertyName = "properties.currentStatus")] + public OrderStatus CurrentStatus { get; set; } + + /// + /// Gets list of status changes in the order. + /// + [JsonProperty(PropertyName = "properties.orderHistory")] + public IList OrderHistory { get; private set; } + + /// + /// Gets serial number of the device. + /// + [JsonProperty(PropertyName = "properties.serialNumber")] + public string SerialNumber { get; private set; } + + /// + /// Gets tracking information for the package delivered to the customer + /// whether it has an original or a replacement device. + /// + [JsonProperty(PropertyName = "properties.deliveryTrackingInfo")] + public IList DeliveryTrackingInfo { get; private set; } + + /// + /// Gets tracking information for the package returned from the + /// customer whether it has an original or a replacement device. + /// + [JsonProperty(PropertyName = "properties.returnTrackingInfo")] + public IList ReturnTrackingInfo { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ContactInformation == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ContactInformation"); + } + if (ShippingAddress == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ShippingAddress"); + } + if (ContactInformation != null) + { + ContactInformation.Validate(); + } + if (ShippingAddress != null) + { + ShippingAddress.Validate(); + } + if (CurrentStatus != null) + { + CurrentStatus.Validate(); + } + if (OrderHistory != null) + { + foreach (var element in OrderHistory) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/OrderState.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/OrderState.cs new file mode 100644 index 000000000000..ab1cc22a27e3 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/OrderState.cs @@ -0,0 +1,34 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for OrderState. + /// + public static class OrderState + { + public const string Untracked = "Untracked"; + public const string AwaitingFulfilment = "AwaitingFulfilment"; + public const string AwaitingPreparation = "AwaitingPreparation"; + public const string AwaitingShipment = "AwaitingShipment"; + public const string Shipped = "Shipped"; + public const string Arriving = "Arriving"; + public const string Delivered = "Delivered"; + public const string ReplacementRequested = "ReplacementRequested"; + public const string LostDevice = "LostDevice"; + public const string Declined = "Declined"; + public const string ReturnInitiated = "ReturnInitiated"; + public const string AwaitingReturnShipment = "AwaitingReturnShipment"; + public const string ShippedBack = "ShippedBack"; + public const string CollectedAtMicrosoft = "CollectedAtMicrosoft"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/OrderStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/OrderStatus.cs new file mode 100644 index 000000000000..c90f2f75daf1 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/OrderStatus.cs @@ -0,0 +1,92 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents a single status change. + /// + public partial class OrderStatus + { + /// + /// Initializes a new instance of the OrderStatus class. + /// + public OrderStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OrderStatus class. + /// + /// Status of the order as per the allowed status + /// types. Possible values include: 'Untracked', 'AwaitingFulfilment', + /// 'AwaitingPreparation', 'AwaitingShipment', 'Shipped', 'Arriving', + /// 'Delivered', 'ReplacementRequested', 'LostDevice', 'Declined', + /// 'ReturnInitiated', 'AwaitingReturnShipment', 'ShippedBack', + /// 'CollectedAtMicrosoft' + /// Time of status update. + /// Comments related to this status + /// change. + public OrderStatus(string status, System.DateTime? updateDateTime = default(System.DateTime?), string comments = default(string)) + { + Status = status; + UpdateDateTime = updateDateTime; + Comments = comments; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets status of the order as per the allowed status types. + /// Possible values include: 'Untracked', 'AwaitingFulfilment', + /// 'AwaitingPreparation', 'AwaitingShipment', 'Shipped', 'Arriving', + /// 'Delivered', 'ReplacementRequested', 'LostDevice', 'Declined', + /// 'ReturnInitiated', 'AwaitingReturnShipment', 'ShippedBack', + /// 'CollectedAtMicrosoft' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets time of status update. + /// + [JsonProperty(PropertyName = "updateDateTime")] + public System.DateTime? UpdateDateTime { get; private set; } + + /// + /// Gets or sets comments related to this status change. + /// + [JsonProperty(PropertyName = "comments")] + public string Comments { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Status == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Status"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Page.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Page.cs new file mode 100644 index 000000000000..d66985d403b8 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Page.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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/PeriodicTimerEventTrigger.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/PeriodicTimerEventTrigger.cs new file mode 100644 index 000000000000..9b860ca99af8 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/PeriodicTimerEventTrigger.cs @@ -0,0 +1,108 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Trigger details. + /// + [Newtonsoft.Json.JsonObject("PeriodicTimerEvent")] + [Rest.Serialization.JsonTransformation] + public partial class PeriodicTimerEventTrigger : Trigger + { + /// + /// Initializes a new instance of the PeriodicTimerEventTrigger class. + /// + public PeriodicTimerEventTrigger() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PeriodicTimerEventTrigger class. + /// + /// Periodic timer details. + /// Role Sink information. + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// A custom context tag typically used + /// to correlate the trigger against its usage. For example, if a + /// periodic timer trigger is intended for certain specific IoT modules + /// in the device, the tag can be the name or the image URL of the + /// module. + public PeriodicTimerEventTrigger(PeriodicTimerSourceInfo sourceInfo, RoleSinkInfo sinkInfo, string id = default(string), string name = default(string), string type = default(string), string customContextTag = default(string)) + : base(id, name, type) + { + SourceInfo = sourceInfo; + SinkInfo = sinkInfo; + CustomContextTag = customContextTag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets periodic timer details. + /// + [JsonProperty(PropertyName = "properties.sourceInfo")] + public PeriodicTimerSourceInfo SourceInfo { get; set; } + + /// + /// Gets or sets role Sink information. + /// + [JsonProperty(PropertyName = "properties.sinkInfo")] + public RoleSinkInfo SinkInfo { get; set; } + + /// + /// Gets or sets a custom context tag typically used to correlate the + /// trigger against its usage. For example, if a periodic timer trigger + /// is intended for certain specific IoT modules in the device, the tag + /// can be the name or the image URL of the module. + /// + [JsonProperty(PropertyName = "properties.customContextTag")] + public string CustomContextTag { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (SourceInfo == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SourceInfo"); + } + if (SinkInfo == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SinkInfo"); + } + if (SourceInfo != null) + { + SourceInfo.Validate(); + } + if (SinkInfo != null) + { + SinkInfo.Validate(); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/PeriodicTimerSourceInfo.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/PeriodicTimerSourceInfo.cs new file mode 100644 index 000000000000..2962705be4b1 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/PeriodicTimerSourceInfo.cs @@ -0,0 +1,89 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Periodic timer event source. + /// + public partial class PeriodicTimerSourceInfo + { + /// + /// Initializes a new instance of the PeriodicTimerSourceInfo class. + /// + public PeriodicTimerSourceInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PeriodicTimerSourceInfo class. + /// + /// The time of the day that results in a valid + /// trigger. Schedule is computed with reference to the time + /// specified. + /// Periodic frequency at which timer event + /// needs to be raised. Supports daily, hourly, minutes, and + /// seconds. + /// Topic where periodic events are published to + /// IoT device. + public PeriodicTimerSourceInfo(System.DateTime startTime, string schedule, string topic = default(string)) + { + StartTime = startTime; + Schedule = schedule; + Topic = topic; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the time of the day that results in a valid trigger. + /// Schedule is computed with reference to the time specified. + /// + [JsonProperty(PropertyName = "startTime")] + public System.DateTime StartTime { get; set; } + + /// + /// Gets or sets periodic frequency at which timer event needs to be + /// raised. Supports daily, hourly, minutes, and seconds. + /// + [JsonProperty(PropertyName = "schedule")] + public string Schedule { get; set; } + + /// + /// Gets or sets topic where periodic events are published to IoT + /// device. + /// + [JsonProperty(PropertyName = "topic")] + public string Topic { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Schedule == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Schedule"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/PlatformType.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/PlatformType.cs new file mode 100644 index 000000000000..60f81112ca1c --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/PlatformType.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.EdgeGateway.Models +{ + + /// + /// Defines values for PlatformType. + /// + public static class PlatformType + { + public const string Windows = "Windows"; + public const string Linux = "Linux"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RefreshDetails.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RefreshDetails.cs new file mode 100644 index 000000000000..36bb26abaa1c --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RefreshDetails.cs @@ -0,0 +1,92 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Fields for tracking refresh job on the share. + /// + public partial class RefreshDetails + { + /// + /// Initializes a new instance of the RefreshDetails class. + /// + public RefreshDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RefreshDetails class. + /// + /// If a refresh share job is + /// currently in progress on this share, this field indicates the ARM + /// resource ID of that job. The field is empty if no job is in + /// progress. + /// Indicates the + /// completed time for the last refresh job on this particular share, + /// if any.This could be a failed job or a successful job. + /// Indicates the relative path of the + /// error xml for the last refresh job on this particular share, if + /// any. This could be a failed job or a successful job. + /// Indicates the id of the last refresh job on + /// this particular share,if any. This could be a failed job or a + /// successful job. + public RefreshDetails(string inProgressRefreshJobId = default(string), System.DateTime? lastCompletedRefreshJobTimeInUTC = default(System.DateTime?), string errorManifestFile = default(string), string lastJob = default(string)) + { + InProgressRefreshJobId = inProgressRefreshJobId; + LastCompletedRefreshJobTimeInUTC = lastCompletedRefreshJobTimeInUTC; + ErrorManifestFile = errorManifestFile; + LastJob = lastJob; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets if a refresh share job is currently in progress on + /// this share, this field indicates the ARM resource ID of that job. + /// The field is empty if no job is in progress. + /// + [JsonProperty(PropertyName = "inProgressRefreshJobId")] + public string InProgressRefreshJobId { get; set; } + + /// + /// Gets or sets indicates the completed time for the last refresh job + /// on this particular share, if any.This could be a failed job or a + /// successful job. + /// + [JsonProperty(PropertyName = "lastCompletedRefreshJobTimeInUTC")] + public System.DateTime? LastCompletedRefreshJobTimeInUTC { get; set; } + + /// + /// Gets or sets indicates the relative path of the error xml for the + /// last refresh job on this particular share, if any. This could be a + /// failed job or a successful job. + /// + [JsonProperty(PropertyName = "errorManifestFile")] + public string ErrorManifestFile { get; set; } + + /// + /// Gets or sets indicates the id of the last refresh job on this + /// particular share,if any. This could be a failed job or a successful + /// job. + /// + [JsonProperty(PropertyName = "lastJob")] + public string LastJob { get; set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Role.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Role.cs new file mode 100644 index 000000000000..5c10f95ebaf7 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Role.cs @@ -0,0 +1,47 @@ +// +// 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.EdgeGateway.Models +{ + using System.Linq; + + /// + /// Compute role. + /// + public partial class Role : ARMBaseModel + { + /// + /// Initializes a new instance of the Role class. + /// + public Role() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Role class. + /// + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + public Role(string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RoleSinkInfo.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RoleSinkInfo.cs new file mode 100644 index 000000000000..2ac5ced841ec --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RoleSinkInfo.cs @@ -0,0 +1,65 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Compute role against which events will be raised. + /// + public partial class RoleSinkInfo + { + /// + /// Initializes a new instance of the RoleSinkInfo class. + /// + public RoleSinkInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RoleSinkInfo class. + /// + /// Compute role ID. + public RoleSinkInfo(string roleId) + { + RoleId = roleId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets compute role ID. + /// + [JsonProperty(PropertyName = "roleId")] + public string RoleId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (RoleId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RoleId"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RoleStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RoleStatus.cs new file mode 100644 index 000000000000..c37e270f31f9 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RoleStatus.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.EdgeGateway.Models +{ + + /// + /// Defines values for RoleStatus. + /// + public static class RoleStatus + { + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RoleTypes.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RoleTypes.cs new file mode 100644 index 000000000000..ca078141d7e4 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/RoleTypes.cs @@ -0,0 +1,24 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for RoleTypes. + /// + public static class RoleTypes + { + public const string IOT = "IOT"; + public const string ASA = "ASA"; + public const string Functions = "Functions"; + public const string Cognitive = "Cognitive"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SSLStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SSLStatus.cs new file mode 100644 index 000000000000..20ebde6488b3 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SSLStatus.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.EdgeGateway.Models +{ + + /// + /// Defines values for SSLStatus. + /// + public static class SSLStatus + { + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SecuritySettings.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SecuritySettings.cs new file mode 100644 index 000000000000..318d225cd0d2 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SecuritySettings.cs @@ -0,0 +1,84 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The security settings of a device. + /// + [Rest.Serialization.JsonTransformation] + public partial class SecuritySettings : ARMBaseModel + { + /// + /// Initializes a new instance of the SecuritySettings class. + /// + public SecuritySettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SecuritySettings class. + /// + /// Device administrator password as + /// an encrypted string (encrypted using RSA PKCS #1) is used to sign + /// into the local web UI of the device. The Actual password should + /// have at least 8 characters that are a combination of uppercase, + /// lowercase, numeric, and special characters. + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + public SecuritySettings(AsymmetricEncryptedSecret deviceAdminPassword, string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + DeviceAdminPassword = deviceAdminPassword; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets device administrator password as an encrypted string + /// (encrypted using RSA PKCS #1) is used to sign into the local web + /// UI of the device. The Actual password should have at least 8 + /// characters that are a combination of uppercase, lowercase, + /// numeric, and special characters. + /// + [JsonProperty(PropertyName = "properties.deviceAdminPassword")] + public AsymmetricEncryptedSecret DeviceAdminPassword { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DeviceAdminPassword == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DeviceAdminPassword"); + } + if (DeviceAdminPassword != null) + { + DeviceAdminPassword.Validate(); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ServiceSpecification.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ServiceSpecification.cs new file mode 100644 index 000000000000..641f0b5c6297 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ServiceSpecification.cs @@ -0,0 +1,54 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Service specification. + /// + public partial class ServiceSpecification + { + /// + /// Initializes a new instance of the ServiceSpecification class. + /// + public ServiceSpecification() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServiceSpecification class. + /// + /// Metric specification as defined + /// by shoebox. + public ServiceSpecification(IList metricSpecifications = default(IList)) + { + MetricSpecifications = metricSpecifications; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets metric specification as defined by shoebox. + /// + [JsonProperty(PropertyName = "metricSpecifications")] + public IList MetricSpecifications { get; set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Share.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Share.cs new file mode 100644 index 000000000000..f078da70ddb1 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Share.cs @@ -0,0 +1,203 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Represents a share on the Data Box Edge/Gateway device. + /// + [Rest.Serialization.JsonTransformation] + public partial class Share : ARMBaseModel + { + /// + /// Initializes a new instance of the Share class. + /// + public Share() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Share class. + /// + /// Current status of the share. Possible + /// values include: 'Online', 'Offline' + /// Current monitoring status of the + /// share. Possible values include: 'Enabled', 'Disabled' + /// Access protocol to be used by the + /// share. Possible values include: 'SMB', 'NFS' + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// Description for the share. + /// Azure container mapping for the + /// share. + /// Mapping of users and corresponding + /// access rights on the share (required for SMB protocol). + /// List of IP addresses and + /// corresponding access rights on the share(required for NFS + /// protocol). + /// Details of the refresh job on this + /// share. + /// Share mount point to the role. + /// Data policy of the share. Possible values + /// include: 'Cloud', 'Local' + public Share(string shareStatus, string monitoringStatus, string accessProtocol, string id = default(string), string name = default(string), string type = default(string), string description = default(string), AzureContainerInfo azureContainerInfo = default(AzureContainerInfo), IList userAccessRights = default(IList), IList clientAccessRights = default(IList), RefreshDetails refreshDetails = default(RefreshDetails), IList shareMappings = default(IList), string dataPolicy = default(string)) + : base(id, name, type) + { + Description = description; + ShareStatus = shareStatus; + MonitoringStatus = monitoringStatus; + AzureContainerInfo = azureContainerInfo; + AccessProtocol = accessProtocol; + UserAccessRights = userAccessRights; + ClientAccessRights = clientAccessRights; + RefreshDetails = refreshDetails; + ShareMappings = shareMappings; + DataPolicy = dataPolicy; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets description for the share. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets current status of the share. Possible values include: + /// 'Online', 'Offline' + /// + [JsonProperty(PropertyName = "properties.shareStatus")] + public string ShareStatus { get; set; } + + /// + /// Gets or sets current monitoring status of the share. Possible + /// values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.monitoringStatus")] + public string MonitoringStatus { get; set; } + + /// + /// Gets or sets azure container mapping for the share. + /// + [JsonProperty(PropertyName = "properties.azureContainerInfo")] + public AzureContainerInfo AzureContainerInfo { get; set; } + + /// + /// Gets or sets access protocol to be used by the share. Possible + /// values include: 'SMB', 'NFS' + /// + [JsonProperty(PropertyName = "properties.accessProtocol")] + public string AccessProtocol { get; set; } + + /// + /// Gets or sets mapping of users and corresponding access rights on + /// the share (required for SMB protocol). + /// + [JsonProperty(PropertyName = "properties.userAccessRights")] + public IList UserAccessRights { get; set; } + + /// + /// Gets or sets list of IP addresses and corresponding access rights + /// on the share(required for NFS protocol). + /// + [JsonProperty(PropertyName = "properties.clientAccessRights")] + public IList ClientAccessRights { get; set; } + + /// + /// Gets or sets details of the refresh job on this share. + /// + [JsonProperty(PropertyName = "properties.refreshDetails")] + public RefreshDetails RefreshDetails { get; set; } + + /// + /// Gets share mount point to the role. + /// + [JsonProperty(PropertyName = "properties.shareMappings")] + public IList ShareMappings { get; private set; } + + /// + /// Gets or sets data policy of the share. Possible values include: + /// 'Cloud', 'Local' + /// + [JsonProperty(PropertyName = "properties.dataPolicy")] + public string DataPolicy { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ShareStatus == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ShareStatus"); + } + if (MonitoringStatus == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MonitoringStatus"); + } + if (AccessProtocol == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AccessProtocol"); + } + if (AzureContainerInfo != null) + { + AzureContainerInfo.Validate(); + } + if (UserAccessRights != null) + { + foreach (var element in UserAccessRights) + { + if (element != null) + { + element.Validate(); + } + } + } + if (ClientAccessRights != null) + { + foreach (var element1 in ClientAccessRights) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + if (ShareMappings != null) + { + foreach (var element2 in ShareMappings) + { + if (element2 != null) + { + element2.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareAccessProtocol.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareAccessProtocol.cs new file mode 100644 index 000000000000..d92c3f7425c6 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareAccessProtocol.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.EdgeGateway.Models +{ + + /// + /// Defines values for ShareAccessProtocol. + /// + public static class ShareAccessProtocol + { + public const string SMB = "SMB"; + public const string NFS = "NFS"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareAccessRight.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareAccessRight.cs new file mode 100644 index 000000000000..ad354284c9db --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareAccessRight.cs @@ -0,0 +1,81 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Specifies the mapping between this particular user and the type of + /// access he has on shares on this device. + /// + public partial class ShareAccessRight + { + /// + /// Initializes a new instance of the ShareAccessRight class. + /// + public ShareAccessRight() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ShareAccessRight class. + /// + /// The share ID. + /// Type of access to be allowed on the share + /// for this user. Possible values include: 'Change', 'Read', + /// 'Custom' + public ShareAccessRight(string shareId, string accessType) + { + ShareId = shareId; + AccessType = accessType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the share ID. + /// + [JsonProperty(PropertyName = "shareId")] + public string ShareId { get; set; } + + /// + /// Gets or sets type of access to be allowed on the share for this + /// user. Possible values include: 'Change', 'Read', 'Custom' + /// + [JsonProperty(PropertyName = "accessType")] + public string AccessType { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ShareId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ShareId"); + } + if (AccessType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AccessType"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareAccessType.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareAccessType.cs new file mode 100644 index 000000000000..193212186da2 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareAccessType.cs @@ -0,0 +1,23 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for ShareAccessType. + /// + public static class ShareAccessType + { + public const string Change = "Change"; + public const string Read = "Read"; + public const string Custom = "Custom"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareStatus.cs new file mode 100644 index 000000000000..11e88477da61 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/ShareStatus.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.EdgeGateway.Models +{ + + /// + /// Defines values for ShareStatus. + /// + public static class ShareStatus + { + public const string Online = "Online"; + public const string Offline = "Offline"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Sku.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Sku.cs new file mode 100644 index 000000000000..a662d1930124 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Sku.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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The SKU type. + /// + public partial class Sku + { + /// + /// Initializes a new instance of the Sku class. + /// + public Sku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Sku class. + /// + /// SKU name. Possible values include: 'Gateway', + /// 'Edge' + /// The SKU tier. This is based on the SKU name. + /// Possible values include: 'Standard' + public Sku(string name = default(string), string tier = default(string)) + { + Name = name; + Tier = tier; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SKU name. Possible values include: 'Gateway', 'Edge' + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the SKU tier. This is based on the SKU name. Possible + /// values include: 'Standard' + /// + [JsonProperty(PropertyName = "tier")] + public string Tier { get; set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SkuName.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SkuName.cs new file mode 100644 index 000000000000..352d19cb3ec4 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SkuName.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.EdgeGateway.Models +{ + + /// + /// Defines values for SkuName. + /// + public static class SkuName + { + public const string Gateway = "Gateway"; + public const string Edge = "Edge"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SkuTier.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SkuTier.cs new file mode 100644 index 000000000000..d942b0392c5f --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SkuTier.cs @@ -0,0 +1,21 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for SkuTier. + /// + public static class SkuTier + { + public const string Standard = "Standard"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/StorageAccountCredential.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/StorageAccountCredential.cs new file mode 100644 index 000000000000..fafcf929d80b --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/StorageAccountCredential.cs @@ -0,0 +1,141 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The storage account credential. + /// + [Rest.Serialization.JsonTransformation] + public partial class StorageAccountCredential : ARMBaseModel + { + /// + /// Initializes a new instance of the StorageAccountCredential class. + /// + public StorageAccountCredential() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageAccountCredential class. + /// + /// Alias for the storage account. + /// Signifies whether SSL needs to be enabled + /// or not. Possible values include: 'Enabled', 'Disabled' + /// Type of storage accessed on the storage + /// account. Possible values include: 'GeneralPurposeStorage', + /// 'BlobStorage' + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// Username for the storage account. + /// Encrypted storage key. + /// Connection string for the storage + /// account. Use this string if username and account key are not + /// specified. + /// Blob end point for private + /// clouds. + public StorageAccountCredential(string alias, string sslStatus, string accountType, string id = default(string), string name = default(string), string type = default(string), string userName = default(string), AsymmetricEncryptedSecret accountKey = default(AsymmetricEncryptedSecret), string connectionString = default(string), string blobDomainName = default(string)) + : base(id, name, type) + { + Alias = alias; + UserName = userName; + AccountKey = accountKey; + ConnectionString = connectionString; + SslStatus = sslStatus; + BlobDomainName = blobDomainName; + AccountType = accountType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets alias for the storage account. + /// + [JsonProperty(PropertyName = "properties.alias")] + public string Alias { get; set; } + + /// + /// Gets or sets username for the storage account. + /// + [JsonProperty(PropertyName = "properties.userName")] + public string UserName { get; set; } + + /// + /// Gets or sets encrypted storage key. + /// + [JsonProperty(PropertyName = "properties.accountKey")] + public AsymmetricEncryptedSecret AccountKey { get; set; } + + /// + /// Gets or sets connection string for the storage account. Use this + /// string if username and account key are not specified. + /// + [JsonProperty(PropertyName = "properties.connectionString")] + public string ConnectionString { get; set; } + + /// + /// Gets or sets signifies whether SSL needs to be enabled or not. + /// Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.sslStatus")] + public string SslStatus { get; set; } + + /// + /// Gets or sets blob end point for private clouds. + /// + [JsonProperty(PropertyName = "properties.blobDomainName")] + public string BlobDomainName { get; set; } + + /// + /// Gets or sets type of storage accessed on the storage account. + /// Possible values include: 'GeneralPurposeStorage', 'BlobStorage' + /// + [JsonProperty(PropertyName = "properties.accountType")] + public string AccountType { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Alias == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Alias"); + } + if (SslStatus == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SslStatus"); + } + if (AccountType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AccountType"); + } + if (AccountKey != null) + { + AccountKey.Validate(); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SymmetricKey.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SymmetricKey.cs new file mode 100644 index 000000000000..b38966407d16 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/SymmetricKey.cs @@ -0,0 +1,65 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Symmetric key for authentication. + /// + public partial class SymmetricKey + { + /// + /// Initializes a new instance of the SymmetricKey class. + /// + public SymmetricKey() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SymmetricKey class. + /// + /// Connection string based on the + /// symmetric key. + public SymmetricKey(AsymmetricEncryptedSecret connectionString = default(AsymmetricEncryptedSecret)) + { + ConnectionString = connectionString; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets connection string based on the symmetric key. + /// + [JsonProperty(PropertyName = "connectionString")] + public AsymmetricEncryptedSecret ConnectionString { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ConnectionString != null) + { + ConnectionString.Validate(); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/TimeGrain.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/TimeGrain.cs new file mode 100644 index 000000000000..fd6c4184c909 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/TimeGrain.cs @@ -0,0 +1,28 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for TimeGrain. + /// + public static class TimeGrain + { + public const string PT1M = "PT1M"; + public const string PT5M = "PT5M"; + public const string PT15M = "PT15M"; + public const string PT30M = "PT30M"; + public const string PT1H = "PT1H"; + public const string PT6H = "PT6H"; + public const string PT12H = "PT12H"; + public const string PT1D = "PT1D"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/TrackingInfo.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/TrackingInfo.cs new file mode 100644 index 000000000000..62a3551f7135 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/TrackingInfo.cs @@ -0,0 +1,77 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Tracking courier information. + /// + public partial class TrackingInfo + { + /// + /// Initializes a new instance of the TrackingInfo class. + /// + public TrackingInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TrackingInfo class. + /// + /// Serial number of the device being + /// tracked. + /// Name of the carrier used in the + /// delivery. + /// Tracking ID of the shipment. + /// Tracking URL of the shipment. + public TrackingInfo(string serialNumber = default(string), string carrierName = default(string), string trackingId = default(string), string trackingUrl = default(string)) + { + SerialNumber = serialNumber; + CarrierName = carrierName; + TrackingId = trackingId; + TrackingUrl = trackingUrl; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets serial number of the device being tracked. + /// + [JsonProperty(PropertyName = "serialNumber")] + public string SerialNumber { get; set; } + + /// + /// Gets or sets name of the carrier used in the delivery. + /// + [JsonProperty(PropertyName = "carrierName")] + public string CarrierName { get; set; } + + /// + /// Gets or sets tracking ID of the shipment. + /// + [JsonProperty(PropertyName = "trackingId")] + public string TrackingId { get; set; } + + /// + /// Gets or sets tracking URL of the shipment. + /// + [JsonProperty(PropertyName = "trackingUrl")] + public string TrackingUrl { get; set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Trigger.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Trigger.cs new file mode 100644 index 000000000000..26746fd9dcfb --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/Trigger.cs @@ -0,0 +1,47 @@ +// +// 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.EdgeGateway.Models +{ + using System.Linq; + + /// + /// Trigger details. + /// + public partial class Trigger : ARMBaseModel + { + /// + /// Initializes a new instance of the Trigger class. + /// + public Trigger() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Trigger class. + /// + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + public Trigger(string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateDownloadProgress.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateDownloadProgress.cs new file mode 100644 index 000000000000..4e103681028b --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateDownloadProgress.cs @@ -0,0 +1,96 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Details about the download progress of update. + /// + public partial class UpdateDownloadProgress + { + /// + /// Initializes a new instance of the UpdateDownloadProgress class. + /// + public UpdateDownloadProgress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UpdateDownloadProgress class. + /// + /// The download phase. Possible values + /// include: 'Unknown', 'Initializing', 'Downloading', + /// 'Verifying' + /// Percentage of completion. + /// Total bytes to download. + /// Total bytes downloaded. + /// Number of updates to + /// download. + /// Number of updates + /// downloaded. + public UpdateDownloadProgress(string downloadPhase = default(string), int? percentComplete = default(int?), double? totalBytesToDownload = default(double?), double? totalBytesDownloaded = default(double?), int? numberOfUpdatesToDownload = default(int?), int? numberOfUpdatesDownloaded = default(int?)) + { + DownloadPhase = downloadPhase; + PercentComplete = percentComplete; + TotalBytesToDownload = totalBytesToDownload; + TotalBytesDownloaded = totalBytesDownloaded; + NumberOfUpdatesToDownload = numberOfUpdatesToDownload; + NumberOfUpdatesDownloaded = numberOfUpdatesDownloaded; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the download phase. Possible values include: 'Unknown', + /// 'Initializing', 'Downloading', 'Verifying' + /// + [JsonProperty(PropertyName = "downloadPhase")] + public string DownloadPhase { get; private set; } + + /// + /// Gets percentage of completion. + /// + [JsonProperty(PropertyName = "percentComplete")] + public int? PercentComplete { get; private set; } + + /// + /// Gets total bytes to download. + /// + [JsonProperty(PropertyName = "totalBytesToDownload")] + public double? TotalBytesToDownload { get; private set; } + + /// + /// Gets total bytes downloaded. + /// + [JsonProperty(PropertyName = "totalBytesDownloaded")] + public double? TotalBytesDownloaded { get; private set; } + + /// + /// Gets number of updates to download. + /// + [JsonProperty(PropertyName = "numberOfUpdatesToDownload")] + public int? NumberOfUpdatesToDownload { get; private set; } + + /// + /// Gets number of updates downloaded. + /// + [JsonProperty(PropertyName = "numberOfUpdatesDownloaded")] + public int? NumberOfUpdatesDownloaded { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateInstallProgress.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateInstallProgress.cs new file mode 100644 index 000000000000..c9e180f52887 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateInstallProgress.cs @@ -0,0 +1,69 @@ +// +// 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.EdgeGateway.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Progress details during installation of updates. + /// + public partial class UpdateInstallProgress + { + /// + /// Initializes a new instance of the UpdateInstallProgress class. + /// + public UpdateInstallProgress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UpdateInstallProgress class. + /// + /// Percentage completed. + /// Number of updates to + /// install. + /// Number of updates + /// installed. + public UpdateInstallProgress(int? percentComplete = default(int?), int? numberOfUpdatesToInstall = default(int?), int? numberOfUpdatesInstalled = default(int?)) + { + PercentComplete = percentComplete; + NumberOfUpdatesToInstall = numberOfUpdatesToInstall; + NumberOfUpdatesInstalled = numberOfUpdatesInstalled; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets percentage completed. + /// + [JsonProperty(PropertyName = "percentComplete")] + public int? PercentComplete { get; private set; } + + /// + /// Gets number of updates to install. + /// + [JsonProperty(PropertyName = "numberOfUpdatesToInstall")] + public int? NumberOfUpdatesToInstall { get; private set; } + + /// + /// Gets number of updates installed. + /// + [JsonProperty(PropertyName = "numberOfUpdatesInstalled")] + public int? NumberOfUpdatesInstalled { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateOperation.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateOperation.cs new file mode 100644 index 000000000000..091295213f22 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateOperation.cs @@ -0,0 +1,24 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for UpdateOperation. + /// + public static class UpdateOperation + { + public const string None = "None"; + public const string Scan = "Scan"; + public const string Download = "Download"; + public const string Install = "Install"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateOperationStage.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateOperationStage.cs new file mode 100644 index 000000000000..2165d2649581 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateOperationStage.cs @@ -0,0 +1,37 @@ +// +// 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.EdgeGateway.Models +{ + + /// + /// Defines values for UpdateOperationStage. + /// + public static class UpdateOperationStage + { + public const string Unknown = "Unknown"; + public const string Initial = "Initial"; + public const string ScanStarted = "ScanStarted"; + public const string ScanComplete = "ScanComplete"; + public const string ScanFailed = "ScanFailed"; + public const string DownloadStarted = "DownloadStarted"; + public const string DownloadComplete = "DownloadComplete"; + public const string DownloadFailed = "DownloadFailed"; + public const string InstallStarted = "InstallStarted"; + public const string InstallComplete = "InstallComplete"; + public const string InstallFailed = "InstallFailed"; + public const string RebootInitiated = "RebootInitiated"; + public const string Success = "Success"; + public const string Failure = "Failure"; + public const string RescanStarted = "RescanStarted"; + public const string RescanComplete = "RescanComplete"; + public const string RescanFailed = "RescanFailed"; + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateSummary.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateSummary.cs new file mode 100644 index 000000000000..0c8f84bd14f5 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UpdateSummary.cs @@ -0,0 +1,221 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Details about ongoing updates and availability of updates on the + /// device. + /// + [Rest.Serialization.JsonTransformation] + public partial class UpdateSummary : ARMBaseModel + { + /// + /// Initializes a new instance of the UpdateSummary class. + /// + public UpdateSummary() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UpdateSummary class. + /// + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// The current version of the device + /// in format: 1.2.17312.13.", + /// The current version of the + /// device in text format. + /// The last time when a scan + /// was done on the device. + /// The time when the last + /// scan job was completed (success/cancelled/failed) on the + /// appliance. + /// The time when the + /// last Download job was completed (success/cancelled/failed) on the + /// appliance. + /// The time when the + /// last Install job was completed (success/cancelled/failed) on the + /// appliance. + /// The number of updates + /// available for the current device version as per the last device + /// scan. + /// The total number + /// of items pending download. + /// The total number + /// of items pending install. + /// Indicates if updates are available and + /// at least one of the updates needs a reboot. Possible values + /// include: 'NeverReboots', 'RequiresReboot', 'RequestReboot' + /// The current update operation. + /// Possible values include: 'None', 'Scan', 'Download', + /// 'Install' + /// The job ID of the download + /// job in progress. + /// The job ID of the install job + /// in progress. + /// The time when + /// the currently running download (if any) started. + /// The time when the + /// currently running install (if any) started. + /// The list of updates available for + /// install. + /// The total size of updates + /// available for download in bytes. + public UpdateSummary(string id = default(string), string name = default(string), string type = default(string), string deviceVersionNumber = default(string), string friendlyDeviceVersionName = default(string), System.DateTime? deviceLastScannedDateTime = default(System.DateTime?), System.DateTime? lastCompletedScanJobDateTime = default(System.DateTime?), System.DateTime? lastCompletedDownloadJobDateTime = default(System.DateTime?), System.DateTime? lastCompletedInstallJobDateTime = default(System.DateTime?), int? totalNumberOfUpdatesAvailable = default(int?), int? totalNumberOfUpdatesPendingDownload = default(int?), int? totalNumberOfUpdatesPendingInstall = default(int?), string rebootBehavior = default(string), string ongoingUpdateOperation = default(string), string inProgressDownloadJobId = default(string), string inProgressInstallJobId = default(string), System.DateTime? inProgressDownloadJobStartedDateTime = default(System.DateTime?), System.DateTime? inProgressInstallJobStartedDateTime = default(System.DateTime?), IList updateTitles = default(IList), double? totalUpdateSizeInBytes = default(double?)) + : base(id, name, type) + { + DeviceVersionNumber = deviceVersionNumber; + FriendlyDeviceVersionName = friendlyDeviceVersionName; + DeviceLastScannedDateTime = deviceLastScannedDateTime; + LastCompletedScanJobDateTime = lastCompletedScanJobDateTime; + LastCompletedDownloadJobDateTime = lastCompletedDownloadJobDateTime; + LastCompletedInstallJobDateTime = lastCompletedInstallJobDateTime; + TotalNumberOfUpdatesAvailable = totalNumberOfUpdatesAvailable; + TotalNumberOfUpdatesPendingDownload = totalNumberOfUpdatesPendingDownload; + TotalNumberOfUpdatesPendingInstall = totalNumberOfUpdatesPendingInstall; + RebootBehavior = rebootBehavior; + OngoingUpdateOperation = ongoingUpdateOperation; + InProgressDownloadJobId = inProgressDownloadJobId; + InProgressInstallJobId = inProgressInstallJobId; + InProgressDownloadJobStartedDateTime = inProgressDownloadJobStartedDateTime; + InProgressInstallJobStartedDateTime = inProgressInstallJobStartedDateTime; + UpdateTitles = updateTitles; + TotalUpdateSizeInBytes = totalUpdateSizeInBytes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the current version of the device in format: + /// 1.2.17312.13.", + /// + [JsonProperty(PropertyName = "properties.deviceVersionNumber")] + public string DeviceVersionNumber { get; set; } + + /// + /// Gets or sets the current version of the device in text format. + /// + [JsonProperty(PropertyName = "properties.friendlyDeviceVersionName")] + public string FriendlyDeviceVersionName { get; set; } + + /// + /// Gets or sets the last time when a scan was done on the device. + /// + [JsonProperty(PropertyName = "properties.deviceLastScannedDateTime")] + public System.DateTime? DeviceLastScannedDateTime { get; set; } + + /// + /// Gets or sets the time when the last scan job was completed + /// (success/cancelled/failed) on the appliance. + /// + [JsonProperty(PropertyName = "properties.lastCompletedScanJobDateTime")] + public System.DateTime? LastCompletedScanJobDateTime { get; set; } + + /// + /// Gets the time when the last Download job was completed + /// (success/cancelled/failed) on the appliance. + /// + [JsonProperty(PropertyName = "properties.lastCompletedDownloadJobDateTime")] + public System.DateTime? LastCompletedDownloadJobDateTime { get; private set; } + + /// + /// Gets the time when the last Install job was completed + /// (success/cancelled/failed) on the appliance. + /// + [JsonProperty(PropertyName = "properties.lastCompletedInstallJobDateTime")] + public System.DateTime? LastCompletedInstallJobDateTime { get; private set; } + + /// + /// Gets the number of updates available for the current device version + /// as per the last device scan. + /// + [JsonProperty(PropertyName = "properties.totalNumberOfUpdatesAvailable")] + public int? TotalNumberOfUpdatesAvailable { get; private set; } + + /// + /// Gets the total number of items pending download. + /// + [JsonProperty(PropertyName = "properties.totalNumberOfUpdatesPendingDownload")] + public int? TotalNumberOfUpdatesPendingDownload { get; private set; } + + /// + /// Gets the total number of items pending install. + /// + [JsonProperty(PropertyName = "properties.totalNumberOfUpdatesPendingInstall")] + public int? TotalNumberOfUpdatesPendingInstall { get; private set; } + + /// + /// Gets indicates if updates are available and at least one of the + /// updates needs a reboot. Possible values include: 'NeverReboots', + /// 'RequiresReboot', 'RequestReboot' + /// + [JsonProperty(PropertyName = "properties.rebootBehavior")] + public string RebootBehavior { get; private set; } + + /// + /// Gets the current update operation. Possible values include: 'None', + /// 'Scan', 'Download', 'Install' + /// + [JsonProperty(PropertyName = "properties.ongoingUpdateOperation")] + public string OngoingUpdateOperation { get; private set; } + + /// + /// Gets the job ID of the download job in progress. + /// + [JsonProperty(PropertyName = "properties.inProgressDownloadJobId")] + public string InProgressDownloadJobId { get; private set; } + + /// + /// Gets the job ID of the install job in progress. + /// + [JsonProperty(PropertyName = "properties.inProgressInstallJobId")] + public string InProgressInstallJobId { get; private set; } + + /// + /// Gets the time when the currently running download (if any) started. + /// + [JsonProperty(PropertyName = "properties.inProgressDownloadJobStartedDateTime")] + public System.DateTime? InProgressDownloadJobStartedDateTime { get; private set; } + + /// + /// Gets the time when the currently running install (if any) started. + /// + [JsonProperty(PropertyName = "properties.inProgressInstallJobStartedDateTime")] + public System.DateTime? InProgressInstallJobStartedDateTime { get; private set; } + + /// + /// Gets the list of updates available for install. + /// + [JsonProperty(PropertyName = "properties.updateTitles")] + public IList UpdateTitles { get; private set; } + + /// + /// Gets the total size of updates available for download in bytes. + /// + [JsonProperty(PropertyName = "properties.totalUpdateSizeInBytes")] + public double? TotalUpdateSizeInBytes { get; private set; } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UploadCertificateRequest.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UploadCertificateRequest.cs new file mode 100644 index 000000000000..b96e7c8a4419 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UploadCertificateRequest.cs @@ -0,0 +1,78 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The upload certificate request. + /// + [Rest.Serialization.JsonTransformation] + public partial class UploadCertificateRequest + { + /// + /// Initializes a new instance of the UploadCertificateRequest class. + /// + public UploadCertificateRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UploadCertificateRequest class. + /// + /// The base64 encoded certificate raw + /// data. + /// The authentication type. Possible + /// values include: 'Invalid', 'AzureActiveDirectory' + public UploadCertificateRequest(string certificate, string authenticationType = default(string)) + { + AuthenticationType = authenticationType; + Certificate = certificate; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the authentication type. Possible values include: + /// 'Invalid', 'AzureActiveDirectory' + /// + [JsonProperty(PropertyName = "properties.authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets the base64 encoded certificate raw data. + /// + [JsonProperty(PropertyName = "properties.certificate")] + public string Certificate { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Certificate == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Certificate"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UploadCertificateResponse.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UploadCertificateResponse.cs new file mode 100644 index 000000000000..f4701bbf39fc --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UploadCertificateResponse.cs @@ -0,0 +1,140 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The upload registration certificate response. + /// + public partial class UploadCertificateResponse + { + /// + /// Initializes a new instance of the UploadCertificateResponse class. + /// + public UploadCertificateResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UploadCertificateResponse class. + /// + /// The resource ID of the Data Box + /// Edge/Gateway device. + /// Azure Active Directory tenant + /// authority. + /// Azure Active Directory tenant ID. + /// Azure Active Directory + /// service principal client ID. + /// Azure Active Directory + /// service principal object ID. + /// The azure management + /// endpoint audience. + /// Specifies authentication type. Possible + /// values include: 'Invalid', 'AzureActiveDirectory' + public UploadCertificateResponse(string resourceId, string aadAuthority, string aadTenantId, string servicePrincipalClientId, string servicePrincipalObjectId, string azureManagementEndpointAudience, string authType = default(string)) + { + AuthType = authType; + ResourceId = resourceId; + AadAuthority = aadAuthority; + AadTenantId = aadTenantId; + ServicePrincipalClientId = servicePrincipalClientId; + ServicePrincipalObjectId = servicePrincipalObjectId; + AzureManagementEndpointAudience = azureManagementEndpointAudience; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies authentication type. Possible values + /// include: 'Invalid', 'AzureActiveDirectory' + /// + [JsonProperty(PropertyName = "authType")] + public string AuthType { get; set; } + + /// + /// Gets or sets the resource ID of the Data Box Edge/Gateway device. + /// + [JsonProperty(PropertyName = "resourceId")] + public string ResourceId { get; set; } + + /// + /// Gets or sets azure Active Directory tenant authority. + /// + [JsonProperty(PropertyName = "aadAuthority")] + public string AadAuthority { get; set; } + + /// + /// Gets or sets azure Active Directory tenant ID. + /// + [JsonProperty(PropertyName = "aadTenantId")] + public string AadTenantId { get; set; } + + /// + /// Gets or sets azure Active Directory service principal client ID. + /// + [JsonProperty(PropertyName = "servicePrincipalClientId")] + public string ServicePrincipalClientId { get; set; } + + /// + /// Gets or sets azure Active Directory service principal object ID. + /// + [JsonProperty(PropertyName = "servicePrincipalObjectId")] + public string ServicePrincipalObjectId { get; set; } + + /// + /// Gets or sets the azure management endpoint audience. + /// + [JsonProperty(PropertyName = "azureManagementEndpointAudience")] + public string AzureManagementEndpointAudience { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ResourceId"); + } + if (AadAuthority == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AadAuthority"); + } + if (AadTenantId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AadTenantId"); + } + if (ServicePrincipalClientId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServicePrincipalClientId"); + } + if (ServicePrincipalObjectId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServicePrincipalObjectId"); + } + if (AzureManagementEndpointAudience == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AzureManagementEndpointAudience"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/User.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/User.cs new file mode 100644 index 000000000000..156d020dde80 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/User.cs @@ -0,0 +1,96 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Represents a user who has access to one or more shares on the Data Box + /// Edge/Gateway device. + /// + [Rest.Serialization.JsonTransformation] + public partial class User : ARMBaseModel + { + /// + /// Initializes a new instance of the User class. + /// + public User() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the User class. + /// + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// The password details. + /// List of shares that the user has + /// rights on. This field should not be specified during user + /// creation. + public User(string id = default(string), string name = default(string), string type = default(string), AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList)) + : base(id, name, type) + { + EncryptedPassword = encryptedPassword; + ShareAccessRights = shareAccessRights; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the password details. + /// + [JsonProperty(PropertyName = "properties.encryptedPassword")] + public AsymmetricEncryptedSecret EncryptedPassword { get; set; } + + /// + /// Gets or sets list of shares that the user has rights on. This field + /// should not be specified during user creation. + /// + [JsonProperty(PropertyName = "properties.shareAccessRights")] + public IList ShareAccessRights { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (EncryptedPassword != null) + { + EncryptedPassword.Validate(); + } + if (ShareAccessRights != null) + { + foreach (var element in ShareAccessRights) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UserAccessRight.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UserAccessRight.cs new file mode 100644 index 000000000000..14b81d61cf6b --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Models/UserAccessRight.cs @@ -0,0 +1,81 @@ +// +// 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.EdgeGateway.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The mapping between a particular user and the access type on the SMB + /// share. + /// + public partial class UserAccessRight + { + /// + /// Initializes a new instance of the UserAccessRight class. + /// + public UserAccessRight() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UserAccessRight class. + /// + /// User ID (already existing in the + /// device). + /// Type of access to be allowed for the user. + /// Possible values include: 'Change', 'Read', 'Custom' + public UserAccessRight(string userId, string accessType) + { + UserId = userId; + AccessType = accessType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets user ID (already existing in the device). + /// + [JsonProperty(PropertyName = "userId")] + public string UserId { get; set; } + + /// + /// Gets or sets type of access to be allowed for the user. Possible + /// values include: 'Change', 'Read', 'Custom' + /// + [JsonProperty(PropertyName = "accessType")] + public string AccessType { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (UserId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "UserId"); + } + if (AccessType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AccessType"); + } + } + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Operations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Operations.cs new file mode 100644 index 000000000000..3254b96f3fe3 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/Operations.cs @@ -0,0 +1,400 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// Operations operations. + /// + internal partial class Operations : IServiceOperations, IOperations + { + /// + /// Initializes a new instance of the Operations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal Operations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// List all the supported operations. + /// + /// + /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.DataBoxEdge/operations").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// List all the supported operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/OperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OperationsExtensions.cs new file mode 100644 index 000000000000..f5f6fa238257 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OperationsExtensions.cs @@ -0,0 +1,87 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// List all the supported operations. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// List all the supported operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List all the supported operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List all the supported operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OperationsStatus.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OperationsStatus.cs new file mode 100644 index 000000000000..0c53cf2be229 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OperationsStatus.cs @@ -0,0 +1,259 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// OperationsStatus operations. + /// + internal partial class OperationsStatus : IServiceOperations, IOperationsStatus + { + /// + /// Initializes a new instance of the OperationsStatus class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal OperationsStatus(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Gets the details of a specified job on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The job name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/operationsStatus/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/OperationsStatusExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OperationsStatusExtensions.cs new file mode 100644 index 000000000000..2c4eff7cfd1e --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OperationsStatusExtensions.cs @@ -0,0 +1,71 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for OperationsStatus. + /// + public static partial class OperationsStatusExtensions + { + /// + /// Gets the details of a specified job on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The job name. + /// + /// + /// The resource group name. + /// + public static Job Get(this IOperationsStatus operations, string deviceName, string name, string resourceGroupName) + { + return operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets the details of a specified job on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The job name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IOperationsStatus operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OrdersOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OrdersOperations.cs new file mode 100644 index 000000000000..073240658c15 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OrdersOperations.cs @@ -0,0 +1,1055 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// OrdersOperations operations. + /// + internal partial class OrdersOperations : IServiceOperations, IOrdersOperations + { + /// + /// Initializes a new instance of the OrdersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal OrdersOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Lists all the orders related to a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDevice", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets a specific order by name. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders/default").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Creates or updates an order. + /// + /// + /// The order details of a device. + /// + /// + /// The order to be created or updated. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string deviceName, Order order, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, order, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the order related to the device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(deviceName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates an order. + /// + /// + /// The order details of a device. + /// + /// + /// The order to be created or updated. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, Order order, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (order == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "order"); + } + if (order != null) + { + order.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("order", order); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders/default").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(order != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(order, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Deletes the order related to the device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders/default").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("DELETE"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the orders related to a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDeviceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/OrdersOperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OrdersOperationsExtensions.cs new file mode 100644 index 000000000000..ed95ac6efe9c --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/OrdersOperationsExtensions.cs @@ -0,0 +1,305 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for OrdersOperations. + /// + public static partial class OrdersOperationsExtensions + { + /// + /// Lists all the orders related to a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static IPage ListByDataBoxEdgeDevice(this IOrdersOperations operations, string deviceName, string resourceGroupName) + { + return operations.ListByDataBoxEdgeDeviceAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all the orders related to a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceAsync(this IOrdersOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a specific order by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static Order Get(this IOrdersOperations operations, string deviceName, string resourceGroupName) + { + return operations.GetAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a specific order by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IOrdersOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates an order. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The order details of a device. + /// + /// + /// The order to be created or updated. + /// + /// + /// The resource group name. + /// + public static Order CreateOrUpdate(this IOrdersOperations operations, string deviceName, Order order, string resourceGroupName) + { + return operations.CreateOrUpdateAsync(deviceName, order, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an order. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The order details of a device. + /// + /// + /// The order to be created or updated. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IOrdersOperations operations, string deviceName, Order order, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(deviceName, order, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the order related to the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static void Delete(this IOrdersOperations operations, string deviceName, string resourceGroupName) + { + operations.DeleteAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the order related to the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IOrdersOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates an order. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The order details of a device. + /// + /// + /// The order to be created or updated. + /// + /// + /// The resource group name. + /// + public static Order BeginCreateOrUpdate(this IOrdersOperations operations, string deviceName, Order order, string resourceGroupName) + { + return operations.BeginCreateOrUpdateAsync(deviceName, order, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an order. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The order details of a device. + /// + /// + /// The order to be created or updated. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IOrdersOperations operations, string deviceName, Order order, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, order, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the order related to the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static void BeginDelete(this IOrdersOperations operations, string deviceName, string resourceGroupName) + { + operations.BeginDeleteAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the order related to the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IOrdersOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all the orders related to a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDataBoxEdgeDeviceNext(this IOrdersOperations operations, string nextPageLink) + { + return operations.ListByDataBoxEdgeDeviceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the orders related to a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceNextAsync(this IOrdersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/RolesOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/RolesOperations.cs new file mode 100644 index 000000000000..8cae621124d5 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/RolesOperations.cs @@ -0,0 +1,1084 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// RolesOperations operations. + /// + internal partial class RolesOperations : IServiceOperations, IRolesOperations + { + /// + /// Initializes a new instance of the RolesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RolesOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Lists all the roles configured in a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDevice", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets a specific role by name. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Create or update a role. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The role properties. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Role role, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, role, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the role on the data box edge device. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a role. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The role properties. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Role role, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (role == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "role"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("role", role); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(role != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(role, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Deletes the role on the data box edge device. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("DELETE"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the roles configured in a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDeviceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/RolesOperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/RolesOperationsExtensions.cs new file mode 100644 index 000000000000..97fda1b3f513 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/RolesOperationsExtensions.cs @@ -0,0 +1,335 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RolesOperations. + /// + public static partial class RolesOperationsExtensions + { + /// + /// Lists all the roles configured in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static IPage ListByDataBoxEdgeDevice(this IRolesOperations operations, string deviceName, string resourceGroupName) + { + return operations.ListByDataBoxEdgeDeviceAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all the roles configured in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceAsync(this IRolesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a specific role by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + public static Role Get(this IRolesOperations operations, string deviceName, string name, string resourceGroupName) + { + return operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a specific role by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IRolesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a role. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The role properties. + /// + /// + /// The resource group name. + /// + public static Role CreateOrUpdate(this IRolesOperations operations, string deviceName, string name, Role role, string resourceGroupName) + { + return operations.CreateOrUpdateAsync(deviceName, name, role, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Create or update a role. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The role properties. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IRolesOperations operations, string deviceName, string name, Role role, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(deviceName, name, role, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the role on the data box edge device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + public static void Delete(this IRolesOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.DeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the role on the data box edge device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IRolesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create or update a role. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The role properties. + /// + /// + /// The resource group name. + /// + public static Role BeginCreateOrUpdate(this IRolesOperations operations, string deviceName, string name, Role role, string resourceGroupName) + { + return operations.BeginCreateOrUpdateAsync(deviceName, name, role, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Create or update a role. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The role properties. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IRolesOperations operations, string deviceName, string name, Role role, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, role, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the role on the data box edge device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + public static void BeginDelete(this IRolesOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.BeginDeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the role on the data box edge device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The role name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IRolesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all the roles configured in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDataBoxEdgeDeviceNext(this IRolesOperations operations, string nextPageLink) + { + return operations.ListByDataBoxEdgeDeviceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the roles configured in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceNextAsync(this IRolesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/SdkInfo_DataBoxEdgeManagementClient.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/SdkInfo_DataBoxEdgeManagementClient.cs new file mode 100644 index 000000000000..254dab387fe9 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/SdkInfo_DataBoxEdgeManagementClient.cs @@ -0,0 +1,49 @@ + +// +// 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.EdgeGateway +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_DataBoxEdgeManagementClient + { + get + { + return new Tuple[] + { + new Tuple("DataBoxEdge", "Alerts", "2019-03-01"), + new Tuple("DataBoxEdge", "BandwidthSchedules", "2019-03-01"), + new Tuple("DataBoxEdge", "Devices", "2019-03-01"), + new Tuple("DataBoxEdge", "Jobs", "2019-03-01"), + new Tuple("DataBoxEdge", "Operations", "2019-03-01"), + new Tuple("DataBoxEdge", "OperationsStatus", "2019-03-01"), + new Tuple("DataBoxEdge", "Orders", "2019-03-01"), + new Tuple("DataBoxEdge", "Roles", "2019-03-01"), + new Tuple("DataBoxEdge", "Shares", "2019-03-01"), + new Tuple("DataBoxEdge", "StorageAccountCredentials", "2019-03-01"), + new Tuple("DataBoxEdge", "Triggers", "2019-03-01"), + new Tuple("DataBoxEdge", "Users", "2019-03-01"), + }.AsEnumerable(); + } + } + // BEGIN: Code Generation Metadata Section + public static readonly String AutoRestVersion = "latest"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/edgegateway/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\Code\\azure-sdk-for-net\\azure-sdk-for-net\\src\\SDKs"; + public static readonly String GithubForkName = "Azure"; + public static readonly String GithubBranchName = "master"; + public static readonly String GithubCommidId = "3f2dbe787b062de8bf8a261b4bff66aff61065d3"; + public static readonly String CodeGenerationErrors = ""; + public static readonly String GithubRepoName = "azure-rest-api-specs"; + // END: Code Generation Metadata Section + } +} + diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/SharesOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/SharesOperations.cs new file mode 100644 index 000000000000..c3293de4a950 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/SharesOperations.cs @@ -0,0 +1,1297 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// SharesOperations operations. + /// + internal partial class SharesOperations : IServiceOperations, ISharesOperations + { + /// + /// Initializes a new instance of the SharesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SharesOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Lists all the shares in a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDevice", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/shares").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets a share by name. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/shares/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Creates a new share or updates an existing share on the device. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The share properties. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Share share, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, share, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the share on the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Refreshes the share metadata with the data from the cloud. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task RefreshWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRefreshWithHttpMessagesAsync(deviceName, name, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates a new share or updates an existing share on the device. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The share properties. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Share share, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (share == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "share"); + } + if (share != null) + { + share.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("share", share); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/shares/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(share != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(share, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Deletes the share on the data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/shares/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("DELETE"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Refreshes the share metadata with the data from the cloud. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginRefreshWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginRefresh", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/shares/{name}/refresh").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the shares in a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDeviceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/SharesOperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/SharesOperationsExtensions.cs new file mode 100644 index 000000000000..9e033e7936af --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/SharesOperationsExtensions.cs @@ -0,0 +1,421 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SharesOperations. + /// + public static partial class SharesOperationsExtensions + { + /// + /// Lists all the shares in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static IPage ListByDataBoxEdgeDevice(this ISharesOperations operations, string deviceName, string resourceGroupName) + { + return operations.ListByDataBoxEdgeDeviceAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all the shares in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceAsync(this ISharesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a share by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + public static Share Get(this ISharesOperations operations, string deviceName, string name, string resourceGroupName) + { + return operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a share by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ISharesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a new share or updates an existing share on the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The share properties. + /// + /// + /// The resource group name. + /// + public static Share CreateOrUpdate(this ISharesOperations operations, string deviceName, string name, Share share, string resourceGroupName) + { + return operations.CreateOrUpdateAsync(deviceName, name, share, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates a new share or updates an existing share on the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The share properties. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this ISharesOperations operations, string deviceName, string name, Share share, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(deviceName, name, share, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the share on the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + public static void Delete(this ISharesOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.DeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the share on the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ISharesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Refreshes the share metadata with the data from the cloud. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + public static void Refresh(this ISharesOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.RefreshAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Refreshes the share metadata with the data from the cloud. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task RefreshAsync(this ISharesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.RefreshWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates a new share or updates an existing share on the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The share properties. + /// + /// + /// The resource group name. + /// + public static Share BeginCreateOrUpdate(this ISharesOperations operations, string deviceName, string name, Share share, string resourceGroupName) + { + return operations.BeginCreateOrUpdateAsync(deviceName, name, share, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates a new share or updates an existing share on the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The share properties. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this ISharesOperations operations, string deviceName, string name, Share share, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, share, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the share on the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + public static void BeginDelete(this ISharesOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.BeginDeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the share on the data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this ISharesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Refreshes the share metadata with the data from the cloud. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + public static void BeginRefresh(this ISharesOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.BeginRefreshAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Refreshes the share metadata with the data from the cloud. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The share name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginRefreshAsync(this ISharesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginRefreshWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all the shares in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDataBoxEdgeDeviceNext(this ISharesOperations operations, string nextPageLink) + { + return operations.ListByDataBoxEdgeDeviceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the shares in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceNextAsync(this ISharesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/StorageAccountCredentialsOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/StorageAccountCredentialsOperations.cs new file mode 100644 index 000000000000..8181247aac7a --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/StorageAccountCredentialsOperations.cs @@ -0,0 +1,1088 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// StorageAccountCredentialsOperations operations. + /// + internal partial class StorageAccountCredentialsOperations : IServiceOperations, IStorageAccountCredentialsOperations + { + /// + /// Initializes a new instance of the StorageAccountCredentialsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal StorageAccountCredentialsOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Gets all the storage account credentials in a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDevice", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccountCredentials").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets the properties of the specified storage account credential. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccountCredentials/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Creates or updates the storage account credential. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The storage account credential. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, StorageAccountCredential storageAccountCredential, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, storageAccountCredential, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the storage account credential. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates the storage account credential. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The storage account credential. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, StorageAccountCredential storageAccountCredential, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (storageAccountCredential == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageAccountCredential"); + } + if (storageAccountCredential != null) + { + storageAccountCredential.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("storageAccountCredential", storageAccountCredential); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccountCredentials/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(storageAccountCredential != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(storageAccountCredential, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Deletes the storage account credential. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccountCredentials/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("DELETE"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the storage account credentials in a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDeviceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/StorageAccountCredentialsOperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/StorageAccountCredentialsOperationsExtensions.cs new file mode 100644 index 000000000000..e3d8c8886ce5 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/StorageAccountCredentialsOperationsExtensions.cs @@ -0,0 +1,335 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for StorageAccountCredentialsOperations. + /// + public static partial class StorageAccountCredentialsOperationsExtensions + { + /// + /// Gets all the storage account credentials in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static IPage ListByDataBoxEdgeDevice(this IStorageAccountCredentialsOperations operations, string deviceName, string resourceGroupName) + { + return operations.ListByDataBoxEdgeDeviceAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets all the storage account credentials in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceAsync(this IStorageAccountCredentialsOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the properties of the specified storage account credential. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + public static StorageAccountCredential Get(this IStorageAccountCredentialsOperations operations, string deviceName, string name, string resourceGroupName) + { + return operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets the properties of the specified storage account credential. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IStorageAccountCredentialsOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates the storage account credential. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The storage account credential. + /// + /// + /// The resource group name. + /// + public static StorageAccountCredential CreateOrUpdate(this IStorageAccountCredentialsOperations operations, string deviceName, string name, StorageAccountCredential storageAccountCredential, string resourceGroupName) + { + return operations.CreateOrUpdateAsync(deviceName, name, storageAccountCredential, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the storage account credential. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The storage account credential. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IStorageAccountCredentialsOperations operations, string deviceName, string name, StorageAccountCredential storageAccountCredential, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(deviceName, name, storageAccountCredential, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the storage account credential. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + public static void Delete(this IStorageAccountCredentialsOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.DeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the storage account credential. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IStorageAccountCredentialsOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates the storage account credential. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The storage account credential. + /// + /// + /// The resource group name. + /// + public static StorageAccountCredential BeginCreateOrUpdate(this IStorageAccountCredentialsOperations operations, string deviceName, string name, StorageAccountCredential storageAccountCredential, string resourceGroupName) + { + return operations.BeginCreateOrUpdateAsync(deviceName, name, storageAccountCredential, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the storage account credential. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The storage account credential. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IStorageAccountCredentialsOperations operations, string deviceName, string name, StorageAccountCredential storageAccountCredential, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, storageAccountCredential, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the storage account credential. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + public static void BeginDelete(this IStorageAccountCredentialsOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.BeginDeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the storage account credential. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The storage account credential name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IStorageAccountCredentialsOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets all the storage account credentials in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDataBoxEdgeDeviceNext(this IStorageAccountCredentialsOperations operations, string nextPageLink) + { + return operations.ListByDataBoxEdgeDeviceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the storage account credentials in a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceNextAsync(this IStorageAccountCredentialsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/TriggersOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/TriggersOperations.cs new file mode 100644 index 000000000000..e7dd39927089 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/TriggersOperations.cs @@ -0,0 +1,1084 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// TriggersOperations operations. + /// + internal partial class TriggersOperations : IServiceOperations, ITriggersOperations + { + /// + /// Initializes a new instance of the TriggersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal TriggersOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Lists all the triggers configured in the device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDevice", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Get a specific trigger by name. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Creates or updates a trigger. + /// + /// + /// Creates or updates a trigger + /// + /// + /// The trigger name. + /// + /// + /// The trigger. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Trigger trigger, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, trigger, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the trigger on the gateway device. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates a trigger. + /// + /// + /// Creates or updates a trigger + /// + /// + /// The trigger name. + /// + /// + /// The trigger. + /// + /// + /// The resource group name. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, Trigger trigger, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (trigger == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "trigger"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("trigger", trigger); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(trigger != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(trigger, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Deletes the trigger on the gateway device. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("DELETE"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the triggers configured in the device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDeviceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/TriggersOperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/TriggersOperationsExtensions.cs new file mode 100644 index 000000000000..cf4c5adb1d6e --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/TriggersOperationsExtensions.cs @@ -0,0 +1,335 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for TriggersOperations. + /// + public static partial class TriggersOperationsExtensions + { + /// + /// Lists all the triggers configured in the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static IPage ListByDataBoxEdgeDevice(this ITriggersOperations operations, string deviceName, string resourceGroupName) + { + return operations.ListByDataBoxEdgeDeviceAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all the triggers configured in the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceAsync(this ITriggersOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a specific trigger by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + public static Trigger Get(this ITriggersOperations operations, string deviceName, string name, string resourceGroupName) + { + return operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get a specific trigger by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ITriggersOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a trigger. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Creates or updates a trigger + /// + /// + /// The trigger name. + /// + /// + /// The trigger. + /// + /// + /// The resource group name. + /// + public static Trigger CreateOrUpdate(this ITriggersOperations operations, string deviceName, string name, Trigger trigger, string resourceGroupName) + { + return operations.CreateOrUpdateAsync(deviceName, name, trigger, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a trigger. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Creates or updates a trigger + /// + /// + /// The trigger name. + /// + /// + /// The trigger. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this ITriggersOperations operations, string deviceName, string name, Trigger trigger, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(deviceName, name, trigger, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the trigger on the gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + public static void Delete(this ITriggersOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.DeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the trigger on the gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ITriggersOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates a trigger. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Creates or updates a trigger + /// + /// + /// The trigger name. + /// + /// + /// The trigger. + /// + /// + /// The resource group name. + /// + public static Trigger BeginCreateOrUpdate(this ITriggersOperations operations, string deviceName, string name, Trigger trigger, string resourceGroupName) + { + return operations.BeginCreateOrUpdateAsync(deviceName, name, trigger, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a trigger. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Creates or updates a trigger + /// + /// + /// The trigger name. + /// + /// + /// The trigger. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this ITriggersOperations operations, string deviceName, string name, Trigger trigger, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, trigger, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the trigger on the gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + public static void BeginDelete(this ITriggersOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.BeginDeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the trigger on the gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The trigger name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this ITriggersOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all the triggers configured in the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDataBoxEdgeDeviceNext(this ITriggersOperations operations, string nextPageLink) + { + return operations.ListByDataBoxEdgeDeviceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the triggers configured in the device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceNextAsync(this ITriggersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/UsersOperations.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/UsersOperations.cs new file mode 100644 index 000000000000..011903039489 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/UsersOperations.cs @@ -0,0 +1,1110 @@ +// +// 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.EdgeGateway +{ + 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; + + /// + /// UsersOperations operations. + /// + internal partial class UsersOperations : IServiceOperations, IUsersOperations + { + /// + /// Initializes a new instance of the UsersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal UsersOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Gets all the users registered on a data box edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceWithHttpMessagesAsync(string deviceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDevice", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/users").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Gets the properties of the specified user. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// 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 deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/users/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Creates a new user or updates an existing user's information on a data box + /// edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The password details. + /// + /// + /// List of shares that the user has rights on. This field should not be + /// specified during user creation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, resourceGroupName, encryptedPassword, shareAccessRights, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the user on a databox edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates a new user or updates an existing user's information on a data box + /// edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The password details. + /// + /// + /// List of shares that the user has rights on. This field should not be + /// specified during user creation. + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (encryptedPassword != null) + { + encryptedPassword.Validate(); + } + if (shareAccessRights != null) + { + foreach (var element in shareAccessRights) + { + if (element != null) + { + element.Validate(); + } + } + } + User user = new User(); + if (encryptedPassword != null || shareAccessRights != null) + { + user.EncryptedPassword = encryptedPassword; + user.ShareAccessRights = shareAccessRights; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("user", user); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/users/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(user != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(user, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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; + } + + /// + /// Deletes the user on a databox edge/gateway device. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string deviceName, string name, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("name", name); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/users/{name}").ToString(); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("DELETE"); + _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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the users registered on a data box edge/gateway device. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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>> ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDataBoxEdgeDeviceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + 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); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + 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/EdgeGateway/Management.EdgeGateway/Generated/UsersOperationsExtensions.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/UsersOperationsExtensions.cs new file mode 100644 index 000000000000..e6870a2d920d --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Generated/UsersOperationsExtensions.cs @@ -0,0 +1,357 @@ +// +// 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.EdgeGateway +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for UsersOperations. + /// + public static partial class UsersOperationsExtensions + { + /// + /// Gets all the users registered on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + public static IPage ListByDataBoxEdgeDevice(this IUsersOperations operations, string deviceName, string resourceGroupName) + { + return operations.ListByDataBoxEdgeDeviceAsync(deviceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets all the users registered on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceAsync(this IUsersOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the properties of the specified user. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + public static User Get(this IUsersOperations operations, string deviceName, string name, string resourceGroupName) + { + return operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets the properties of the specified user. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IUsersOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a new user or updates an existing user's information on a data box + /// edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The password details. + /// + /// + /// List of shares that the user has rights on. This field should not be + /// specified during user creation. + /// + public static User CreateOrUpdate(this IUsersOperations operations, string deviceName, string name, string resourceGroupName, AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList)) + { + return operations.CreateOrUpdateAsync(deviceName, name, resourceGroupName, encryptedPassword, shareAccessRights).GetAwaiter().GetResult(); + } + + /// + /// Creates a new user or updates an existing user's information on a data box + /// edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The password details. + /// + /// + /// List of shares that the user has rights on. This field should not be + /// specified during user creation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IUsersOperations operations, string deviceName, string name, string resourceGroupName, AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(deviceName, name, resourceGroupName, encryptedPassword, shareAccessRights, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the user on a databox edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + public static void Delete(this IUsersOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.DeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the user on a databox edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IUsersOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates a new user or updates an existing user's information on a data box + /// edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The password details. + /// + /// + /// List of shares that the user has rights on. This field should not be + /// specified during user creation. + /// + public static User BeginCreateOrUpdate(this IUsersOperations operations, string deviceName, string name, string resourceGroupName, AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList)) + { + return operations.BeginCreateOrUpdateAsync(deviceName, name, resourceGroupName, encryptedPassword, shareAccessRights).GetAwaiter().GetResult(); + } + + /// + /// Creates a new user or updates an existing user's information on a data box + /// edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The password details. + /// + /// + /// List of shares that the user has rights on. This field should not be + /// specified during user creation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IUsersOperations operations, string deviceName, string name, string resourceGroupName, AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, resourceGroupName, encryptedPassword, shareAccessRights, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the user on a databox edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + public static void BeginDelete(this IUsersOperations operations, string deviceName, string name, string resourceGroupName) + { + operations.BeginDeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the user on a databox edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The device name. + /// + /// + /// The user name. + /// + /// + /// The resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IUsersOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets all the users registered on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDataBoxEdgeDeviceNext(this IUsersOperations operations, string nextPageLink) + { + return operations.ListByDataBoxEdgeDeviceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the users registered on a data box edge/gateway device. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDataBoxEdgeDeviceNextAsync(this IUsersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDataBoxEdgeDeviceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Microsoft.Azure.Management.EdgeGateway.csproj b/src/SDKs/EdgeGateway/Management.EdgeGateway/Microsoft.Azure.Management.EdgeGateway.csproj new file mode 100644 index 000000000000..482280f4d7ee --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Microsoft.Azure.Management.EdgeGateway.csproj @@ -0,0 +1,27 @@ + + + + + + + Microsoft.Azure.Management.EdgeGateway + Microsoft Azure Management EdgeGateway library + Microsoft.Azure.Management.EdgeGateway + 0.8.0-preview + Microsoft Azure EdgeGateway management;EdgeGateway;EdgeGateway management; + + + + + + + $(SdkTargetFx) + + + + + + + diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/Properties/AssemblyInfo.cs b/src/SDKs/EdgeGateway/Management.EdgeGateway/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..7f1ce5d126ce --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/Properties/AssemblyInfo.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Reflection; +using System.Resources; + +[assembly: AssemblyTitle("Microsoft Azure DataBox Edge Gateway Management Library")] +[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure DataBox Edge Gateway Management Resources.")] + +[assembly: AssemblyVersion("0.8.0.0")] +[assembly: AssemblyFileVersion("0.8.0.0")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Microsoft Azure .NET SDK")] +[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] diff --git a/src/SDKs/EdgeGateway/Management.EdgeGateway/generate.ps1 b/src/SDKs/EdgeGateway/Management.EdgeGateway/generate.ps1 new file mode 100644 index 000000000000..072308c33796 --- /dev/null +++ b/src/SDKs/EdgeGateway/Management.EdgeGateway/generate.ps1 @@ -0,0 +1 @@ +Start-AutoRestCodeGeneration -ResourceProvider "edgegateway/resource-manager" -AutoRestVersion "latest" diff --git a/src/SDKs/_metadata/edgegateway_resource-manager.txt b/src/SDKs/_metadata/edgegateway_resource-manager.txt new file mode 100644 index 000000000000..3ef54cf82152 --- /dev/null +++ b/src/SDKs/_metadata/edgegateway_resource-manager.txt @@ -0,0 +1,14 @@ +Installing AutoRest version: latest +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/edgegateway/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\Code\azure-sdk-for-net\azure-sdk-for-net\src\SDKs +2019-02-19 09:24:33 UTC +Azure-rest-api-specs repository information +GitHub fork: Azure +Branch: master +Commit: 3f2dbe787b062de8bf8a261b4bff66aff61065d3 +AutoRest information +Requested version: latest +Bootstrapper version: autorest@2.0.4283