@azure/arm-databox 5.0.1-alpha.20250327.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
@@ -38,7 +38,7 @@ export class OperationsImpl {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listPagingPage(options, settings);
41
- }
41
+ },
42
42
  };
43
43
  }
44
44
  listPagingPage(options, settings) {
@@ -104,30 +104,30 @@ const listOperationSpec = {
104
104
  httpMethod: "GET",
105
105
  responses: {
106
106
  200: {
107
- bodyMapper: Mappers.OperationList
107
+ bodyMapper: Mappers.OperationList,
108
108
  },
109
109
  default: {
110
- bodyMapper: Mappers.ApiError
111
- }
110
+ bodyMapper: Mappers.ApiError,
111
+ },
112
112
  },
113
113
  queryParameters: [Parameters.apiVersion],
114
114
  urlParameters: [Parameters.$host],
115
115
  headerParameters: [Parameters.accept],
116
- serializer
116
+ serializer,
117
117
  };
118
118
  const listNextOperationSpec = {
119
119
  path: "{nextLink}",
120
120
  httpMethod: "GET",
121
121
  responses: {
122
122
  200: {
123
- bodyMapper: Mappers.OperationList
123
+ bodyMapper: Mappers.OperationList,
124
124
  },
125
125
  default: {
126
- bodyMapper: Mappers.ApiError
127
- }
126
+ bodyMapper: Mappers.ApiError,
127
+ },
128
128
  },
129
129
  urlParameters: [Parameters.$host, Parameters.nextLink],
130
130
  headerParameters: [Parameters.accept],
131
- serializer
131
+ serializer,
132
132
  };
133
133
  //# sourceMappingURL=operations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO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OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataBoxManagementClient } from \"../dataBoxManagementClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: DataBoxManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: DataBoxManagementClient) {\n this.client = client;\n }\n\n /**\n * This method gets all the operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * This method gets all the operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.DataBox/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,O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1E,CAAC;IAED;;;;OAIG;IACK,SAAS,CACf,QAAgB,EAChB,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,yCAAyC;IAC/C,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataBoxManagementClient } from \"../dataBoxManagementClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: DataBoxManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: DataBoxManagementClient) {\n this.client = client;\n }\n\n /**\n * This method gets all the operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * This method gets all the operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.DataBox/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -42,7 +42,7 @@ export class ServiceImpl {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options, settings);
45
- }
45
+ },
46
46
  };
47
47
  }
48
48
  listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options, settings) {
@@ -165,11 +165,11 @@ const listAvailableSkusByResourceGroupOperationSpec = {
165
165
  httpMethod: "POST",
166
166
  responses: {
167
167
  200: {
168
- bodyMapper: Mappers.AvailableSkusResult
168
+ bodyMapper: Mappers.AvailableSkusResult,
169
169
  },
170
170
  default: {
171
- bodyMapper: Mappers.ApiError
172
- }
171
+ bodyMapper: Mappers.ApiError,
172
+ },
173
173
  },
174
174
  requestBody: Parameters.availableSkuRequest,
175
175
  queryParameters: [Parameters.apiVersion],
@@ -177,44 +177,44 @@ const listAvailableSkusByResourceGroupOperationSpec = {
177
177
  Parameters.$host,
178
178
  Parameters.subscriptionId,
179
179
  Parameters.resourceGroupName,
180
- Parameters.location
180
+ Parameters.location,
181
181
  ],
182
182
  headerParameters: [Parameters.accept, Parameters.contentType],
183
183
  mediaType: "json",
184
- serializer
184
+ serializer,
185
185
  };
186
186
  const validateAddressOperationSpec = {
187
187
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress",
188
188
  httpMethod: "POST",
189
189
  responses: {
190
190
  200: {
191
- bodyMapper: Mappers.AddressValidationOutput
191
+ bodyMapper: Mappers.AddressValidationOutput,
192
192
  },
193
193
  default: {
194
- bodyMapper: Mappers.ApiError
195
- }
194
+ bodyMapper: Mappers.ApiError,
195
+ },
196
196
  },
197
197
  requestBody: Parameters.validateAddress,
198
198
  queryParameters: [Parameters.apiVersion],
199
199
  urlParameters: [
200
200
  Parameters.$host,
201
201
  Parameters.subscriptionId,
202
- Parameters.location
202
+ Parameters.location,
203
203
  ],
204
204
  headerParameters: [Parameters.accept, Parameters.contentType],
205
205
  mediaType: "json",
206
- serializer
206
+ serializer,
207
207
  };
208
208
  const validateInputsByResourceGroupOperationSpec = {
209
209
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs",
210
210
  httpMethod: "POST",
211
211
  responses: {
212
212
  200: {
213
- bodyMapper: Mappers.ValidationResponse
213
+ bodyMapper: Mappers.ValidationResponse,
214
214
  },
215
215
  default: {
216
- bodyMapper: Mappers.ApiError
217
- }
216
+ bodyMapper: Mappers.ApiError,
217
+ },
218
218
  },
219
219
  requestBody: Parameters.validationRequest,
220
220
  queryParameters: [Parameters.apiVersion],
