@azure/arm-databox 5.0.1-alpha.20250326.1 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +39 -10
  2. package/LICENSE +1 -1
  3. package/README.md +4 -7
  4. package/dist/browser/dataBoxManagementClient.d.ts.map +1 -1
  5. package/dist/browser/dataBoxManagementClient.js +12 -12
  6. package/dist/browser/dataBoxManagementClient.js.map +1 -1
  7. package/dist/browser/lroImpl.d.ts.map +1 -1
  8. package/dist/browser/lroImpl.js +8 -1
  9. package/dist/browser/lroImpl.js.map +1 -1
  10. package/dist/browser/models/index.d.ts +165 -2
  11. package/dist/browser/models/index.d.ts.map +1 -1
  12. package/dist/browser/models/index.js +38 -0
  13. package/dist/browser/models/index.js.map +1 -1
  14. package/dist/browser/models/mappers.d.ts +4 -0
  15. package/dist/browser/models/mappers.d.ts.map +1 -1
  16. package/dist/browser/models/mappers.js +1616 -1331
  17. package/dist/browser/models/mappers.js.map +1 -1
  18. package/dist/browser/models/parameters.js +49 -49
  19. package/dist/browser/models/parameters.js.map +1 -1
  20. package/dist/browser/operations/jobs.d.ts.map +1 -1
  21. package/dist/browser/operations/jobs.js +79 -79
  22. package/dist/browser/operations/jobs.js.map +1 -1
  23. package/dist/browser/operations/operations.js +9 -9
  24. package/dist/browser/operations/operations.js.map +1 -1
  25. package/dist/browser/operations/service.js +36 -36
  26. package/dist/browser/operations/service.js.map +1 -1
  27. package/dist/browser/operationsInterfaces/jobs.js.map +1 -1
  28. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  29. package/dist/browser/operationsInterfaces/service.js.map +1 -1
  30. package/dist/browser/pagingHelper.js.map +1 -1
  31. package/dist/commonjs/dataBoxManagementClient.d.ts.map +1 -1
  32. package/dist/commonjs/dataBoxManagementClient.js +12 -12
  33. package/dist/commonjs/dataBoxManagementClient.js.map +1 -1
  34. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  35. package/dist/commonjs/lroImpl.js +8 -1
  36. package/dist/commonjs/lroImpl.js.map +1 -1
  37. package/dist/commonjs/models/index.d.ts +165 -2
  38. package/dist/commonjs/models/index.d.ts.map +1 -1
  39. package/dist/commonjs/models/index.js +39 -1
  40. package/dist/commonjs/models/index.js.map +1 -1
  41. package/dist/commonjs/models/mappers.d.ts +4 -0
  42. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  43. package/dist/commonjs/models/mappers.js +1619 -1334
  44. package/dist/commonjs/models/mappers.js.map +1 -1
  45. package/dist/commonjs/models/parameters.js +48 -48
  46. package/dist/commonjs/models/parameters.js.map +1 -1
  47. package/dist/commonjs/operations/jobs.d.ts.map +1 -1
  48. package/dist/commonjs/operations/jobs.js +78 -78
  49. package/dist/commonjs/operations/jobs.js.map +1 -1
  50. package/dist/commonjs/operations/operations.js +9 -9
  51. package/dist/commonjs/operations/operations.js.map +1 -1
  52. package/dist/commonjs/operations/service.js +36 -36
  53. package/dist/commonjs/operations/service.js.map +1 -1
  54. package/dist/commonjs/operationsInterfaces/jobs.js.map +1 -1
  55. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  56. package/dist/commonjs/operationsInterfaces/service.js.map +1 -1
  57. package/dist/commonjs/pagingHelper.js.map +1 -1
  58. package/dist/commonjs/tsdoc-metadata.json +1 -1
  59. package/dist/esm/dataBoxManagementClient.d.ts.map +1 -1
  60. package/dist/esm/dataBoxManagementClient.js +12 -12
  61. package/dist/esm/dataBoxManagementClient.js.map +1 -1
  62. package/dist/esm/lroImpl.d.ts.map +1 -1
  63. package/dist/esm/lroImpl.js +8 -1
  64. package/dist/esm/lroImpl.js.map +1 -1
  65. package/dist/esm/models/index.d.ts +165 -2
  66. package/dist/esm/models/index.d.ts.map +1 -1
  67. package/dist/esm/models/index.js +38 -0
  68. package/dist/esm/models/index.js.map +1 -1
  69. package/dist/esm/models/mappers.d.ts +4 -0
  70. package/dist/esm/models/mappers.d.ts.map +1 -1
  71. package/dist/esm/models/mappers.js +1616 -1331
  72. package/dist/esm/models/mappers.js.map +1 -1
  73. package/dist/esm/models/parameters.js +49 -49
  74. package/dist/esm/models/parameters.js.map +1 -1
  75. package/dist/esm/operations/jobs.d.ts.map +1 -1
  76. package/dist/esm/operations/jobs.js +79 -79
  77. package/dist/esm/operations/jobs.js.map +1 -1
  78. package/dist/esm/operations/operations.js +9 -9
  79. package/dist/esm/operations/operations.js.map +1 -1
  80. package/dist/esm/operations/service.js +36 -36
  81. package/dist/esm/operations/service.js.map +1 -1
  82. package/dist/esm/operationsInterfaces/jobs.js.map +1 -1
  83. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  84. package/dist/esm/operationsInterfaces/service.js.map +1 -1
  85. package/dist/esm/pagingHelper.js.map +1 -1
  86. package/dist/react-native/dataBoxManagementClient.d.ts.map +1 -1
  87. package/dist/react-native/dataBoxManagementClient.js +12 -12
  88. package/dist/react-native/dataBoxManagementClient.js.map +1 -1
  89. package/dist/react-native/lroImpl.d.ts.map +1 -1
  90. package/dist/react-native/lroImpl.js +8 -1
  91. package/dist/react-native/lroImpl.js.map +1 -1
  92. package/dist/react-native/models/index.d.ts +165 -2
  93. package/dist/react-native/models/index.d.ts.map +1 -1
  94. package/dist/react-native/models/index.js +38 -0
  95. package/dist/react-native/models/index.js.map +1 -1
  96. package/dist/react-native/models/mappers.d.ts +4 -0
  97. package/dist/react-native/models/mappers.d.ts.map +1 -1
  98. package/dist/react-native/models/mappers.js +1616 -1331
  99. package/dist/react-native/models/mappers.js.map +1 -1
  100. package/dist/react-native/models/parameters.js +49 -49
  101. package/dist/react-native/models/parameters.js.map +1 -1
  102. package/dist/react-native/operations/jobs.d.ts.map +1 -1
  103. package/dist/react-native/operations/jobs.js +79 -79
  104. package/dist/react-native/operations/jobs.js.map +1 -1
  105. package/dist/react-native/operations/operations.js +9 -9
  106. package/dist/react-native/operations/operations.js.map +1 -1
  107. package/dist/react-native/operations/service.js +36 -36
  108. package/dist/react-native/operations/service.js.map +1 -1
  109. package/dist/react-native/operationsInterfaces/jobs.js.map +1 -1
  110. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  111. package/dist/react-native/operationsInterfaces/service.js.map +1 -1
  112. package/dist/react-native/pagingHelper.js.map +1 -1
  113. package/package.json +9 -10
  114. package/review/arm-databox.api.md +72 -0
