diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsBookShipmentPickUp.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsBookShipmentPickUp.json deleted file mode 100644 index 6d714c782bc2..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsBookShipmentPickUp.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "jobName": "sdktest5497", - "api-version": "2018-01-01", - "shipmentPickUpRequest": { - "startTime": "2018-04-15T18:30:00Z", - "endTime": "2018-04-17T18:30:00Z", - "shipmentLocation": "Front desk" - } - }, - "responses": { - "200": { - "body": { - "confirmationNumber": "2929602E9CP", - "readyByTime": "2023-04-19T00:00:00Z" - } - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsCancel.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsCancel.json deleted file mode 100644 index aa6aee09f5ac..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsCancel.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "jobName": "SdkJob8558", - "api-version": "2018-01-01", - "$expand": "details", - "cancellationReason": { - "reason": "CancelTest" - } - }, - "responses": { - "204": { - "body": "" - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsCreate.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsCreate.json deleted file mode 100644 index 8383e15ec753..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsCreate.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "jobName": "SdkJob8558", - "api-version": "2018-01-01", - "jobResource": { - "properties": { - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/kvtestWUSrg/providers/microsoft.storage/storageAccounts/kvtestwus" - } - ], - "details": { - "contactDetails": { - "contactName": "Public SDK Test", - "phone": "1234567890", - "phoneExtension": "1234", - "emailList": [ - "testing@microsoft.com" - ] - }, - "shippingAddress": { - "streetAddress1": "16 TOWNSEND ST", - "streetAddress2": "Unit 1", - "city": "San Francisco", - "stateOrProvince": "CA", - "country": "US", - "postalCode": "94107", - "companyName": "Microsoft", - "addressType": "Commercial" - } - } - }, - "location": "westus", - "sku": { - "name": "DataBox" - } - } - }, - "responses": { - "202": { - "body": "" - }, - "200": { - "body": { - "properties": { - "deviceType": "Pod", - "isCancellable": true, - "isShippingAddressEditable": true, - "status": "DeviceOrdered", - "startTime": "2018-04-13T16:28:38.9999793+05:30", - "deliveryPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "returnPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/kvtestWUSrg/providers/microsoft.storage/storageAccounts/kvtestwus" - } - ] - }, - "location": "westus", - "tags": {}, - "sku": { - "name": "DataBox" - }, - "name": "SdkJob8558", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/SdkRg2508/providers/Microsoft.DataBox/jobs/SdkJob8558", - "type": "Microsoft.DataBox/jobs" - } - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsDelete.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsDelete.json deleted file mode 100644 index dbaf09e74212..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "jobName": "SdkJob8558", - "api-version": "2018-01-01", - "$expand": "details" - }, - "responses": { - "204": { - "body": "" - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsDownloadShippingLabelUri.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsDownloadShippingLabelUri.json deleted file mode 100644 index e5a8a9d34663..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsDownloadShippingLabelUri.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "jobName": "sdktest5497", - "api-version": "2018-01-01" - }, - "responses": { - "200": { - "body": { - "shippingLabelSasUri": "https://wusintd2cis2secx0fo9.blob.core.windows.net/dummycontainer/1Z12345E8791315509.PDF?sv=2016-05-31&sr=b&sig=ijNPoWPcbt0BNxTCK9p6nta4jsOr2hzJpgWyyE7AU0k%3D&st=2018-04-16T04%3A42%3A31Z&se=2018-04-16T05%3A12%3A31Z&sp=r" - } - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsGetCopyLogsUri.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsGetCopyLogsUri.json deleted file mode 100644 index bdf4cc32c8d0..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsGetCopyLogsUri.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "jobName": "sdktest5497", - "api-version": "2018-01-01" - }, - "responses": { - "200": { - "body": { - "copyLogDetails": [ - { - "accountName": "devicemanagertest1", - "copyLogLink": "test1234", - "copyLogDetailsType": "Pod" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsList.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsList.json deleted file mode 100644 index cf18a05a7fe2..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsList.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "api-version": "2018-01-01", - "$expand": "details" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "deviceType": "Pod", - "isCancellable": false, - "isShippingAddressEditable": false, - "status": "Cancelled", - "startTime": "2017-06-15T10:31:21.3912273+05:30", - "deliveryPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "returnPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/2c3771b6-6239-464c-9973-7995b0f45a6b/resourceGroups/CloudServiceCisVaultST14113BRS/providers/Microsoft.Storage/storageAccounts/devicemanagertest1" - } - ], - "cancellationReason": "Old job which is still in ordered state cancelled by the service" - }, - "location": "westus", - "tags": {}, - "sku": { - "name": "DataBox" - }, - "name": "abbhat-test", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourcegroups/abbhat-RG/providers/Microsoft.DataBox/jobs/abbhat-test", - "type": "Microsoft.DataBox/jobs" - }, - { - "properties": { - "deviceType": "Pod", - "isCancellable": false, - "isShippingAddressEditable": false, - "status": "Cancelled", - "startTime": "2017-06-23T15:19:15.4076847+05:30", - "deliveryPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "returnPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/2c3771b6-6239-464c-9973-7995b0f45a6b/resourceGroups/CloudServiceCisVaultST14113BRS/providers/Microsoft.Storage/storageAccounts/devicemanagertest1" - } - ], - "cancellationReason": "Old job which is still in ordered state cancelled by the service" - }, - "location": "westus", - "tags": {}, - "sku": { - "name": "DataBox" - }, - "name": "abbhat-test-Clone", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourcegroups/abbhat-RG/providers/Microsoft.DataBox/jobs/abbhat-test-Clone", - "type": "Microsoft.DataBox/jobs" - }, - { - "properties": { - "deviceType": "Pod", - "isCancellable": false, - "isShippingAddressEditable": false, - "status": "Cancelled", - "startTime": "2018-03-19T19:29:50.3094441+05:30", - "deliveryPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "returnPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/fgsdfgdfgsdfg/providers/Microsoft.Storage/storageAccounts/aaadsfdblob" - } - ], - "cancellationReason": "test job" - }, - "location": "westus", - "tags": {}, - "sku": { - "name": "DataBox" - }, - "name": "abbhatjob-testcancel", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourcegroups/abbhat-RG/providers/Microsoft.DataBox/jobs/abbhatjob-testcancel", - "type": "Microsoft.DataBox/jobs" - }, - { - "properties": { - "deviceType": "Pod", - "isCancellable": false, - "isShippingAddressEditable": false, - "status": "Completed", - "startTime": "2018-04-10T13:35:54.463846+05:30", - "deliveryPackage": { - "carrierName": "UPS", - "trackingId": "1Z12345E8791315509", - "trackingUrl": "https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=1Z12345E8791315509" - }, - "returnPackage": { - "carrierName": "UPS", - "trackingId": "1Z12345E8791315509", - "trackingUrl": "https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=1Z12345E8791315509" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/abbhattestRG/providers/Microsoft.Storage/storageAccounts/abbhattest2" - } - ] - }, - "location": "westus", - "tags": {}, - "sku": { - "name": "DataBox" - }, - "name": "abbhattest10Apr", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourcegroups/abbhat-RG/providers/Microsoft.DataBox/jobs/abbhattest10Apr", - "type": "Microsoft.DataBox/jobs" - }, - { - "properties": { - "deviceType": "Pod", - "isCancellable": true, - "isShippingAddressEditable": true, - "status": "DeviceOrdered", - "startTime": "2018-04-10T20:43:52.0776009+05:30", - "deliveryPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "returnPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/sunil/providers/Microsoft.Storage/storageAccounts/111sunilais" - } - ] - }, - "location": "westus", - "tags": {}, - "sku": { - "name": "DataBox" - }, - "name": "abbhattest10Apr2", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourcegroups/abbhat-RG/providers/Microsoft.DataBox/jobs/abbhattest10Apr2", - "type": "Microsoft.DataBox/jobs" - }, - { - "properties": { - "deviceType": "Pod", - "isCancellable": false, - "isShippingAddressEditable": false, - "status": "Completed", - "startTime": "2018-04-10T22:16:02.9830109+05:30", - "deliveryPackage": { - "carrierName": "UPS", - "trackingId": "1Z12345E8791315509", - "trackingUrl": "https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=1Z12345E8791315509" - }, - "returnPackage": { - "carrierName": "UPS", - "trackingId": "1Z12345E8791315509", - "trackingUrl": "https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=1Z12345E8791315509" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/abbhat-RG/providers/Microsoft.Storage/storageAccounts/abbhattest" - } - ] - }, - "location": "westus", - "tags": {}, - "sku": { - "name": "DataBox" - }, - "name": "abbhattestApr10-2", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourcegroups/abbhat-RG/providers/Microsoft.DataBox/jobs/abbhattestApr10-2", - "type": "Microsoft.DataBox/jobs" - }, - { - "properties": { - "deviceType": "Disk", - "isCancellable": true, - "isShippingAddressEditable": true, - "status": "DeviceOrdered", - "startTime": "2018-04-12T18:27:08.0966918+05:30", - "deliveryPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "returnPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/sunil/providers/Microsoft.Storage/storageAccounts/111sunilais" - } - ] - }, - "location": "westus", - "tags": {}, - "sku": { - "name": "DataBoxDisk" - }, - "name": "AndiDisk12April-Clone", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourcegroups/abbhat-RG/providers/Microsoft.DataBox/jobs/AndiDisk12April-Clone", - "type": "Microsoft.DataBox/jobs" - } - ], - "nextLink": "https://management.azure.com/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/providers/Microsoft.DataBox/jobs?api-version=2018-01-01&%24skiptoken=7VVdb5swFP0v0banJQEKKVSqpnwATQQ04cuBN4wJMdhAA4GQqv99bqN11bRV2tP2UMkPtu%2f1ucf3%2bvg%2bDork1Bi4yOvBzeMAqI7rOYObwb5pqvpmPKZREaUJTYpmFJ2Ph2QUl3RcH2EdH3DV4LKox1fxZIIigR9OuOtkKCpQHMoQ7YY7QdpBKO%2buOWk3rg5li1FyqMcmjg9lXe6a0SJqoll5GmclrL9FFR62zM4gbwWOl4ccz8aXT3WOK7fMk%2bJ2vVBECLoUUb%2bPBdLCjMOmI3ZLPCOQWm2ok2N45jDa2tRwVWGZyZ8FuNiU8kZQjohZEdC4CChHX1cOIRAv1nS5OC2gIDGLxAdbu2JzDwoNgZlozfE0Xc6nsv8aU%2byNbCobfEjiwmK%2bryjzabrWbCnWPYbr6xqGusf8fuwwHs9I6VqVSHJnb4Ltiosu0Yxwm7MzpqOygJpl5lzvUt6JVP7B3tr3Ua6eATE7U1W2jjszfX1fgRyFSKseHFeLoFdVLodCk%2bNVn%2fJBkq9oQFAdUau531bYJGXn6gxPt%2b9sSrAp7KnrBVIMlr1TlLLB%2fYnRL5wdeIV%2bcuUtrGXQDydBZoHEz3u%2fsEOgrq4CP%2bYh2U82NMwgsF9iRRppHKqEQFtJIFNFxKe9CfaRo63q4GzZhtu1LvVFpK1axDUkcd%2fkXtf6UPA5V1eyS32ec%2b7drSoItD5hJ1m2f%2bPxwn7Rte9Wn93eamHBql74e%2fZGWkjsNhL84zr9fIXYGHx9EcVctVx7anxo40MbF7W%2bqw3hfv4X2gD20ctm2MzIORD4LNEu2mHrE%2fBRjcCmdzMtM4uZAECl%2fddaedWJ6k3Xb%2fpIVSL2odd1QvlRHPejuinZX08rkow6XKCyq%2f9Fexk8PX0H" - } - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsListByResourceGroup.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsListByResourceGroup.json deleted file mode 100644 index 98dbe476ce58..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsListByResourceGroup.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "api-version": "2018-01-01", - "$expand": "details" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "deviceType": "Pod", - "isCancellable": true, - "isShippingAddressEditable": true, - "status": "DeviceOrdered", - "startTime": "2018-04-13T16:28:38.9999793+05:30", - "deliveryPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "returnPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/kvtestWUSrg/providers/microsoft.storage/storageAccounts/kvtestwus" - } - ] - }, - "location": "westus", - "tags": {}, - "sku": { - "name": "DataBox" - }, - "name": "SdkJob8558", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/SdkRg2508/providers/Microsoft.DataBox/jobs/SdkJob8558", - "type": "Microsoft.DataBox/jobs" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsListSecrets.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsListSecrets.json deleted file mode 100644 index 425d3fc73e2e..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsListSecrets.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "jobName": "sdktest5497", - "api-version": "2018-01-01" - }, - "responses": { - "200": { - "body": { - "jobName": "sdktest5497", - "deviceType": "Pod", - "jobSecrets": { - "podSecrets": [ - { - "deviceSerialNumber": "abbhatipv1epd", - "devicePassword": "GN7$gt]W9", - "accountCredentialDetails": [ - { - "accountName": "devicemanagertest1", - "shareCredentialDetails": [ - { - "shareName": "devicemanagertest1_PageBlob", - "userName": "devicemanagertest1", - "password": "E]vP#4y7" - }, - { - "shareName": "devicemanagertest1_BlockBlob", - "userName": "devicemanagertest1", - "password": "E]vP#4y7" - }, - { - "shareName": "devicemanagertest1_AzFile", - "userName": "devicemanagertest1", - "password": "E]vP#4y7" - } - ] - } - ] - } - ], - "jobSecretsType": "Pod" - } - } - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsReportIssue.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsReportIssue.json deleted file mode 100644 index 96e42eae7f9e..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsReportIssue.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "jobName": "sdktest5497", - "api-version": "2018-01-01", - "reportIssueDetails": { - "issueType": "DeviceFailure", - "deviceIssueType": "DeviceNotBootingUp" - } - }, - "responses": { - "204": { - "body": "" - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsUpdate.json b/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsUpdate.json deleted file mode 100644 index 94c4d4ceede6..000000000000 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsUpdate.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "jobName": "SdkJob8558", - "api-version": "2018-01-01", - "$expand": "details", - "jobResourceUpdateParameter": { - "properties": { - "details": { - "contactDetails": { - "contactName": "Update Job", - "phone": "1234567890", - "phoneExtension": "1234", - "emailList": [ - "testing@microsoft.com" - ] - }, - "shippingAddress": { - "streetAddress1": "16 TOWNSEND ST", - "streetAddress2": "Unit 1", - "city": "San Francisco", - "stateOrProvince": "CA", - "country": "US", - "postalCode": "94107", - "companyName": "Microsoft", - "addressType": "Commercial" - } - } - } - } - }, - "responses": { - "202": { - "body": "" - }, - "200": { - "body": { - "properties": { - "deviceType": "Pod", - "isCancellable": true, - "isShippingAddressEditable": true, - "status": "DeviceOrdered", - "startTime": "2018-04-13T16:28:38.9999793+05:30", - "deliveryPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "returnPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/kvtestWUSrg/providers/microsoft.storage/storageAccounts/kvtestwus" - } - ] - }, - "location": "westus", - "tags": {}, - "sku": { - "name": "DataBox" - }, - "name": "SdkJob8558", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/SdkRg2508/providers/Microsoft.DataBox/jobs/SdkJob8558", - "type": "Microsoft.DataBox/jobs" - } - } - } -} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/databox.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/databox.json similarity index 64% rename from specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/databox.json rename to specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/databox.json index a3377ac231ef..e36656b72347 100644 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/databox.json +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/databox.json @@ -45,8 +45,8 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "OperationsList": { - "$ref": "./examples/OperationsList.json" + "OperationsGet": { + "$ref": "./examples/OperationsGet.json" } } } @@ -142,8 +142,8 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "ServiceListAvailableSkus": { - "$ref": "./examples/ServiceListAvailableSkus.json" + "AvailableSkusPost": { + "$ref": "./examples/AvailableSkusPost.json" } } } @@ -190,8 +190,8 @@ } }, "x-ms-examples": { - "ServiceValidateAddress": { - "$ref": "./examples/ServiceValidateAddress.json" + "ValidateAddressPost": { + "$ref": "./examples/ValidateAddressPost.json" } } } @@ -290,6 +290,21 @@ "x-ms-examples": { "JobsGet": { "$ref": "./examples/JobsGet.json" + }, + "JobsGet1": { + "$ref": "./examples/JobsGet1.json" + }, + "JobsGet2": { + "$ref": "./examples/JobsGet2.json" + }, + "JobsGet3": { + "$ref": "./examples/JobsGet3.json" + }, + "JobsGet4": { + "$ref": "./examples/JobsGet4.json" + }, + "JobsGet5": { + "$ref": "./examples/JobsGet5.json" } } }, @@ -373,16 +388,20 @@ } ], "responses": { + "202": { + "description": "Accepted request for delete Job." + }, "204": { "description": "Job deleted." } }, + "x-ms-long-running-operation": true, "x-ms-examples": { - "JobsDelete": { - "$ref": "./examples/JobsDelete.json" + "JobsDelete": { + "$ref": "./examples/JobsDelete.json" + } } - } - }, + }, "patch": { "tags": [ "Jobs" @@ -436,11 +455,11 @@ } }, "x-ms-long-running-operation": true, - "x-ms-examples": { - "JobsUpdate": { - "$ref": "./examples/JobsUpdate.json" + "x-ms-examples": { + "JobsPatch": { + "$ref": "./examples/JobsPatch.json" + } } - } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/bookShipmentPickUp": { @@ -488,8 +507,8 @@ } }, "x-ms-examples": { - "JobsBookShipmentPickUp": { - "$ref": "./examples/JobsBookShipmentPickUp.json" + "BookShipmentPickupPost": { + "$ref": "./examples/BookShipmentPickupPost.json" } } } @@ -536,103 +555,19 @@ } }, "x-ms-examples": { - "JobsCancel": { - "$ref": "./examples/JobsCancel.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/copyLogsUri": { - "post": { - "tags": [ - "Jobs" - ], - "description": "Provides list of copy logs uri.", - "operationId": "Jobs_GetCopyLogsUri", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/jobNameParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Copy logs uri.", - "schema": { - "$ref": "#/definitions/GetCopyLogsUriOutput" - } - } - }, - "x-ms-examples": { - "JobsGetCopyLogsUri": { - "$ref": "./examples/JobsGetCopyLogsUri.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/downloadShippingLabel": { - "post": { - "tags": [ - "Jobs" - ], - "description": "Get shipping label sas uri.", - "operationId": "Jobs_DownloadShippingLabelUri", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/jobNameParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Shipping label sas uri.", - "schema": { - "$ref": "#/definitions/ShippingLabelDetails" + "JobsCancelPost": { + "$ref": "./examples/JobsCancelPost.json" } } - }, - "x-ms-examples": { - "JobsDownloadShippingLabelUri": { - "$ref": "./examples/JobsDownloadShippingLabelUri.json" - } - } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listSecrets": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials": { "post": { "tags": [ "Jobs" ], "description": "This method gets the unencrypted secrets related to the job.", - "operationId": "Jobs_ListSecrets", + "operationId": "Jobs_ListCredentials", "consumes": [ "application/json" ], @@ -655,9 +590,9 @@ ], "responses": { "200": { - "description": "The unencrypted secrets of the job.", + "description": "List of unencrypted credentials of the job.", "schema": { - "$ref": "#/definitions/UnencryptedSecrets" + "$ref": "#/definitions/UnencryptedCredentialsList" } } }, @@ -665,103 +600,35 @@ "nextLinkName": null }, "x-ms-examples": { - "JobsListSecrets": { - "$ref": "./examples/JobsListSecrets.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/reportIssue": { - "post": { - "tags": [ - "Jobs" - ], - "description": "Reports an issue.", - "operationId": "Jobs_ReportIssue", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/jobNameParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "reportIssueDetails", - "in": "body", - "description": "Details of reported issue.", - "required": true, - "schema": { - "$ref": "#/definitions/ReportIssueDetails" - } - } - ], - "responses": { - "204": { - "description": "Accepted issue report." - } - }, - "x-ms-examples": { - "JobsReportIssue": { - "$ref": "./examples/JobsReportIssue.json" + "JobsListCredentials": { + "$ref": "./examples/JobsListCredentials.json" } } } } }, "definitions": { - "AccountCopyLogDetails": { - "description": "Copy log details for an storage account", - "required": [ - "accountName", - "copyLogLink" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/CopyLogDetails" - } - ], - "properties": { - "accountName": { - "description": "Destination account name.", - "type": "string" - }, - "copyLogLink": { - "description": "Link for copy logs.", - "type": "string" - } - }, - "x-ms-discriminator-value": "Pod" - }, "AccountCredentialDetails": { "description": "Credential details of the account.", - "required": [ - "shareCredentialDetails" - ], "type": "object", "properties": { "accountName": { "description": "Name of the account.", - "type": "string" + "type": "string", + "readOnly": true + }, + "accountConnectionString": { + "description": "Connection string of the account endpoint to use the account as a storage endpoint on the device.", + "type": "string", + "readOnly": true }, "shareCredentialDetails": { "description": "Per share level unencrypted access credentials.", "type": "array", "items": { "$ref": "#/definitions/ShareCredentialDetails" - } + }, + "readOnly": true } } }, @@ -772,6 +639,7 @@ "properties": { "$ref": "#/definitions/AddressValidationProperties", "description": "The address validation properties.", + "readOnly": true, "x-ms-client-flatten": true } } @@ -788,9 +656,24 @@ "Ambiguous" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "AddressValidationStatus", - "modelAsString": false + "modelAsExtensible": true, + "values": [ + { + "value": "Valid", + "description": "Address provided is valid." + }, + { + "value": "Invalid", + "description": "Address provided is invalid or not supported." + }, + { + "value": "Ambiguous", + "description": "Address provided is ambiguous, please choose one of the alternate addresses returned." + } + ] } }, "alternateAddresses": { @@ -798,7 +681,24 @@ "type": "array", "items": { "$ref": "#/definitions/ShippingAddress" - } + }, + "readOnly": true + } + } + }, + "ApplianceNetworkConfiguration": { + "description": "The Network Adapter configuration of a DataBox.", + "type": "object", + "properties": { + "name": { + "description": "Name of the network.", + "type": "string", + "readOnly": true + }, + "macAddress": { + "description": "Mac Address.", + "type": "string", + "readOnly": true } } }, @@ -840,7 +740,13 @@ "type": "string", "x-ms-enum": { "name": "TransferType", - "modelAsString": false + "modelAsExtensible": true, + "values": [ + { + "value": "ImportToAzure", + "description": "Import data to azure." + } + ] } }, "country": { @@ -850,14 +756,41 @@ "location": { "description": "Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01", "type": "string" + }, + "skuNames": { + "description": "Sku Names to filter for available skus", + "type": "array", + "items": { + "enum": [ + "DataBox", + "DataBoxDisk", + "DataBoxHeavy" + ], + "type": "string", + "x-ms-enum": { + "name": "SkuName", + "modelAsExtensible": true, + "values": [ + { + "value": "DataBox", + "description": "Databox." + }, + { + "value": "DataBoxDisk", + "description": "DataboxDisk." + }, + { + "value": "DataBoxHeavy", + "description": "DataboxHeavy." + } + ] + } + } } } }, "AvailableSkusResult": { "description": "The available skus operation response.", - "required": [ - "value" - ], "type": "object", "properties": { "value": { @@ -865,7 +798,8 @@ "type": "array", "items": { "$ref": "#/definitions/SkuInformation" - } + }, + "readOnly": true }, "nextLink": { "description": "Link for the next set of skus.", @@ -873,46 +807,6 @@ } } }, - "CabinetJobSecrets": { - "description": "The secrets related to a cabinet job.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/JobSecrets" - } - ], - "properties": { - "cabinetPodSecrets": { - "description": "Contains the list of secret objects for a cabinet job.", - "type": "array", - "items": { - "$ref": "#/definitions/CabinetPodSecret" - } - } - }, - "x-ms-discriminator-value": "Cabinet" - }, - "CabinetPodSecret": { - "description": "The secrets related to a cabinet pod.", - "type": "object", - "properties": { - "deviceSerialNumber": { - "description": "Serial number of the assigned device.", - "type": "string" - }, - "devicePassword": { - "description": "Password for out of the box experience on device.", - "type": "string" - }, - "accountCredentialDetails": { - "description": "Per account level access credentials.", - "type": "array", - "items": { - "$ref": "#/definitions/AccountCredentialDetails" - } - } - } - }, "CancellationReason": { "description": "Reason for cancellation.", "required": [ @@ -929,6 +823,7 @@ "ContactDetails": { "description": "Contact Details.", "required": [ + "contactName", "phone", "emailList" ], @@ -973,14 +868,29 @@ "copyLogDetailsType": { "description": "Indicates the type of job details.", "enum": [ - "Pod", - "Disk", - "Cabinet" + "DataBox", + "DataBoxDisk", + "DataBoxHeavy" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "ClassDiscriminator", - "modelAsString": false + "modelAsExtensible": false, + "values": [ + { + "value": "DataBox", + "description": "Databox orders." + }, + { + "value": "DataBoxDisk", + "description": "DataboxDisk orders." + }, + { + "value": "DataBoxHeavy", + "description": "DataboxHeavy orders." + } + ] } } }, @@ -992,54 +902,30 @@ "properties": { "storageAccountName": { "description": "Name of the storage account where the data needs to be uploaded.", - "type": "string" + "type": "string", + "readOnly": true + }, + "accountId": { + "description": "Id of the account where the data needs to be uploaded.", + "type": "string", + "readOnly": true }, "bytesSentToCloud": { "format": "int64", "description": "Amount of data uploaded by the job as of now.", - "type": "integer" + "type": "integer", + "readOnly": true }, "totalBytesToProcess": { "format": "int64", "description": "Total amount of data to be processed by the job.", - "type": "integer" - } - } - }, - "DestinationAccountDetails": { - "description": "Details for the destination account.", - "required": [ - "accountId" - ], - "type": "object", - "properties": { - "accountId": { - "description": "Destination storage account id.", - "type": "string" - } - } - }, - "DestinationToServiceLocationMap": { - "description": "Map of destination location to service location", - "type": "object", - "properties": { - "destinationLocation": { - "description": "Location of the destination.", - "type": "string" - }, - "serviceLocation": { - "description": "Location of the service.", - "type": "string" + "type": "integer", + "readOnly": true } } }, - "DiskCopyLogDetails": { - "description": "Copy Log Details for a disk", - "required": [ - "diskSerialNumber", - "errorLogLink", - "verboseLogLink" - ], + "DataBoxAccountCopyLogDetails": { + "description": "Copy log details for a storage account of a DataBox job", "type": "object", "allOf": [ { @@ -1047,33 +933,66 @@ } ], "properties": { - "diskSerialNumber": { - "description": "Disk Serial Number.", - "type": "string" - }, + "accountName": { + "description": "Destination account name.", + "type": "string", + "readOnly": true + }, + "copyLogLink": { + "description": "Link for copy logs.", + "type": "string", + "readOnly": true + } + }, + "x-ms-discriminator-value": "DataBox" + }, + "DataBoxDiskCopyLogDetails": { + "description": "Copy Log Details for a disk", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopyLogDetails" + } + ], + "properties": { + "diskSerialNumber": { + "description": "Disk Serial Number.", + "type": "string", + "readOnly": true + }, "errorLogLink": { "description": "Link for copy error logs.", - "type": "string" + "type": "string", + "readOnly": true }, "verboseLogLink": { "description": "Link for copy verbose logs.", - "type": "string" + "type": "string", + "readOnly": true } }, - "x-ms-discriminator-value": "Disk" + "x-ms-discriminator-value": "DataBoxDisk" }, - "DiskCopyProgress": { - "description": "Disk Copy Progress", + "DataBoxDiskCopyProgress": { + "description": "DataBox Disk Copy Progress", "type": "object", "properties": { "serialNumber": { "description": "The serial number of the disk", - "type": "string" + "type": "string", + "readOnly": true + }, + "bytesCopied": { + "format": "int64", + "description": "Bytes copied during the copy of disk.", + "type": "integer", + "readOnly": true }, "percentComplete": { "format": "int32", "description": "Indicates the percentage completed for the copy of the disk.", - "type": "integer" + "type": "integer", + "readOnly": true }, "status": { "description": "The Status of the copy", @@ -1082,21 +1001,51 @@ "InProgress", "Completed", "CompletedWithErrors", - "Failed" + "Failed", + "NotReturned" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "CopyStatus", - "modelAsString": false + "modelAsExtensible": true, + "values": [ + { + "value": "NotStarted", + "description": "Data copy hasnt started yet." + }, + { + "value": "InProgress", + "description": "Data copy is in progress." + }, + { + "value": "Completed", + "description": "Data copy completed." + }, + { + "value": "CompletedWithErrors", + "description": "Data copy completed with errors." + }, + { + "value": "Failed", + "description": "Data copy failed. No data was copied." + }, + { + "value": "NotReturned", + "description": "No copy triggered as device was not returned." + } + ] } } } }, - "DiskJobDetails": { - "description": "Disk Job Details.", + "DataBoxDiskJobDetails": { + "description": "DataBox Disk Job Details.", "required": [ "contactDetails", - "shippingAddress" + "shippingAddress", + "destinationAccountDetails", + "jobDetailsType" ], "type": "object", "allOf": [ @@ -1117,8 +1066,9 @@ "description": "Copy progress per disk.", "type": "array", "items": { - "$ref": "#/definitions/DiskCopyProgress" - } + "$ref": "#/definitions/DataBoxDiskCopyProgress" + }, + "readOnly": true }, "disksAndSizeDetails": { "description": "Contains the map of disk serial number to the disk size being used for the job. Is returned only after the disks are shipped to the customer.", @@ -1126,12 +1076,17 @@ "additionalProperties": { "format": "int32", "type": "integer" - } + }, + "readOnly": true + }, + "passkey": { + "description": "User entered passkey for DataBox Disk job.", + "type": "string" } }, - "x-ms-discriminator-value": "Disk" + "x-ms-discriminator-value": "DataBoxDisk" }, - "DiskJobSecrets": { + "DataBoxDiskJobSecrets": { "description": "The secrets related to disk job.", "type": "object", "allOf": [ @@ -1145,10 +1100,240 @@ "type": "array", "items": { "$ref": "#/definitions/DiskSecret" + }, + "readOnly": true + }, + "passKey": { + "description": "PassKey for the disk Job.", + "type": "string", + "readOnly": true + }, + "isPasskeyUserDefined": { + "description": "Whether passkey was provided by user.", + "type": "boolean", + "readOnly": true + } + }, + "x-ms-discriminator-value": "DataBoxDisk" + }, + "DataBoxHeavyAccountCopyLogDetails": { + "description": "Copy log details for a storage account for Databox heavy", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopyLogDetails" + } + ], + "properties": { + "accountName": { + "description": "Destination account name.", + "type": "string", + "readOnly": true + }, + "copyLogLink": { + "description": "Link for copy logs.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + }, + "x-ms-discriminator-value": "DataBoxHeavy" + }, + "DataBoxHeavyJobDetails": { + "description": "Databox Heavy Device Job Details", + "required": [ + "contactDetails", + "shippingAddress", + "destinationAccountDetails", + "jobDetailsType" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/JobDetails" + } + ], + "properties": { + "copyProgress": { + "description": "Copy progress per account.", + "type": "array", + "items": { + "$ref": "#/definitions/CopyProgress" + }, + "readOnly": true + } + }, + "x-ms-discriminator-value": "DataBoxHeavy" + }, + "DataBoxHeavyJobSecrets": { + "description": "The secrets related to a databox heavy job.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/JobSecrets" + } + ], + "properties": { + "cabinetPodSecrets": { + "description": "Contains the list of secret objects for a databox heavy job.", + "type": "array", + "items": { + "$ref": "#/definitions/DataBoxHeavySecret" + }, + "readOnly": true + } + }, + "x-ms-discriminator-value": "DataBoxHeavy" + }, + "DataBoxHeavySecret": { + "description": "The secrets related to a databox heavy.", + "type": "object", + "properties": { + "deviceSerialNumber": { + "description": "Serial number of the assigned device.", + "type": "string", + "readOnly": true + }, + "devicePassword": { + "description": "Password for out of the box experience on device.", + "type": "string", + "readOnly": true + }, + "networkConfigurations": { + "description": "Network configuration of the appliance.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplianceNetworkConfiguration" + }, + "readOnly": true + }, + "encodedValidationCertPubKey": { + "description": "The base 64 encoded public key to authenticate with the device", + "type": "string", + "readOnly": true + }, + "accountCredentialDetails": { + "description": "Per account level access credentials.", + "type": "array", + "items": { + "$ref": "#/definitions/AccountCredentialDetails" + }, + "readOnly": true + } + } + }, + "DataBoxJobDetails": { + "description": "Databox Job Details", + "required": [ + "contactDetails", + "shippingAddress", + "destinationAccountDetails", + "jobDetailsType" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/JobDetails" + } + ], + "properties": { + "copyProgress": { + "description": "Copy progress per storage account.", + "type": "array", + "items": { + "$ref": "#/definitions/CopyProgress" + }, + "readOnly": true + } + }, + "x-ms-discriminator-value": "DataBox" + }, + "DataboxJobSecrets": { + "description": "The secrets related to a databox job.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/JobSecrets" + } + ], + "properties": { + "podSecrets": { + "description": "Contains the list of secret objects for a job.", + "type": "array", + "items": { + "$ref": "#/definitions/DataBoxSecret" } } }, - "x-ms-discriminator-value": "Disk" + "x-ms-discriminator-value": "DataBox" + }, + "DataBoxSecret": { + "description": "The secrets related to a DataBox.", + "type": "object", + "properties": { + "deviceSerialNumber": { + "description": "Serial number of the assigned device.", + "type": "string", + "readOnly": true + }, + "devicePassword": { + "description": "Password for out of the box experience on device.", + "type": "string", + "readOnly": true + }, + "networkConfigurations": { + "description": "Network configuration of the appliance.", + "type": "array", + "items": { + "$ref": "#/definitions/ApplianceNetworkConfiguration" + }, + "readOnly": true + }, + "encodedValidationCertPubKey": { + "description": "The base 64 encoded public key to authenticate with the device", + "type": "string", + "readOnly": true + }, + "accountCredentialDetails": { + "description": "Per account level access credentials.", + "type": "array", + "items": { + "$ref": "#/definitions/AccountCredentialDetails" + }, + "readOnly": true + } + } + }, + "DestinationAccountDetails": { + "description": "Details for the destination account.", + "required": [ + "accountId" + ], + "type": "object", + "properties": { + "accountId": { + "description": "Destination storage account id.", + "type": "string" + } + } + }, + "DestinationToServiceLocationMap": { + "description": "Map of destination location to service location", + "type": "object", + "properties": { + "destinationLocation": { + "description": "Location of the destination.", + "type": "string", + "readOnly": true + }, + "serviceLocation": { + "description": "Location of the service.", + "type": "string", + "readOnly": true + } + } }, "DiskSecret": { "description": "Contains all the secrets of a Disk.", @@ -1156,45 +1341,29 @@ "properties": { "diskSerialNumber": { "description": "Serial number of the assigned disk.", - "type": "string" + "type": "string", + "readOnly": true }, "bitLockerKey": { "description": "Bit Locker key of the disk which can be used to unlock the disk to copy data.", - "type": "string" + "type": "string", + "readOnly": true } } }, "Error": { "description": "Top level error for the job.", - "required": [ - "code" - ], "type": "object", "properties": { "code": { "description": "Error code that can be used to programmatically identify the error.", - "type": "string" + "type": "string", + "readOnly": true }, "message": { "description": "Describes the error in detail and provides debugging information.", - "type": "string" - } - } - }, - "GetCopyLogsUriOutput": { - "description": "Output for the GetCopyLogsUri.", - "type": "object", - "properties": { - "logType": { - "description": "Type/Level of the log.", - "type": "string" - }, - "copyLogDetails": { - "description": "List of copy log details.", - "type": "array", - "items": { - "$ref": "#/definitions/CopyLogDetails" - } + "type": "string", + "readOnly": true } } }, @@ -1202,7 +1371,9 @@ "description": "Job details.", "required": [ "contactDetails", - "shippingAddress" + "shippingAddress", + "destinationAccountDetails", + "jobDetailsType" ], "type": "object", "properties": { @@ -1216,7 +1387,8 @@ "type": "array", "items": { "$ref": "#/definitions/JobStages" - } + }, + "readOnly": true }, "contactDetails": { "$ref": "#/definitions/ContactDetails", @@ -1226,25 +1398,79 @@ "$ref": "#/definitions/ShippingAddress", "description": "Shipping address of the customer." }, + "deliveryPackage": { + "$ref": "#/definitions/PackageShippingDetails", + "description": "Delivery package shipping details.", + "readOnly": true + }, + "returnPackage": { + "$ref": "#/definitions/PackageShippingDetails", + "description": "Return package shipping details.", + "readOnly": true + }, + "destinationAccountDetails": { + "description": "Destination account details.", + "type": "array", + "items": { + "$ref": "#/definitions/DestinationAccountDetails" + } + }, "errorDetails": { "description": "Error details for failure. This is optional.", "type": "array", "items": { "$ref": "#/definitions/JobErrorDetails" - } + }, + "readOnly": true }, "jobDetailsType": { "description": "Indicates the type of job details.", "enum": [ - "Pod", - "Disk", - "Cabinet" + "DataBox", + "DataBoxDisk", + "DataBoxHeavy" ], "type": "string", "x-ms-enum": { "name": "ClassDiscriminator", - "modelAsString": false - } + "modelAsExtensible": false, + "values": [ + { + "value": "DataBox", + "description": "Databox orders." + }, + { + "value": "DataBoxDisk", + "description": "DataboxDisk orders." + }, + { + "value": "DataBoxHeavy", + "description": "DataboxHeavy orders." + } + ] + } + }, + "preferences": { + "$ref": "#/definitions/Preferences", + "description": "Preferences for the order." + }, + "copyLogDetails": { + "description": "List of copy log details.", + "type": "array", + "items": { + "$ref": "#/definitions/CopyLogDetails" + }, + "readOnly": true + }, + "reverseShipmentLabelSasKey": { + "description": "Shared access key to download the return shipment label", + "type": "string", + "readOnly": true + }, + "chainOfCustodySasKey": { + "description": "Shared access key to download the chain of custody logs", + "type": "string", + "readOnly": true } }, "discriminator": "jobDetailsType" @@ -1255,50 +1481,45 @@ "properties": { "errorMessage": { "description": "Message for the error.", - "type": "string" + "type": "string", + "readOnly": true }, "errorCode": { "format": "int32", "description": "Code for the error.", - "type": "integer" + "type": "integer", + "readOnly": true }, "recommendedAction": { "description": "Recommended action for the error.", - "type": "string" + "type": "string", + "readOnly": true }, "exceptionMessage": { "description": "Contains the non localized exception message", - "type": "string" + "type": "string", + "readOnly": true } } }, "JobProperties": { "description": "Job Properties", - "required": [ - "destinationAccountDetails" - ], "type": "object", "properties": { - "deviceType": { - "description": "Type of the device to be used for the job.", - "enum": [ - "Pod", - "Disk", - "Cabinet" - ], - "type": "string", - "x-ms-enum": { - "name": "DeviceType", - "modelAsString": false - } - }, "isCancellable": { "description": "Describes whether the job is cancellable or not.", - "type": "boolean" + "type": "boolean", + "readOnly": true + }, + "isDeletable": { + "description": "Describes whether the job is deletable or not.", + "type": "boolean", + "readOnly": true }, "isShippingAddressEditable": { "description": "Describes whether the shipping address is editable or not.", - "type": "boolean" + "type": "boolean", + "readOnly": true }, "status": { "description": "Name of the stage which is in progress.", @@ -1318,34 +1539,76 @@ "Aborted" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "StageName", - "modelAsString": false + "modelAsExtensible": true, + "values": [ + { + "value": "DeviceOrdered", + "description": "An order has been created." + }, + { + "value": "DevicePrepared", + "description": "A device has been prepared for the order." + }, + { + "value": "Dispatched", + "description": "Device has been dispatched to the user of the order." + }, + { + "value": "Delivered", + "description": "Device has been delivered to the user of the order." + }, + { + "value": "PickedUp", + "description": "Device has been picked up from user and in transit to azure datacenter." + }, + { + "value": "AtAzureDC", + "description": "Device has been received at azure datacenter from the user." + }, + { + "value": "DataCopy", + "description": "Data copy from the device at azure datacenter." + }, + { + "value": "Completed", + "description": "Order has completed." + }, + { + "value": "CompletedWithErrors", + "description": "Order has completed with errors." + }, + { + "value": "Cancelled", + "description": "Order has been cancelled." + }, + { + "value": "Failed_IssueReportedAtCustomer", + "description": "Order has failed due to issue reported by user." + }, + { + "value": "Failed_IssueDetectedAtAzureDC", + "description": "Order has failed due to issue detected at azure datacenter." + }, + { + "value": "Aborted", + "description": "Order has been aborted." + } + ] } }, "startTime": { "format": "date-time", "description": "Time at which the job was started in UTC ISO 8601 format.", - "type": "string" + "type": "string", + "readOnly": true }, "error": { "$ref": "#/definitions/Error", - "description": "Top level error for the job." - }, - "deliveryPackage": { - "$ref": "#/definitions/PackageShippingDetails", - "description": "Delivery package shipping details." - }, - "returnPackage": { - "$ref": "#/definitions/PackageShippingDetails", - "description": "Return package shipping details." - }, - "destinationAccountDetails": { - "description": "Destination account details.", - "type": "array", - "items": { - "$ref": "#/definitions/DestinationAccountDetails" - } + "description": "Top level error for the job.", + "readOnly": true }, "details": { "$ref": "#/definitions/JobDetails", @@ -1353,7 +1616,8 @@ }, "cancellationReason": { "description": "Reason for cancellation.", - "type": "string" + "type": "string", + "readOnly": true } } }, @@ -1433,14 +1697,29 @@ "jobSecretsType": { "description": "Used to indicate what type of job secrets object.", "enum": [ - "Pod", - "Disk", - "Cabinet" + "DataBox", + "DataBoxDisk", + "DataBoxHeavy" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "ClassDiscriminator", - "modelAsString": false + "modelAsExtensible": false, + "values": [ + { + "value": "DataBox", + "description": "Databox orders." + }, + { + "value": "DataBoxDisk", + "description": "DataboxDisk orders." + }, + { + "value": "DataBoxHeavy", + "description": "DataboxHeavy orders." + } + ] } } }, @@ -1448,10 +1727,6 @@ }, "JobStages": { "description": "Job stages.", - "required": [ - "stageName", - "stageStatus" - ], "type": "object", "properties": { "stageName": { @@ -1472,14 +1747,70 @@ "Aborted" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "StageName", - "modelAsString": false + "modelAsExtensible": true, + "values": [ + { + "value": "DeviceOrdered", + "description": "An order has been created." + }, + { + "value": "DevicePrepared", + "description": "A device has been prepared for the order." + }, + { + "value": "Dispatched", + "description": "Device has been dispatched to the user of the order." + }, + { + "value": "Delivered", + "description": "Device has been delivered to the user of the order." + }, + { + "value": "PickedUp", + "description": "Device has been picked up from user and in transit to azure datacenter." + }, + { + "value": "AtAzureDC", + "description": "Device has been received at azure datacenter from the user." + }, + { + "value": "DataCopy", + "description": "Data copy from the device at azure datacenter." + }, + { + "value": "Completed", + "description": "Order has completed." + }, + { + "value": "CompletedWithErrors", + "description": "Order has completed with errors." + }, + { + "value": "Cancelled", + "description": "Order has been cancelled." + }, + { + "value": "Failed_IssueReportedAtCustomer", + "description": "Order has failed due to issue reported by user." + }, + { + "value": "Failed_IssueDetectedAtAzureDC", + "description": "Order has failed due to issue detected at azure datacenter." + }, + { + "value": "Aborted", + "description": "Order has been aborted." + } + ] } }, "displayName": { "description": "Display name of the job stage.", - "type": "string" + "type": "string", + "readOnly": true }, "stageStatus": { "description": "Status of the job stage.", @@ -1493,26 +1824,60 @@ "SucceededWithErrors" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "StageStatus", - "modelAsString": false + "modelAsExtensible": true, + "values": [ + { + "value": "None", + "description": "No status available yet." + }, + { + "value": "InProgress", + "description": "Stage is in progress." + }, + { + "value": "Succeeded", + "description": "Stage has succeeded." + }, + { + "value": "Failed", + "description": "Stage has failed." + }, + { + "value": "Cancelled", + "description": "Stage has been cancelled." + }, + { + "value": "Cancelling", + "description": "Stage is cancelling." + }, + { + "value": "SucceededWithErrors", + "description": "Stage has succeeded with errors." + } + ] } }, "stageTime": { "format": "date-time", "description": "Time for the job stage in UTC ISO 8601 format.", - "type": "string" + "type": "string", + "readOnly": true }, "jobStageDetails": { "description": "Job Stage Details", - "type": "object" + "type": "object", + "readOnly": true }, "errorDetails": { "description": "Error details for the stage.", "type": "array", "items": { "$ref": "#/definitions/JobErrorDetails" - } + }, + "readOnly": true } } }, @@ -1537,7 +1902,33 @@ "type": "string", "x-ms-enum": { "name": "NotificationStageName", - "modelAsString": false + "modelAsExtensible": true, + "values": [ + { + "value": "DevicePrepared", + "description": "Notification at device prepared stage." + }, + { + "value": "Dispatched", + "description": "Notification at device dispatched stage." + }, + { + "value": "Delivered", + "description": "Notification at device delivered stage." + }, + { + "value": "PickedUp", + "description": "Notification at device picked up from user stage." + }, + { + "value": "AtAzureDC", + "description": "Notification at device received at azure datacenter stage." + }, + { + "value": "DataCopy", + "description": "Notification at data copy started stage." + } + ] } }, "sendNotification": { @@ -1548,30 +1939,28 @@ }, "Operation": { "description": "Operation entity.", - "required": [ - "name", - "display", - "properties", - "origin" - ], "type": "object", "properties": { "name": { "description": "Name of the operation. Format: {resourceProviderNamespace}/{resourceType}/{read|write|delete|action}", - "type": "string" + "type": "string", + "readOnly": true }, "display": { "$ref": "#/definitions/OperationDisplay", - "description": "Operation display values." + "description": "Operation display values.", + "readOnly": true }, "properties": { "$ref": "#/definitions/OperationProperties", "description": "Operation properties.", + "readOnly": true, "x-ms-client-flatten": true }, "origin": { "description": "Origin of the operation. Can be : user|system|user,system", - "type": "string" + "type": "string", + "readOnly": true } } }, @@ -1606,7 +1995,8 @@ "type": "array", "items": { "$ref": "#/definitions/Operation" - } + }, + "readOnly": true }, "nextLink": { "description": "Link for the next set of operations.", @@ -1625,112 +2015,29 @@ "properties": { "carrierName": { "description": "Name of the carrier.", - "type": "string" + "type": "string", + "readOnly": true }, "trackingId": { "description": "Tracking Id of shipment.", - "type": "string" + "type": "string", + "readOnly": true }, "trackingUrl": { "description": "Url where shipment can be tracked.", - "type": "string" + "type": "string", + "readOnly": true } } }, - "PodJobDetails": { - "description": "Pod Job Details", - "required": [ - "contactDetails", - "shippingAddress" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/JobDetails" - } - ], - "properties": { - "copyProgress": { - "description": "Copy progress per account.", - "type": "array", - "items": { - "$ref": "#/definitions/CopyProgress" - } - } - }, - "x-ms-discriminator-value": "Pod" - }, - "PodJobSecrets": { - "description": "The secrets related to a pod job.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/JobSecrets" - } - ], - "properties": { - "podSecrets": { - "description": "Contains the list of secret objects for a job.", - "type": "array", - "items": { - "$ref": "#/definitions/PodSecret" - } - } - }, - "x-ms-discriminator-value": "Pod" - }, - "PodSecret": { - "description": "The secrets related to a Pod.", + "Preferences": { + "description": "Preferences related to the order", "type": "object", "properties": { - "deviceSerialNumber": { - "description": "Serial number of the assigned device.", - "type": "string" - }, - "devicePassword": { - "description": "Password for out of the box experience on device.", - "type": "string" - }, - "accountCredentialDetails": { - "description": "Per account level access credentials.", + "preferredDataCenterRegion": { "type": "array", "items": { - "$ref": "#/definitions/AccountCredentialDetails" - } - } - } - }, - "ReportIssueDetails": { - "description": "Details of the reported issue.", - "type": "object", - "properties": { - "issueType": { - "description": "Issue Type.", - "enum": [ - "DeviceMismatch", - "ValidationStringMismatch", - "CredentialNotWorking", - "DeviceFailure" - ], - "type": "string", - "x-ms-enum": { - "name": "IssueType", - "modelAsString": false - } - }, - "deviceIssueType": { - "description": "Device Issue Type. Only used for Device failure issue.", - "enum": [ - "DeviceTampering", - "DeviceNotBootingUp", - "DeviceHealthCheckShowFailures", - "NICsAreNotWorking", - "Misc" - ], - "type": "string", - "x-ms-enum": { - "name": "DeviceIssueType", - "modelAsString": false + "type": "string" } } } @@ -1771,20 +2078,92 @@ "properties": { "shareName": { "description": "Name of the share.", - "type": "string" + "type": "string", + "readOnly": true + }, + "shareType": { + "description": "Type of the share.", + "enum": [ + "UnknownType", + "HCS", + "BlockBlob", + "PageBlob", + "AzureFile" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ShareDestinationFormatType", + "modelAsExtensible": true, + "values": [ + { + "value": "UnknownType", + "description": "Unknown format." + }, + { + "value": "HCS", + "description": "Storsimple data format." + }, + { + "value": "BlockBlob", + "description": "Azure storage block blob format." + }, + { + "value": "PageBlob", + "description": "Azure storage page blob format." + }, + { + "value": "AzureFile", + "description": "Azure storage file format." + } + ] + } }, "userName": { "description": "User name for the share.", - "type": "string" + "type": "string", + "readOnly": true }, "password": { "description": "Password for the share.", - "type": "string" + "type": "string", + "readOnly": true + }, + "supportedAccessProtocols": { + "description": "Access protocols supported on the device.", + "type": "array", + "items": { + "enum": [ + "SMB", + "NFS" + ], + "type": "string", + "x-ms-enum": { + "name": "AccessProtocol", + "modelAsExtensible": true, + "values": [ + { + "value": "SMB", + "description": "Server Message Block protocol(SMB)." + }, + { + "value": "NFS", + "description": "Network File System protocol(NFS)." + } + ] + } + }, + "readOnly": true } } }, "ShipmentPickUpRequest": { "description": "Shipment pick up request details.", + "required": [ + "startTime", + "endTime", + "shipmentLocation" + ], "type": "object", "properties": { "startTime": { @@ -1809,12 +2188,14 @@ "properties": { "confirmationNumber": { "description": "Confirmation number for the pick up request.", - "type": "string" + "type": "string", + "readOnly": true }, "readyByTime": { "format": "date-time", "description": "Time by which shipment should be ready for pick up, this is in local time of pick up area.", - "type": "string" + "type": "string", + "readOnly": true } } }, @@ -1873,24 +2254,25 @@ "type": "string", "x-ms-enum": { "name": "AddressType", - "modelAsString": false + "modelAsExtensible": true, + "values": [ + { + "value": "None", + "description": "Address type not known." + }, + { + "value": "Residential", + "description": "Residential Address." + }, + { + "value": "Commercial", + "description": "Commercial Address." + } + ] } } } }, - "ShippingLabelDetails": { - "description": "Details for the shipping label.", - "required": [ - "shippingLabelSasUri" - ], - "type": "object", - "properties": { - "shippingLabelSasUri": { - "description": "Sas uri for accessing the shipping label.", - "type": "string" - } - } - }, "Sku": { "description": "The Sku.", "required": [ @@ -1900,7 +2282,30 @@ "properties": { "name": { "description": "The sku name.", - "type": "string" + "enum": [ + "DataBox", + "DataBoxDisk", + "DataBoxHeavy" + ], + "type": "string", + "x-ms-enum": { + "name": "SkuName", + "modelAsExtensible": true, + "values": [ + { + "value": "DataBox", + "description": "Databox." + }, + { + "value": "DataBoxDisk", + "description": "DataboxDisk." + }, + { + "value": "DataBoxHeavy", + "description": "DataboxHeavy." + } + ] + } }, "displayName": { "description": "The display name of the sku.", @@ -1914,71 +2319,60 @@ }, "SkuCapacity": { "description": "Capacity of the sku.", - "required": [ - "usable", - "maximum" - ], "type": "object", "properties": { "usable": { "description": "Usable capacity in TB.", - "type": "string" + "type": "string", + "readOnly": true }, "maximum": { "description": "Maximum capacity in TB.", - "type": "string" + "type": "string", + "readOnly": true } } }, "SkuCost": { "description": "Describes metadata for retrieving price info.", - "required": [ - "meterId", - "meterType" - ], "type": "object", "properties": { "meterId": { "description": "Meter id of the Sku.", - "type": "string" + "type": "string", + "readOnly": true }, "meterType": { "description": "The type of the meter.", - "type": "string" + "type": "string", + "readOnly": true } } }, "SkuInformation": { "description": "Information of the sku.", - "required": [ - "sku", - "enabled", - "properties" - ], "type": "object", "properties": { "sku": { "$ref": "#/definitions/Sku", - "description": "The Sku." + "description": "The Sku.", + "readOnly": true }, "enabled": { "description": "The sku is enabled or not.", - "type": "boolean" + "type": "boolean", + "readOnly": true }, "properties": { "$ref": "#/definitions/SkuProperties", "description": "Properties of the sku.", + "readOnly": true, "x-ms-client-flatten": true } } }, "SkuProperties": { "description": "Properties of the sku.", - "required": [ - "capacity", - "costs", - "apiVersions" - ], "type": "object", "properties": { "destinationToServiceLocationMap": { @@ -1986,59 +2380,110 @@ "type": "array", "items": { "$ref": "#/definitions/DestinationToServiceLocationMap" - } + }, + "readOnly": true }, "capacity": { "$ref": "#/definitions/SkuCapacity", - "description": "Capacity of the Sku." + "description": "Capacity of the Sku.", + "readOnly": true }, "costs": { "description": "Cost of the Sku.", "type": "array", "items": { "$ref": "#/definitions/SkuCost" - } + }, + "readOnly": true }, "apiVersions": { "description": "Api versions that support this Sku.", "type": "array", "items": { "type": "string" - } + }, + "readOnly": true }, "disabledReason": { "description": "Reason why the Sku is disabled.", - "type": "string" + "enum": [ + "None", + "Country", + "Region", + "Feature", + "OfferType" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "SkuDisabledReason", + "modelAsExtensible": true, + "values": [ + { + "value": "None", + "description": "SKU is not disabled." + }, + { + "value": "Country", + "description": "SKU is not available in the requested country." + }, + { + "value": "Region", + "description": "SKU is not available to push data to the requested storage account region." + }, + { + "value": "Feature", + "description": "Required features are not enabled for the SKU." + }, + { + "value": "OfferType", + "description": "Subscription does not have required offer types for the SKU." + } + ] + } + }, + "disabledReasonMessage": { + "description": "Message for why the Sku is disabled.", + "type": "string", + "readOnly": true + }, + "requiredFeature": { + "description": "Required feature to access the sku.", + "type": "string", + "readOnly": true } } }, - "UnencryptedSecrets": { - "description": "Unencrypted secrets for accessing device.", - "required": [ - "jobName" - ], + "UnencryptedCredentials": { + "description": "Unencrypted credentials for accessing device.", "type": "object", "properties": { "jobName": { "description": "Name of the job.", - "type": "string" - }, - "deviceType": { - "description": "The Device Type used in the job.", - "enum": [ - "Pod", - "Disk", - "Cabinet" - ], "type": "string", - "x-ms-enum": { - "name": "DeviceType", - "modelAsString": false - } + "readOnly": true }, "jobSecrets": { "$ref": "#/definitions/JobSecrets", - "description": "Secrets related to this job." + "description": "Secrets related to this job.", + "readOnly": true + } + } + }, + "UnencryptedCredentialsList": { + "description": "List of unencrypted credentials for accessing device.", + "type": "object", + "properties": { + "value": { + "description": "List of unencrypted credentials.", + "type": "array", + "items": { + "$ref": "#/definitions/UnencryptedCredentials" + } + }, + "nextLink": { + "description": "Link for the next set of unencrypted credentials.", + "type": "string" } } }, @@ -2058,19 +2503,27 @@ }, "UpdateJobProperties": { "description": "Job Properties for update", - "required": [ - "details" - ], "type": "object", "properties": { "details": { "$ref": "#/definitions/UpdateJobDetails", "description": "Details of a job to be updated." + }, + "destinationAccountDetails": { + "description": "Destination account details.", + "type": "array", + "items": { + "$ref": "#/definitions/DestinationAccountDetails" + } } } }, "ValidateAddress": { "description": "The requirements to validate customer address where the device needs to be shipped.", + "required": [ + "shippingAddress", + "deviceType" + ], "type": "object", "properties": { "shippingAddress": { @@ -2080,14 +2533,28 @@ "deviceType": { "description": "Device type to be used for the job.", "enum": [ - "Pod", - "Disk", - "Cabinet" + "DataBox", + "DataBoxDisk", + "DataBoxHeavy" ], "type": "string", "x-ms-enum": { - "name": "DeviceType", - "modelAsString": false + "name": "SkuName", + "modelAsExtensible": true, + "values": [ + { + "value": "DataBox", + "description": "Databox." + }, + { + "value": "DataBoxDisk", + "description": "DataboxDisk." + }, + { + "value": "DataBoxHeavy", + "description": "DataboxHeavy." + } + ] } } } diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/ServiceListAvailableSkus.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/AvailableSkusPost.json similarity index 68% rename from specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/ServiceListAvailableSkus.json rename to specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/AvailableSkusPost.json index bd7da8ef54b1..3a73646a8423 100644 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/ServiceListAvailableSkus.json +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/AvailableSkusPost.json @@ -1,8 +1,24 @@ { "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", "location": "westus", "api-version": "2018-01-01", + "x-ms-client-request-id": [ + "a69a48a0-a372-444d-9251-83828238a521" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "84" + ], "availableSkuRequest": { "country": "US", "location": "westus", @@ -47,6 +63,18 @@ { "destinationLocation": "westcentralus", "serviceLocation": "westus" + }, + { + "destinationLocation": "westus2", + "serviceLocation": "westus" + }, + { + "destinationLocation": "centraluseuap", + "serviceLocation": "centraluseuap" + }, + { + "destinationLocation": "eastus2euap", + "serviceLocation": "eastus2euap" } ], "capacity": { @@ -61,11 +89,16 @@ { "meterId": "a701f058-119b-4713-a923-bed7da4b7801", "meterType": "DataBoxShippingFee" + }, + { + "meterId": "049fa331-0a48-4a81-9991-a6bef3c79fed", + "meterType": "DataBoxExtraDayFee" } ], "apiVersions": [ "2018-01-01" - ] + ], + "disabledReason": "None" } }, { @@ -102,21 +135,34 @@ { "destinationLocation": "westcentralus", "serviceLocation": "westus" + }, + { + "destinationLocation": "westus2", + "serviceLocation": "westus" + }, + { + "destinationLocation": "centraluseuap", + "serviceLocation": "centraluseuap" + }, + { + "destinationLocation": "eastus2euap", + "serviceLocation": "eastus2euap" } ], "capacity": { - "usable": "18", - "maximum": "20" + "usable": "35", + "maximum": "40" }, "costs": [], "apiVersions": [ "2018-01-01" - ] + ], + "disabledReason": "None" } }, { "sku": { - "name": "DataBoxCabinet" + "name": "DataBoxHeavy" }, "enabled": true, "properties": { @@ -148,6 +194,18 @@ { "destinationLocation": "westcentralus", "serviceLocation": "westus" + }, + { + "destinationLocation": "westus2", + "serviceLocation": "westus" + }, + { + "destinationLocation": "centraluseuap", + "serviceLocation": "centraluseuap" + }, + { + "destinationLocation": "eastus2euap", + "serviceLocation": "eastus2euap" } ], "capacity": { @@ -157,7 +215,9 @@ "costs": [], "apiVersions": [ "2018-01-01" - ] + ], + "disabledReason": "None", + "requiredFeature": "HeavyCreateAccess" } } ] diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/BookShipmentPickupPost.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/BookShipmentPickupPost.json new file mode 100644 index 000000000000..d0cc988ee1e9 --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/BookShipmentPickupPost.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "bvttoolrg6", + "jobName": "TJ-636646322037905056", + "api-version": "2018-01-01", + "x-ms-client-request-id": [ + "8b6afb5d-ddce-481b-8621-e4bc2836a590" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "118" + ], + "shipmentPickUpRequest": { + "startTime": "2018-09-10T18:30:00Z", + "endTime": "2018-09-12T18:30:00Z", + "shipmentLocation": "Front desk" + } + }, + "responses": { + "200": { + "body": { + "confirmationNumber": "2929602E9CP", + "readyByTime": "2018-09-10T18:30:00Z" + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCancelPost.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCancelPost.json new file mode 100644 index 000000000000..6c41a02d2b74 --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCancelPost.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "jobName": "SdkJob7196", + "api-version": "2018-01-01", + "$expand": "details", + "x-ms-client-request-id": [ + "71d282dc-56a0-402b-a322-3b50c89711b5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "30" + ], + "cancellationReason": { + "reason": "CancelTest" + } + }, + "responses": { + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCreate.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCreate.json new file mode 100644 index 000000000000..6ca49114f1d1 --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCreate.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "jobName": "SdkJob7196", + "api-version": "2018-01-01", + "x-ms-client-request-id": [ + "ee686d79-42c2-4b01-9afe-5e99f4cabfee" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "931" + ], + "jobResource": { + "properties": { + "details": { + "jobDetailsType": "DataBox", + "contactDetails": { + "contactName": "Public SDK Test", + "phone": "1234567890", + "phoneExtension": "1234", + "emailList": [ + "testing@microsoft.com" + ] + }, + "shippingAddress": { + "streetAddress1": "16 TOWNSEND ST", + "streetAddress2": "Unit 1", + "city": "San Francisco", + "stateOrProvince": "CA", + "country": "US", + "postalCode": "94107", + "companyName": "Microsoft", + "addressType": "Commercial" + }, + "destinationAccountDetails": [ + { + "accountId": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount" + } + ] + } + }, + "location": "westus", + "sku": { + "name": "DataBox" + } + } + }, + "responses": { + "202": { + "body": "" + }, + "200": { + "body": { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-11T17:58:36.6886059+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "SdkJob7196", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg8120/providers/Microsoft.DataBox/jobs/SdkJob7196", + "type": "Microsoft.DataBox/jobs" + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsDelete.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsDelete.json new file mode 100644 index 000000000000..4176101c29be --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsDelete.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "jobName": "SdkJob7196", + "api-version": "2018-01-01", + "$expand": "details", + "x-ms-client-request-id": [ + "39272b77-a3c6-4cea-8476-9177cb4020d5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] + }, + "responses": { + "202": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet.json new file mode 100644 index 000000000000..9116e659a520 --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "jobName": "SdkJob7196", + "api-version": "2018-01-01", + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] + }, + "responses": { + "200": { + "body": { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-11T17:58:36.6886059+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "SdkJob7196", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg8120/providers/Microsoft.DataBox/jobs/SdkJob7196", + "type": "Microsoft.DataBox/jobs" + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet1.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet1.json new file mode 100644 index 000000000000..9116e659a520 --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet1.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "jobName": "SdkJob7196", + "api-version": "2018-01-01", + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] + }, + "responses": { + "200": { + "body": { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-11T17:58:36.6886059+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "SdkJob7196", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg8120/providers/Microsoft.DataBox/jobs/SdkJob7196", + "type": "Microsoft.DataBox/jobs" + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsGet.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet2.json similarity index 67% rename from specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsGet.json rename to specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet2.json index c0aecc1b7796..b32c673e9395 100644 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/JobsGet.json +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet2.json @@ -1,39 +1,35 @@ { "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", - "resourceGroupName": "SdkRg2508", - "jobName": "SdkJob8558", + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "jobName": "SdkJob7196", "api-version": "2018-01-01", - "$expand": "details" + "$expand": "details", + "x-ms-client-request-id": [ + "b7369c18-a695-4b58-9839-ede7358e10c2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] }, "responses": { "200": { "body": { "properties": { - "deviceType": "Pod", "isCancellable": true, + "isDeletable": false, "isShippingAddressEditable": true, "status": "DeviceOrdered", - "startTime": "2018-04-13T16:28:38.9999793+05:30", - "deliveryPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "returnPackage": { - "carrierName": "", - "trackingId": "", - "trackingUrl": "" - }, - "destinationAccountDetails": [ - { - "accountId": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/kvtestWUSrg/providers/microsoft.storage/storageAccounts/kvtestwus" - } - ], + "startTime": "2018-09-11T17:58:36.6886059+05:30", "details": { "copyProgress": [ { - "storageAccountName": "kvtestwus", + "storageAccountName": "databoxbvttestaccount", + "accountId": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount", "bytesSentToCloud": 0, "totalBytesToProcess": 0 } @@ -43,7 +39,7 @@ "stageName": "DeviceOrdered", "displayName": "Ordered", "stageStatus": "Succeeded", - "stageTime": "2018-04-13T16:28:41.1669459+05:30" + "stageTime": "2018-09-11T17:58:41.7934219+05:30" }, { "stageName": "DevicePrepared", @@ -125,7 +121,24 @@ "companyName": "Microsoft", "addressType": "Commercial" }, - "errorDetails": [] + "deliveryPackage": { + "carrierName": "", + "trackingId": "", + "trackingUrl": "" + }, + "returnPackage": { + "carrierName": "", + "trackingId": "", + "trackingUrl": "" + }, + "destinationAccountDetails": [ + { + "accountId": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount" + } + ], + "errorDetails": [], + "jobDetailsType": "DataBox", + "copyLogDetails": [] } }, "location": "westus", @@ -133,8 +146,8 @@ "sku": { "name": "DataBox" }, - "name": "SdkJob8558", - "id": "/subscriptions/3c66da21-607e-49b4-8bdf-f25fbb8f705f/resourceGroups/SdkRg2508/providers/Microsoft.DataBox/jobs/SdkJob8558", + "name": "SdkJob7196", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg8120/providers/Microsoft.DataBox/jobs/SdkJob7196", "type": "Microsoft.DataBox/jobs" } } diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet3.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet3.json new file mode 100644 index 000000000000..0fc5ff08cfdf --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet3.json @@ -0,0 +1,155 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "jobName": "SdkJob7196", + "api-version": "2018-01-01", + "$expand": "details", + "x-ms-client-request-id": [ + "dd519084-efed-4bce-962e-529921f4ab2a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] + }, + "responses": { + "200": { + "body": { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-11T17:58:36.6886059+05:30", + "details": { + "copyProgress": [ + { + "storageAccountName": "databoxbvttestaccount", + "accountId": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount", + "bytesSentToCloud": 0, + "totalBytesToProcess": 0 + } + ], + "jobStages": [ + { + "stageName": "DeviceOrdered", + "displayName": "Ordered", + "stageStatus": "Succeeded", + "stageTime": "2018-09-11T17:58:41.7934219+05:30" + }, + { + "stageName": "DevicePrepared", + "displayName": "Processed", + "stageStatus": "None" + }, + { + "stageName": "Dispatched", + "displayName": "Dispatched", + "stageStatus": "None" + }, + { + "stageName": "Delivered", + "displayName": "Delivered", + "stageStatus": "None" + }, + { + "stageName": "PickedUp", + "displayName": "Picked up", + "stageStatus": "None" + }, + { + "stageName": "AtAzureDC", + "displayName": "Received", + "stageStatus": "None" + }, + { + "stageName": "DataCopy", + "displayName": "Data copy in progress", + "stageStatus": "None" + }, + { + "stageName": "Completed", + "displayName": "Completed", + "stageStatus": "None" + } + ], + "contactDetails": { + "contactName": "Update Job", + "phone": "1234567890", + "phoneExtension": "1234", + "emailList": [ + "testing@microsoft.com" + ], + "notificationPreference": [ + { + "stageName": "DevicePrepared", + "sendNotification": true + }, + { + "stageName": "Dispatched", + "sendNotification": true + }, + { + "stageName": "Delivered", + "sendNotification": true + }, + { + "stageName": "PickedUp", + "sendNotification": true + }, + { + "stageName": "AtAzureDC", + "sendNotification": true + }, + { + "stageName": "DataCopy", + "sendNotification": true + } + ] + }, + "shippingAddress": { + "streetAddress1": "16 TOWNSEND ST", + "streetAddress2": "Unit 1", + "city": "San Francisco", + "stateOrProvince": "CA", + "country": "US", + "postalCode": "94107", + "companyName": "Microsoft", + "addressType": "Commercial" + }, + "deliveryPackage": { + "carrierName": "", + "trackingId": "", + "trackingUrl": "" + }, + "returnPackage": { + "carrierName": "", + "trackingId": "", + "trackingUrl": "" + }, + "destinationAccountDetails": [ + { + "accountId": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount" + } + ], + "errorDetails": [], + "jobDetailsType": "DataBox", + "copyLogDetails": [] + } + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "SdkJob7196", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg8120/providers/Microsoft.DataBox/jobs/SdkJob7196", + "type": "Microsoft.DataBox/jobs" + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet4.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet4.json new file mode 100644 index 000000000000..70ca00535aff --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet4.json @@ -0,0 +1,127 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "jobName": "SdkJob7196", + "api-version": "2018-01-01", + "$expand": "details", + "x-ms-client-request-id": [ + "2d0ac131-80ad-419a-9126-722678b09c94" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] + }, + "responses": { + "200": { + "body": { + "properties": { + "isCancellable": false, + "isDeletable": true, + "isShippingAddressEditable": false, + "status": "Cancelled", + "startTime": "2018-09-11T17:58:36.6886059+05:30", + "details": { + "copyProgress": [ + { + "storageAccountName": "databoxbvttestaccount", + "accountId": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount", + "bytesSentToCloud": 0, + "totalBytesToProcess": 0 + } + ], + "jobStages": [ + { + "stageName": "DeviceOrdered", + "displayName": "Ordered", + "stageStatus": "Succeeded", + "stageTime": "2018-09-11T17:58:41.7934219+05:30" + }, + { + "stageName": "Cancelled", + "displayName": "Canceled", + "stageStatus": "Succeeded", + "stageTime": "2018-09-11T17:59:27.3708564+05:30" + } + ], + "contactDetails": { + "contactName": "Update Job", + "phone": "1234567890", + "phoneExtension": "1234", + "emailList": [ + "testing@microsoft.com" + ], + "notificationPreference": [ + { + "stageName": "DevicePrepared", + "sendNotification": true + }, + { + "stageName": "Dispatched", + "sendNotification": true + }, + { + "stageName": "Delivered", + "sendNotification": true + }, + { + "stageName": "PickedUp", + "sendNotification": true + }, + { + "stageName": "AtAzureDC", + "sendNotification": true + }, + { + "stageName": "DataCopy", + "sendNotification": true + } + ] + }, + "shippingAddress": { + "streetAddress1": "16 TOWNSEND ST", + "streetAddress2": "Unit 1", + "city": "San Francisco", + "stateOrProvince": "CA", + "country": "US", + "postalCode": "94107", + "companyName": "Microsoft", + "addressType": "Commercial" + }, + "deliveryPackage": { + "carrierName": "", + "trackingId": "", + "trackingUrl": "" + }, + "returnPackage": { + "carrierName": "", + "trackingId": "", + "trackingUrl": "" + }, + "destinationAccountDetails": [ + { + "accountId": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount" + } + ], + "errorDetails": [], + "jobDetailsType": "DataBox", + "copyLogDetails": [] + }, + "cancellationReason": "CancelTest" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "SdkJob7196", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg8120/providers/Microsoft.DataBox/jobs/SdkJob7196", + "type": "Microsoft.DataBox/jobs" + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet5.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet5.json new file mode 100644 index 000000000000..6261006dab2f --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsGet5.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "jobName": "SdkJob7196", + "api-version": "2018-01-01", + "$expand": "details", + "x-ms-client-request-id": [ + "bdcc8e76-b662-42a4-93fd-5554809712d7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] + }, + "responses": { + "200": { + "body": { + "properties": { + "isCancellable": false, + "isDeletable": true, + "isShippingAddressEditable": false, + "status": "Cancelled", + "startTime": "2018-09-11T17:58:36.6886059+05:30", + "details": { + "copyProgress": [ + { + "storageAccountName": "databoxbvttestaccount", + "accountId": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount", + "bytesSentToCloud": 0, + "totalBytesToProcess": 0 + } + ], + "jobStages": [ + { + "stageName": "DeviceOrdered", + "displayName": "Ordered", + "stageStatus": "Succeeded", + "stageTime": "2018-09-11T17:58:41.7934219+05:30" + }, + { + "stageName": "Cancelled", + "displayName": "Canceled", + "stageStatus": "Succeeded", + "stageTime": "2018-09-11T17:59:27.3708564+05:30" + } + ], + "contactDetails": { + "contactName": " ", + "phone": "", + "emailList": [], + "notificationPreference": [] + }, + "shippingAddress": { + "streetAddress1": "16 TOWNSEND ST", + "streetAddress2": "Unit 1", + "city": "San Francisco", + "stateOrProvince": "CA", + "country": "US", + "postalCode": "94107", + "companyName": "Microsoft", + "addressType": "Commercial" + }, + "deliveryPackage": { + "carrierName": "", + "trackingId": "", + "trackingUrl": "" + }, + "returnPackage": { + "carrierName": "", + "trackingId": "", + "trackingUrl": "" + }, + "destinationAccountDetails": [ + { + "accountId": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount" + } + ], + "errorDetails": [], + "jobDetailsType": "DataBox", + "copyLogDetails": [], + "chainOfCustodySasKey": "https://wusbeta.blob.core.windows.net/chainofcustody/dbb287f3-ded6-42ee-b673-0c49d46394dc.txt?sv=2016-05-31&sr=b&sig=ljyW4jh7VAuQg%2Bm9JPKznnKEh7kyekn4zhkZ4vIH5LY%3D&st=2018-09-11T12%3A24%3A31Z&se=2018-09-11T12%3A54%3A31Z&sp=r" + }, + "cancellationReason": "CancelTest" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "SdkJob7196", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg8120/providers/Microsoft.DataBox/jobs/SdkJob7196", + "type": "Microsoft.DataBox/jobs" + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsList.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsList.json new file mode 100644 index 000000000000..3f683214b99d --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsList.json @@ -0,0 +1,502 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "api-version": "2018-01-01", + "$expand": "details", + "x-ms-client-request-id": [ + "03e7ecda-9d8a-4883-ad1e-26ce670891ee" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-08-30T14:44:39.77401+05:30" + }, + "location": "australiaeast", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "mnaustest", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/ausresgrpmn/providers/Microsoft.DataBox/jobs/mnaustest", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-10T18:03:22.2578238+05:30" + }, + "location": "australiaeast", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "portalcontractAUS", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/ausresgrpmn/providers/Microsoft.DataBox/jobs/portalcontractAUS", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-08-30T15:17:17.3753642+05:30" + }, + "location": "australiaeast", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "testBB-diskAU", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/testBB/providers/Microsoft.DataBox/jobs/testBB-diskAU", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-08T22:46:11.5143859+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TestPortalContract", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/TestPortalContract", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-08-21T15:19:38.5967539+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxHeavy" + }, + "name": "testheavy1", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/autoallocation/providers/Microsoft.DataBox/jobs/testheavy1", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-06-28T14:07:33.0497881+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636657717727899366", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/autoallocation/providers/Microsoft.DataBox/jobs/TJ-636657717727899366", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": false, + "isDeletable": false, + "isShippingAddressEditable": false, + "status": "PickedUp", + "startTime": "2018-09-06T16:23:58.7665181+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "abvetestups", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/abvetestups", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-08-21T14:08:42.9538214+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "disksmoketest", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/disksmoketest", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-08-08T07:52:22.8655902+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxHeavy" + }, + "name": "heavyjob1029039", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/heavyjob1029039", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-08-30T14:26:12.0791245+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxHeavy" + }, + "name": "heavyjob1029039-Clone", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/heavyjob1029039-Clone", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-07-06T05:48:00.4841388+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "sojaintest1", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/sojaintest1", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-04T12:05:35.7885962+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "testacispasskey", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/testacispasskey", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-04T12:19:50.1313891+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "testacispasskey1", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/testacispasskey1", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-04T12:27:03.679307+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "testacispasskey2", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/testacispasskey2", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-04T02:24:49.5106952+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "testingpasskey", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/testingpasskey", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-04T03:37:18.5000801+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "testingpasskey1", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/testingpasskey1", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-06-13T14:01:22.0918861+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636644753834613064", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636644753834613064", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": false, + "isDeletable": false, + "isShippingAddressEditable": false, + "status": "PickedUp", + "startTime": "2018-06-15T00:01:51.7887418+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636645978308049673", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636645978308049673", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-06-15T00:00:55.8926702+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636645978327256231", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636645978327256231", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-06-15T00:00:49.1912624+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636645978337105060", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636645978337105060", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": false, + "isDeletable": false, + "isShippingAddressEditable": false, + "status": "Delivered", + "startTime": "2018-06-15T09:34:08.5731715+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636646322037905056", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636646322037905056", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-06-15T09:33:44.4557174+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636646322198505202", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636646322198505202", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-06-16T00:00:42.7564714+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636646842116642570", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636646842116642570", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": false, + "isDeletable": false, + "isShippingAddressEditable": false, + "status": "DevicePrepared", + "startTime": "2018-06-16T00:00:37.1560297+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "TJ-636646842129749628", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636646842129749628", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-06-16T00:00:55.5759323+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636646842130208643", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636646842130208643", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": false, + "isDeletable": false, + "isShippingAddressEditable": false, + "status": "PickedUp", + "startTime": "2018-06-16T00:01:43.7487451+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636646842175867545", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636646842175867545", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-06-16T00:00:40.1336605+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBoxDisk" + }, + "name": "TJ-636646842185996513", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636646842185996513", + "type": "Microsoft.DataBox/jobs" + }, + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-06-17T00:00:22.60807+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "TJ-636647706054109071", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/bvttoolrg6/providers/Microsoft.DataBox/jobs/TJ-636647706054109071", + "type": "Microsoft.DataBox/jobs" + } + ], + "nextLink": "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/jobs?api-version=2018-01-01&%24skiptoken=dVJrb5swFP0v0bZvKcaBFipVUx5A0wVCDOb1zQZCDBhYIM%2bq%2f33uonXStEr%2bYN1z7zlH99zXUZOfhxVrqn70%2bDoKDc%2fH3uhxtBuGrn%2bUJE4aUuQ8b4Y7cj3s87u05VJ%2foH26Z93A2qaXtuReAxrcjrXt9mGsEKiOdTV9GKe5nhFVkaECt1K3b48sy%2fe9ZLN03%2fbtdrhbkIHM2rNUtrT%2fTjo2PgpcUD5BIGtjIIv37Utfsc5vq7x5che6QsNTkfHgksL6SEvAbE85Ldmsptw5JlZ9SK6AZRHiK9%2bAy1L7Culi02obqB8ygWahCUioHwJL3yehckOL5eK8oFAViCrHEerEH1M41LRUnDmbFsv5VAs%2bNJXLqpxqKzmp08YRvR8s82nhmkhNLSx4A8tk1MKi709F%2bHhnKlxDrfNntImjF0BuaqskqsSM7RlC0CQU44sP0Mwx5CGMkIvkbvCb6mSbNfZ80w6s%2fhxGXZmZ1SXwA4IAPvsVMnOsGh6X47x64XGd9YQ7wzrqmF23J9%2bSPWKhZ8RrZsMd93GspuHy4jWttgKfOfrHs0cn2V%2bvE4eZJQ2S%2b7h0wjwQXhqUhMbLJA5Smda7%2bw1PShqi31okRAdczphd1tcYyqV9wysEdeDzzrEr9Sf2nXVeGRcfo8AGKk6ujhtYqezO9XUS7QDm%2bsSDgeoW4Mf7JkVuWGyxSSJkU%2bjsRMLiJtRNyutB1FUx9x%2f8lqnAPs%2b8PB0%2fv5jR29sv" + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsListByResourceGroup.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsListByResourceGroup.json new file mode 100644 index 000000000000..6d811a3a2cb4 --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "api-version": "2018-01-01", + "$expand": "details", + "x-ms-client-request-id": [ + "62542393-3051-4952-8e59-625cc76e9abf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-11T17:58:36.6886059+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "SdkJob7196", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg8120/providers/Microsoft.DataBox/jobs/SdkJob7196", + "type": "Microsoft.DataBox/jobs" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsListCredentials.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsListCredentials.json new file mode 100644 index 000000000000..4f2db17c7dda --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsListCredentials.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "bvttoolrg6", + "jobName": "TJ-636646322037905056", + "api-version": "2018-01-01", + "x-ms-client-request-id": [ + "1321416f-58bc-4bc7-8214-492c7cbbc310" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] + }, + "responses": { + "200": { + "body": { + "value": [ + { + "jobName": "TJ-636646322037905056", + "jobSecrets": { + "podSecrets": [ + { + "deviceSerialNumber": "testimolapod-3ecc44ce", + "devicePassword": "cT5nt8R;S%5", + "networkConfigurations": [ + { + "name": "DataPort3", + "macAddress": "D05099C1F439" + }, + { + "name": "DataPort1", + "macAddress": "EC0D9A21A6C0" + }, + { + "name": "DataPort2", + "macAddress": "EC0D9A21A6C1" + } + ], + "encodedValidationCertPubKey": "5CYoAoVKEBa4WgPVis8keX94w30pon4jGMADSqcdE/NlHLChj6Cmhbl4q9QOFKSB/US4AwhS7zY1QS3YMDrkAPfOy7Hi6kWMBpJWZidTq3oXX8FAQjg+IqQESti/2jvAlcDpO2453rgd7Yb6XZ43P8MMTpTjcarI0ImCf//eITQWnFa3AzfIJ9C+hxCCaA7HTYhwQEPUBMwyQJsI6v6WuQysROtlBgx1YtbWFhDVbcqYRSLIbaj+RdzlvxvDJSo70kv+8em5upuDTpVE7xP+WePLlARdSPNwwfRzHnvCUqC2UqXHpRUhQlYnMqAJEcjjroRnyIGumPmmQ8O155X8aw==", + "accountCredentialDetails": [ + { + "accountName": "databoxbvttestaccount", + "accountConnectionString": "", + "shareCredentialDetails": [ + { + "shareName": "databoxbvttestaccount_PageBlob", + "shareType": "PageBlob", + "userName": "databoxbvttestac_903", + "password": "4N)K4(j6tyR", + "supportedAccessProtocols": [ + "SMB" + ] + }, + { + "shareName": "databoxbvttestaccount_BlockBlob", + "shareType": "BlockBlob", + "userName": "databoxbvttestac_903", + "password": "4N)K4(j6tyR", + "supportedAccessProtocols": [ + "SMB" + ] + }, + { + "shareName": "databoxbvttestaccount_AzFile", + "shareType": "AzureFile", + "userName": "databoxbvttestac_903", + "password": "4N)K4(j6tyR", + "supportedAccessProtocols": [ + "SMB" + ] + } + ] + } + ] + } + ], + "jobSecretsType": "DataBox" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsPatch.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsPatch.json new file mode 100644 index 000000000000..4239ba14e7c0 --- /dev/null +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsPatch.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", + "resourceGroupName": "SdkRg8120", + "jobName": "SdkJob7196", + "api-version": "2018-01-01", + "$expand": "details", + "x-ms-client-request-id": [ + "26b53b91-d67c-4e6a-b8d6-0d01db7b6e90" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "584" + ], + "jobResourceUpdateParameter": { + "properties": { + "details": { + "contactDetails": { + "contactName": "Update Job", + "phone": "1234567890", + "phoneExtension": "1234", + "emailList": [ + "testing@microsoft.com" + ] + }, + "shippingAddress": { + "streetAddress1": "16 TOWNSEND ST", + "streetAddress2": "Unit 1", + "city": "San Francisco", + "stateOrProvince": "CA", + "country": "US", + "postalCode": "94107", + "companyName": "Microsoft", + "addressType": "Commercial" + } + } + } + } + }, + "responses": { + "202": { + "body": "" + }, + "200": { + "body": { + "properties": { + "isCancellable": true, + "isDeletable": false, + "isShippingAddressEditable": true, + "status": "DeviceOrdered", + "startTime": "2018-09-11T17:58:36.6886059+05:30" + }, + "location": "westus", + "tags": {}, + "sku": { + "name": "DataBox" + }, + "name": "SdkJob7196", + "id": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg8120/providers/Microsoft.DataBox/jobs/SdkJob7196", + "type": "Microsoft.DataBox/jobs" + } + } + } +} \ No newline at end of file diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/OperationsList.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/OperationsGet.json similarity index 59% rename from specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/OperationsList.json rename to specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/OperationsGet.json index 211756f55ce4..994dd06680ba 100644 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/OperationsList.json +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/OperationsGet.json @@ -1,22 +1,21 @@ { "parameters": { - "api-version": "2018-01-01" + "api-version": "2018-01-01", + "x-ms-client-request-id": [ + "69fc02f6-5d9f-42d5-8d98-b5a943b8c888" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ] }, "responses": { "200": { "body": { "value": [ - { - "name": "Microsoft.DataBox/jobs/listSecrets/action", - "display": { - "provider": "Azure Data Box", - "resource": "Orders", - "operation": "List Secrets", - "description": "Lists the unencrypted secrets related to the order." - }, - "properties": {}, - "origin": "user" - }, { "name": "Microsoft.DataBox/jobs/cancel/action", "display": { @@ -28,39 +27,6 @@ "properties": {}, "origin": "user" }, - { - "name": "Microsoft.DataBox/jobs/reportIssue/action", - "display": { - "provider": "Azure Data Box", - "resource": "Orders", - "operation": "Report Issue", - "description": "Reports an issue in the order." - }, - "properties": {}, - "origin": "user" - }, - { - "name": "Microsoft.DataBox/jobs/copyLogsUri/action", - "display": { - "provider": "Azure Data Box", - "resource": "Orders", - "operation": "Copy Log URL", - "description": "Get URL for the copy logs of each destination account." - }, - "properties": {}, - "origin": "user" - }, - { - "name": "Microsoft.DataBox/jobs/downloadShippingLabel/action", - "display": { - "provider": "Azure Data Box", - "resource": "Orders", - "operation": "Download Shipping Label", - "description": "Get shipping label for the return shipment." - }, - "properties": {}, - "origin": "user" - }, { "name": "Microsoft.DataBox/jobs/bookShipmentPickUp/action", "display": { @@ -106,23 +72,23 @@ "origin": "user" }, { - "name": "Microsoft.DataBox/locations/validateAddress/action", + "name": "Microsoft.DataBox/jobs/listCredentials/action", "display": { "provider": "Azure Data Box", - "resource": "Validate Address", - "operation": "Validate Address", - "description": "Validates the shipping address and provides alternate addresses if any." + "resource": "Orders", + "operation": "List Credentials", + "description": "Lists the unencrypted credentials related to the order." }, "properties": {}, "origin": "user" }, { - "name": "Microsoft.DataBox/locations/regionAvailability/action", + "name": "Microsoft.DataBox/locations/validateAddress/action", "display": { "provider": "Azure Data Box", - "resource": "Region Availability", - "operation": "Region Availability", - "description": "This method returns the list of supported regions for the service and for destination storage accounts." + "resource": "Validate Address", + "operation": "Validate Address", + "description": "Validates the shipping address and provides alternate addresses if any." }, "properties": {}, "origin": "user" @@ -131,7 +97,9 @@ "name": "Microsoft.DataBox/locations/availableSkus/action", "display": { "provider": "Azure Data Box", - "resource": "ArmApiRes_availableSkus" + "resource": "Available Skus", + "operation": "Availabe Skus", + "description": "This method returns the list of available skus." }, "properties": {}, "origin": "user" diff --git a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/ServiceValidateAddress.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/ValidateAddressPost.json similarity index 59% rename from specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/ServiceValidateAddress.json rename to specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/ValidateAddressPost.json index 5c6b716dfb31..4471fd16f463 100644 --- a/specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/examples/ServiceValidateAddress.json +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/ValidateAddressPost.json @@ -1,8 +1,24 @@ { "parameters": { - "subscriptionId": "3c66da21-607e-49b4-8bdf-f25fbb8f705f", + "subscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f", "location": "westus", "api-version": "2018-01-01", + "x-ms-client-request-id": [ + "9f1830f8-1cf7-4145-8b34-0742d9c9be13" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "311" + ], "validateAddress": { "shippingAddress": { "streetAddress1": "16 TOWNSEND ST", @@ -10,8 +26,11 @@ "city": "San Francisco", "stateOrProvince": "CA", "country": "US", - "postalCode": "94107" - } + "postalCode": "94107", + "companyName": "Microsoft", + "addressType": "Commercial" + }, + "deviceType": "DataBox" } }, "responses": { diff --git a/specification/databox/resource-manager/readme.md b/specification/databox/resource-manager/readme.md index 487819189c8e..b3966b6d0014 100644 --- a/specification/databox/resource-manager/readme.md +++ b/specification/databox/resource-manager/readme.md @@ -1,5 +1,5 @@ # DataBox - + > see https://aka.ms/autorest This is the AutoRest configuration file for DataBox. @@ -7,7 +7,7 @@ This is the AutoRest configuration file for DataBox. --- -## Getting Started +## Getting Started To build the SDK for DataBox, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -21,19 +21,23 @@ To see additional help and options, run: -### Basic Information +### Basic Information These are the global settings for the DataBox API. ``` yaml openapi-type: arm +tag: package-2018-01 +``` + +### Tag: package-2018-01 +These settings apply only when `--tag=package-2018-01` is specified on the command line. + +``` yaml $(tag) == 'package-2018-01' input-file: -- Microsoft.DataBox\preview\2018-01-01\databox.json -directive: - - suppress: - - R2016 #to suppress (PatchBodyParametersSchema/R2016/RPCViolation) - - R2062 #to suppress (XmsResourceInPutResponse/R2062/RPCViolation) +- Microsoft.DataBox/stable/2018-01-01/databox.json ``` + --- # Code Generation @@ -45,12 +49,16 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - - repo: azure-sdk-for-go + - repo: azure-sdk-for-python - repo: azure-sdk-for-node + - repo: azure-sdk-for-go + - repo: azure-sdk-for-ruby + - repo: azure-sdk-for-java + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_databox'] ``` - -## C# +## C# These settings apply only when `--csharp` is specified on the command line. Please also specify `--csharp-sdks-folder=`. @@ -60,10 +68,56 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.DataBox + payload-flattening-threshold: 2 output-folder: $(csharp-sdks-folder)/DataBox/Management.DataBox/Generated clear-output-folder: true ``` +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. + +``` yaml $(python) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.databox + package-name: azure-mgmt-databox + title: DataBoxManagementClient + description: The DataBox Client. + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-databox/azure/mgmt/databox +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-databox +``` + +## Node + +These settings apply only when `--nodejs` is specified on the command line. +Please also specify `--node-sdks-folder=`. + +``` yaml $(nodejs) +nodejs: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + package-name: azure-arm-databox + output-folder: $(node-sdks-folder)/lib/services/databoxManagement + generate-license-txt: true + generate-package-json: true + generate-readme-md: false +``` ## Go @@ -79,16 +133,45 @@ go: ### Go multi-api ``` yaml $(go) && $(multiapi) +batch: + - tag: package-2018-01 ``` -### Tag: package-2017-06 and go +### Tag: package-2018-01 and go +These settings apply only when `--tag=package-2018-01 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(go) +``` yaml $(tag) == 'package-2018-01' && $(go) output-folder: $(go-sdk-folder)/services/databox/mgmt/2018-01-01/databox ``` +## Ruby + +These settings apply only when `--ruby` is specified on the command line. + +``` yaml +package-name: azure_mgmt_databox +package-version: "0.0.1" +azure-arm: true +``` + +### Ruby multi-api + +``` yaml $(ruby) && $(multiapi) +batch: + - tag: package-2018-01 +``` + +### Tag: package-2018-01 and ruby + +These settings apply only when `--tag=package-2018-01 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-01' && $(ruby) +namespace: "Azure::Compute::Mgmt::V2018_01_01" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_databox/lib +``` ## Java @@ -102,5 +185,25 @@ java: namespace: com.microsoft.azure.management.databox license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 - output-folder: $(azure-libraries-for-java-folder)/databox + output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-databox +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-01 ``` + +### Tag: package-2018-01 and java + +These settings apply only when `--tag=package-2018-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.databox.v2018_01_01 + output-folder: $(azure-libraries-for-java-folder)/databox/resource-manager/v2018_01_01 +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/databox/resource-manager/readme.nodejs.md b/specification/databox/resource-manager/readme.nodejs.md deleted file mode 100644 index 215b9579b68e..000000000000 --- a/specification/databox/resource-manager/readme.nodejs.md +++ /dev/null @@ -1,14 +0,0 @@ -## Node.js - -These settings apply only when `--nodejs` is specified on the command line. -Please also specify `--node-sdks-folder=`. - -``` yaml $(nodejs) -nodejs: - azure-arm: true - package-name: azure-arm-databox - output-folder: $(node-sdks-folder)/lib/services/databox - generate-license-txt: true - generate-package-json: true - generate-readme-md: true -``` \ No newline at end of file