@@ -222,66 +222,66 @@ const validateInputsByResourceGroupOperationSpec = {
222
222
  Parameters.$host,
223
223
  Parameters.subscriptionId,
224
224
  Parameters.resourceGroupName,
225
- Parameters.location
225
+ Parameters.location,
226
226
  ],
227
227
  headerParameters: [Parameters.accept, Parameters.contentType],
228
228
  mediaType: "json",
229
- serializer
229
+ serializer,
230
230
  };
231
231
  const validateInputsOperationSpec = {
232
232
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs",
233
233
  httpMethod: "POST",
234
234
  responses: {
235
235
  200: {
236
- bodyMapper: Mappers.ValidationResponse
236
+ bodyMapper: Mappers.ValidationResponse,
237
237
  },
238
238
  default: {
239
- bodyMapper: Mappers.ApiError
240
- }
239
+ bodyMapper: Mappers.ApiError,
240
+ },
241
241
  },
242
242
  requestBody: Parameters.validationRequest,
243
243
  queryParameters: [Parameters.apiVersion],
244
244
  urlParameters: [
245
245
  Parameters.$host,
246
246
  Parameters.subscriptionId,
247
- Parameters.location
247
+ Parameters.location,
248
248
  ],
249
249
  headerParameters: [Parameters.accept, Parameters.contentType],
250
250
  mediaType: "json",
251
- serializer
251
+ serializer,
252
252
  };
253
253
  const regionConfigurationOperationSpec = {
254
254
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration",
255
255
  httpMethod: "POST",
256
256
  responses: {
257
257
  200: {
258
- bodyMapper: Mappers.RegionConfigurationResponse
258
+ bodyMapper: Mappers.RegionConfigurationResponse,
259
259
  },
260
260
  default: {
261
- bodyMapper: Mappers.ApiError
262
- }
261
+ bodyMapper: Mappers.ApiError,
262
+ },
263
263
  },
264
264
  requestBody: Parameters.regionConfigurationRequest,
265
265
  queryParameters: [Parameters.apiVersion],
266
266
  urlParameters: [
267
267
  Parameters.$host,
268
268
  Parameters.subscriptionId,
269
- Parameters.location
269
+ Parameters.location,
270
270
  ],
271
271
  headerParameters: [Parameters.accept, Parameters.contentType],
272
272
  mediaType: "json",
273
- serializer
273
+ serializer,
274
274
  };
275
275
  const regionConfigurationByResourceGroupOperationSpec = {
276
276
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration",
277
277
  httpMethod: "POST",
278
278
  responses: {
279
279
  200: {
280
- bodyMapper: Mappers.RegionConfigurationResponse
280
+ bodyMapper: Mappers.RegionConfigurationResponse,
281
281
  },
282
282
  default: {
283
- bodyMapper: Mappers.ApiError
284
- }
283
+ bodyMapper: Mappers.ApiError,
284
+ },
285
285
  },
286
286
  requestBody: Parameters.regionConfigurationRequest,
287
287
  queryParameters: [Parameters.apiVersion],
@@ -289,32 +289,32 @@ const regionConfigurationByResourceGroupOperationSpec = {
289
289
  Parameters.$host,
290
290
  Parameters.subscriptionId,
291
291
  Parameters.resourceGroupName,
292
- Parameters.location
292
+ Parameters.location,
293
293
  ],
294
294
  headerParameters: [Parameters.accept, Parameters.contentType],
295
295
  mediaType: "json",
296
- serializer
296
+ serializer,
297
297
  };
298
298
  const listAvailableSkusByResourceGroupNextOperationSpec = {
299
299
  path: "{nextLink}",
300
300
  httpMethod: "GET",
301
301
  responses: {
302
302
  200: {
303
- bodyMapper: Mappers.AvailableSkusResult
303
+ bodyMapper: Mappers.AvailableSkusResult,
304
304
  },
305
305
  default: {
306
- bodyMapper: Mappers.ApiError
307
- }
306
+ bodyMapper: Mappers.ApiError,
307
+ },
308
308
  },
309
309
  urlParameters: [
310
310
  Parameters.$host,
311
311
  Parameters.nextLink,
312
312
  Parameters.subscriptionId,
313
313
  Parameters.resourceGroupName,
314
- Parameters.location
314
+ Parameters.location,
315
315
  ],
316
316
  headerParameters: [Parameters.accept, Parameters.contentType],
317
317
  mediaType: "json",
318
- serializer
318
+ serializer,
319
319
  };
