@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
@@ -41,7 +41,7 @@ class OperationsImpl {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listPagingPage(options, settings);
44
- }
44
+ },
45
45
  };
46
46
  }
47
47
  listPagingPage(options, settings) {
@@ -108,30 +108,30 @@ const listOperationSpec = {
108
108
  httpMethod: "GET",
109
109
  responses: {
110
110
  200: {
111
- bodyMapper: Mappers.OperationList
111
+ bodyMapper: Mappers.OperationList,
112
112
  },
113
113
  default: {
114
- bodyMapper: Mappers.ApiError
115
- }
114
+ bodyMapper: Mappers.ApiError,
115
+ },
116
116
  },
117
117
  queryParameters: [Parameters.apiVersion],
118
118
  urlParameters: [Parameters.$host],
119
119
  headerParameters: [Parameters.accept],
120
- serializer
120
+ serializer,
121
121
  };
122
122
  const listNextOperationSpec = {
123
123
  path: "{nextLink}",
124
124
  httpMethod: "GET",
125
125
  responses: {
126
126
  200: {
127
- bodyMapper: Mappers.OperationList
127
+ bodyMapper: Mappers.OperationList,
128
128
  },
129
129
  default: {
130
- bodyMapper: Mappers.ApiError
131
- }
130
+ bodyMapper: Mappers.ApiError,
131
+ },
132
132
  },
133
133
  urlParameters: [Parameters.$host, Parameters.nextLink],
134
134
  headerParameters: [Parameters.accept],
135
- serializer
135
+ serializer,
136
136
  };
137
137
  //# sourceMappingURL=operations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc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,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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,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,OAAsC,EACtC,QAAuB;;YAEvB,IAAI,MAA8B,CAAC;YACnC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACvB,MAAM,GAAG,sBAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CA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;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"]}
@@ -45,7 +45,7 @@ class ServiceImpl {
45
45
  throw new Error("maxPageSize is not supported by this operation.");
46
46
  }
47
47
  return this.listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options, settings);
48
- }
48
+ },
49
49
  };
50
50
  }
51
51
  listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options, settings) {
@@ -169,11 +169,11 @@ const listAvailableSkusByResourceGroupOperationSpec = {
169
169
  httpMethod: "POST",
170
170
  responses: {
171
171
  200: {
172
- bodyMapper: Mappers.AvailableSkusResult
172
+ bodyMapper: Mappers.AvailableSkusResult,
173
173
  },
174
174
  default: {
175
- bodyMapper: Mappers.ApiError
176
- }
175
+ bodyMapper: Mappers.ApiError,
176
+ },
177
177
  },
178
178
  requestBody: Parameters.availableSkuRequest,
179
179
  queryParameters: [Parameters.apiVersion],
@@ -181,44 +181,44 @@ const listAvailableSkusByResourceGroupOperationSpec = {
181
181
  Parameters.$host,
182
182
  Parameters.subscriptionId,
183
183
  Parameters.resourceGroupName,
184
- Parameters.location
184
+ Parameters.location,
185
185
  ],
186
186
  headerParameters: [Parameters.accept, Parameters.contentType],
187
187
  mediaType: "json",
188
- serializer
188
+ serializer,
189
189
  };
190
190
  const validateAddressOperationSpec = {
191
191
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress",
192
192
  httpMethod: "POST",
193
193
  responses: {
194
194
  200: {
195
- bodyMapper: Mappers.AddressValidationOutput
195
+ bodyMapper: Mappers.AddressValidationOutput,
196
196
  },
197
197
  default: {
198
- bodyMapper: Mappers.ApiError
199
- }
198
+ bodyMapper: Mappers.ApiError,
199
+ },
200
200
  },
201
201
  requestBody: Parameters.validateAddress,
202
202
  queryParameters: [Parameters.apiVersion],
203
203
  urlParameters: [
204
204
  Parameters.$host,
205
205
  Parameters.subscriptionId,
206
- Parameters.location
206
+ Parameters.location,
207
207
  ],
208
208
  headerParameters: [Parameters.accept, Parameters.contentType],
209
209
  mediaType: "json",
210
- serializer
210
+ serializer,
211
211
  };
212
212
  const validateInputsByResourceGroupOperationSpec = {
213
213
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs",
214
214
  httpMethod: "POST",
215
215
  responses: {
216
216
  200: {
217
- bodyMapper: Mappers.ValidationResponse
217
+ bodyMapper: Mappers.ValidationResponse,
218
218
  },
219
219
  default: {
220
- bodyMapper: Mappers.ApiError
221
- }
220
+ bodyMapper: Mappers.ApiError,
221
+ },
222
222
  },
223
223
  requestBody: Parameters.validationRequest,
224
224
  queryParameters: [Parameters.apiVersion],
@@ -226,66 +226,66 @@ const validateInputsByResourceGroupOperationSpec = {
226
226
  Parameters.$host,
227
227
  Parameters.subscriptionId,
228
228
  Parameters.resourceGroupName,
229
- Parameters.location
229
+ Parameters.location,
230
230
  ],