package/CHANGELOG.md CHANGED
@@ -1,15 +1,44 @@
1
1
  # Release History
2
-
3
- ## 5.0.1 (Unreleased)
4
-
2
+
3
+ ## 5.1.0 (2025-03-17)
4
+
5
5
  ### Features Added
6
6
 
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
7
+ - Added Interface DeviceCapabilityDetails
8
+ - Added Interface DeviceCapabilityRequest
9
+ - Added Interface DeviceCapabilityResponse
10
+ - Added Interface JobDelayDetails
11
+ - Added Type Alias DelayNotificationStatus
12
+ - Added Type Alias ModelName
13
+ - Added Type Alias PortalDelayErrorCode
14
+ - Interface CreateOrderLimitForSubscriptionValidationRequest has a new optional parameter model
15
+ - Interface DatacenterAddressRequest has a new optional parameter model
16
+ - Interface DataTransferDetailsValidationRequest has a new optional parameter model
17
+ - Interface JobResource has a new optional parameter allDevicesLost
18
+ - Interface JobResource has a new optional parameter delayedStage
19
+ - Interface JobStages has a new optional parameter delayInformation
20
+ - Interface PreferencesValidationRequest has a new optional parameter model
21
+ - Interface RegionConfigurationRequest has a new optional parameter deviceCapabilityRequest
22
+ - Interface RegionConfigurationResponse has a new optional parameter deviceCapabilityResponse
23
+ - Interface ScheduleAvailabilityRequest has a new optional parameter model
24
+ - Interface Sku has a new optional parameter model
25
+ - Interface SkuAvailabilityValidationRequest has a new optional parameter model
26
+ - Interface SkuCapacity has a new optional parameter individualSkuUsable
27
+ - Interface TransportAvailabilityRequest has a new optional parameter model
28
+ - Interface ValidateAddress has a new optional parameter model
29
+ - Added Enum KnownDelayNotificationStatus
30
+ - Added Enum KnownPortalDelayErrorCode
31
+ - Enum KnownDataCenterCode has a new value AMS25
32
+ - Enum KnownDataCenterCode has a new value BL24
33
+ - Enum KnownDataCenterCode has a new value CPQ21
34
+ - Enum KnownDataCenterCode has a new value DSM11
35
+ - Enum KnownDataCenterCode has a new value DXB23
36
+ - Enum KnownDataCenterCode has a new value IDC5
37
+ - Enum KnownDataCenterCode has a new value NTG20
38
+ - Enum KnownDataCenterCode has a new value OSA23
39
+ - Enum KnownDataCenterCode has a new value TYO23
40
+
41
+
13
42
  ## 5.0.0 (2023-05-10)