320
320
  //# sourceMappingURL=service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/operations/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,K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KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Service } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataBoxManagementClient } from \"../dataBoxManagementClient.js\";\nimport {\n SkuInformation,\n AvailableSkuRequest,\n ServiceListAvailableSkusByResourceGroupNextOptionalParams,\n ServiceListAvailableSkusByResourceGroupOptionalParams,\n ServiceListAvailableSkusByResourceGroupResponse,\n ValidateAddress,\n ServiceValidateAddressOptionalParams,\n ServiceValidateAddressResponse,\n ValidationRequestUnion,\n ServiceValidateInputsByResourceGroupOptionalParams,\n ServiceValidateInputsByResourceGroupResponse,\n ServiceValidateInputsOptionalParams,\n ServiceValidateInputsResponse,\n RegionConfigurationRequest,\n ServiceRegionConfigurationOptionalParams,\n ServiceRegionConfigurationResponse,\n ServiceRegionConfigurationByResourceGroupOptionalParams,\n ServiceRegionConfigurationByResourceGroupResponse,\n ServiceListAvailableSkusByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Service operations. */\nexport class ServiceImpl implements Service {\n private readonly client: DataBoxManagementClient;\n\n /**\n * Initialize a new instance of the class Service class.\n * @param client Reference to the service client\n */\n constructor(client: DataBoxManagementClient) {\n this.client = client;\n }\n\n /**\n * This method provides the list of available skus for the given subscription, resource group and\n * location.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param availableSkuRequest Filters for showing the available skus.\n * @param options The options parameters.\n */\n public listAvailableSkusByResourceGroup(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n options?: ServiceListAvailableSkusByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<SkuInformation> {\n const iter = this.listAvailableSkusByResourceGroupPagingAll(\n resourceGroupName,\n location,\n availableSkuRequest,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAvailableSkusByResourceGroupPagingPage(\n resourceGroupName,\n location,\n availableSkuRequest,\n options,\n settings\n );\n }\n };\n }\n\n private async *listAvailableSkusByResourceGroupPagingPage(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n options?: ServiceListAvailableSkusByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SkuInformation[]> {\n let result: ServiceListAvailableSkusByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAvailableSkusByResourceGroup(\n resourceGroupName,\n location,\n availableSkuRequest,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAvailableSkusByResourceGroupNext(\n resourceGroupName,\n location,\n availableSkuRequest,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAvailableSkusByResourceGroupPagingAll(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n options?: ServiceListAvailableSkusByResourceGroupOptionalParams\n ): AsyncIterableIterator<SkuInformation> {\n for await (const page of this.listAvailableSkusByResourceGroupPagingPage(\n resourceGroupName,\n location,\n availableSkuRequest,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * This method provides the list of available skus for the given subscription, resource group and\n * location.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param availableSkuRequest Filters for showing the available skus.\n * @param options The options parameters.\n */\n private _listAvailableSkusByResourceGroup(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n options?: ServiceListAvailableSkusByResourceGroupOptionalParams\n ): Promise<ServiceListAvailableSkusByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, location, availableSkuRequest, options },\n listAvailableSkusByResourceGroupOperationSpec\n );\n }\n\n /**\n * [DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer\n * shipping address and provide alternate addresses if any.\n * @param location The location of the resource\n * @param validateAddress Shipping address of the customer.\n * @param options The options parameters.\n */\n validateAddress(\n location: string,\n validateAddress: ValidateAddress,\n options?: ServiceValidateAddressOptionalParams\n ): Promise<ServiceValidateAddressResponse> {\n return this.client.sendOperationRequest(\n { location, validateAddress, options },\n validateAddressOperationSpec\n );\n }\n\n /**\n * This method does all necessary pre-job creation validation under resource group.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param validationRequest Inputs of the customer.\n * @param options The options parameters.\n */\n validateInputsByResourceGroup(\n resourceGroupName: string,\n location: string,\n validationRequest: ValidationRequestUnion,\n options?: ServiceValidateInputsByResourceGroupOptionalParams\n ): Promise<ServiceValidateInputsByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, location, validationRequest, options },\n validateInputsByResourceGroupOperationSpec\n );\n }\n\n /**\n * This method does all necessary pre-job creation validation under subscription.\n * @param location The location of the resource\n * @param validationRequest Inputs of the customer.\n * @param options The options parameters.\n */\n validateInputs(\n location: string,\n validationRequest: ValidationRequestUnion,\n options?: ServiceValidateInputsOptionalParams\n ): Promise<ServiceValidateInputsResponse> {\n return this.client.sendOperationRequest(\n { location, validationRequest, options },\n validateInputsOperationSpec\n );\n }\n\n /**\n * This API provides configuration details specific to given region/location at Subscription level.\n * @param location The location of the resource\n * @param regionConfigurationRequest Request body to get the configuration for the region.\n * @param options The options parameters.\n */\n regionConfiguration(\n location: string,\n regionConfigurationRequest: RegionConfigurationRequest,\n options?: ServiceRegionConfigurationOptionalParams\n ): Promise<ServiceRegionConfigurationResponse> {\n return this.client.sendOperationRequest(\n { location, regionConfigurationRequest, options },\n regionConfigurationOperationSpec\n );\n }\n\n /**\n * This API provides configuration details specific to given region/location at Resource group level.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param regionConfigurationRequest Request body to get the configuration for the region at resource\n * group level.\n * @param options The options parameters.\n */\n regionConfigurationByResourceGroup(\n resourceGroupName: string,\n location: string,\n regionConfigurationRequest: RegionConfigurationRequest,\n options?: ServiceRegionConfigurationByResourceGroupOptionalParams\n ): Promise<ServiceRegionConfigurationByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, location, regionConfigurationRequest, options },\n regionConfigurationByResourceGroupOperationSpec\n );\n }\n\n /**\n * ListAvailableSkusByResourceGroupNext\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param availableSkuRequest Filters for showing the available skus.\n * @param nextLink The nextLink from the previous successful call to the\n * ListAvailableSkusByResourceGroup method.\n * @param options The options parameters.\n */\n private _listAvailableSkusByResourceGroupNext(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n nextLink: string,\n options?: ServiceListAvailableSkusByResourceGroupNextOptionalParams\n ): Promise<ServiceListAvailableSkusByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, location, availableSkuRequest, nextLink, options },\n listAvailableSkusByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAvailableSkusByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/availableSkus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailableSkusResult\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.availableSkuRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst validateAddressOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AddressValidationOutput\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.validateAddress,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst validateInputsByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidationResponse\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.validationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst validateInputsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidationResponse\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.validationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst regionConfigurationOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegionConfigurationResponse\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.regionConfigurationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst regionConfigurationByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegionConfigurationResponse\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.regionConfigurationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listAvailableSkusByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailableSkusResult\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/operations/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAwBtD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,gCAAgC,CACrC,iBAAyB,EACzB,QAAgB,EAChB,mBAAwC,EACxC,OAA+D;QAE/D,MAAM,IAAI,GAAG,IAAI,CAAC,yCAAyC,CACzD,iBAAiB,EACjB,QAAQ,EACR,mBAAmB,EACnB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,0CAA0C,CACpD,iBAAiB,EACjB,QAAQ,EACR,mBAAmB,EACnB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,0CAA0C,CACvD,iBAAyB,EACzB,QAAgB,EAChB,mBAAwC,EACx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S,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACJ,MAAM,iDAAiD,GACrD;IACE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Service } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataBoxManagementClient } from \"../dataBoxManagementClient.js\";\nimport {\n SkuInformation,\n AvailableSkuRequest,\n ServiceListAvailableSkusByResourceGroupNextOptionalParams,\n ServiceListAvailableSkusByResourceGroupOptionalParams,\n ServiceListAvailableSkusByResourceGroupResponse,\n ValidateAddress,\n ServiceValidateAddressOptionalParams,\n ServiceValidateAddressResponse,\n ValidationRequestUnion,\n ServiceValidateInputsByResourceGroupOptionalParams,\n ServiceValidateInputsByResourceGroupResponse,\n ServiceValidateInputsOptionalParams,\n ServiceValidateInputsResponse,\n RegionConfigurationRequest,\n ServiceRegionConfigurationOptionalParams,\n ServiceRegionConfigurationResponse,\n ServiceRegionConfigurationByResourceGroupOptionalParams,\n ServiceRegionConfigurationByResourceGroupResponse,\n ServiceListAvailableSkusByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Service operations. */\nexport class ServiceImpl implements Service {\n private readonly client: DataBoxManagementClient;\n\n /**\n * Initialize a new instance of the class Service class.\n * @param client Reference to the service client\n */\n constructor(client: DataBoxManagementClient) {\n this.client = client;\n }\n\n /**\n * This method provides the list of available skus for the given subscription, resource group and\n * location.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param availableSkuRequest Filters for showing the available skus.\n * @param options The options parameters.\n */\n public listAvailableSkusByResourceGroup(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n options?: ServiceListAvailableSkusByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<SkuInformation> {\n const iter = this.listAvailableSkusByResourceGroupPagingAll(\n resourceGroupName,\n location,\n availableSkuRequest,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAvailableSkusByResourceGroupPagingPage(\n resourceGroupName,\n location,\n availableSkuRequest,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listAvailableSkusByResourceGroupPagingPage(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n options?: ServiceListAvailableSkusByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SkuInformation[]> {\n let result: ServiceListAvailableSkusByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAvailableSkusByResourceGroup(\n resourceGroupName,\n location,\n availableSkuRequest,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAvailableSkusByResourceGroupNext(\n resourceGroupName,\n location,\n availableSkuRequest,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAvailableSkusByResourceGroupPagingAll(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n options?: ServiceListAvailableSkusByResourceGroupOptionalParams,\n ): AsyncIterableIterator<SkuInformation> {\n for await (const page of this.listAvailableSkusByResourceGroupPagingPage(\n resourceGroupName,\n location,\n availableSkuRequest,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * This method provides the list of available skus for the given subscription, resource group and\n * location.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param availableSkuRequest Filters for showing the available skus.\n * @param options The options parameters.\n */\n private _listAvailableSkusByResourceGroup(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n options?: ServiceListAvailableSkusByResourceGroupOptionalParams,\n ): Promise<ServiceListAvailableSkusByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, location, availableSkuRequest, options },\n listAvailableSkusByResourceGroupOperationSpec,\n );\n }\n\n /**\n * [DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer\n * shipping address and provide alternate addresses if any.\n * @param location The location of the resource\n * @param validateAddress Shipping address of the customer.\n * @param options The options parameters.\n */\n validateAddress(\n location: string,\n validateAddress: ValidateAddress,\n options?: ServiceValidateAddressOptionalParams,\n ): Promise<ServiceValidateAddressResponse> {\n return this.client.sendOperationRequest(\n { location, validateAddress, options },\n validateAddressOperationSpec,\n );\n }\n\n /**\n * This method does all necessary pre-job creation validation under resource group.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param validationRequest Inputs of the customer.\n * @param options The options parameters.\n */\n validateInputsByResourceGroup(\n resourceGroupName: string,\n location: string,\n validationRequest: ValidationRequestUnion,\n options?: ServiceValidateInputsByResourceGroupOptionalParams,\n ): Promise<ServiceValidateInputsByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, location, validationRequest, options },\n validateInputsByResourceGroupOperationSpec,\n );\n }\n\n /**\n * This method does all necessary pre-job creation validation under subscription.\n * @param location The location of the resource\n * @param validationRequest Inputs of the customer.\n * @param options The options parameters.\n */\n validateInputs(\n location: string,\n validationRequest: ValidationRequestUnion,\n options?: ServiceValidateInputsOptionalParams,\n ): Promise<ServiceValidateInputsResponse> {\n return this.client.sendOperationRequest(\n { location, validationRequest, options },\n validateInputsOperationSpec,\n );\n }\n\n /**\n * This API provides configuration details specific to given region/location at Subscription level.\n * @param location The location of the resource\n * @param regionConfigurationRequest Request body to get the configuration for the region.\n * @param options The options parameters.\n */\n regionConfiguration(\n location: string,\n regionConfigurationRequest: RegionConfigurationRequest,\n options?: ServiceRegionConfigurationOptionalParams,\n ): Promise<ServiceRegionConfigurationResponse> {\n return this.client.sendOperationRequest(\n { location, regionConfigurationRequest, options },\n regionConfigurationOperationSpec,\n );\n }\n\n /**\n * This API provides configuration details specific to given region/location at Resource group level.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param regionConfigurationRequest Request body to get the configuration for the region at resource\n * group level.\n * @param options The options parameters.\n */\n regionConfigurationByResourceGroup(\n resourceGroupName: string,\n location: string,\n regionConfigurationRequest: RegionConfigurationRequest,\n options?: ServiceRegionConfigurationByResourceGroupOptionalParams,\n ): Promise<ServiceRegionConfigurationByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, location, regionConfigurationRequest, options },\n regionConfigurationByResourceGroupOperationSpec,\n );\n }\n\n /**\n * ListAvailableSkusByResourceGroupNext\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param availableSkuRequest Filters for showing the available skus.\n * @param nextLink The nextLink from the previous successful call to the\n * ListAvailableSkusByResourceGroup method.\n * @param options The options parameters.\n */\n private _listAvailableSkusByResourceGroupNext(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n nextLink: string,\n options?: ServiceListAvailableSkusByResourceGroupNextOptionalParams,\n ): Promise<ServiceListAvailableSkusByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, location, availableSkuRequest, nextLink, options },\n listAvailableSkusByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAvailableSkusByResourceGroupOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/availableSkus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailableSkusResult,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.availableSkuRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\nconst validateAddressOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AddressValidationOutput,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.validateAddress,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst validateInputsByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidationResponse,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.validationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst validateInputsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidationResponse,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.validationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst regionConfigurationOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegionConfigurationResponse,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.regionConfigurationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst regionConfigurationByResourceGroupOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegionConfigurationResponse,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.regionConfigurationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\nconst listAvailableSkusByResourceGroupNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailableSkusResult,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/jobs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n JobResource,\n JobsListOptionalParams,\n JobsListByResourceGroupOptionalParams,\n UnencryptedCredentials,\n JobsListCredentialsOptionalParams,\n MarkDevicesShippedRequest,\n JobsMarkDevicesShippedOptionalParams,\n JobsGetOptionalParams,\n JobsGetResponse,\n JobsCreateOptionalParams,\n JobsCreateResponse,\n JobsDeleteOptionalParams,\n JobResourceUpdateParameter,\n JobsUpdateOptionalParams,\n JobsUpdateResponse,\n ShipmentPickUpRequest,\n JobsBookShipmentPickUpOptionalParams,\n JobsBookShipmentPickUpResponse,\n CancellationReason,\n JobsCancelOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Jobs. */\nexport interface Jobs {\n /**\n * Lists all the jobs available under the subscription.\n * @param options The options parameters.\n */\n list(\n options?: JobsListOptionalParams\n ): PagedAsyncIterableIterator<JobResource>;\n /**\n * Lists all the jobs available under the given resource group.\n * @param resourceGroupName The Resource Group Name\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<JobResource>;\n /**\n * This method gets the unencrypted secrets related to the job.\n * @param resourceGroupName The Resource Group Name\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 options The options parameters.\n */\n listCredentials(\n resourceGroupName: string,\n jobName: string,\n options?: JobsListCredentialsOptionalParams\n ): PagedAsyncIterableIterator<UnencryptedCredentials>;\n /**\n * Request to mark devices for a given job as shipped\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 markDevicesShippedRequest Mark Devices Shipped Request\n * @param options The options parameters.\n */\n markDevicesShipped(\n jobName: string,\n resourceGroupName: string,\n markDevicesShippedRequest: MarkDevicesShippedRequest,\n options?: JobsMarkDevicesShippedOptionalParams\n ): Promise<void>;\n /**\n * Gets information about the specified job.\n * @param resourceGroupName The Resource Group Name\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 options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n options?: JobsGetOptionalParams\n ): Promise<JobsGetResponse>;\n /**\n * Creates a new job with the specified parameters. Existing job cannot be updated with this API and\n * should instead be updated with the Update job API.\n * @param resourceGroupName The Resource Group Name\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 jobResource Job details from request body.\n * @param options The options parameters.\n */\n beginCreate(\n resourceGroupName: string,\n jobName: string,\n jobResource: JobResource,\n options?: JobsCreateOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<JobsCreateResponse>, JobsCreateResponse>\n >;\n /**\n * Creates a new job with the specified parameters. Existing job cannot be updated with this API and\n * should instead be updated with the Update job API.\n * @param resourceGroupName The Resource Group Name\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 jobResource Job details from request body.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n resourceGroupName: string,\n jobName: string,\n jobResource: JobResource,\n options?: JobsCreateOptionalParams\n ): Promise<JobsCreateResponse>;\n /**\n * Deletes a job.\n * @param resourceGroupName The Resource Group Name\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 options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n jobName: string,\n options?: JobsDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Deletes a job.\n * @param resourceGroupName The Resource Group Name\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 options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n jobName: string,\n options?: JobsDeleteOptionalParams\n ): Promise<void>;\n /**\n * Updates the properties of an existing job.\n * @param resourceGroupName The Resource Group Name\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 jobResourceUpdateParameter Job update parameters from request body.\n * @param options The options parameters.\n */\n beginUpdate(\n resourceGroupName: string,\n jobName: string,\n jobResourceUpdateParameter: JobResourceUpdateParameter,\n options?: JobsUpdateOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<JobsUpdateResponse>, JobsUpdateResponse>\n >;\n /**\n * Updates the properties of an existing job.\n * @param resourceGroupName The Resource Group Name\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 jobResourceUpdateParameter Job update parameters from request body.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n resourceGroupName: string,\n jobName: string,\n jobResourceUpdateParameter: JobResourceUpdateParameter,\n options?: JobsUpdateOptionalParams\n ): Promise<JobsUpdateResponse>;\n /**\n * Book shipment pick up.\n * @param resourceGroupName The Resource Group Name\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 shipmentPickUpRequest Details of shipment pick up request.\n * @param options The options parameters.\n */\n bookShipmentPickUp(\n resourceGroupName: string,\n jobName: string,\n shipmentPickUpRequest: ShipmentPickUpRequest,\n options?: JobsBookShipmentPickUpOptionalParams\n ): Promise<JobsBookShipmentPickUpResponse>;\n /**\n * CancelJob.\n * @param resourceGroupName The Resource Group Name\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 cancellationReason Reason for cancellation.\n * @param options The options parameters.\n */\n cancel(\n resourceGroupName: string,\n jobName: string,\n cancellationReason: CancellationReason,\n options?: JobsCancelOptionalParams\n ): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/jobs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n JobResource,\n JobsListOptionalParams,\n JobsListByResourceGroupOptionalParams,\n UnencryptedCredentials,\n JobsListCredentialsOptionalParams,\n MarkDevicesShippedRequest,\n JobsMarkDevicesShippedOptionalParams,\n JobsGetOptionalParams,\n JobsGetResponse,\n JobsCreateOptionalParams,\n JobsCreateResponse,\n JobsDeleteOptionalParams,\n JobResourceUpdateParameter,\n JobsUpdateOptionalParams,\n JobsUpdateResponse,\n ShipmentPickUpRequest,\n JobsBookShipmentPickUpOptionalParams,\n JobsBookShipmentPickUpResponse,\n CancellationReason,\n JobsCancelOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Jobs. */\nexport interface Jobs {\n /**\n * Lists all the jobs available under the subscription.\n * @param options The options parameters.\n */\n list(\n options?: JobsListOptionalParams,\n ): PagedAsyncIterableIterator<JobResource>;\n /**\n * Lists all the jobs available under the given resource group.\n * @param resourceGroupName The Resource Group Name\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<JobResource>;\n /**\n * This method gets the unencrypted secrets related to the job.\n * @param resourceGroupName The Resource Group Name\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 options The options parameters.\n */\n listCredentials(\n resourceGroupName: string,\n jobName: string,\n options?: JobsListCredentialsOptionalParams,\n ): PagedAsyncIterableIterator<UnencryptedCredentials>;\n /**\n * Request to mark devices for a given job as shipped\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 markDevicesShippedRequest Mark Devices Shipped Request\n * @param options The options parameters.\n */\n markDevicesShipped(\n jobName: string,\n resourceGroupName: string,\n markDevicesShippedRequest: MarkDevicesShippedRequest,\n options?: JobsMarkDevicesShippedOptionalParams,\n ): Promise<void>;\n /**\n * Gets information about the specified job.\n * @param resourceGroupName The Resource Group Name\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 options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n options?: JobsGetOptionalParams,\n ): Promise<JobsGetResponse>;\n /**\n * Creates a new job with the specified parameters. Existing job cannot be updated with this API and\n * should instead be updated with the Update job API.\n * @param resourceGroupName The Resource Group Name\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 jobResource Job details from request body.\n * @param options The options parameters.\n */\n beginCreate(\n resourceGroupName: string,\n jobName: string,\n jobResource: JobResource,\n options?: JobsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<JobsCreateResponse>, JobsCreateResponse>\n >;\n /**\n * Creates a new job with the specified parameters. Existing job cannot be updated with this API and\n * should instead be updated with the Update job API.\n * @param resourceGroupName The Resource Group Name\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 jobResource Job details from request body.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n resourceGroupName: string,\n jobName: string,\n jobResource: JobResource,\n options?: JobsCreateOptionalParams,\n ): Promise<JobsCreateResponse>;\n /**\n * Deletes a job.\n * @param resourceGroupName The Resource Group Name\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 options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n jobName: string,\n options?: JobsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Deletes a job.\n * @param resourceGroupName The Resource Group Name\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 options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n jobName: string,\n options?: JobsDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Updates the properties of an existing job.\n * @param resourceGroupName The Resource Group Name\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 jobResourceUpdateParameter Job update parameters from request body.\n * @param options The options parameters.\n */\n beginUpdate(\n resourceGroupName: string,\n jobName: string,\n jobResourceUpdateParameter: JobResourceUpdateParameter,\n options?: JobsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<JobsUpdateResponse>, JobsUpdateResponse>\n >;\n /**\n * Updates the properties of an existing job.\n * @param resourceGroupName The Resource Group Name\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 jobResourceUpdateParameter Job update parameters from request body.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n resourceGroupName: string,\n jobName: string,\n jobResourceUpdateParameter: JobResourceUpdateParameter,\n options?: JobsUpdateOptionalParams,\n ): Promise<JobsUpdateResponse>;\n /**\n * Book shipment pick up.\n * @param resourceGroupName The Resource Group Name\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 shipmentPickUpRequest Details of shipment pick up request.\n * @param options The options parameters.\n */\n bookShipmentPickUp(\n resourceGroupName: string,\n jobName: string,\n shipmentPickUpRequest: ShipmentPickUpRequest,\n options?: JobsBookShipmentPickUpOptionalParams,\n ): Promise<JobsBookShipmentPickUpResponse>;\n /**\n * CancelJob.\n * @param resourceGroupName The Resource Group Name\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 cancellationReason Reason for cancellation.\n * @param options The options parameters.\n */\n cancel(\n resourceGroupName: string,\n jobName: string,\n cancellationReason: CancellationReason,\n options?: JobsCancelOptionalParams,\n ): Promise<void>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * This method gets all the operations.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * This method gets all the operations.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n SkuInformation,\n AvailableSkuRequest,\n ServiceListAvailableSkusByResourceGroupOptionalParams,\n ValidateAddress,\n ServiceValidateAddressOptionalParams,\n ServiceValidateAddressResponse,\n ValidationRequestUnion,\n ServiceValidateInputsByResourceGroupOptionalParams,\n ServiceValidateInputsByResourceGroupResponse,\n ServiceValidateInputsOptionalParams,\n ServiceValidateInputsResponse,\n RegionConfigurationRequest,\n ServiceRegionConfigurationOptionalParams,\n ServiceRegionConfigurationResponse,\n ServiceRegionConfigurationByResourceGroupOptionalParams,\n ServiceRegionConfigurationByResourceGroupResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Service. */\nexport interface Service {\n /**\n * This method provides the list of available skus for the given subscription, resource group and\n * location.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param availableSkuRequest Filters for showing the available skus.\n * @param options The options parameters.\n */\n listAvailableSkusByResourceGroup(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n options?: ServiceListAvailableSkusByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<SkuInformation>;\n /**\n * [DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer\n * shipping address and provide alternate addresses if any.\n * @param location The location of the resource\n * @param validateAddress Shipping address of the customer.\n * @param options The options parameters.\n */\n validateAddress(\n location: string,\n validateAddress: ValidateAddress,\n options?: ServiceValidateAddressOptionalParams\n ): Promise<ServiceValidateAddressResponse>;\n /**\n * This method does all necessary pre-job creation validation under resource group.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param validationRequest Inputs of the customer.\n * @param options The options parameters.\n */\n validateInputsByResourceGroup(\n resourceGroupName: string,\n location: string,\n validationRequest: ValidationRequestUnion,\n options?: ServiceValidateInputsByResourceGroupOptionalParams\n ): Promise<ServiceValidateInputsByResourceGroupResponse>;\n /**\n * This method does all necessary pre-job creation validation under subscription.\n * @param location The location of the resource\n * @param validationRequest Inputs of the customer.\n * @param options The options parameters.\n */\n validateInputs(\n location: string,\n validationRequest: ValidationRequestUnion,\n options?: ServiceValidateInputsOptionalParams\n ): Promise<ServiceValidateInputsResponse>;\n /**\n * This API provides configuration details specific to given region/location at Subscription level.\n * @param location The location of the resource\n * @param regionConfigurationRequest Request body to get the configuration for the region.\n * @param options The options parameters.\n */\n regionConfiguration(\n location: string,\n regionConfigurationRequest: RegionConfigurationRequest,\n options?: ServiceRegionConfigurationOptionalParams\n ): Promise<ServiceRegionConfigurationResponse>;\n /**\n * This API provides configuration details specific to given region/location at Resource group level.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param regionConfigurationRequest Request body to get the configuration for the region at resource\n * group level.\n * @param options The options parameters.\n */\n regionConfigurationByResourceGroup(\n resourceGroupName: string,\n location: string,\n regionConfigurationRequest: RegionConfigurationRequest,\n options?: ServiceRegionConfigurationByResourceGroupOptionalParams\n ): Promise<ServiceRegionConfigurationByResourceGroupResponse>;\n}\n"]}
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n SkuInformation,\n AvailableSkuRequest,\n ServiceListAvailableSkusByResourceGroupOptionalParams,\n ValidateAddress,\n ServiceValidateAddressOptionalParams,\n ServiceValidateAddressResponse,\n ValidationRequestUnion,\n ServiceValidateInputsByResourceGroupOptionalParams,\n ServiceValidateInputsByResourceGroupResponse,\n ServiceValidateInputsOptionalParams,\n ServiceValidateInputsResponse,\n RegionConfigurationRequest,\n ServiceRegionConfigurationOptionalParams,\n ServiceRegionConfigurationResponse,\n ServiceRegionConfigurationByResourceGroupOptionalParams,\n ServiceRegionConfigurationByResourceGroupResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Service. */\nexport interface Service {\n /**\n * This method provides the list of available skus for the given subscription, resource group and\n * location.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param availableSkuRequest Filters for showing the available skus.\n * @param options The options parameters.\n */\n listAvailableSkusByResourceGroup(\n resourceGroupName: string,\n location: string,\n availableSkuRequest: AvailableSkuRequest,\n options?: ServiceListAvailableSkusByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<SkuInformation>;\n /**\n * [DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer\n * shipping address and provide alternate addresses if any.\n * @param location The location of the resource\n * @param validateAddress Shipping address of the customer.\n * @param options The options parameters.\n */\n validateAddress(\n location: string,\n validateAddress: ValidateAddress,\n options?: ServiceValidateAddressOptionalParams,\n ): Promise<ServiceValidateAddressResponse>;\n /**\n * This method does all necessary pre-job creation validation under resource group.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param validationRequest Inputs of the customer.\n * @param options The options parameters.\n */\n validateInputsByResourceGroup(\n resourceGroupName: string,\n location: string,\n validationRequest: ValidationRequestUnion,\n options?: ServiceValidateInputsByResourceGroupOptionalParams,\n ): Promise<ServiceValidateInputsByResourceGroupResponse>;\n /**\n * This method does all necessary pre-job creation validation under subscription.\n * @param location The location of the resource\n * @param validationRequest Inputs of the customer.\n * @param options The options parameters.\n */\n validateInputs(\n location: string,\n validationRequest: ValidationRequestUnion,\n options?: ServiceValidateInputsOptionalParams,\n ): Promise<ServiceValidateInputsResponse>;\n /**\n * This API provides configuration details specific to given region/location at Subscription level.\n * @param location The location of the resource\n * @param regionConfigurationRequest Request body to get the configuration for the region.\n * @param options The options parameters.\n */\n regionConfiguration(\n location: string,\n regionConfigurationRequest: RegionConfigurationRequest,\n options?: ServiceRegionConfigurationOptionalParams,\n ): Promise<ServiceRegionConfigurationResponse>;\n /**\n * This API provides configuration details specific to given region/location at Resource group level.\n * @param resourceGroupName The Resource Group Name\n * @param location The location of the resource\n * @param regionConfigurationRequest Request body to get the configuration for the region at resource\n * group level.\n * @param options The options parameters.\n */\n regionConfigurationByResourceGroup(\n resourceGroupName: string,\n location: string,\n regionConfigurationRequest: RegionConfigurationRequest,\n options?: ServiceRegionConfigurationByResourceGroupOptionalParams,\n ): Promise<ServiceRegionConfigurationByResourceGroupResponse>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
package/package.json CHANGED
@@ -3,17 +3,17 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for DataBoxManagementClient.",
6
- "version": "5.0.1-alpha.20250327.1",
6
+ "version": "5.1.0",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
10
10
  "dependencies": {
11
11
  "@azure/abort-controller": "^2.1.2",
12
12
  "@azure/core-auth": "^1.9.0",
13
- "@azure/core-client": "^1.9.2",
14
- "@azure/core-lro": "^2.5.0",
13
+ "@azure/core-client": "^1.9.3",
14
+ "@azure/core-lro": "^2.5.4",
15
15
  "@azure/core-paging": "^1.6.2",
16
- "@azure/core-rest-pipeline": "^1.18.2",
16
+ "@azure/core-rest-pipeline": "^1.19.1",
17
17
  "tslib": "^2.8.1"
18
18
  },
19
19
  "keywords": [
@@ -21,8 +21,7 @@
21
21
  "azure",
22
22
  "typescript",
23
23
  "browser",
24
- "isomorphic",
25
- "cloud"
24
+ "isomorphic"
26
25
  ],
27
26
  "license": "MIT",
28
27
  "main": "./dist/commonjs/index.js",
@@ -30,10 +29,10 @@
30
29
  "types": "./dist/commonjs/index.d.ts",
31
30
  "devDependencies": {
32
31
  "@azure-tools/test-credential": "^2.0.0",
33
- "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
34
- "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
35
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
36
- "@azure/identity": "^4.6.0",
32
+ "@azure-tools/test-recorder": "^4.1.0",
33
+ "@azure-tools/test-utils-vitest": "^1.0.0",
34
+ "@azure/dev-tool": "^1.0.0",
35
+ "@azure/identity": "^4.8.0",
37
36
  "@azure/logger": "^1.1.4",
38
37
  "@types/node": "^18.0.0",
39
38
  "@vitest/browser": "^3.0.9",