231
231
  headerParameters: [Parameters.accept, Parameters.contentType],
232
232
  mediaType: "json",
233
- serializer
233
+ serializer,
234
234
  };
235
235
  const validateInputsOperationSpec = {
236
236
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs",
237
237
  httpMethod: "POST",
238
238
  responses: {
239
239
  200: {
240
- bodyMapper: Mappers.ValidationResponse
240
+ bodyMapper: Mappers.ValidationResponse,
241
241
  },
242
242
  default: {
243
- bodyMapper: Mappers.ApiError
244
- }
243
+ bodyMapper: Mappers.ApiError,
244
+ },
245
245
  },
246
246
  requestBody: Parameters.validationRequest,
247
247
  queryParameters: [Parameters.apiVersion],
248
248
  urlParameters: [
249
249
  Parameters.$host,
250
250
  Parameters.subscriptionId,
251
- Parameters.location
251
+ Parameters.location,
252
252
  ],
253
253
  headerParameters: [Parameters.accept, Parameters.contentType],
254
254
  mediaType: "json",
255
- serializer
255
+ serializer,
256
256
  };
257
257
  const regionConfigurationOperationSpec = {
258
258
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration",
259
259
  httpMethod: "POST",
260
260
  responses: {
261
261
  200: {
262
- bodyMapper: Mappers.RegionConfigurationResponse
262
+ bodyMapper: Mappers.RegionConfigurationResponse,
263
263
  },
264
264
  default: {
265
- bodyMapper: Mappers.ApiError
266
- }
265
+ bodyMapper: Mappers.ApiError,
266
+ },
267
267
  },
268
268
  requestBody: Parameters.regionConfigurationRequest,
269
269
  queryParameters: [Parameters.apiVersion],
270
270
  urlParameters: [
271
271
  Parameters.$host,
272
272
  Parameters.subscriptionId,
273
- Parameters.location
273
+ Parameters.location,
274
274
  ],
275
275
  headerParameters: [Parameters.accept, Parameters.contentType],
276
276
  mediaType: "json",
277
- serializer
277
+ serializer,
278
278
  };
279
279
  const regionConfigurationByResourceGroupOperationSpec = {
280
280
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration",
281
281
  httpMethod: "POST",
282
282
  responses: {
283
283
  200: {
284
- bodyMapper: Mappers.RegionConfigurationResponse
284
+ bodyMapper: Mappers.RegionConfigurationResponse,
285
285
  },
286
286
  default: {
287
- bodyMapper: Mappers.ApiError
288
- }
287
+ bodyMapper: Mappers.ApiError,
288
+ },
289
289
  },
290
290
  requestBody: Parameters.regionConfigurationRequest,
291
291
  queryParameters: [Parameters.apiVersion],
@@ -293,32 +293,32 @@ const regionConfigurationByResourceGroupOperationSpec = {
293
293
  Parameters.$host,
294
294
  Parameters.subscriptionId,
295
295
  Parameters.resourceGroupName,
296
- Parameters.location
296
+ Parameters.location,
297
297
  ],
298
298
  headerParameters: [Parameters.accept, Parameters.contentType],
299
299
  mediaType: "json",
300
- serializer
300
+ serializer,
301
301
  };
302
302
  const listAvailableSkusByResourceGroupNextOperationSpec = {
303
303
  path: "{nextLink}",
304
304
  httpMethod: "GET",
305
305
  responses: {
306
306
  200: {
307
- bodyMapper: Mappers.AvailableSkusResult
307
+ bodyMapper: Mappers.AvailableSkusResult,
308
308
  },
309
309
  default: {
310
- bodyMapper: Mappers.ApiError
311
- }
310
+ bodyMapper: Mappers.ApiError,
311
+ },
312
312
  },
313
313
  urlParameters: [
314
314
  Parameters.$host,
315
315
  Parameters.nextLink,
316
316
  Parameters.subscriptionId,
317
317
  Parameters.resourceGroupName,
318
- Parameters.location
318
+ Parameters.location,
319
319
  ],
320
320
  headerParameters: [Parameters.accept, Parameters.contentType],
321
321
  mediaType: "json",
322
- serializer
322
+ serializer,
323
323
  };
324
324
  //# sourceMappingURL=service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/operations/service.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAwBtD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,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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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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAwBtD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,WAAW;IAGtB;;;OAG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ACpB;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;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,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,SAAgB,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;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,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,SAAgB,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"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.1"
8
+ "packageVersion": "7.52.2"
9
9
  }
10
10
  ]
11
11
  }
@@ -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;AAE7C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAG5E,OAAO,EACL,qCAAqC,EACrC,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,qCAAqC;IA8EjD,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"}
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;AAE7C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAG5E,OAAO,EACL,qCAAqC,EACrC,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,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