14
43
 
15
44
  The package of @azure/arm-databox is using our next generation design principles since version 5.0.0, which contains breaking changes.
@@ -18,4 +47,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
18
47
 
19
48
  To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
20
49
 
21
- To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
50
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
package/LICENSE CHANGED
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure DataBoxManagement client.
4
4
 
5
+
6
+
5
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/databox/arm-databox) |
6
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-databox) |
7
9
  [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-databox) |
@@ -42,7 +44,6 @@ npm install @azure/identity
42
44
  ```
43
45
 
44
46
  You will also need to **register a new AAD application and grant access to Azure DataBoxManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
45
- Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
46
47
 
47
48
  For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
48
49
 
@@ -62,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
62
63
  import { InteractiveBrowserCredential } from "@azure/identity";
63
64
  import { DataBoxManagementClient } from "@azure/arm-databox";
64
65
 
65
- const subscriptionId = "00000000-0000-0000-0000-000000000000";
66
66
  const credential = new InteractiveBrowserCredential({
67
67
  tenantId: "<YOUR_TENANT_ID>",
68
- clientId: "<YOUR_CLIENT_ID>",
69
- });
68
+ clientId: "<YOUR_CLIENT_ID>"
69
+ });
70
70
  const client = new DataBoxManagementClient(credential, subscriptionId);
71
71
  ```
72
72
 
73
73
  ### JavaScript Bundle
74
-
75
74
  To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
76
75
 
77
76
  ## Key concepts
@@ -106,8 +105,6 @@ If you'd like to contribute to this library, please read the [contributing guide
106
105
 
107
106
  - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
108
107
 
109
-
110
-
111
108
  [azure_cli]: https://learn.microsoft.com/cli/azure
112
109
  [azure_sub]: https://azure.microsoft.com/free/
113
110
  [azure_sub]: https://azure.microsoft.com/free/
@@ -1 +1 @@
1
- {"version":3,"file":"dataBoxManagementClient.d.ts","sourceRoot":"","sources":["../../src/dataBoxManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE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AAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,qCAAqC;IA+EjD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;;;;;OAOG;IACH,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,IAAI,CAAC;IAOhB,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -31,14 +31,14 @@ export class DataBoxManagementClient extends coreClient.ServiceClient {
31
31
  }
32
32
  const defaults = {
33
33
  requestContentType: "application/json; charset=utf-8",
34
- credential: credentials
34
+ credential: credentials,
35
35
  };
36
- const packageDetails = `azsdk-js-arm-databox/5.0.1`;
36
+ const packageDetails = `azsdk-js-arm-databox/5.1.0`;
37
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
39
  : `${packageDetails}`;
40
40
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
41
- userAgentPrefix
41
+ userAgentPrefix,
42
42
  }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
43
43
  super(optionsWithDefaults);
44
44
  let bearerTokenAuthenticationPolicyFound = false;
@@ -52,21 +52,21 @@ export class DataBoxManagementClient extends coreClient.ServiceClient {
52
52
  options.pipeline.getOrderedPolicies().length == 0 ||
53
53
  !bearerTokenAuthenticationPolicyFound) {
54
54
  this.pipeline.removePolicy({
55
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
55
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
56
56
  });
57
57
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
58
58
  credential: credentials,
59
59
  scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
60
60
  challengeCallbacks: {
61
- authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
62
- }
61
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
62
+ },
63
63
  }));
64
64
  }
65
65
  // Parameter assignments
66
66
  this.subscriptionId = subscriptionId;
67
67
  // Assigning values to Constant parameters
68
68
  this.$host = options.$host || "https://management.azure.com";
69
- this.apiVersion = options.apiVersion || "2022-12-01";
69
+ this.apiVersion = options.apiVersion || "2025-02-01";
70
70
  this.operations = new OperationsImpl(this);
71
71
  this.jobs = new JobsImpl(this);
72
72
  this.service = new ServiceImpl(this);
@@ -93,7 +93,7 @@ export class DataBoxManagementClient extends coreClient.ServiceClient {
93
93
  request.url = param[0] + "?" + newParams.join("&");
94
94
  }
95
95
  return next(request);
96
- }
96
+ },
97
97
  };
98
98
  this.pipeline.addPolicy(apiVersionPolicy);
99
99
  }
@@ -117,8 +117,8 @@ const mitigateOperationSpec = {
117
117
  responses: {
118
118
  204: {},
119
119
  default: {
120
- bodyMapper: Mappers.ApiError
121
- }
120
+ bodyMapper: Mappers.ApiError,
121
+ },
122
122
  },
123
123
  requestBody: Parameters.mitigateJobRequest,
124
124
  queryParameters: [Parameters.apiVersion],
@@ -126,10 +126,10 @@ const mitigateOperationSpec = {
126
126
  Parameters.$host,
127
127
  Parameters.subscriptionId,
128
128
  Parameters.jobName,
129
- Parameters.resourceGroupName
129
+ Parameters.resourceGroupName,
130
130
  ],
131
131
  headerParameters: [Parameters.accept, Parameters.contentType],
132
132
  mediaType: "json",
133
- serializer
133
+ serializer,
134
134
  };
135
135
  //# sourceMappingURL=dataBoxManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataBoxManagementClient.js","sourceRoot":"","sources":["../../src/dataBoxManagementCl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EACzB,kBAAsC,EACtC,OAAgC;QAEhC,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAC3D,qBAAqB,CACtB,CAAC;IACJ,CAAC;CAKF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EACF,wHAAwH;IAC1H,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kBAAkB;IAC1C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, JobsImpl, ServiceImpl } from \"./operations/index.js\";\nimport { Operations, Jobs, Service } from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n DataBoxManagementClientOptionalParams,\n MitigateJobRequest,\n MitigateOptionalParams\n} from \"./models/index.js\";\n\nexport class DataBoxManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DataBoxManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Subscription Id\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DataBoxManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DataBoxManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-databox/5.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2022-12-01\";\n this.operations = new OperationsImpl(this);\n this.jobs = new JobsImpl(this);\n this.service = new ServiceImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Request to mitigate for a given job\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param resourceGroupName The Resource Group Name\n * @param mitigateJobRequest Mitigation Request\n * @param options The options parameters.\n */\n mitigate(\n jobName: string,\n resourceGroupName: string,\n mitigateJobRequest: MitigateJobRequest,\n options?: MitigateOptionalParams\n ): Promise<void> {\n return this.sendOperationRequest(\n { jobName, resourceGroupName, mitigateJobRequest, options },\n mitigateOperationSpec\n );\n }\n\n operations: Operations;\n jobs: Jobs;\n service: Service;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst mitigateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/mitigate\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.mitigateJobRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
1
+ {"version":3,"file":"dataBoxManagementClient.js","sourceRoot":"","sources":["../../src/dataBoxManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAO/C,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAKnE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA0C;YACtD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF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\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, JobsImpl, ServiceImpl } from \"./operations/index.js\";\nimport { Operations, Jobs, Service } from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n DataBoxManagementClientOptionalParams,\n MitigateJobRequest,\n MitigateOptionalParams,\n} from \"./models/index.js\";\n\nexport class DataBoxManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DataBoxManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Subscription Id\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DataBoxManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DataBoxManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-databox/5.1.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-02-01\";\n this.operations = new OperationsImpl(this);\n this.jobs = new JobsImpl(this);\n this.service = new ServiceImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Request to mitigate for a given job\n * @param jobName The name of the job Resource within the specified resource group. job names must be\n * between 3 and 24 characters in length and use any alphanumeric and underscore only\n * @param resourceGroupName The Resource Group Name\n * @param mitigateJobRequest Mitigation Request\n * @param options The options parameters.\n */\n mitigate(\n jobName: string,\n resourceGroupName: string,\n mitigateJobRequest: MitigateJobRequest,\n options?: MitigateOptionalParams,\n ): Promise<void> {\n return this.sendOperationRequest(\n { jobName, resourceGroupName, mitigateJobRequest, options },\n mitigateOperationSpec,\n );\n }\n\n operations: Operations;\n jobs: Jobs;\n service: Service;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst mitigateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/mitigate\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.mitigateJobRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.jobName,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
@@ -1,3 +1,10 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
1
8
  import { __rest } from "tslib";
2
9
  export function createLroSpec(inputs) {
3
10
  const { args, spec, sendOperationFn } = inputs;
@@ -8,7 +15,7 @@ export function createLroSpec(inputs) {
8
15
  sendPollRequest: (path, options) => {
9
16
  const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
10
17
  return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
11
- }
18
+ },
12
19
  };
13
20
  }
14
21
  //# sourceMappingURL=lroImpl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
@@ -204,6 +204,39 @@ export interface JobStages {
204
204
  * NOTE: This property will not be serialized. It can only be populated by the server.
205
205
  */
206
206
  readonly jobStageDetails?: Record<string, unknown>;
207
+ /**
208
+ * Delay information for the job stages.
209
+ * NOTE: This property will not be serialized. It can only be populated by the server.
210
+ */
211
+ readonly delayInformation?: JobDelayDetails[];
212
+ }
213
+ /** Job Delay Notification details */
214
+ export interface JobDelayDetails {
215
+ /**
216
+ * Status of notification
217
+ * NOTE: This property will not be serialized. It can only be populated by the server.
218
+ */
219
+ readonly status?: DelayNotificationStatus;
220
+ /**
221
+ * Delay Error code
222
+ * NOTE: This property will not be serialized. It can only be populated by the server.
223
+ */
224
+ readonly errorCode?: PortalDelayErrorCode;
225
+ /**
226
+ * Description of the delay.
227
+ * NOTE: This property will not be serialized. It can only be populated by the server.
228
+ */
229
+ readonly description?: string;
230
+ /**
231
+ * Timestamp when the delay notification was created.
232
+ * NOTE: This property will not be serialized. It can only be populated by the server.
233
+ */
234
+ readonly startTime?: Date;
235
+ /**
236
+ * Timestamp when the delay notification was resolved.
237
+ * NOTE: This property will not be serialized. It can only be populated by the server.
238
+ */
239
+ readonly resolutionTime?: Date;
207
240
  }
208
241
  /** Contact Details. */
209
242
  export interface ContactDetails {
@@ -540,6 +573,8 @@ export interface Sku {
540
573
  displayName?: string;
541
574
  /** The sku family. */
542
575
  family?: string;
576
+ /** The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 */
577
+ model?: ModelName;
543
578
  }
544
579
  /** Msi identity details of the resource */
545
580
  export interface ResourceIdentity {
@@ -693,6 +728,11 @@ export interface SkuCapacity {
693
728
  * NOTE: This property will not be serialized. It can only be populated by the server.
694
729
  */
695
730
  readonly maximum?: string;
731
+ /**
732
+ * Maximum capacity per device in TB.
733
+ * NOTE: This property will not be serialized. It can only be populated by the server.
734
+ */
735
+ readonly individualSkuUsable?: string;
696
736
  }
697
737
  /** Describes metadata for retrieving price info. */
698
738
  export interface SkuCost {
@@ -879,6 +919,8 @@ export interface RegionConfigurationRequest {
879
919
  transportAvailabilityRequest?: TransportAvailabilityRequest;
880
920
  /** Request body to get the datacenter address for given sku. */
881
921
  datacenterAddressRequest?: DatacenterAddressRequest;
922
+ /** Request body to get the device capabilities for a given sku. */
923
+ deviceCapabilityRequest?: DeviceCapabilityRequest;
882
924
  }
883
925
  /** Request body to get the availability for scheduling orders. */
884
926
  export interface ScheduleAvailabilityRequest {
@@ -888,11 +930,15 @@ export interface ScheduleAvailabilityRequest {
888
930
  storageLocation: string;
889
931
  /** Country in which storage location should be supported. */
890
932
  country?: string;
933
+ /** The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 */
934
+ model?: ModelName;
891
935
  }
892
936
  /** Request body to get the transport availability for given sku. */
893
937
  export interface TransportAvailabilityRequest {
894
938
  /** Type of the device. */
895
939
  skuName?: SkuName;
940
+ /** The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 */
941
+ model?: ModelName;
896
942
  }
897
943
  /** Request body to get the datacenter address. */
898
944
  export interface DatacenterAddressRequest {
@@ -900,6 +946,15 @@ export interface DatacenterAddressRequest {
900
946
  storageLocation: string;
901
947
  /** Sku Name for which the data center address requested. */
902
948
  skuName: SkuName;
949
+ /** The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 */
950
+ model?: ModelName;
951
+ }
952
+ /** Request body to get the device capabilities for given sku. */
953
+ export interface DeviceCapabilityRequest {
954
+ /** Type of the device. */
955
+ skuName?: SkuName;
956
+ /** The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 */
957
+ model?: ModelName;
903
958
  }
904
959
  /** Configuration response specific to a region. */
905
960
  export interface RegionConfigurationResponse {
@@ -918,6 +973,11 @@ export interface RegionConfigurationResponse {
918
973
  * NOTE: This property will not be serialized. It can only be populated by the server.
919
974
  */
920
975
  readonly datacenterAddressResponse?: DatacenterAddressResponseUnion;
976
+ /**
977
+ * Device capabilities available for a given sku in a region.
978
+ * NOTE: This property will not be serialized. It can only be populated by the server.
979
+ */
980
+ readonly deviceCapabilityResponse?: DeviceCapabilityResponse;
921
981
  }
922
982
  /** Schedule availability for given sku in a region. */
923
983
  export interface ScheduleAvailabilityResponse {
@@ -943,6 +1003,22 @@ export interface TransportAvailabilityDetails {
943
1003
  */
944
1004
  readonly shipmentType?: TransportShipmentTypes;
945
1005
  }
1006
+ /** Device capabilities for given sku in a region */
1007
+ export interface DeviceCapabilityResponse {
1008
+ /**
1009
+ * List of device capabilities available for a given region and a given sku
1010
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1011
+ */
1012
+ readonly deviceCapabilityDetails?: DeviceCapabilityDetails[];
1013
+ }
1014
+ /** Device capability details for a given sku for a given region. */
1015
+ export interface DeviceCapabilityDetails {
1016
+ /**
1017
+ * Hardware encryption support for a given sku for a given region.
1018
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1019
+ */
1020
+ readonly hardwareEncryption?: HardwareEncryption;
1021
+ }
946
1022
  /** Credential details of the account. */
947
1023
  export interface AccountCredentialDetails {
948
1024
  /**
@@ -1664,6 +1740,11 @@ export interface JobResource extends Resource {
1664
1740
  * NOTE: This property will not be serialized. It can only be populated by the server.
1665
1741
  */
1666
1742
  readonly status?: StageName;
1743
+ /**
1744
+ * Name of the stage where delay might be present.
1745
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1746
+ */
1747
+ readonly delayedStage?: StageName;
1667
1748
  /**
1668
1749
  * Time at which the job was started in UTC ISO 8601 format.
1669
1750
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1690,6 +1771,11 @@ export interface JobResource extends Resource {
1690
1771
  * NOTE: This property will not be serialized. It can only be populated by the server.
1691
1772
  */
1692
1773
  readonly isCancellableWithoutFee?: boolean;
1774
+ /**
1775
+ * Flag to indicate if all devices associated with the job are lost.
1776
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1777
+ */
1778
+ readonly allDevicesLost?: boolean;
1693
1779
  }
1694
1780
  /** The requirements to validate customer address where the device needs to be shipped. */
1695
1781
  export interface ValidateAddress extends ValidationInputRequest {
@@ -1701,6 +1787,8 @@ export interface ValidateAddress extends ValidationInputRequest {
1701
1787
  deviceType: SkuName;
1702
1788
  /** Preferences related to the shipment logistics of the sku. */
1703
1789
  transportPreferences?: TransportPreferences;
1790
+ /** The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 */
1791
+ model?: ModelName;
1704
1792
  }
1705
1793
  /** Request to validate create order limit for current subscription. */
1706
1794
  export interface CreateOrderLimitForSubscriptionValidationRequest extends ValidationInputRequest {
@@ -1708,6 +1796,8 @@ export interface CreateOrderLimitForSubscriptionValidationRequest extends Valida
1708
1796
  validationType: "ValidateCreateOrderLimit";
1709
1797
  /** Device type to be used for the job. */
1710
1798
  deviceType: SkuName;
1799
+ /** The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 */
1800
+ model?: ModelName;
1711
1801
  }
1712
1802
  /** Request to validate export and import data details. */
1713
1803
  export interface DataTransferDetailsValidationRequest extends ValidationInputRequest {
@@ -1721,6 +1811,8 @@ export interface DataTransferDetailsValidationRequest extends ValidationInputReq
1721
1811
  deviceType: SkuName;
1722
1812
  /** Type of the transfer. */
1723
1813
  transferType: TransferType;
1814
+ /** The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 */
1815
+ model?: ModelName;
1724
1816
  }
1725
1817
  /** Request to validate preference of transport and data center. */
1726
1818
  export interface PreferencesValidationRequest extends ValidationInputRequest {
@@ -1730,6 +1822,8 @@ export interface PreferencesValidationRequest extends ValidationInputRequest {
1730
1822
  preference?: Preferences;
1731
1823
  /** Device type to be used for the job. */
1732
1824
  deviceType: SkuName;
1825
+ /** The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 */
1826
+ model?: ModelName;
1733
1827
  }
1734
1828
  /** Request to validate sku availability. */
1735
1829
  export interface SkuAvailabilityValidationRequest extends ValidationInputRequest {
@@ -1743,6 +1837,8 @@ export interface SkuAvailabilityValidationRequest extends ValidationInputRequest
1743
1837
  country: string;
1744
1838
  /** Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 */
1745
1839
  location: string;
1840
+ /** The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 */
1841
+ model?: ModelName;
1746
1842
  }
1747
1843
  /** Request to validate subscription permission to create jobs. */
1748
1844
  export interface SubscriptionIsAllowedToCreateJobValidationRequest extends ValidationInputRequest {
@@ -2022,6 +2118,44 @@ export declare enum KnownStageName {
2022
2118
  * **ShippedToCustomer**: Shipped the device to customer.
2023
2119
  */
2024
2120
  export type StageName = string;
2121
+ /** Known values of {@link DelayNotificationStatus} that the service accepts. */
2122
+ export declare enum KnownDelayNotificationStatus {
2123
+ /** Delay is still active */
2124
+ Active = "Active",
2125
+ /** Delay has been resolved */
2126
+ Resolved = "Resolved"
2127
+ }
2128
+ /**
2129
+ * Defines values for DelayNotificationStatus. \
2130
+ * {@link KnownDelayNotificationStatus} can be used interchangeably with DelayNotificationStatus,
2131
+ * this enum contains the known values that the service supports.
2132
+ * ### Known values supported by the service
2133
+ * **Active**: Delay is still active \
2134
+ * **Resolved**: Delay has been resolved
2135
+ */
2136
+ export type DelayNotificationStatus = string;
2137
+ /** Known values of {@link PortalDelayErrorCode} that the service accepts. */
2138
+ export declare enum KnownPortalDelayErrorCode {
2139
+ /** Delay due to any internal reasons */
2140
+ InternalIssueDelay = "InternalIssueDelay",
2141
+ /** Active Order limit breached. */
2142
+ ActiveOrderLimitBreachedDelay = "ActiveOrderLimitBreachedDelay",
2143
+ /** High demand */
2144
+ HighDemandDelay = "HighDemandDelay",
2145
+ /** Slow copy due to large number of files */
2146
+ LargeNumberOfFilesDelay = "LargeNumberOfFilesDelay"
2147
+ }
2148
+ /**
2149
+ * Defines values for PortalDelayErrorCode. \
2150
+ * {@link KnownPortalDelayErrorCode} can be used interchangeably with PortalDelayErrorCode,
2151
+ * this enum contains the known values that the service supports.
2152
+ * ### Known values supported by the service
2153
+ * **InternalIssueDelay**: Delay due to any internal reasons \
2154
+ * **ActiveOrderLimitBreachedDelay**: Active Order limit breached. \
2155
+ * **HighDemandDelay**: High demand \
2156
+ * **LargeNumberOfFilesDelay**: Slow copy due to large number of files
2157
+ */
2158
+ export type PortalDelayErrorCode = string;
2025
2159
  /** Known values of {@link NotificationStageName} that the service accepts. */
2026
2160
  export declare enum KnownNotificationStageName {
2027
2161
  /** Notification at device prepared stage. */
@@ -2175,7 +2309,25 @@ export declare enum KnownDataCenterCode {
2175
2309
  /** SN6 */
2176
2310
  SN6 = "SN6",
2177
2311
  /** BJS20 */
2178
- BJS20 = "BJS20"
2312
+ BJS20 = "BJS20",
2313
+ /** BL24 */
2314
+ BL24 = "BL24",
2315
+ /** IDC5 */
2316
+ IDC5 = "IDC5",
2317
+ /** TYO23 */
2318
+ TYO23 = "TYO23",
2319
+ /** CPQ21 */
2320
+ CPQ21 = "CPQ21",
2321
+ /** NTG20 */
2322
+ NTG20 = "NTG20",
2323
+ /** DXB23 */
2324
+ DXB23 = "DXB23",
2325
+ /** DSM11 */
2326
+ DSM11 = "DSM11",
2327
+ /** OSA23 */
2328
+ OSA23 = "OSA23",
2329
+ /** AMS25 */
2330
+ AMS25 = "AMS25"
2179
2331
  }
2180
2332
  /**
2181
2333
  * Defines values for DataCenterCode. \
@@ -2240,7 +2392,16 @@ export declare enum KnownDataCenterCode {
2240
2392
  * **PAR22** \
2241
2393
  * **BN7** \
2242
2394
  * **SN6** \
2243
- * **BJS20**
2395
+ * **BJS20** \
2396
+ * **BL24** \
2397
+ * **IDC5** \
2398
+ * **TYO23** \
2399
+ * **CPQ21** \
2400
+ * **NTG20** \
2401
+ * **DXB23** \
2402
+ * **DSM11** \
2403
+ * **OSA23** \
2404
+ * **AMS25**
2244
2405
  */
2245
2406
  export type DataCenterCode = string;
2246
2407
  /** Known values of {@link CopyStatus} that the service accepts. */
@@ -2343,6 +2504,8 @@ export type DatacenterAddressType = "DatacenterAddressLocation" | "DatacenterAdd
2343
2504
  export type JobDeliveryType = "NonScheduled" | "Scheduled";
2344
2505
  /** Defines values for SkuName. */
2345
2506
  export type SkuName = "DataBox" | "DataBoxDisk" | "DataBoxHeavy" | "DataBoxCustomerDisk";
2507
+ /** Defines values for ModelName. */
2508
+ export type ModelName = "DataBox" | "DataBoxDisk" | "DataBoxHeavy" | "DataBoxCustomerDisk" | "AzureDataBox120" | "AzureDataBox525";
2346
2509
  /** Defines values for SkuDisabledReason. */
2347
2510
  export type SkuDisabledReason = "None" | "Country" | "Region" | "Feature" | "OfferType" | "NoSubscriptionInfo";
2348
2511
  /** Defines values for ValidationInputDiscriminator. */